Build an automated Ouija board, or other spooky mechanisms! (Patreon)
Content
Hey folks! As it's nearly Halloween, I thought I'd do a spooky video tutorial this month....
If you're not into Ouija boards, that's ok - there's plenty of other ways you can use this project, which uses the same underlying mechanics as a laser engraver or CNC machine, but with a magnet attached to the moveable carriage that enables you to move a planchette, a chess piece, a pen, or anything else you desire!
I'll demonstrate three ways you can control this movement by issuing industry-standard "g-code" commands to control the stepper motors:
Using manual "jog" commands, such as by input from a joystick control, to move in a relative direction
By executing a pre-programmed sequence of movements that move to a pattern of absolute coordinates
By acting as a "pass-through" device, allowing commands issued by a PC control software (e.g. I use LaserGRBL: http://lasergrbl.com/) to be sent seamlessly through to the CNC controller, which can e.g. trace complex vector shapes.
You can build the mechanics yourself using the following hardware, which allows to choose the exact dimensions of the frame (e.g. to be installed under an existing table):
2040 Aluminium Extrusion https://uk.banggood.com/custlink/KKDyVJ8555
GT2 Timing Pulley / Belt https://uk.banggood.com/custlink/vKvRVrIFH8
NEMA17 Stepper Motors https://uk.banggood.com/custlink/mvKYtWIHHn
CNC Shield https://uk.banggood.com/custlink/K3vYtJZ5Ih
Or, you may find it simpler to just buy a complete ready-to-assemble kit containing all the above + necessary screws etc:
Eleksmaker A3 Machine https://www.banggood.com/custlink/mv3EVCrS8T
The board on the CNC controller itself runs "GRBL" software. It probably already come pre-installed with your CNC shield, but if not you can download from https://github.com/gnea/grbl and follow the comprehensive instructions at https://github.com/gnea/grbl/wiki/Compiling-Grbl to install it. Note that you might have to change the baud rate on line 42 of config.h to match the baudrate defined by the AltSoftSerial connection in CNCController.ino, e.g.:
#define BAUD_RATE 9600
You can view a full list of commands at https://github.com/gnea/grbl/wiki/Grbl-v1.1-Commands
The most important ones to note are:
G90 (Use absolute coordinate values)
G91 (Use relative/incremental coordinate values)
$J= (Issue a "jog" command)
G01 X... Y... F... (Linear movement to specified X/Y coordinates at specified F rate)
G04 P... ("Dwell" - i.e. pause for specified number of seconds)
Timings
00:00-02:58 Introduction and Demonstration
02:59-05:04 Behind-the-Scenes
05:05-09:24 Wiring and Components
09:25-38:24 Arduino Code
38:25-42:56 Wrapup
I'll be putting up a separate post shortly with links to the code download and Fritzing wiring diagram for Patreons-only. Please ask if you have any questions!