Added: 2 years ago
From: Stigern
Views: 10,283
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (25)

Sign In or Sign Up now to post a comment!
  • Are you just using each indivitual pin, or are you using a shift resister?

  • why didn't you use the ground rail O_O

  • @Bokononistly XD thats what I was thinking

  • Ultra simple but ultra fun.

  • Where are the resistors?

  • @robodeath you don't need them as the output of the I/O is 5v

  • @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.

  • 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 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

  • @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.

  • wow, this is very visually stunning

  • is there a way to interump a DELAY with a statement?

  • @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 !

  • Use the MegaServo libary. The orginal servo libary wont work with the Mega.

  • Cool! is 52 the max a mega can use without any extra shift registers?

  • Yes, since there are 52 I/O ports.

  • @Stigern nope the anolog ports can be used as digital I/O

  • Yeah, but why not connect two megas together with some digital information transfer? 104 then!!

  • 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.

  • @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.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more