Home Creators Posts Import Register Favorites Logout

Downloads

Content

Hi folks,

Here's the extra resources to accompany the "Character Interactions for Escape Rooms" tutorial. As I described in the video, it wasn't really my intention to make this a step-by-step guide to create these exact characters - more to give you some  ideas and inspiration, and describe the sort of design process I followed. But, because you lovely Patreons are worth it, here's my notes and all the resources I can think of you'll need to recreate the characters I demonstrated shown in the video :)

In a slight variation from usual, I've actually gone for more a text/photographic documentation this month - some people have suggested they find that easier to follow than a video guide so I thought I'd give it a try. But, if you'd rather me create a video explaining the below information, let me know, and I'll see about making one of those too. 

And, if you just want to download the Arduino code and the wiring diagrams, you'll find those attached to the bottom of the post :)

"Shy Guy"

Hardware Required:

Essentially, the way the hatch slides open and shut is exactly the same as the movement of a single axis on a 3D printer or laser engraver, many of which are themselves controlled by Arduino-based controllers. Therefore the easiest way to get all the hardware required is to buy a basic CNC/Laser machine and repurpose it. You can often find them cheap second-hand on eBay/FB Marketplace etc. Or, you can get them online, such as https://www.aliexpress.com/item/1005001484374526.html

You then only need to add the vibration sensor used to detect the knocking on the door to one of the spare pins - I'm using the "Z+ endstop" pin, which corresponds to GPIO pin 11. If you want to illuminate the eyes using LEDs, you can also add these to Y+ and X+ end stop pins on the shield, which are GPIO pins 10 and 9 respectively.

If you want to source the components separately, what you'll need is:

Arduino UNO with a CNC Shield: https://www.amazon.co.uk/Jopto-Engraving-Expansion-Engraver-Compatible/dp/B093RZ4NWN

NEMA17 Stepper Motor https://www.amazon.co.uk/Quilted-26NCM-Nema17-Stepper-1-8deg-Printer/dp/B00PNEQ9T4

2020 Aluminium Extrusion v-slot rails  https://www.ebay.co.uk/itm/303140120813

Carriage https://www.amazon.co.uk/3Dman-Aluminum-Profile-European-Standard/dp/B09HXK1LMR

GT2 Timing Belt and pulley wheel https://www.amazon.co.uk/FULARR%C2%AE-Professional-Printer-20-Teeth-Aluminum/dp/B07P61DT2M/

Belt idler https://www.amazon.co.uk/AEDIKO-Synchronous-Straighten-Tensioner-Creality/dp/B09XWDVBJM/

The stepper motor is mounted at one end of the rail, and the idler at the other. One end of the belt is attached to the carriage, threaded along the rail, around the pulley wheel of the stepper motor, along the entire length of the other side, around the idler, and then secured back to the carriage again, to form a closed loop. When the stepper motor turns, the loop rotates, pulling the carriage along the track in either direction.

The sliding slot is a piece of 5mm plywood attached to the carriage, and the top edge of the slot runs inside a groove that makes it impossible for players to poke their fingers in and push the slot back.

When the slot is slid to the side, you can see the eyes which are mounted onto the back board  (painted black, to make it seem dark inside). The eyes themselves are sold as replacement doll's eyes. They are hollow hemispheres, like these: https://www.aliexpress.com/item/1005004254933363.html

I inserted an LED behind each eye, just to give them a subtle glow (this isn't actually hugely noticeable in the video, but it is there - promise!)

This is the vibration sensor switch I'm using (https://thepihut.com/products/fast-vibration-sensor-switch-easy-to-trigger) , which is mounted into a 3D-printed enclosure I designed just to hold it on the back of the door, immediately behind where players would knock.

In the Arduino code, you'll see that there are two variables - a minDelay and a maxDelay - which are used to detect how many times players knock on the door. If the vibration sensor triggers twice in _less_ than the minDelay, it's assumed to just be a "bounce" from a single knock, and the second input is disregarded. However, if more time has elapsed than maxDelay since the last knock, then the previous count of knocks is reset.

So, players need to knock at 3 times or more (rat-a-tat-tat!) in a relatively short time for the hatch to be opened. I'm making use of the accelstepper library to make the stepper move, which is very convenient as it handles all acceleration etc., and allows you to specify the amount by which you want the hatch to slide open - either as a an absolute distance from its starting point (e.g. my hatch moves across 120mm, so I call stepperX.moveTo(-120 * STEPS_PER_MM);) or as a relative movement from its current position. 

"Squawkers McGraw"

Hardware Required:

Sadly, this wonderful animatronic parrot is no longer being made, but it is relatively easy to find second-hand ones available on eBay etc. You can sometimes pick them up even cheaper if they are missing the original infrared controller etc. (which is perfect, since you don't need it anyway!). 

(If you can't get hold of one, I might be in the middle of attempting to reverse-engineer the mechanics into a 3D model that you can print at home. Shhhhh....)

The controller I'm using is also 3D printed and based on this excellent design from Will Cogley: http://www.nilheim.co.uk/latest-projects-and-blog/eyemech-controller -  it just means that you can operate all the animations using a single hand.

The original toy runs on 4x AA batteries, which make it very easy to interface with an Arduino. All the sensors can be wired directly to GPIO pins, and can be used to read the state of whether the eyes are open or closed, whether the tongue is being pressed, and what position through the movement pattern the body is currently in.

When it comes to outputs, there are just two DC hobby motors used to control all the animations - one in the head, and one in the body. I use an L298N motor driver with a separate 5V supply for this, and by reversing the direction of each motor a very clever series of cams allow you to open and close the eyes, open the mouth, flap the wings, and tilt the body. It's a genius design!

For more information, you can see my github repository about the project at https://github.com/playfultechnology/SquawkersMcGraw

"Sentient Lightform"

The simplest of characters requires just an LED, a transistor, and an Arduino (or ESP32, Raspberry Pi etc.) with a PWM output. PWM is "Pulse Width Modulation" - a way to give a variable analog output, not just a simple on/off.

The GPIO pins of an Arduino only operate at 5V, and have a very limited current sourcing ability (~20mA). So, to be able to control a 12V LED, we're going to take the output of the GPIO pin to the gate pin of a MOSFET. When the Arduino writes a small signal to the gate pin, it allows a bigger current/voltage to flow between the source and drain pins, and that lights up the LED.

When selecting a MOSFET, there are many choices available, but the most important factor is to ensure it is a "logic level MOSFET", normally indicated by an "L" in its part number. That means that the gate can be fully-opened by the 5V logic level of the microprocessor controlling it. I like the IRLZ44: https://www.ebay.co.uk/itm/173371014643

In the Arduino code listing, you'll notice I include the FastLED library, which is a library I've used many times for controlling addressable RGBs (i.e. WS2812B). Here, I'm not doing that, but I'm making use of the beatsin8() helper function provided by the library, creates a sine wave at a given BPM between specified values, and that's what I'm using to generate the pulsating "heartbeat" effect of the LED.

Files

Comments

Worm

How do I get you to respond? I have sent you messages and commented on posts... Where is the information for patreon members for the decanting puzzle please?