Technical Activities
Technical Activities
Zeeshan Raza
M.Muzammal
Components used:
Arduino
UltraSonic sensor
Servo Motor
Breadboard
Working:
In this we were implemented a automatic tollgate system. Detecting the car
using ultrasonic sensor the arduino gives instruction to servo motor to rise the toll gate.
Circuit Connections:
Ultrasonic sensor ---- Arduino
Servo motor
Code:
#include <Servo.h>
Servo myservo;
int pos = 0;
int cm = 0;
void setup() {
digitalWrite(12,LOW);
myservo.attach(9);
Serial.begin(9600);
}
void loop() {
cm = 0.01723 * readUltrasonicDistance(6, 7);
if(cm<30){
Serial.print(cm);
Serial.println("cm");
Circuit diagram :
Final Look:
Cost Analysis:
Ardunino Uno 1800/Availiable in FYP Lab
Servo Motor 350 to 400
Ultrasonic Sensor 300
Breadboard 150/Availiable in FYP Lab
Total Cost approximately by online 2700 pkr.
Components:
Arduino uno
Jumper Cable
Breadboard
Ultrasonic sensor
Small Water Pump Motor
Relay Chanel one
Working:
In this project we make a automatic water tap that will work when we take
something in front of ultrasonic sensor by using arduino.
Circuit Diagram:
Code:
// Define pins for ultrasonic sensor
const int trigPin = 9;
const int echoPin = 10;
void setup() {
// Initialize serial communication
Serial.begin(9600);
void loop() {
// Send a 10us pulse to trigger the sensor
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
Final Look:
Cost Analysis:
Arduino 1900/Availiable in FYP lab
Small water Pump 400
Ultrasonic sensor 300/Availiable in FYP lab
One chanel Relay 180
Bread Board 150/Availiable in FYP lab
Jumper cable 100/Availiable in FYP lab
12 Volt Battery 150
Components:
Circuit Diagram:
Working:
In one of the previous tutorial (Adjustable Flashing/Blinking LED Circuit using 555
Timer IC) we have learnt how changing the value of resistor in series with the capacitor
changes the flashing rate (Frequency). And the relation is of inverse proportionality i.e, if
the value of resistance in series to the capacitor is large, the frequency will be less, and
vice versa. You may refer to that tutorial for better understanding of how the values of
resistors and capacitor influence the output frequency.
In the circuit we made, the value of R1 is 1K and C1 is 100n. After replacing these values
in the above formula, we have:
We can also rearrange the formula to calculate the value of resistor we need to use for
any frequency required:
If you have any queries/suggestions, feel free to post them in the comments section of
this video: DIY Electric Piano Circuit using 555 timer IC
Final LOOK:
Cost Analysis: