@nomad18.08 the white digital pins (signal) are 3.3v just connect black to any ground and positive to a white digital pin and add a PWM control that's how I control small LEDs
@nomad... just make sure if you are using the signal pin to supply power to those leds, that they are not pulling more than 20mA (edit correction that is 10mA not 20mA) or you could damage your digital pins... The digital signal pins cannot supply that much curremt....
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....
#LED is on Pin D0
set(D0,ON) # turn on the leds
sleep(2000)
set(D0,OFF) # turn off the leds
or
#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.
Nope...ez robot only makes a 5V version... What do you need 3V for?
If you need a 3V version buy an adjustable one from... Josh... Adjustable voltage regulator
RR
from joch are 4.7 volt.i need 3 volts.i got led blinker with swiths. i thought to build in the dome.
@nomad18.08 the white digital pins (signal) are 3.3v just connect black to any ground and positive to a white digital pin and add a PWM control that's how I control small LEDs
BBORASTERO
no need for regulator then.
thanks
bborastero
that works great.
Wooo! It's twinkly at nomad's
dj
it will look good on six and galapagos bot.
glad to be of service
@nomad... just make sure if you are using the signal pin to supply power to those leds, that they are not pulling more than 20mA (edit correction that is 10mA not 20mA) or you could damage your digital pins... The digital signal pins cannot supply that much curremt....
rr
i read here the manuel off the leds.1Ma 3 volts. thanks for the warning.
@nomad... awesome, you're good to go then...
rr
what would be the Ma be from 8 red soft leds in serie?
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...
wow.so parallel is all separt? i have to use 8 ports to?
no... parallel is all on one pin.... see picture for both series and parallel circuits... First picture is series...
ah all possitif one side and negatiff to. so avery positif has two red wires. i wonder what you can do in a script whit these leds.
thanks
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....
or
i got 8 red ones very low.they come from 3 dollar for 100 pieces on ebay
am gonna test your script to. i found this.
this is awesome
led blinking
i try the script that richard r wrote for me and it looks great. so i made a video how it looks.
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
thanks for telling.i can use the flikkering leds,they are just 1Ma.
@nomad.
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.
@Steve G if by 10Mh you mean 10mA then yes!
STEVE G/JEREMIE
i though six and galapagos can use some sparkeling,hehe
thanks
@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....
i made some leds to test.these have all separt ports to be able random lid up. is this possible to when i use all leds on one port?
@nomad.
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.
steve g
ok steve thanks
here the 8 eyes off six.i made them a little slower then as chown in the video. now it needs detection mode rapid flaching.