|
Post by Joodie on Dec 26, 2018 22:12:48 GMT -8
Hi there, I'm working on my first Raspberry Pi project now trying to build the Smart Garden System. I have everything built and I'm trying to activate the different components now. I thought I'd start with the Moisture Sensor so the water pump will know when to start and stop. However when I run TestGrove4Ch16BitADC.py I get the error:
Traceback (most recent call last): File "TestGrove4Ch16BitADC.py", line 13, in <module> from Adafruit_ADS1x15 import ADS1x15 ImportError: No modudle named Adafruit_ADS1x15
I'm very much in over my head here because the instructions seemed to end abruptly in the manual after it told me to read the Readme.md files for installation instructions. It was all going well up until that point.
For instance I tried to install the 8 Pixel Strip but the instructions after installing Scons got a bit fuzzy. (I don't know where the scons source directory is or how to test it.) But alas, one thing at a time. How do I install the moisture sensor? And what does that eror mean? I must have done something wrong installing the Adafruit (although that seemed to go fine with zero errors). Thanks for any help.
|
|
|
Post by SDL on Dec 27, 2018 16:10:18 GMT -8
Hmm. Sounds like that test program was not updated.
Try running this program in the SmartGardenSystem directory:
sudo python testMoistureSensors.py John
|
|
|
Post by Joodie on Dec 29, 2018 11:12:29 GMT -8
Thanks John. I tried this and I seem to get a never ending error that says:
Plant #1: 3.29/C1 ADS1115_Ext1 Not Present ADS1115_Ext2 Not Present
It also says Remote I/O error and error accessing 0x49: Check your I2C address. (I will double check everything is in the right spot but I was pretty sure it was already.)
Is the moisture sensor the device that uses the 3 wire cable? It's longer than the others and doesn't have a white wire, just black, red, and yellow. Thanks again, I know I chose an advanced project to be my first one but hey I like a challenge. :-)
|
|
|
Post by Joodie on Dec 29, 2018 11:23:25 GMT -8
Moisture Sensor is plugged into spot A1 on the 4 Channel ADC and the connection seems good. I did notice when I run testAllSensors.py the Extender Devices category says that ADS115_Ext1 and Ext2 (and the two other extender devices) read as Not Present. Is the Moisture Sensor considered an extender device?
|
|
|
Post by SDL on Dec 29, 2018 21:12:20 GMT -8
Sounds like you have a problem with the first ADS1115 board. Take a picture of your wired 3D Printed board and post it. I'll look for a wiring error!
BP
|
|
|
Post by joodie on Jan 31, 2019 21:30:15 GMT -8
Not the best quality but hopefully you can see whatever you need. I didn't have it plugged in when I took this photo just FYI, that's why the screen is off. Hope this helps.
|
|
|
Post by SDL on Feb 3, 2019 13:32:26 GMT -8
You don't have an extender board. I think the test program is running correctly.
Plant #1: 3.29/C1
Says Sensor #1 is at 3.29%
John
|
|
|
Post by joodie on Feb 3, 2019 21:40:39 GMT -8
Oh, what's an extender board? I just got this as a kit for Christmas so I figured everything needed was included.
|
|
|
Post by SDL on Feb 6, 2019 17:19:04 GMT -8
You have everything you need. If you want to add more plants, you get the extender kit at shop.switchdoc.com
BP
|
|