Showing posts with label HC. Show all posts
Showing posts with label HC. Show all posts

Monday, August 22, 2016

Automatic Pet Watering System

The automatic watering system simple just read the water level in the water bowl with a HC-SR04 Ultrasonic Sound Sensor. It measure the distance to the surface of the water. If the level is less then 3cm for more than 30sec it triggers a 5V relay whit a NO-contact . The relay are controlling a 12V DC supply to a mini watering pump in the water tank.





Step 1: What You Need?

1 x Arduino Pro Mini 
1 x General Purpose Transistor NPN ( PN2222A)
1 x Relay (generic) 

1 x Ultrasonic Sensor 
1 x RGB LED (Common Cathode)
1 x LCD 
1 x 12V DC Waterpump 



Don't have components? Don't worry. Just click the component's name. 


Step 2: Build Your Circuit. 




Step 3: Upload The Code. 


You also can view here for more.




1 way channel relay Arduino Arduino Pro Mini Hard HC LCD project Relay RGB LED SR04 Ultrasonic Range Finder

Thursday, July 07, 2016

Arduino Based Obstacle Avoiding Robot


The concept of this project is same as the Detecting Ostacles and HC-SR04 Ultrasonic Sensor.


If the robot detects an object in front of it, with the help of a small servo motor, it scans the area left and right in order to find the best way to turn. It has a notification LED, an buzzer to play a tone when an object is detected and an button for changing the function of the robot (stopped / moving forward). 





Step 1: What You Need?

1 x Micro Servo Motor
1 x Button
1 x Red LED
1 x 220 Ohm Resistor
1 x 9V Battery Holder
1 x Buzzer
8 x Nuts 
8 x Screws 
1 x Smart Robot Car Stainless Steel Metal Robot Chassis Kit 
8 x Spacers (Male-Female)
1 x USB Arduino Cable
1 x 9V Battery 
1 x Computer with Arduino Software installed 
Super Glue
Screw Drive

Optional 
HC-SR04 Ultrasonic Sensor Holder
Hot Gun Glue

Don't have components? Don't worry. Just click the component's name. 

Step 2:Put Hardware Parts On Robot Car


Use the spacers, screws and nuts to attach the Arduino UNO board and the L298 module on robot car. The mini breadboard can be easily attached on the robot car with the adhesive tape that already have at the bottom of it. 

Step 3: The 'Eyes' Of Your Robot


Use super glue to attach the servo motor in the front side of your robot. Watch the first image to understand how to put the ultrasonic sensor in the servo motor by using a small gear piece. The second image shows the completed part that will be the 'eyes' of your robot. 













Step 4: Connect The Circuit


The connections are pretty easy, watch the image above with the breadboard circuit schematic. 

(Tips: Use the breadboard only for the LED, button and buzzer, this will keep it simple and you can use the remain area to add more stuff on the future.)


Step 6: Upload Code To Robot


Plug an battery on it and press the function button once, your robot will start moving forward after upload the code to robot. To stop it, just press the button for one more time. 


You can press the 'Edit' button and start making your modification in the sketch. 
For example, try to change the '10'cm value that is the distance that will make the robot to stop and 'look' for a clear path. 

[Note: If your robot doesn't move forward, try to change the pins of the motors (motorA1 and motorA2 or motorB1 and motorB2)].

Download: 




Sources:[http://www.instructables.com/id/Arduino-Obstacle-Avoiding-Robot-2/?ALLSTEPS]
Arduino Arduino UNO R3 Basic button buzzer easy HC LED project Robot Car sensor servo motor simple SR04 Ultrasonic Range Finder Ultrasonic Sensor Holder

Friday, July 01, 2016

Detecting Obstacles and Warning with Arduino and HC-SR04 Ultrasonic Sensor


This is tutorial to help you understand ultrasonic and buzzer and go deeper into learning Arduino, follow these steps and give me feedback please. It is an easy to make fun project that you can build in 30 minutes or so. Lets get started !!


Step 1: What You Need

1 x Arduino UNO R3
1 x HC-SR04 Ultrasonic Distance Sensor
1 x Buzzer
1 x Breadboard
1 x Arduino USB Cable
1 x Computer with Arduino 
Few Wires

Don't have components? Don't worry. Just click the component's name. 

Step 2: Connect Your Circuit 

Connect the Buzzer POSITIVE terminal to the Arduino pin 2 and the NEGATIVE terminal to the Gnd. Connect the VCC pin of ultrasonic to +5V pin of Arduino board and the Gnd to the ground. Connect trig pin to pin 10 and echo pin to pin 19. The schematic circuit diagram may help you.


Schematic Ciruit Diagram 


Step 3: Upload The Code To Your Arduino 


Download: 




Sources:[https://www.hackster.io/ammaratef45/detecting-obstacles-and-warning-arduino-and-ultrasonic-13e5ea?ref=platform&ref_id=424_trending___&offset=59]
Arduino Arduino UNO R3 Basic beginner buzzer HC sensor simple SR04 Ultrasonic Range Finder

 

  • Copyright © Arduino Tutorial ™ is a registered trademark.
    Designed by Templateism. Hosted on Blogger Templates.