Components and supplies
General Purpose Transistor NPN
Ultrasonic Sensor - HC-SR04 (Generic)
Through Hole Resistor, 1 kohm
Breadboard (generic)
Jumper wires (generic)
Buzzer
Arduino UNO
Solar Cockroach Vibrating Disc Motor
Apps and platforms
Arduino IDE
Project description
Code
The code
c_cpp
just copy and paste it
The code
c_cpp
just copy and paste it
Downloadable files
This is the circuit diagram
Buzzer - A0 Left side: ultrasonic sensor trigger-11 echo-10 motor: transistor collector- motor ground transistor base - 1 k ohm, which connects to Dp12 transistor emitter - ground motor positive - VCC Middle : trigger pin-9 echo pin - 6 transistor connections are the same as the left sides, only base connects to 8 Right Side: trigger pin - 5 echo pin - 3 transistor connections are the same as the left sides, only base connects to 2
This is the circuit diagram
Comments
Only logged in users can leave comments