The reason is not that the voltage is 5v, as any voltage beyond about 3v will kill most diodes (check out diode I-V characteristics). The reason is because most microprocessors have a maximum output current in the mA range. Because of this low current, the diode can't draw enough power to burn out.
@azayles Indeed :-) Though I2C is difficult to implement on simpler microcontrollers that don't support it directly, like the BS2. The 7219 is "daisy chainable" also.
@ellpancha You could make your own routine for the delay wich can be checking a flag everytime and if you want the program to interrupt the delay you change that flag. I don't know If I said right :P
@ellpancha Create a for/next loop that loops through many small delays instead of one big one, then simply use if/then conditioning to break out of the loop once a certain condition is met.
Today was the first time I laid my eyes on the arduino mega, it's a really impressive CPU, it's really fast, I hope to see someone using this as a mainboard for a robot, just to see how well it works under pressure under a lot of sensors and gyres, motors, etc. I'm impressed tho.
I was going to use the Mega in my large robot named Zener and had way to many problems with trying to get the mega to run the servos correctly i had to switch back to the standard arduino. Not saying theres anything wrong with the mega i love it.
Isn't there a different between the I\O ports, digital and analog? I don't know, I'm way too knew to this kind of board, or any type in this category. I'm corrently designing a robot using an animatronic body, I'm going to use the SSC-32, and maybe get an arduino board, was hoping to get the mega due to the amount of servers I'm going to be using. I corrently need to know if a single microcontroller can control the SSC-32, which will be managing the servors. Anyway, have a nice day !
You mean a double core arduino ? It's a funny thought, but I think the stress on the first CPU can be a problem, but I'm sure with some programming you can bypass the issue. Dual-core arduino, from Intel, oh, matrix screen of death !!!
graymalkin1234 probably meant that you can make two Arduino's talk to each other. Each one controls 52 of the 104 LED's and they communicate to keep in sync.
But what do I know, my very first microcontroller, the Arduino Deumilanove, won't even arrive until sometime in early August. Until then I've been reading books and the web about them, as well as taking apart old electronics. Car CD players have at least 3 motors, some switches, various buttons, etc.
All you need to do is separate your code into two processes, a beginning and an end. If you set up a 2 way digital link between them (ex. Run pin 7 on MegaA to pin 8 on MegaB, then 7 on MegaB to 8 on MegaA), you can write your code to begin half of the code, and when finished, send a pulse to the other microprocessor.
You can set it up as a loop on both ends, and there by have a continuous function without any major stress.
You could also use a smaller Arduino to control two Megas via a clock program. Again, both Megas have the same code, but the clock will tell each Mega when they need to initiate, stop, or loop their actions.
The controller Arduino could also be used as a data bus, so that the correct Mega gets the correct information at the right time.
Are you just using each indivitual pin, or are you using a shift resister?
AKSoapy29 1 year ago
why didn't you use the ground rail O_O
Bokononistly 1 year ago
@Bokononistly XD thats what I was thinking
Flea5000000000 1 year ago
Ultra simple but ultra fun.
LunaVorax 1 year ago
Where are the resistors?
robodeath 1 year ago
@robodeath you don't need them as the output of the I/O is 5v
Flea5000000000 1 year ago
@Flea5000000000
The reason is not that the voltage is 5v, as any voltage beyond about 3v will kill most diodes (check out diode I-V characteristics). The reason is because most microprocessors have a maximum output current in the mA range. Because of this low current, the diode can't draw enough power to burn out.
Alias1107 1 year ago
You might wanna look into using the Maxim 7219 64 LED driver chip. You can control an 8x8 grid of LEDs with three control lines. Dead easy to use :D
azayles 1 year ago
@azayles not to mention the max 6955, about 40 leds each, and with i2c, so you can use as many as you want on a bus
amando96 1 year ago
@azayles Indeed :-) Though I2C is difficult to implement on simpler microcontrollers that don't support it directly, like the BS2. The 7219 is "daisy chainable" also.
azayles 1 year ago
wow, this is very visually stunning
redalf 2 years ago
is there a way to interump a DELAY with a statement?
ellpancha 2 years ago
@ellpancha You could make your own routine for the delay wich can be checking a flag everytime and if you want the program to interrupt the delay you change that flag. I don't know If I said right :P
Twistx77 2 years ago
@ellpancha Create a for/next loop that loops through many small delays instead of one big one, then simply use if/then conditioning to break out of the loop once a certain condition is met.
azayles 1 year ago
Today was the first time I laid my eyes on the arduino mega, it's a really impressive CPU, it's really fast, I hope to see someone using this as a mainboard for a robot, just to see how well it works under pressure under a lot of sensors and gyres, motors, etc. I'm impressed tho.
Ryuuken24 2 years ago
I was going to use the Mega in my large robot named Zener and had way to many problems with trying to get the mega to run the servos correctly i had to switch back to the standard arduino. Not saying theres anything wrong with the mega i love it.
tylerlavite 2 years ago
Isn't there a different between the I\O ports, digital and analog? I don't know, I'm way too knew to this kind of board, or any type in this category. I'm corrently designing a robot using an animatronic body, I'm going to use the SSC-32, and maybe get an arduino board, was hoping to get the mega due to the amount of servers I'm going to be using. I corrently need to know if a single microcontroller can control the SSC-32, which will be managing the servors. Anyway, have a nice day !
Ryuuken24 2 years ago
Use the MegaServo libary. The orginal servo libary wont work with the Mega.
Stigern 2 years ago
Cool! is 52 the max a mega can use without any extra shift registers?
tonythemediaguy 2 years ago
Yes, since there are 52 I/O ports.
Stigern 2 years ago
@Stigern nope the anolog ports can be used as digital I/O
Flea5000000000 1 year ago
Yeah, but why not connect two megas together with some digital information transfer? 104 then!!
graymalkin1234 2 years ago
You mean a double core arduino ? It's a funny thought, but I think the stress on the first CPU can be a problem, but I'm sure with some programming you can bypass the issue. Dual-core arduino, from Intel, oh, matrix screen of death !!!
Ryuuken24 2 years ago
graymalkin1234 probably meant that you can make two Arduino's talk to each other. Each one controls 52 of the 104 LED's and they communicate to keep in sync.
But what do I know, my very first microcontroller, the Arduino Deumilanove, won't even arrive until sometime in early August. Until then I've been reading books and the web about them, as well as taking apart old electronics. Car CD players have at least 3 motors, some switches, various buttons, etc.
ScaryFast 2 years ago
All you need to do is separate your code into two processes, a beginning and an end. If you set up a 2 way digital link between them (ex. Run pin 7 on MegaA to pin 8 on MegaB, then 7 on MegaB to 8 on MegaA), you can write your code to begin half of the code, and when finished, send a pulse to the other microprocessor.
You can set it up as a loop on both ends, and there by have a continuous function without any major stress.
charlietheanim8tor 2 years ago
You could also use a smaller Arduino to control two Megas via a clock program. Again, both Megas have the same code, but the clock will tell each Mega when they need to initiate, stop, or loop their actions.
The controller Arduino could also be used as a data bus, so that the correct Mega gets the correct information at the right time.
charlietheanim8tor 2 years ago
@tonythemediaguy 52+16... You can use the analog pins as digital outs.
To use the analogs as digitals, you go 54, 55, ect. And then you just do the pinMode the same.
WeAreTwoDoorsDown 1 year ago