Sun Tracker Solar Panel - Circuit Diagram | Dual Axis Without Arduino | Harish Projects

Image
 Circuit Components List  1. TDA2822 IC 2x 2. 10k ohm Resistor 4x 3. 5mm LDR 4x 4. N20 Gear Motor 2x 5. N20 Wheel 6. Solar Panel  7. Zero PCB 8. Sunboard  9. 3.7v Small Battery  10. Charging Module 11. Tip Top Button Ordre all components from Here  Click here 👉  https://harishprojects.com/   …….. Circuit Diagram……….. ……….Watch full Detailed video………

How to make smart Dustbin & get free Chocolate Best Arduino Project

 Watch video on YouTube

Click here - https://youtu.be/TET7ZB5weYo


Diagram 


Arduino Code


/*

  code started

  diy smart chocolate dustbin

  #define led = D4;

  #define trigger pin = D5;

  #define echo pin = D6;

  #define servo pin = D9;

  #define servo pin2 =D10;

  code created by technical ideas yt

  https://youtube.com/c/TechnicalidEas07

 

 */

#include <Servo.h>

 

Servo servo1;

 

Servo servo2;

 

int led=4;

 

int trig=5;

 

int echo=6;

 

int servo1_pin=9;

 

int servo2_pin=10;

 

int duration=0,dist=0;

 

void setup()

 

{

 

  Serial.begin(9600);

 

  

 

pinMode(led,OUTPUT);

 

pinMode(trig,OUTPUT);

 

pinMode(echo,INPUT);

 

  servo1.attach(servo1_pin);

 

  servo2.attach(servo2_pin);

 

  servo1.write(90);

 

  servo2.write(90);

 

}

 

 

void loop()

 

{

 

  digitalWrite(trig, HIGH);

 

delayMicroseconds(10);

 

digitalWrite(trig, LOW);

 

pinMode(echo, INPUT);

 

duration = pulseIn(echo, HIGH);

 

dist = (duration*0.034) / 2; //obtain distance

 

 

if(dist<20)

 

{

 

  Serial.println("Dustbin Open");

 

 

  digitalWrite(led,HIGH);

 

  servo1.write(90);

 

  servo2.write(0);

 

  delay(5000);

 

 

 

}

 

else

 

{

 

  Serial.println("Chocolate Closed");

 

  digitalWrite(led,LOW);

 

 

  servo1.write(0);

 

  servo2.write(90);

 

  delay(1000);

 

}

 

}

Comments

Unknown said…
Mujhe yeh dustbin chahiye kitna ka hai hum aapko mail bhi kiye hai
Kamalendu said…
Please send ardi no code

Popular posts from this blog

Smart Bridge - Automatic Hight increase when flooding | Best science Project

Inspire Award Project | Train accident Prevention project | Best science Project / Harish Projects

How to make Wifi Talking robot with arduino codes and Diagram best science project