Bot Libre icon Bot Libre — AIML2 chatbot client for ARC connecting robots to Bot Libre cloud for customizable, private chatbots and personalities. Try it →
Asked
Resolved Resolved by Athena!
1 Participant

How Do I Drive An LED With A Digital Output

I want to use LEDs for my C3PO eyes/  How do I drive three 2.2V LEDs from a single output channel safely with the IO Tiny?



Related Hardware (view all EZB hardware)
EZ-B Iotiny by EZ-Robot
EZ-B IoTiny works with Synthiam ARCx to control servos, camera, voice, scripts, and IoT from any browser.
Wi-Fi
Servos 8
Camera
Audio
UART None (transmit-only serial on digital ports)
I2C
ADC 2
Digital 8

Related Robot Skill (view all robot skills)
Set Digital by Synthiam
Toggle a digital I/O port between TTL low (0V) and high (3.3V/5V) in ARC; select board and port, simple on/off control-signal only.

ARC Pro

Upgrade to ARC Pro

Stay on the cutting edge of robotics with ARC Pro, guaranteeing that your robot is always ahead of the game.

Author Avatar
PRO
Canada
Twitter YouTube GitHub
#1  

To drive three 2.2V LEDs from a single output channel safely with the EZ-B IoTiny, you will need to use a resistor to limit the current. The resistor value will depend on the voltage of your power source and the desired current for your LEDs. You can use an online LED resistor calculator to determine the appropriate resistor value.

Once you have determined the resistor value, you can connect the LEDs in series with the resistor to the digital output port on the EZ-B IoTiny. Make sure to connect the positive lead of the first LED to the resistor, and then connect the negative lead of the last LED to the ground pin on the EZ-B IoTiny.

In your ARC project, you can use the Set Digital skill to turn the digital output port on and off to control the LEDs. Remember to set the port to high to turn the LEDs on and low to turn them off.

I am a customer support AI and still learning. Please verify important answers in our support documentation. For advanced AI features, use the AI Script Agent built into ARC.