Raspberry Pi Alamode CNC Controller
Raspberry Pi Alamode CNC Controller
Raspberry Pi Alamode CNC Controller
Living
Outside
Play
Technology
Workshop
Table of Contents
Raspberry Pi Alamode CNC Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Step 2: Raspberry Pi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Step 5: An Enclosure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
Author:cdtaylor51
Viet Nam War Veteran
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
the future?
Image Notes
1. Select A-axis mirroring here
2. X-axis Microstepping Jumpers
3. External Swiches Header
4. Limit Switches Header
5. Reset Switch
6. Limit Switch Logic Selector
7. Spindle Control Functions Header
8. Z-axis Stepper Motor Header
9. Y-axis Stepper Motor Driver Carrier Headers, Microstepping Jumpers and
Capacitor
Image Notes
1. Stepper Motor Driver Chip Heat Sink
2. Stepper Motor Current Limit Adjustment Pot
Image Notes
1. Polarized Stepper Motor Header
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
Step 2: Raspberry Pi
It became clear that I needed some way to process a complete design file and break it into individual GCode commands that the Arduino could then pass on to the CNC
Controller shield. Many articles are available on the internet about running the Grbl Controller software which provides this specific function on a Raspberry Pi. I had a
Raspberry Pi that I had played with a bit, some time ago, but it was an older version. I am sure it would have worked but I decided to get a new one and dedicate the new
one to being the host in my new CNC Controller system. For more information about running the Grbl Controller software on a Raspberry Pi look here:
http://zapmaker.org/raspberry-pi/running-grbl-controller-on-raspberry-pi/
Due to reading a lot of those articles that I mentioned I became concerned that the Raspberry Pi would overheat when inside of an enclosure so I put heat sinks on it.
Then I had to trim down the heat sink on the processor as it was too tall.
I also came to realize that the Arduino and the Raspberry Pi are slightly, electrically incompatible. The Arduino operates with 5V logic and the Raspberry Pi operates with
3.3 V logic. So a voltage level translator of some sort is required as an interface between the two environments. I looked around for a solution and found a few. I didn't
really like anything that I was finding and it took a while to get to what I wanted but I eventually found the Raspberry Pi Alamode board.
Image Notes
1. Alamode Spacer
2. 16 GB SD Card
3. Processor Heat Sink
Image Notes
1. Real Time Clock Battery
2. Glued on standoff
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
3. Glued on standoff
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
Image Notes
1. WiFI Adapter
Step 5: An Enclosure
Early on I decided to use some sort of enclosure to protect my finished project. So I bought one and then came to realize it was not large enough and had to measure
everything and buy another one. The one I used is is nice box but turned out to be a challenge anyway. This box is made by Bud and I got through Amazon here:
http://www.amazon.com/dp/B005T7ARB6/ref=pe_385040_30332190_TE_M3T1_ST1_dp_1. It is a BUD Industries PN-1339-DG High-Impact ABS NEMA 4x Indoor Box,
6-19/64" Length x 6-19/64" Width x 3-17/32" Height, Dark Gray Finish enclosure.
There are some nice brass threaded mounting holes in the corners inside of the box and the box comes with screws to secure the top to the bottom with the brass
threaded holes in the outside corners. The box also has a gasket to make it waterproof if you need that. In my case it just makes for a very nicely sealed box.
I came to believe that I needed to have some sort of carrier to mount my "stack" to inside of the box. So I bought a sheet of acetal from Zoro Tools:
http://www.zoro.com/g/Acetal%20Sheet%20Stock/00153128/. Acetal is supposed to be somewhat ESD safe but I have not studied that out entirely either. After I got the
sheet of acetal I cut a piece that would fit inside of the enclosure with my Dremel tool. It isn't pretty and this is one of the things I plan to replace when I finally get my
milling machine working again. I ended up having to cut cutouts on both sides of my initial carrier to provide better access for the wires and cables that connect the
"stack" to the external world.
I also felt that it was important to make sure that there is adequate ventilation in the box. So I mounted two 40mm, 12 VDC, exhaust fans on the top and two inlet vents
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
Image Notes
1. Oops!
Image Notes
1. 40mm Quiet Fans on the Top with Fan Guards on top and bottom.
Image Notes
1. 40mm Air Filters on the Bottom
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
I connected the two 12 VDC exhaust fans to a header that eventually connects to the power distribution board.
Finally, I used a PowerWerks PowerPole snap-in chassis mount that provides 5 VDC through a red connector and red cable, 12 VDC through a yellow connector and
yellow cable and a ground for each side through black connectors. The chassis mount holds the PowerPole connector housings in place inside of the snap-in chassis
mount with a pin and these connectors are very well made. More information about the PowerWerks PowerPole connectors can be found here:
http://www.powerwerx.com/powerpole-accessories/pow...
Externally I am using an ATX power supply that has been slightly modified to provide power for my milling machine (it came with my machine). I built a cable with the
PowerWerks PowerPole connections on it that match up to my CNC Controller box PowerPole snap-in chassis mount. Later on I added an emergency power off switch to
my power supply. You can see the emergency switch here: http://www.sourcingmap.com/red-mushroom-cap-1no-1nc-dpst-emergency-stop-push-button-switch-ac-660v10a-p-256918.html
Hooking up the switches and the connectors was the most time consuming part of the build.
Image Notes
1. 1x12 Female Header for LEDs
2. Fan Connector Header
3. Reset Button to CNC Controller Shield Header
4. Abort, Hold, Resume Button to CNC Controller Shield Header
5. Polarized Stepper Motor Header
6. Limit Switches to CNC Controller Shield Header
Image Notes
1. Input Power - +5VDC and Ground Header
2. Input Power - +12VDC and Ground Header
3. Spindle Relay Grounds Locking Header
4. Spindle Relay Functions Header
5. 1x12 Female Header for LEDs
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
Image Notes
1. Limit Switches to CNC Controller Connector Header
2. Fan Connector Header
3. Abort, Hold, Resume Switches to CNC Controller Header
Image Notes
1. Spindle Relay Fuctions Header
2. Spindle Relay Grounds Locking Header
3. Input Power - +5VDC and Ground Header
4. Input Power - +12VDC and Ground Header
5. 1x12 Female Header for LEDs
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
Image Notes
1. Arduino Reset
2. Abort
3. Feed Hold
4. Resume
Image Notes
1. SN7404 Hex Inverter
2. 1x12 Male Header for LEDs
3. +12VDC and Ground
4. +5VDC and Ground
5. Spindle Relay Grounds
Image Notes
1. Polarized Stepper Motor Connector
Image Notes
1. +5VDC and +12VDC Grounds Tied Together
2. +12VDC and Ground
3. +5VDC and Ground
Image Notes
1. +12VDC Power Distribution
2. 5VDC Power Distribution
3. RPi and Alamode +5VDC Power
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
Image Notes
1. Oops!
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
Image Notes
1. WiFi Adapter
Image Notes
1. Locking Header Connection
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
Image Notes
1. Spindle Cooling Control and Power
2. Spindle Direction Control and Power
3. Spindle Enable Control and Power
4. Spindle Relay Functions Control
5. RPi and Alamode Power
Image Notes
1. RPi and Alamode Power
2. 12VDC to Relays
3. 12VDC for Stepper Motors
4. Spindle Relay Function Contols
Image Notes
1. Relay Functions to Outside
Image Notes
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
Image Notes
1. Arduino Reset Switch Header
Image Notes
1. Input power - Yellow is +12VDC, Red is +5VDC, Black is ground for each
voltage.
Image Notes
1. Abort, Hold, Resume Switches Header
2. Spindle Enable, Direction, Cooling Switches Header
3. X, Y and Z Limit Switches Header
Image Notes
1. Wireless Keyboard Adapter
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
Related Instructables
Arduino CNC by
JohnnieT
Biofeedback
Cinema by
PrivateHQ
The MicroSlice
V1 | A tiny
Arduino laser
cutter by
SilverJimny
3 Axis Arduino
Based CNC
Controller by
rjkorn
Advertisements
Comments
50 comments Add Comment
joaoji says:
cdtaylor51 says:
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
5th Picture:
In the next picture I clicked on the Begin button. That causes the Choose File and Begin buttons to get greyed out and the Stop button is now
available. The visualizer will automatically show you what the design will look like. Notice that the image of the T is blue and the machine and work
coordinates are all zeros (before the Begin button is clicked).
6th Picture:
The next image shows more data in the window on the left. Notice that Gcode commands are showing up in the list. Also notice that a statement telling you
that the GrblController is Sending a file to the Arduino/Alamode/Grbl Interpreter. Also you should notice that the Queued Commands bar is showing
some depth. This is because several Gcode commands have been queued up for execution. Further, the Machine and Work coordinates have changed
and they are no longer zeros. Lastly note that the image in the Visualizer window has some green lines that are replacing the blue lines. This shows you
what segments of the design file the system has completed and where it is currently working. As work progresses through the design file the lines will
continue to go from blue to green and the coordinates will continue to update and the lines in the information window will continue to appear. You can click
on the stop button anytime you want to interrupt the system. You can see that eventually all of the blue lines have been replaced by green ones indicating
that the design file has been completely processed.
7th Picture:
Finally in the last picture, after the design has been completed the system moves back to the origin and the coordinates go back to zeros and the design is
finished. Now the system is once again waiting for something to do.
vtstruct says:
cdtaylor51 says:
cdtaylor51 says:
EricP5 says:
cdtaylor51 says:
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
I hope that makes things more understandable. Good luck with your project and thanks for looking at mine also thanks for the comments too.
DanB7 says:
cdtaylor51 says:
DanB7 says:
cdtaylor51 says:
cdtaylor51 says:
dgaynor says:
cdtaylor51 says:
branilson says:
cdtaylor51 says:
sylvain.de.crom says:
Hi Chuck,
Very impressive project; I am contemplating a CNC setup myself and I am very interested to hear how your new control setup is working out.
Thanks
Sylvain
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
cdtaylor51 says:
Festrada007 says:
cdtaylor51 says:
Festrada007 says:
cdtaylor51 says:
jetxu2014 says:
you can try to use the Banana Pi, i think it will give you suprise. you can know more from: www.bananapi.com
cdtaylor51 says:
skaufman3 says:
You wouldnt happen to have a parts list for this design would you?
cdtaylor51 says:
No I didn't but I put this together... Hope it helps... Took a while to find everything again.
Step 1:
makercam: http://www.makercam.com/
WinSCP: http://www.softnow.com/listing/123823/WinSCP?did=11055&pid=1&ppd=search,44532390848,winscp20download,e,,c,0,,,&gclid=CJuIkNHds74CFagWMgodpxMAJw
Advanced IP Scanner: http://www.advanced-ip-scanner.com/
Wireshark: http://www.wireshark.org/
TightVNC: http://www.tightvnc.com/
Grbl Controller software
for Raspberry Pi: http://zapmaker.org/raspberry-pi/running-grbl-controller-on-raspberry-pi/
Step 2:
100%
Grbl compatible CNC Controller shield: http://stores.ebay.com/Protoneer
A4988 stepper motor driver
carrier: http://www.ebay.com/itm/1PC-A4988-3D-Printer-Driver-Module-Reprap-Prus-StepStick-Stepper-Motor-Driver-GE/121323519502?pt=LH_DefaultDomain_0&hash=item1c3f71fe0e
Like:
http://www.pololu.com/product/1182
Adafruit
Heatsinks For Stepper Drivers:
3 x Aluminum SMT Heat Sink 0.4"x0.4" square[ID:1042]
http://www.adafruit.com/products/1042
Step 3:
Alamode:http://www.seeedstudio.com/depot/Alamode-Arduino-Compatible-Raspberry-Pi-Plate-p-1285.html?cPath=122_111
Step 4:
Raspberry Pi Model B 756-8308 Raspberry Pi B
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
http://www.amazon.com/dp/B009SQQF9C/ref=pe_385040_30332200_pe_309540_26725410_item
M3 Nylon Hex Spacers Screw Nut Assortment Kit Stand off Plastic Accessories
Set
http://www.ebay.com/itm/M3-Nylon-Hex-Spacers-Screw-Nut-Assortment-Kit-Stand-off-Plastic-Accessories-Set-/231018719344
I replaced most of these with brass.
Raspberry Pi Premium Aluminum Heatsink Kit
http://www.ebay.com/itm/Raspberry-Pi-Premium-Aluminum-Heatsink-Kit-Protect-your-Pi-from-Overheating-/151106065337?
Super Glue I already had
some.
Step 5:
Box: http://www.amazon.com/dp/B005T7ARB6/ref=pe_385040_30332190_TE_M3T1_ST1_dp_1
Acetal Sheet:
Sheet,Acetal,Wh,1/8 In T,12x12 In
http://www.zoro.com/g/Acetal%20Sheet%20Stock/00153128/
40mm, 12 VDC, fan:
Gino DC 12V 0.1A 40mm x 40mm 2 Pin
Connector PC CPU Computer Case Brushless DC Fan
http://www.amazon.com/dp/B00E1JO8SG/ref=pe_385040_30332200_pe_309540_26725410_item
Black Plastic Fan
Grill for 40x40mm 40mm 4cm AC DC PC Fan New
http://www.ebay.com/itm/Black-Plastic-Fan-Grill-for-40x40mm-40mm-4cm-AC-DC-PC-Fan-New-/290931250087?ssPageName=ADME:L:OC:US:3160
5pc Plastic Fan
grill for 4x4 4x4cm 40x40mm AC DC Fan Taiwan
http://www.ebay.com/itm/5pc-Plastic-Fan-grill-for-4x4-4x4cm-40x40mm-AC-DC-Fan-Taiwan-/131023725508?
Inlet vents with filters:
EverCool FGP-40 40mm Plastic Fan Filter & Grill, Black
http://www.ebay.com/itm/EverCool-FGP-40-40mm-Plastic-Fan-Filter-Grill-Black-/280900161495?
Step 6:
5New Aviation Plug 8-Pin 16mm GX16-8 Male and Female Panel Metal Connector
http://www.ebay.com/itm/5-New-Aviation-Plug-8-Pin-16mm-GX16-8-Male-and-Female-Panel-Metal-Connector-/110983775612?
I painted bands on
the connectors with model enamel that I already had.
Expandable Sleeving:
1/8" BRAIDED EXPANDABLE SLEEVING many colors
- choose the length.
http://www.ebay.com/itm/230819113119?item=230819113119&var=530065579529&viewitem=&vxp=mtr
https://www.parts-express.com/Search.aspx?keyword=expandable%20sleeving&sitesearch=true
Hookup Wire Assortment 6
x 25 ft. spools of #22 gauge solid, insulated copper wirehttp://www.amazon.com/dp/B008L3QJAS/ref=pe_385040_30332200_pe_309540_26725410_item
And
1 x Hook Up Wire Set, 24AWG SOLID CORE,
UL / CSA, 6 x 25 ft spools, Black/Red/Yellow/Green/Blue/White (KCW803-STD)
http://www.allspectrum.com/store/hook-up-wire-set-24awg-solid-core-ul-csa-25-ft-spools-blackredyellowgreenbluewhite-p-8220.html
Heat Shrink Tubing
Assortment: http://www.amazon.com/NTE-Heat-Shrink-Assorted-Colors/dp/B000FIDTYG
Crimping Tool: http://www.pololu.com/product/1928
1 x #1928 Crimping Tool: 0.1-1.0 mm Capacity,
16-28 AWG
Pins
http://www.pololu.com/product/1930
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
Step 7:
Switches
Adafruit
E-Stop or Arduino Reset (Red)
1
x 16mm Illuminated Pushbutton - Red Latching On/Off Switch[ID:1442]
http://www.adafruit.com/products/1442
Abort Reset (Yellow)
1
x 16mm Illuminated Pushbutton - Yellow Latching On/Off Switch[ID:1444]
http://www.adafruit.com/products/1444
Pause / Feed Hold (Blue)
1
x 16mm Illuminated Pushbutton - Blue Latching On/Off Switch[ID:1476]
http://www.adafruit.com/products/1476
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
Chassis
Mount for 2 Powerpoles Sets (4 conductors) (Configuration: Unassembled)
ACP-15
Assorted
Color Powerpole Connectors Kit (Size: 15 Amp, 16-20 GA)
TRIcrimp
TRIcrimp,
the ideal Powerpole Crimping Tool for 15, 30 and 45 amp contacts
RT-1
Anderson
Powerpole Removal, Insertion/Extraction Tool
Power
Pole, Retaining; Thermoplastic; Black; UL Recognized, CSA Certified
Connector Housing
connector,
housing only, yellow
Step 8:
SN7404 Hex Inverter- I already had some of these
Four Current Limiting
Resistors- 650 Ohms - I already had
some of these
Adafruit Perma-Proto Half-sized Breadboard
PCB
http://www.adafruit.com/product/1609
Step 9:
USB Hub
Mini 3 Port USB 2.0 Rotate Splitter Adapter Hub for PC Laptop Notebook
Expansion
http://www.ebay.com/itm/Mini-3-Port-USB-2-0-Rotate-Splitter-Adapter-Hub-for-PC-Laptop-Notebook-Expansion/231109121837?ssPageName=ADME:L:OU:US:1120
Miniature Keyboard
FAVI FE02RF-BL
Mini 2.4GHz Wireless PC / Tablet Keyboard Designed for SmartStick
http://www.amazon.com/dp/B0090BTY8Y/ref=pe_385040_30332200_pe_309540_26725410_item
Electronic
Brick - 5V Relay
http://imall.iteadstudio.com/im120710007.html
Wireless Network Adapter
- I already had a few of these
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
EdBet says:
cdtaylor51 says:
vincent7520 says:
Beautiful construction
cdtaylor51 says:
Thanks
daemonic says:
Very nice build and great attention to detail, love the colour coded sleaving :)
Can i ask where you sourced your illuminated switches from?
cdtaylor51 says:
michaelmacnz says:
cdtaylor51 says:
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
michaelmacnz says:
Wow... so well laid out -- thought out and executed.. well done
cdtaylor51 says:
Thanks
ninjanody says:
cdtaylor51 says:
Thanks
gumby_kevbo says:
cdtaylor51 says:
cdtaylor51 says:
onesharp says:
cdtaylor51 says:
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/
davisbr9 says:
cdtaylor51 says:
davisbr9 says:
cdtaylor51 says:
urant says:
One word
WOW
cdtaylor51 says:
Thanks
http://www.instructables.com/id/Raspberry-Pi-Alamode-CNC-Controller/