I wanted to create a smart dustbin. The idea is to design a bin that opens automatically when someone comes near. To achieve this, I plan to incorporate sensors, possibly infrared or ultrasonic sensors, to detect the presence of individuals in proximity to the dustbin. The goal is to make waste disposal more convenient by enabling the dustbin to open seamlessly when needed. It's an innovative concept that combines technology and practicality, offering a hands-free and efficient solution for waste management
Arduino IDE to upload the code to the Arduino Uno
Autodesk Tinkercad Circuits to Simulate the electric circuits and Code Block
Electric Components:
Mini breadboard, jumpers to connect the component
IR Sensor &servo motor
Arduino Uno to read the input signals from the IR Senosr & accordingly, control the rotation of servo motor
other Components:
cardboard
plastic
glue
Inputs
IR sensor: sense an object
Action
The servo motor rotates 90 degree angle for 3 seconds and then get back to start point .
Brain
An Arduino UNO board will be used take inputs and generate actions
First I searched on Google the wiring diagram click here
Then started following the diagram on my own circuit
Schematic View
Component List
IR Senosr , Servo Motor ,breadboard & Arduino UNO were inserted
breadboard was connected to the 5V for Arduino (5V as some were needed for servo motor and IR sensor ) represented by red wire
the black wire went to GND in Arduino
the signal of servo motor wire orange was connected to pin 11
the signal of IR sensor yellow wire was connected to pin 7
by using code blocks,
read digital pin 7 to low (in real life the IR needs to be low not high but in simulation on tinkercad it needs to be high )
so the servo motor simulated to rotate 90 degree for 3 seconds
You can try it by using the following embedded simulation:)
Input components: IR Sensor
Output component: Servo Motor
Uploading text code on Arduino
.ino file was downloaded from Tinkercad & opened by Arduino IDE software
The Arduino board was connected to the laptop and the right port was chosen "Tools ==> Port ==> COM5 Arduino UNO"
Then, It was uploaded successfully
Building the physical circuit
The breadboard, Jumpers, IR Sensor , Servo Motor& ِArduino UNO were taken from the electronic kit
The circuit was built physically (exactly as it was designed on Tinkercad) using the hardware components and wires
breadboard was connected to the 5V for Arduino (5V as some were needed for servo motor and IR sensor ) represented by red wire
the black wire went to GND in Arduino
the signal of servo motor wire orange was connected to pin 11
the signal of IR sensor yellow wire was connected to pin 7
The Arduino board was connected to the laptop
The circuit was tested, and it worked successfully as shown in the video
At first I wanted to use Ultrasonic Sensor , and i already created the tinker cad circuit , but when it came to real life ,after a lot of troubleshooting using avo meter as suggested by menna (instructor ), i Found my sensor isn't working , so I opted to using IR sensor
Another thing when connecting to 5V on Arduino had two wires that need to be connected to this pin , after searching the internet i found i can use the small breadboard for such connection
i can use a sensor to sense the start of the game board or presence of avatars