Go Down

Topic: On an Arduino MEGA (1260) Can Pins 0&1 be Used as Regular Digital Outs w/Write?? (Read 1 time) previous topic - next topic

TECH GEEK

On an Arduino MEGA (1260) Can Pins 0&1 be Used as Regular Digital Outs w/ the command "digitalWrite()"??
As always... Thanks for posting!!!

forex2

Arduino Uno                / Arduino 022
Arduino Mega 2560
Ethernet/uSDcard shield Wiznet
--------------------------------------------
Airi

floresta

Quote
On an Arduino MEGA (1260) Can Pins 0&1 be Used as Regular Digital Outs w/ the command "digitalWrite()"??

Why do you think they cannot?

Don

retrolefty


Graynomad

Assuming you meant 1280, yes they can with the caveat that the Rx pin is pulled high most of the time through a 1k resistor and Tx will probably cause the FTDI chip to transmit crap on the USB.

But with 54 IO lines why on earth would you need to use these pins?

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

TECH GEEK

Quote


But with 54 IO lines why on earth would you need to use these pins?

______
Rob




i'm making a 9*9*9 (maybe even 10*10*10) BI-Color LED cube
As always... Thanks for posting!!!

retrolefty

Quote
i'm making a 9*9*9 (maybe even 10*10*10) BI-Color LED cube


Well in theory you only need 9+9+9 pins for 27 pins for direct control, and a 1280 (1260?) has more then enough even without using pins 0&1, but that is not how most cubes are driven.

What you need are external shift registers for the 9x9 (or 10x10) part, requiring only 3 arduino output pin, plus 9 (or 10) more output pins for the level drivers, for a total of 12 (or 13) Arduino pins. That could be done with even a 328 board.

Also I think cubes with odd numbers of elements have better 'artistic' capablities as you have a true center for every surface.

Lefty

TECH GEEK


Quote
i'm making a 9*9*9 (maybe even 10*10*10) BI-Color LED cube


What you need are external shift registers for the 9x9 (or 10x10) part, requiring only 3 arduino output pin, plus 9 (or 10) more output pins for the level drivers, for a total of 12 (or 13) Arduino pins. That could be done with even a 328 board.


i thought that i needed (81 * 2) = 162 shift register Output pins for all the bi-color coloums, needing a total of 20 8-bit shift registers (74hc595's)(plus 2 arduino pins) they would need 3 arduino digital output pins for every 2 shift registers. adding this to the 9 arduino layer pins whould mean i need ((20 / 2) * 3) + 2 + 9 = 41 digital output pins total
As always... Thanks for posting!!!

TECH GEEK

ps the reason i said 1260 instead of 1280 was because i had to look on my mega's chip for the #...
also to lefty i'm making a 9cube because of your comment up there i agree 100% w/ u
As always... Thanks for posting!!!

Go Up