Page 1 of 1

Raspberry Pi CNC

Posted: Tue Jul 01, 2014 3:59 am
by Inventor_Tommy
Hi

I know there is already a plethera of posts out there for creating a CNC machine with a Pi. However..........

I have compiled my own kernel and got Linuxcnc EMC2 working on my Pi. However I am new to stepper motors and drive/step pins. I have 3 x Nema17 4 wire bipolar motors and 3 x HG7881 H-Bridge devices. Linuxcnc will only allow the use of 2 Pins on the Pi for step and drive. Could you please let me know how to wire up the Pi to H-Bidge to Nema17? I am lost on the A1,A2,B1,B2 sequencing and how that fits in with a single drive and single step pin on the Pi.

This is the last link in my chain before starting a physical machine build I really hope someone can help me? Thanks in advance!

Tom

Re: Raspberry Pi CNC

Posted: Sat Jul 05, 2014 10:45 pm
by RaspISteve
Tom,

I sounds like you need to fill the gap between your Pi and the stepper motors. You might want to start here: http://homepage.cs.uiowa.edu/~jones/step/ for background info (there are other (and better) sources).

You've already got a bunch of H-driver devices and you'll need a big power supply plus a box to keep it all safe from you and itself. Or you could go investigate these modules: http://www.arceurotrade.co.uk/Catalogue ... er-Drivers. These modules will solve the "step/direction" problem and include an "H Bridge driver". If you follow the data sheet links it'll get you to some diagrams that show the computer interface through to the motors.

There are other suppliers for this sort of stuff, you either start with the raw devices, a soldering iron or go with the modules and a screw driver.

Re: Raspberry Pi CNC

Posted: Sun Jul 06, 2014 6:27 am
by Cancelor
Lots of stuff on YouTube start here >>>> https://www.youtube.com/watch?v=yD4YEwG-3VA