0
Offline
Newbie
Karma: 0
Posts: 5
Arduino rocks
|
 |
« on: November 09, 2010, 11:37:32 am » |
Good morning,
We are working on an Arduino Board designed specifically for the electric car conversion crowd. I posted a summary of the project a while back over at Adafruit
As we work on the schematic, we noticed a few things things that might make our board (based on the new Mega 2560) more compatible with existing shields. Namely: the moved SPI pins.
I thought we would run this past the community to ensure we are not missing something. Again, from Adafruit forum:
"We were initially planning on sticking pretty close to the original header pinout. The Mega pinout, however, shows the SPI signals on header pins # 51, 52, 53 while the corresponding UNO SPI pins are on 12, 11, 13.
Unless there is a good reason that the Mega SPI pins are moved, I think we will put them in the same place as the UNO. Doing so will hopefully allow for more shield compatibility with our board."
Thank you for the insight.
Josh RechargeCar Inc.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 5
Arduino rocks
|
 |
« Reply #1 on: November 09, 2010, 11:38:23 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Online
Brattain Member
Karma: 314
Posts: 35517
Seattle, WA USA
|
 |
« Reply #2 on: November 09, 2010, 01:32:24 pm » |
http://arduino.cc/en/Main/ArduinoBoardMega2560SPI: 50 (MISO), 51 (MOSI), 52 (SCK), 53 (SS). These pins support SPI communication using the SPI library. The SPI pins are also broken out on the ICSP header, which is physically compatible with the Uno, Duemilanove and Diecimila. The pins are not arbitrary...
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 5
Arduino rocks
|
 |
« Reply #3 on: November 09, 2010, 05:08:13 pm » |
I understand that the pins are not arbitrary, but is there any reason why we shouldn't re-map them to the corresponding UNO header pinout as this discussion suggests: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1286873309Note: I just noticed that I wrote the wrong pin assignments above: 50, 51, 52, 53 on Mega corresponds to 12, 11, 13, 10 on UNO. This would ensure that Duemilanove and UNO shields would be pin-compatible. There just seems to be a lot of shields out there that expect SPI on pins D11-13 still. Of course we will still have SPI on the ICSP header.
|
|
|
|
« Last Edit: November 10, 2010, 04:20:49 pm by rechargecar »
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25506
Solder is electric glue
|
 |
« Reply #4 on: November 10, 2010, 03:33:15 am » |
I understand that the pins are not arbitrary, The pins for SPI are fixed by the hardware in the processor, you can't remap them. You can use any pin for SPI if you bit bang the SPI bus, but this is slower than using the built in hardware.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 5
Arduino rocks
|
 |
« Reply #5 on: November 10, 2010, 04:20:25 pm » |
Sorry, I really need to explain myself better it seems. The idea would be to connect the SPI pins from the ATmega2560 to the same header pins where SPI lines are on the UNO.
PB3 (MISO) to header Pin 12 PB2 (MOSI) to header Pin 11 PB1 (SCK) to header Pin 13 PB0 (SS) to header Pin 10
|
|
|
|
« Last Edit: November 10, 2010, 04:21:30 pm by rechargecar »
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 5
Arduino rocks
|
 |
« Reply #6 on: January 12, 2011, 10:02:09 pm » |
We are ready to post a schematic of our board, check it out: http://www.rechargecar.com/macchinaWe were hoping you Arduino guys would get a kick out of the name we chose to call our board: "Macchina". Italians use it as a slang word for "car" (hopefully). - Based on Arduino Mega - closer to Automotive specs, 4 layers, EMI protection, more fuses - on-board OBD2 interface with many protocols supported - including CANbus - can be hooked right up to car battery. If anyone has some feedback, we would be happy to hear it. Thanks!
|
|
|
|
|
Logged
|
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 71
Posts: 6827
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #7 on: January 13, 2011, 11:21:22 am » |
I can't comment on the analogue part but I see no obvious bloopers with the rest with one possible exception, Atmel suggest 10uH/0.1uF for the AVCC filter.
BTW, what chip is TVS102, there's no component name.
______ Rob
|
|
|
|
« Last Edit: January 13, 2011, 11:23:21 am by graynomad »
|
Logged
|
|
|
|
|
0
Offline
Tesla Member
Karma: 71
Posts: 6624
Arduino rocks
|
 |
« Reply #8 on: January 15, 2011, 07:26:16 pm » |
TVS = Transient Voltage Suppressor. High energy zener to deal with heavy EMI in electric vehicle.
|
|
|
|
|
Logged
|
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 71
Posts: 6827
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #9 on: January 15, 2011, 08:14:13 pm » |
Yeah I know what TVS is but that particular chip looks interesting and there's no component name.
______ Rob
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15316
Measurement changes behavior
|
 |
« Reply #10 on: January 15, 2011, 09:39:35 pm » |
Sorry, I really need to explain myself better it seems. The idea would be to connect the SPI pins from the ATmega2560 to the same header pins where SPI lines are on the UNO.
PB3 (MISO) to header Pin 12 PB2 (MOSI) to header Pin 11 PB1 (SCK) to header Pin 13 PB0 (SS) to header Pin 10 Down side is you would lose the use of arduino pins 10-13?
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 1
Arduino rocks
|
 |
« Reply #11 on: January 17, 2011, 01:48:47 pm » |
Graynomad: TVS102 is part number: USB6B1 Good catch on the inductor value feeding AVCC.
retrofly: If you look at the schematic, there are solder jumpers to allow swapping of pins 10-13 and 50-53. That way there isn't any lost pins.
|
|
|
|
|
Logged
|
|
|
|
|
|