Reversing LED polarity

Hitec robotics including ROBONOVA humanoid, HSR-8498HB servos, MR C-3024 Controllers and RoboBasic
2 postsPage 1 of 1
2 postsPage 1 of 1

Reversing LED polarity

Post by TechnoBuff » Sat Oct 24, 2009 7:38 pm

Post by TechnoBuff
Sat Oct 24, 2009 7:38 pm

I want to be able to reverse the polarity to the blue LED so that I can replace it with red/green bi-color LED "eyes". My limited searches here produced nothing.

Does anyone know of Robobasic commands that will do this? Or, more likely, can anyone suggest a small circuit I could build and tell me which controller board port I should connect to that will accomplish this?

My goal is to time the eye color and blink to coincide with specific arm motions (conducting music), so I need to add the eye commands into various places in the routine code.

Thank you, TechnoBuff
I want to be able to reverse the polarity to the blue LED so that I can replace it with red/green bi-color LED "eyes". My limited searches here produced nothing.

Does anyone know of Robobasic commands that will do this? Or, more likely, can anyone suggest a small circuit I could build and tell me which controller board port I should connect to that will accomplish this?

My goal is to time the eye color and blink to coincide with specific arm motions (conducting music), so I need to add the eye commands into various places in the routine code.

Thank you, TechnoBuff
TechnoBuff offline
Robot Builder
Robot Builder
Posts: 16
Joined: Mon Jun 08, 2009 4:51 am

Post by i-Bot » Sun Oct 25, 2009 3:33 am

Post by i-Bot
Sun Oct 25, 2009 3:33 am

If your LED is of the type with two reverse connected diodes, then add a series resistor to limit the current and connect them between two outputs. The PWM outputs are suitable, and can be driven by OUT commands or PWM if you are more adventurous.

Setting both OUT to the same value (0 or 1) will not light the LED. different values will cause red or green depending on which OUT is 0 or 1. PWM would allow gradual intensity change.

Alternatively you could use the two outputs with a tricolor LED.
http://robosavvy.com/forum/viewtopic.php?t=2777
If your LED is of the type with two reverse connected diodes, then add a series resistor to limit the current and connect them between two outputs. The PWM outputs are suitable, and can be driven by OUT commands or PWM if you are more adventurous.

Setting both OUT to the same value (0 or 1) will not light the LED. different values will cause red or green depending on which OUT is 0 or 1. PWM would allow gradual intensity change.

Alternatively you could use the two outputs with a tricolor LED.
http://robosavvy.com/forum/viewtopic.php?t=2777
i-Bot offline
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 1142
Joined: Wed May 17, 2006 1:00 am


2 postsPage 1 of 1
2 postsPage 1 of 1
cron