This post will describe how to get Macchina talking with SPI shields, including Ethernet shields.
But first some Background:
When the Arduino Mega was introduced, for some reason, the SPI lines where in a different physical location than the Arduino UNO. This meant that several SPI-dependant shields were not compatible with both the Mega and the UNO without using some jumper wires.
MEGA SPI: 50 (MISO), 51 (MOSI), 52 (SCK), 53 (SS).
UNO SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK).
Our solution to get around this, and allow for more compatibility between the Macchina and shields, was to add some solder-jumpers to the Macchina board. Now one can easily swap the SPI lines depending on what sort of shield is attached.
Flash forward a few years and the SPI pins have not moved, BUT it seems as though the official solution to this was to use a down-ward facing 2X3 ICSP header to make connection to SPI pins on ALL Arduino boards.
While laying out Macchina, we moved the ISCP header to make room for all the extra automotive interface stuff. This alone would not be an issue, except for the fact that some new shields (the Arduino Ethernet Shield for example) ONLY has these SPI pins on the down-ward facing ISCP header and no where else. This is an issue, a known issue.
Work-arounds are as follows:
1. If using the Official Ethernet shield: Need to add jumper wires to make correct connections. There are many ways to accomplish this including this solution that connects wires from the ICSP header to the side headers. Some soldering required.
2. Is using SEEEDSTUDIO's Ethernet Shield: Need to re-route the SPI lines by using the easier-to-do-than-soldering-wires method shown here:
Side note: Both of these boards are sold at Radioshack (!?) for about $32.
3. If using the Sparkfun-branded Ethernet Shield: No modifications necessary since wires are going directly to the SPI pins on the side headers.
Regardless of which of these shields are used, the solder jumpers on the Macchina must be set as follows:
Once hardware modifications are done, plug the shield into the Macchina and get coding!
A good first test would be to try out is the built-in example called "WebServer" that comes with the standard Arduino IDE.
Lastly, a note regarding SPI:
The CAN interface also uses SPI to communicate with the microcontroller. While the hardware is set up correctly (SS (chip select) for the CAN controller is connected to a un-used pin on microcontroller, special care must be taken with the code to ensure communication between Ethernet Microcontroller and CANBUS Microcontroller is handled correctly.
Comments
Submitted by seth65475 on Thu, 05/29/2025 - 08:17 Permalink
An interesting discussion may
An interesting discussion may be worth comment. There’s no doubt that you should write on this topic, it will not be a taboo subject but generally folks are inadequate to speak on such topics. Yet another. Cheers kyototo
Submitted by seth65475 on Sun, 06/01/2025 - 08:00 Permalink
Slots are more than just
Slots are more than just games—they're a digital canvas for creativity. Developers infuse each title with stunning visuals, captivating soundtracks, and cleverly designed features. From charming animations to story-driven sequences, slots can feel more like a short film than a casino game. slot 5000
Submitted by dijakaf610 on Sun, 06/01/2025 - 12:43 Permalink
블랙툰: Community of readers.
블랙툰: Community of readers.
Submitted by seth65475 on Tue, 06/03/2025 - 03:17 Permalink
종합적으로 볼 때 뉴헤븐카지노는 단순한 온라인 카지노
종합적으로 볼 때 뉴헤븐카지노는 단순한 온라인 카지노 사이트가 아니라, 사용자에게 신뢰할 수 있는 엔터테인먼트 공간을 제공하는 종합 플랫폼입니다. 안정성, 다양성, 접근성, 그리고 고객 중심의 운영까지 모든 면에서 높은 완성도를 자랑하며, 기존의 온라인 카지노 서비스들과는 차별화된 경험을 제공합니다. 지금 뉴헤븐카지노를 방문하면 단순한 게임 이상의 가치를 느낄 수 있을 것입니다. 매일이 새롭고, 매 순간이 즐거운 카지노 경험을 원한다면 뉴헤븐카지노는 최적의 선택이 될 것입니다. 뉴헤븐카지노
Submitted by seth65475 on Tue, 06/03/2025 - 08:32 Permalink
What keeps me coming back to
What keeps me coming back to this casino is the live dealer section. It's the closest thing to the real Vegas experience. The dealers are professional and friendly, and the video quality is excellent. Truly immersive. garuda303
Submitted by seth65475 on Fri, 06/06/2025 - 04:21 Permalink
The essence of gambling lies
The essence of gambling lies in uncertainty. It’s an experience where you can’t control the outcome, only influence it slightly—through choice of game, strategy, or bet size. This lack of control can be both liberating and terrifying. For many, it’s the excitement of the unknown that makes gambling irresistible. That split-second between action and result is where all the magic—or regret—happens. And while some walk away with winnings, others leave with hard-learned lessons. [url=https://csvrxviagra.com/]kilau4d[/url]
Pages