Hello arduino members, I need some help with project.
Basically I am building an automated garden/ green house for indoor use, but I am using the uno (r3) and I do not want to use anything else (except for some external circuitry). It has a water tank with float switches, and a 16x2 LCD, along with multiple UV LED's and 2 fans. My main issue is I have a water tank with float switches attached to a circuit that changes the voltage at the output depending on how full the tank of water is. for example when all switches are on (tank is full) the output reads 3.2 volts, but as water level decreases, the voltage drops by 0.2 volts and I have a total of 5 switches. My question is how can I overcome this certain obstacle where I want to use the analog read input, but then have that read value meet a condition that will then send an output to my LCD based on 5 different situations (based on how full the tank is), when the tank is 20% full it will send data to the lcd which it will then display 20%, but do this also for all the other water levels (40%, 60%, 80%, 100%). Any ideas?
Sorry if I sound lost here, but I'm so used to using the 8051, thank you all for your help in advance
If the physical arrangement of the tank permits it, why not use an ultrasonic rangefinder. They are cheap like borscht, and do a great job. You would mount it above the water, facing down, and you could have as many "zones" as you want.
i don't want to use a rangefinder, i already have the float switches. any idea how i might setup the code to output different serial or ascii to my lcd upon these events
MOHH1:
i don't want to use a rangefinder, i already have the float switches. any idea how i might setup the code to output different serial or ascii to my lcd upon these events
Sure. do an analog read of the putput of the switches, then use a switch/case to select what you want to output to the LCD.
thank you very much sorry for the late reply. Im just new to arduino and getting used to this