Posts

Showing posts with the label happy new year

NEW YEAR GIFT BOX USING ARDUINO.

Image
NEW YEAR GIFT BOX USING ARDUINO.   Hi friends, how are you,      Today we are going to make a NEW YEAR GIFT BOX using Arduino, Requirement 1.       Arduino Uno or any version. 2.       Ultrasonic sensor HC-SR04. 3.       Servo motor SG90. 4.       Jumper wire. 5.       Gift box. Circuit diagram watch my video Arduino code #include <Servo.h>    //servo library Servo servo;      int trigPin = 5;     int echoPin = 6;    int servoPin = 7; int led = 10; long duration, dist, average;    long aver[3];    //array for average void setup() {            Serial.begin(9600);     servo.attach(servoPin);       pinMode(tr...