This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Configuring SPI MCP3008
#11
thank you e-sailing , good to know i just installed a node red mcp3008 node it has that choice in its config.
i'll have a look at that file later.
Reply
#12
i found all the parts pieces and breadboard for testing.
i did the change in the file e-sailing posted ..that should be all you need to do.

sudo nano /home/pi/.config/openplotter/read_sensors_d.py

change "spi.open(0,1)" to "spi.open(0,0)". (line 437)

ctrl x y
let me know if that works for you..
Reply
#13
(2019-03-24, 12:49 PM)jim321 Wrote: no you can setup sensors without the hat
i have an arduino with firmata for my sensors.
ads1115 also works for analog "I2C".
i think the MCP3008 "SPI" was fixed in the latest release..

I'm also hope for it. But now I have the next situation (by version 1.2.0):
SPI device is working but we can to see only "raw" data (not real). For example, Ubat has near 750V. Checkbox "convert" doesn't works because "value_0 is not defined". Value setting button is not working also.
Previouse version 1.0.0 works correctly (in this tab).
How to solve this problem?
Please help me.
Reply
#14
(2019-04-22, 02:21 PM)sapers Wrote:
(2019-03-24, 12:49 PM)jim321 Wrote: no you can setup sensors without the hat
i have an arduino with firmata for my sensors.
ads1115 also works for analog "I2C".
i think the MCP3008 "SPI" was fixed in the latest release..

I'm also hope for it. But now I have the next situation (by version 1.2.0):
SPI device is working but we can to see only "raw" data (not real). For example, Ubat has near 750V. Checkbox "convert" doesn't works because "value_0 is not defined". Value setting button is not working also.
Previouse version 1.0.0 works correctly (in this tab).
How to solve this problem?
Please help me.

Yes, I have the same problem. Is there someone who solved this problem?
Reply
#15
(2019-04-22, 02:21 PM)sapers Wrote:
(2019-03-24, 12:49 PM)jim321 Wrote: no you can setup sensors without the hat
i have an arduino with firmata for my sensors.
ads1115 also works for analog "I2C".
i think the MCP3008 "SPI" was fixed in the latest release..

I'm also hope for it. But now I have the next situation (by version 1.2.0):
SPI device is working but we can to see only "raw" data (not real). For example, Ubat has near 750V. Checkbox "convert" doesn't works because "value_0 is not defined". Value setting button is not working also.
Previouse version 1.0.0 works correctly (in this tab).
How to solve this problem?
Please help me.

Yes, I have the same problem. Is there someone who solved this problem? 
Reply
#16
Can you please check if you have the latest file /home/pi/.config/openplotter/classes/edit_MCP.py?
(It should be this one. https://raw.githubusercontent.com/sailoo...dit_MCP.py)
You can easily check if you have it by searching for the line.
wx.Dialog.__init__(self, None, title=title, size=(450, 270))
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)