Posts: 1
Joined: Sun Jun 16, 2019 7:35 pm

Soil sensor (2 nails) ads1115

Sun Jun 16, 2019 7:39 pm

Just a bit of a sanity check ... because I somehow cried a couple of Pies messing about 🤦🏻‍♂️

Does this circuit look ok?

91E4DD5B-96FE-4ED0-94CA-4B975865E89B.jpeg (229.54 KiB) Viewed 640 times

User avatar
Forum Moderator
Forum Moderator
Posts: 12991
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Soil sensor (2 nails) ads1115

Sun Jun 16, 2019 8:58 pm

use the logic power supply of an RPI, which is 3V3, NOT 5V!

otherwise you risk pulling the I2C lines to 5V (the board has pullups to the logic power of the board) which might damage the RPI.
remember the first rule of the RPI, never allow any voltage more than 4V to reach a GPIO pin!!!!

The RPI is NOT 5V tolerant!

User avatar
Posts: 6284
Joined: Thu Sep 29, 2011 4:34 pm
Location: Berkshire UK Tralfamadore
Contact: Website

Re: Soil sensor (2 nails) ads1115

Mon Jun 17, 2019 9:29 am

Why are you using a GPIO to feed the nail sensor? Wouldn't a constant 3v3 be better?

You could perhaps use two GPIOs, one to each nail via its own resistor, and one output low with the other output high, and use the A-D in differential mode.
Then regularly swapping the low and high around could reduce electolysis problems.

And, as mahjongg says, DON'T use 5v Anywhere!

Return to “Other projects”