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 augustinagustina113 on Sat, 09/20/2025 - 05:41 Permalink
강남룸싸롱은 품격 있는 서비스를 합리적인 가격대에
강남룸싸롱은 품격 있는 서비스를 합리적인 가격대에 제공하여 누구나 부담 없이 럭셔리한 밤을 즐길 수 있도록 합니다. 강남룸싸롱 https://lumssalonggangnam.isweb.co.kr/
Submitted by augustinagustina113 on Sat, 09/20/2025 - 05:43 Permalink
강남룸싸롱은 품격 있는 서비스를 합리적인 가격대에
강남룸싸롱은 품격 있는 서비스를 합리적인 가격대에 제공하여 누구나 부담 없이 럭셔리한 밤을 즐길 수 있도록 합니다. 강남룸싸롱 https://lumssalonggangnam.isweb.co.kr/
Submitted by augustinagustina113 on Sun, 09/21/2025 - 04:49 Permalink
The motivating content here
The motivating content here always inspires me to stay strong and believe in progress. pabipemkabjembrana.org https://pabipemkabjembrana.org/
Submitted by augustinagustina113 on Wed, 09/24/2025 - 02:19 Permalink
This website makes learning
This website makes learning so easy! I appreciate how clearly the topics are explained. pabipemkabacehtengah.org https://pabipemkabacehtengah.org/
Submitted by augustinagustina113 on Fri, 09/26/2025 - 10:33 Permalink
What a brilliant site! The
What a brilliant site! The posts are always informative and packed with clear steps I can take to improve my skills. pabipemkabkonawe.org https://pabipemkabkonawe.org/
Submitted by augustinagustina113 on Mon, 09/29/2025 - 02:50 Permalink
Every visit to this website
Every visit to this website feels like time well spent learning something useful. I recommend this website to all my friends. pabipemkabtapin.org https://pabipemkabtapin.org/
Submitted by seth65475 on Tue, 09/30/2025 - 10:56 Permalink
I’m blown away by the
I’m blown away by the professionalism of your work. My Facebook page now looks like a real brand page, Instagram has a consistent grid, YouTube thumbnails are eye-catching and Twitter threads spark conversations. Customers have literally told me my brand “looks bigger” online now. That’s priceless for credibility. You also make approvals easy so I’m not bogged down in emails. This premium social media service has delivered results far beyond my expectations. Anyone serious about scaling their online presence should give you a try. It’s like hiring an entire digital team at once. buy 1 million youtube views
Submitted by DeannaNRay on Sat, 10/11/2025 - 17:08 Permalink
Ethernet shields, SPI and
Ethernet shields, SPI and Macchina are nice details to learn. By using Mount Waverley house washing company we can find the services that know how to deal with our issues and make the right decisions to do our job.
Submitted by shieraalva on Mon, 10/13/2025 - 03:12 Permalink
The interface is elegant and
Pages