Hello guy's, today we are going to see how to make an arduino sonar mini project. Now lets star...
Requirement:-
1. Arduino uno board
2. Ultrasound sensor
3. Bread board
4. Servo motor
5. Connecting wires
Softwares:-
1. Arduino IDE
2. JAVA Processing software
Now when you collect all requirements you are ready to go...
Now follow the steps given below:-
1. Do the connections as shown in the figure. The servo signal pin to the pin number 9 of arduino. The trigger pin of ultrasound sensor to the pin number 2 and echo to the pin number 3 of arduino.
2. Now connect the ultrasound sensor on the motors shaft as shown in figure.
3. Connect arduino board to PC or laptop.
4.Now open the arduino software and copy the code given below into it.
5. Verify the port number where you have connected arduino board on your PC or laptop. Verify the code. Make sure there are no errors present.
6. Burn the code into arduino board.
7.Now you can see that motor is rotating.
8. Now open the Processing software.
9. Copy the processing code given below into it.
10. Make sure you have adjusted the screen resolution accordingly.
Goto:- Control panel>>Display>>Screen resolution
Here you will see your screen resolution.
11. Now just run the code.
12. Here we go. You will see that we have generated radar pattern on the screen.
Hope you will enjoy the project.
Don't forget to like share and comment.
Thank you...
(The code has been taken from other sources!!!)
No comments:
Post a Comment