Components Quantity
1. Solar Panel – 5v 1p
2. Battery – 4v 1p
3. Led – 3v 2p
4. IR (Infra-Red) Sensor 2p
5. Mosfet – IRF44ZN 1p
6. Arduino Uno development board with ATmega328p
7. Enclosure
8. Other
Circuit Diagram
Code
int Trig=70;
int trig=850;
int Val=0;
int val=0;
void setup() {
pinMode(3,OUTPUT);
}
void loop() {
val=analogRead(A0);
Val=analogRead(A4);
if (Val<Trig){
analogWrite(3,50);
if(val>trig){
analogWrite(3,255);
delay(3000);
if (val<trig){
analogWrite(3,50);}
}
}
else {
digitalWrite(3,LOW);}
}
Component Price
1. Solar Panel – 5v 50 Tk
2. Battery – 4v 55 Tk
3. Led – 3v 10 Tk
4. IR (Infra-Red) Sensor 16 Tk
5. Mosfet – IRF44ZN 25 Tk
6. Arduino Uno development board 450 Tk
with ATmega328p
7. Enclosure 05 Tk
8. Other 30 Tk
-------------------------------------------------------------------------
= 641 Tk
Total Cost = 650 Tk (Approx.)
Media
No comments:
Post a Comment