I have finished an analog sensor hat for my growing openplotter setup and connected it. Now i wonder how to configure the analog inputs. Reading the documentation i see that it is possible to scale and delinearize the input values but how do i activate the inputs at the SPI tab and make them visible in Signal K?
Appreciate any help you can give!
/Mike
i may be wrong but i think the new hat took over spi, i desoldered my MCP3008..couldn't get it to work.
(2018-04-04, 08:24 PM)jim321 Wrote: [ -> ]i may be wrong but i think the new hat took over spi, i desoldered my MCP3008..couldn't get it to work.
Jim, thanks for responding!
New hat?
SPI tab has been around for a while...
/M
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..
(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..
No, there’s no selecting the SPI channel to modify the values.
ok i haven't used the spi in this version.
i'll dig out my MCP3008 and breadboard and give it a look.
give me about a week and i'll see if i can get it working...
maybe one of the dev's can add something to this thread..
the ads1115 works really well and is easier to use imo..
i did kinda have it working once.
http://forum.openmarine.net/attachment.php?aid=160
In openplotter MCP3008 uses CS1 not CS0.
You can change it in the code. File "read_sensors_d.py" exchange "spi.open(0,1)" to "spi.open(0,0)". (line 437)