Hello.
I need to control a ac 127v Submersible Water Pump with a hc-sr04 ultrasonic
I have a relay 5v, arduino uno.
Any ideas?
I google it for 10 days and no result satisfatory.
Hello.
I need to control a ac 127v Submersible Water Pump with a hc-sr04 ultrasonic
I have a relay 5v, arduino uno.
Any ideas?
I google it for 10 days and no result satisfatory.
Read the sensor, when it is the value you want it to be switch on the relay.
Relays are just like LEDs only you will need a transistor to drive them, see the first diagram in this link:_
http://www.thebox.myzen.co.uk/Workshop/Motors_1.html
Without knowing more about the sensor ( link please ) and the conditions you want to have the pump turned on and off I can't be more specific.
I need to build a cat water fountain with motion sensor actived.
like this (with motion sensor)
http://www.ebay.co.uk/itm/Cat-Mate-Pet-Water-Fountain-Drinking-Bowl-Cats-Dogs-/280708845636?pt=UK_Pet_Supplies_Cats&hash=item415b8d1044
I think about this pump
http://www.ebay.co.uk/itm/1200L-H-Powerhead-Aquarium-Submersible-Water-Pump-Fish-Tank-JP-024-/400311569733?pt=UK_Pet_Supplies_Fish&hash=item5d346dcd45
I have this sensor
http://www.ebay.co.uk/itm/Ultrasonic-Range-finder-distance-sensor-HC-SR04-Arduino-/130811300412?pt=UK_BOI_Electrical_Components_Supplies_ET&hash=item1e74f60a3c
This relay 5v
http://www.sucitech.com.br/loja/index.asp?secao=75&categoria=34&subcategoria=0&id=1114
I dont know about the wires position on protoboard and the code in arduino.
The idea is:
If my cat is on range of sensor (like 80cm) the activate the water pump in a fountain.
If my cat is on range of sensor (like 80cm) the activate the water pump in a fountain.
Shouldn't be too hard.
I dont know about the wires position on protoboard and the code in arduino.
I would suggest working through some of the examples in the IDE: Blink without delay() , then read up on driving relays using transistors: Playground>Interfacing with Hardware> Output> electrical/high power, then check out the New Ping library for ultrasonic sensors found in the Sensors section of the forum, and finally combine sketches. Post what you have so far and you will probably get more help.