Asked
Resolved Resolved by Athena!

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
Control IoTiny with Synthiam ARC: 100MHz Cortex‑M4 Wi‑Fi IoT/robot controller-camera, servos, ADC, I2C and digital I/O for easy internet automation
Wi-Fi / USB
Servos 8
Camera
Audio
UART
I2C
ADC
Digital

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

Don't limit your robot's potential – subscribe to ARC Pro and transform it into a dynamic, intelligent machine.

Author Avatar
PRO
Canada
#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 GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.