Arduino MEGA Pololu Shield for RepRap

28 May

We now have a working stacking shield for Arduino MEGA that fits all the electronics for our Mendel into one tight little package. We have been posting our work and source on the RepRap Wiki here. There has already been significant development and testing for the Arduino MEGA and Pololu A4983 stepper driver for RepRap control, and we have our Mendel running on this set up now. It is far optimal, but an improvement all the same I think. 

Adrian has his Pololu Electronics that we loved, and several other people have been using the Arduino Mega and Pololu stepper drivers. Dissidence is working on almost the same thing on his blog. Joaz at RepRap Source is using the Arduino MEGA to control the ShaperCube. His firmware is quite stable and available on GitHub. We had the Arduino MEGA prototype shields in stock so we went down the road of knocking off Adrian's design with our own optimizations including - smaller total footprint, access to potentiometers, more mosfet outputs, standard power jack, cleaner installation with less wires, and less connections to add to the cost and failure opportunities.

Arduino Mega Pololu Shield from angleOne of our favorite tricks was placing the capacitor and resistor needed for each driver under it. We are also using connectors that I remember from hobby servos. They are 2.54mm pitch connectors that claim a rating of 3A.  The shield I have has room for an additional stepper driver or pair of mosfets. The eagle design includes both :) We are about to start printing tests of a housing for the electronics.

One of our main goals is to make this board on Mendel. This board is drawn up on Eagle with as fat of traces and wide of gaps. This is our first PCB design, so comments and criticisms are welcome. One issue we are trying to resolve is protection for the mosfet circuits. The heater wires became shorted during testing due to careless connection at the tight quarters of the heater terminal block and the mosfet branded my finger tip pretty good. The honking big mosfets are dangerous unwatched I think, especially mixed with cheap brick style power supplies.

Again, our source files and progress on instructions / notes is at http://reprap.org/wiki/Arduino_Mega_Pololu_Shield.

BTW, sorry for the lapse in blog entries (and the non stellar quality of this one, we do have a nice camera - just more concerned with production than promotion at this point). We've been a little preoccupied making sure everybody's orders go out the same day, and adding new COOL PLA COLORS, and electronics, individual components, etc. Hope you forgive us :)

Comments

Hello, I'm starting out building my repstrap and I have the arduino and the pololu drivers and will be wiring up the same design you are using. I wanted to know what firmware you are running, I have been unable to find direction on which one will work on arduino with the pololu stepper drivers. Thanks John

The good Mr. Joaz has a fork of the official FiveD firmware at http://github.com/Joaz/reprap-firmware-fork that he patched up for the Arduino Mega. The pin definition section will need to be changed as noted at http://reprap.org/wiki/Arduino_Mega_Pololu_Shield.

Tonok has also been working on a rewrite of the Hydra firmware that is still in the early stages, but tested as functioning on our machine. He hs some features that are superior to the others, like safeguards for temperature management. But as with most everything else bugs are to be expected. His code is at http://github.com/tonokip/Tonokip-Firmware.

Using the Polulu boards are quite interresting. I see that you have left pins 14-17 unused. I would also not use 18-21, and especially not 20 and 21 (SDA and SCL), as some future development might make better use of those communications pins. FYI, we are a group of RepRap builders in Denmark (see: https://labitat.dk/index.php/RepRap for a (unfortunately rather boring = hardly any pictures) project wiki page), ten people are building Mendels, and we are experimenting with the use of the Mega, Polulu and Tonokip Firmware. We already have the Tonokip Firmware running on a standard set of Gen3 electronics. One advantage is that the communication between PC and RepRap motherboard is 100K baud and not just 19.2K baud. Kindly, MrAlvin

Thanks and good point on the SDA and SCL pins. We are occupying them with endstops because we ran out of interupt pins. In the future we will probably combine the max endstops on 1 pin. The Pololu boards are nice. We like the 1/16 microstepping.

has you have found out i had allot of trouble with placemet on my shield, no matter how i did it i always seemed to hit something, and i do wish i would have found out about the runs down the middle before i did my layout, that would have saved me some trouble when i checked my board for shorts. i do wish there was a shield that was just all through hold and thats all, and just brought the pins in one hole. thats what i would love too find. sparkfun has one for the regular arduino but not for the mega. thanks for the mention of my blog. http://mike-mack.blogspot.com/ i am dissidence
So I see you are using 4 pin servo connectors to connect the pololu boards to the stepper drivers, where can I get these from?

We got them from the nice people at Hansen Hobbies. We plan on adding them to our store soon.

Post new comment

The content of this field is kept private and will not be shown publicly.