Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

code for bidirectional control of led

Status
Not open for further replies.

Varunme

Member
In a series of sensors, accompanying LEDs of which if the corresponding sensor got intercepted the LED goes 100%, other wise its 50%, it goes on it the adjescent sensor is intercepted, how can we implement this idea ?, i used various codes with bit shifting, gates etc , none is working, anyone have a better idea ?
 
Not clear what you are trying to do. And what has 100%/50% got to do with a bidirectional LED?
 
100% and 50% means 100% intensity and 50% intensity
just a series of LEDs
Normally the LEDs are 50% intensity
if a corresponding sensor is intercepted then the LED goes 100% and holds that until an adjescent sensor is intercepted.
 
Normally the LEDs are 50% intensity
if a corresponding sensor is intercepted then the LED goes 100%
I think you'll find the brightness change won't be very noticeable, because the eye's response is roughly logarithmic. Reduce the 50% figure. Why not make it 0%?
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top