Add the following snippet to your HTML:
Hai everyone this is suriya. here im try to build a simple project using ir sensor and attiny85 ic.
Read up about this project on
hello friends this is suriya, today im try to interface the ir sensor to the tiny85 ic.its successfully working also.here im use 7805 for voltage regulate purpose.
int ir = 3; int irled = 4; void setup() { pinMode(ir,INPUT); pinMode(irled,OUTPUT); } void loop() { irsen(); } int irsen() { int irstatus = digitalRead(ir); if(irstatus==1) { digitalWrite(irled,LOW); } else { digitalWrite(irled,HIGH); } }
Comments