Pages: [1]   Go Down
Author Topic: On an Arduino MEGA (1260) Can Pins 0&1 be Used as Regular Digital Outs w/Write??  (Read 1219 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Sr. Member
****
Karma: 0
Posts: 297
Arduino rocks!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

As always... Thanks for posting!!!

0
Offline Offline
Newbie
*
Karma: 1
Posts: 47
Arduino rulez !
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

it seems: clic
Logged

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

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 39
Posts: 4389
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17301
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Never heard of a Arduino Mega1260 ?

Lefty

Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 129
Posts: 8589
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Offline Offline
Sr. Member
****
Karma: 0
Posts: 297
Arduino rocks!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

As always... Thanks for posting!!!

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17301
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: February 22, 2011, 01:56:32 pm by retrolefty » Logged

Offline Offline
Sr. Member
****
Karma: 0
Posts: 297
Arduino rocks!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

As always... Thanks for posting!!!

Offline Offline
Sr. Member
****
Karma: 0
Posts: 297
Arduino rocks!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: February 22, 2011, 02:57:31 pm by TECH GEEK » Logged

As always... Thanks for posting!!!

Pages: [1]   Go Up
Jump to: