Program robots using technologies created by industry experts. ARC is our free-to-use robot programming software that makes features like vision recognition, navigation, and artificial intelligence easy.
You would want them in parallel not series... Well if they each pull 1mA then 8 in parallel would be 8mA.... If you put them in series you'll need 24V to power 8 Leds at 3V each...
With a parallel circuit just make sure the combined power draw of your Leds is less than 20mA.... Assuming they do only draw 1mA, I still wouldn't use more than 10 (in parallel) on a single digital pin....
Code:
#LED is on Pin D0 set(D0,ON) # turn on the leds sleep(2000) set(D0,OFF) # turn off the leds
or
Code:
#LED is on Pin D0 # turn on slow $dim=1 repeatuntil($dim=101) PWM(D0,$dim) print($dim) sleep(50) $dim++ endrepeatuntil # turn off slow $dim=100 repeatuntil($dim=0) PWM(D0,$dim) print($dim) sleep(50) $dim-- endrepeatuntil
Just to chime in about the 20mA limit on I/O pins. This is the case with most microcontroller boards out there but the ez-bv4 actually has current limiting resistors on the I/O pins limiting the current to ~10mA to allow you to hook up LEDs directly to the I/O pins if you'd like.
@Jeremie I didn't see the digital pin's current limitations in the ezb4 spec sheet so I assumed it was 20mA (as you mentioned) like other micros.... Thanks for clarification....
Not directly, no. They would flash at the same time. Although that's not to say you couldn't make a circuit (if you know how to) and run them off one port so they flash independently. I wouldn't know how to make such a circuit so I can't help much, but maybe somebody else does. Or see if you can find an LED flashing circuit online from somewhere.
what would be the Ma be from 8 red soft leds in serie?
i have to use 8 ports to?
so avery positif has two red wires.
i wonder what you can do in a script whit these leds.
thanks
Code:
or
Code:
i found this.
this is awesome
led blinking
so i made a video how it looks.
thanks for telling.i can use the flikkering leds,they are just 1Ma.
You done well with the LED's. Looking good.
@Jeremie.
So the digital signal pins are limited to 10Ma then? I was lead to believe it was 20Ma as well.
i though six and galapagos can use some sparkeling,hehe
thanks
is this possible to when i use all leds on one port?
Not directly, no. They would flash at the same time. Although that's not to say you couldn't make a circuit (if you know how to) and run them off one port so they flash independently. I wouldn't know how to make such a circuit so I can't help much, but maybe somebody else does. Or see if you can find an LED flashing circuit online from somewhere.
ok steve thanks
now it needs detection mode rapid flaching.