Home Creators Posts Import Register Favorites Logout

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!

Files

How to Build an Automated Arduino-Controlled Ouija Board

In this tutorial, I'll show you how you can create a spooky Ouija board or chess board on which the pieces move by themselves - great for an Escape Room prop! It uses an Arduino to send G-Code messages to a CNC controller running GRBL software, which moves a magnetic head controlled by stepper motors on an aluminium frame. 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 Code & Wiring Downloads --- If you'd like to download the code and other resources used in this project, and support me to make more video tutorials explaining how to use tech in escape rooms and other playful settings, please check out my Patreon at https://www.patreon.com/playfultech, where you can also find code downloads, wiring diagrams, and additional resources for all my other tech projects.

Comments

Cory Barbari

Having some issues with this project which I'm sure are on my end. I'm using a Comgrow Z1 laser engraver. All is connected and the Arduino has the code installed. The issue seems to be the difference in baud rates. The laser controller has a baud rate of 230400 which is way too fast. I'm unsure how to change it to 9600 as that is what the Arduino is set to.

Cory Barbari

Hey Alastair! I greatly appreciate the feedback! My Comgrow board has a 4x2 port that I assume is like Evan's above. I've connected it as you instructed him to do. The board baud rate is 230400 so I set the altSerial.begin to be 230400 as well. Apart from a slight delay, it seems to be transmitting the signal as the Uno transmit light flashes when I move the joystick. Along with this, 2 lights on the laser controller board flash as well when the joystick is moved (the same that are illuminated when the laser is being controlled through Grbl). So, it seems to be receiving signal. Unfortunately, it won't move. I did connect it back to Grbl and am able to move it that way. Any advice? https://photos.google.com/photo/AF1QipM-hIlVsh8UL-XNqVf1ScxLndbU13WaYoNSWviK https://photos.google.com/photo/AF1QipPfFeL9QiJDuyCejgXO_4GfhtOwECJfmcCM4PI3 https://photos.google.com/photo/AF1QipPhEoaSbp0e4JSr2gYCBZ3vpPlnDz0stceiicJU

Fogjack

Thank you for your presentation this month. Another nice project. As I said before, I look forward to it every time. I hope you keep going for a long time.

Martin Semecky

Hi, must the PC always be connected? I would like to use it so that after pressing the button a series of movements will be performed. For example: I press button one and a series of A movements will be performed. I press button two and a series of B movements will be performed. All this without a PC connection. I am sorry for my English. Martin

MELT (edited)

Comment edits

2026-09-07 18:00 Alastair, I could use some help connecting to my engraver, could you help?
2022-03-20 23:41

Bernáth Gergő

Hi, I am interested in Eleksmaker A3 Machine, but it is not available at bangood.com. Could you offer something else with that Ouija Table Program works? Thank you, Gergő.