Configuring SPI MCP3008 - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1) +--- Forum: How do I...? (https://forum.openmarine.net/forumdisplay.php?fid=3) +--- Thread: Configuring SPI MCP3008 (/showthread.php?tid=1100) Pages:
1
2
|
Configuring SPI MCP3008 - Smartell - 2018-04-04 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 RE: Configuring SPI MCP3008 - jim321 - 2018-04-04 i may be wrong but i think the new hat took over spi, i desoldered my MCP3008..couldn't get it to work. RE: Configuring SPI MCP3008 - Smartell - 2018-04-04 (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 RE: Configuring SPI MCP3008 - jim321 - 2018-04-05 http://forum.openmarine.net/showthread.php?tid=868 spi worked then stopped after one of the updates http://forum.openmarine.net/showthread.php?tid=930&highlight=spi might be of interest http://forum.openmarine.net/showthread.php?tid=1097 RE: Configuring SPI MCP3008 - Smartell - 2018-04-06 (2018-04-05, 11:57 AM)jim321 Wrote: http://forum.openmarine.net/showthread.php?tid=868 Ok, thanks for the good and most relevant information Jim. The hats looks very nice and of course that is the way i will go. Anyway, meanwhile maybe we should add a line in the doc's to avoid people spending time and money to get it to work as it is written today. BR and happy sailing! RE: Configuring SPI MCP3008 - Bojayne@yahoo.com - 2019-03-24 (2018-04-06, 11:02 AM)Smartell Wrote:(2018-04-05, 11:57 AM)jim321 Wrote: http://forum.openmarine.net/showthread.php?tid=868 Does this mean we are locked in to Using the Moitessier hat vice playing with various sensors to get openplotter working on the PI RE: Configuring SPI MCP3008 - jim321 - 2019-03-24 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.. Configuring SPI MCP3008 - AliceJ21 - 2019-03-24 (2019-03-24, 12:49 PM)jim321 Wrote: no you can setup sensors without the hat No, there’s no selecting the SPI channel to modify the values. RE: Configuring SPI MCP3008 - jim321 - 2019-03-24 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 RE: Configuring SPI MCP3008 - e-sailing - 2019-03-24 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) |