Add the following snippet to your HTML:<iframe frameborder='0' height='385' scrolling='no' src='https://www.hackster.io/munuswamy_suriyaprakash/tiny85-with-ir-sensor-10ad8a/embed' width='350'></iframe>
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); } }
Please log in or sign up to comment.
Comments
Please log in or sign up to comment.