Posts: 51
Threads: 4
Joined: Jul 2017
Reputation:
0
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
Posts: 802
Threads: 46
Joined: Jun 2017
Reputation:
25
i may be wrong but i think the new hat took over spi, i desoldered my MCP3008..couldn't get it to work.
Posts: 802
Threads: 46
Joined: Jun 2017
Reputation:
25
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..
Posts: 341
Threads: 0
Joined: Apr 2016
Reputation:
23
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)