3 days college workshop
The second workshop for college was held from 22th Sept 2022 to 24th Sept 2022 in which 14 engineering students of Jawaharlal Institute of Technology, Borawan participated.
These students were from different departments. In this batch there were 7 students from Mechanical branch, 2 students of Electrical branch, 5 students of Electronic branch.
We made three different groups of students.
It was a three day workshop. In this, on the first day, information about the machines were given to the students and all the software related to it were taught to the students.
PROJECTS
- Push cart robot
- Smart height detector
- Smart water tape system
1. Push cart robot
This project is made by mechanical students in which they made a robot which push the cart forwarding. The design of robot was created on Inkscape and we cut the design on 6mm plywood.
After cutting we assembled the parts and final result was good.
Working video
2. Smart Height Detector
Circuit Diagram
code-
#include<Wire.h>
#include<LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
#define echoPin 2
#define trigPin 3
// defines variables
long duration; // variable for the duration of sound wave travel
int distance; // variable for the distance measurement
int height;
void setup() {
lcd.init();
lcd.clear();
lcd.backlight();
pinMode(trigPin, OUTPUT); // Sets the trigPin as an OUTPUT
pinMode(echoPin, INPUT); // Sets the echoPin as an INPUT
Serial.begin(9600); // // Serial Communication is starting with 9600 of baudrate speed
Serial.println(“Ultrasonic Sensor HC-SR04 Test”); // print some text in Serial Monitor
Serial.println(“with Arduino UNO R3”);
}
void loop() {
lcd.clear();
// Clears the trigPin condition
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
// Sets the trigPin HIGH (ACTIVE) for 10 microseconds
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
// Reads the echoPin, returns the sound wave travel time in microseconds
duration = pulseIn(echoPin, HIGH);
// Calculating the distance
distance = duration * 0.034 / 2; // Speed of sound wave divided by 2 (go and back)
// Displays the distance on the Serial Monitor
Serial.print(“Distance: “);
Serial.print(distance);
Serial.println(” cm”);
lcd.setCursor(2,0);
height=206.86-distance; //we setup the height detector at 7 feet height
lcd.print(“Height”);
lcd.setCursor(2,1);
lcd.print(height);
lcd.setCursor(7,1);
lcd.print(“cm”);
delay(1000);
}
3.Smart water tape system
circuit diagram
Code
// defines variables
#define echoPin 2 // attach pin D2 Arduino to pin Echo of HC-SR04
#define trigPin 3 //attach pin D3 Arduino to pin Trig of HC-SR04
#define relay 8
long duration; // variable for the duration of sound wave travel
int distance; // variable for the distance measurement
void setup() {
//serial.begin(9600);
pinMode(trigPin, OUTPUT);
pinMode(relay, OUTPUT);// Sets the trigPin as an OUTPUT
pinMode(echoPin, INPUT); // Sets the echoPin as an INPUT
Serial.begin(9600); // // Serial Communication is starting with 9600 of baudrate speed
Serial.println(“Ultrasonic Sensor HC-SR04 Test”); // print some text in Serial Monitor
Serial.println(“with Arduino UNO R3”);
}
void loop() {
// Clears the trigPin condition
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
// Sets the trigPin HIGH (ACTIVE) for 10 microseconds
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
// Reads the echoPin, returns the sound wave travel time in microseconds
duration = pulseIn(echoPin, HIGH);
// Calculating the distance
distance = duration * 0.034 / 2; // Speed of sound wave divided by 2 (go and back)
// Displays the distance on the Serial Monitor
Serial.print(“Distance: “);
Serial.print(distance);
Serial.println(” cm”);
if(distance<20)
{
pinMode(relay,HIGH);
}
else
{
pinMode(relay,LOW);
}
}
Photo Gallery