Farm automation


#1

Hi eveyone I’m trying to connect the soil moisture sensor with Raspberry pi 3 type B
and get the read in my cayenne platform . Can anyone help me with the programming
method and the connecting method.
NOT:can i do that without plugging ADS


#2

maybe this https://www.instructables.com/id/Soil-Moisture-Sensor-Raspberry-Pi/


#3

this program gives me only two values 0,1 and ined to get varable values


#4

then you have to use ADC.


#5

thank you .if i get ADS can you show me how to program it with cayenne platform


#6

which ADS do you have? you can add it to your pi agent using plugins https://github.com/myDevicesIoT/cayenne-plugin-mcp3xxx


#7

than you


#8

i also want to know how to control relay module using cayenne platform


#9

https://mydevices.com/cayenne/docs/supported-hardware/#supported-hardware-actuators-relay


#10

I want to know if I can use ADC 0804 or 0808 instead of mcp3xxx
because i could not find one . and how to use it with cayenne.


#11

you can create your own plugin for this particular extension.

what difficulty are you having with cayenne?


#12

how can I create my own plugin for this particular extension


#13

#14

@aminahmed9753
Do you have any specific requirement compelling you to choose a raspberry pi? I would love to try esp32, nodemcu or even a simple Arduino if I were you. With these devices, you do not require a dedicated ADC for measuring analogue signals. However, if you want to stick with raspberry-pi, as @shramik_salgaonkar already made it clear, you definitely need an ADC. By reading your comments, I reckon your problems are more generic and related to wiring hardware. If you are interested in buying a decent ADC, have a look at ADS1015. It is 12 bits ADC and is more suitable to use than the one you suggested (ADC 0804) which is only 8-bits.
Your ADC0804 must have an SPI interface. You can drive an SPI bus using a python script to get values from your ADC. I don’t have an ADC0804 so I can test it for you.


#15

yup, i agree with @Sahar, you can just go with an arduino and connect the moisture sensor to it.