Home Creators Posts Import Register Favorites Logout

Content

Hello, lovely Patreons!

Please find a link to the resources to accompany the directional lock project, at the following Google Drive link:

https://drive.google.com/drive/folders/1mBPH6dzjRhScVzGEHssqCmm2ZStovPZG?usp=sharing

I recommend downloading the entire folder and extracting to your local PC - note that the Arduino code is containined in a subfolder called "DirectionLock" (.ino sketch files always need to be placed in a folder with the same name as them), and the libraries are contained in the /src subfolder. The AltSoftSerial library and Bounce2 library can be installed from within the Arduino IDE itself, by going to Sketch -> Include Library -> Manage Libraries.

The list of components I used in this video is as follows:

Arduino Nano (https://www.banggood.com/custlink/mDmvNgpA7O)

Arduino Shield (https://www.banggood.com/custlink/KGKyqDqiMW)

5V Relay Module (https://www.banggood.com/custlink/mDD3bOqeP5)

K02 Fail-secure Maglock (https://www.banggood.com/custlink/K3vcdVACY7)

Fail-safe Maglock (https://www.ebay.co.uk/itm/185402503097)

TTP223 Capacitive Touch Sensors (https://hobbycomponents.com/sensors/901-ttp223-capacitive-touch-sensor)

Arcade Joystick (https://www.aliexpress.com/item/1005003901399595.html)

LCD1602 w/ I2C backpack (https://www.banggood.com/custlink/vDKEsPbVKw)

YX5300 Serial MP3 Player (https://www.banggood.com/custlink/D33dbzDe61)

DC Barrel Jack Screw Terminal (https://www.banggood.com/custlink/D3mE4mB6Wb)

5mm LEDs, 220Ω resistors, Wago connectors, etc.

Please ask if you have any questions about using the code!

Comments

L Wo

I don't know if you guys are having the same problem but I solved this by deleting the "#include src.Liquid,,,,etc etc." and then at the top clicking the sketch tab -> include library -> LiquidCrystal etc etc

Olga Saltovsky

Genius project and code. I think it can be easy adapted to any kind of buttons input, not only directional. I did it with DFplayer module because didn't want to wait till YS5300 will arrive, so I want to ask what's the difference between those modules? DFplayer module seems work well with small speaker.

David N DeMattia

Good Morning! I built this circuit this morning, but having issues. My switches (TTP223) are responding but producing garbage on the IDE serial display (I am not using the LCD or sound card). Using a UNO R3. Any suggestions? Thank you in advance!

Steve Turrentine

Hi I’m having some of the same problems a previous person had. I didn’t see a response. My touch sensors are being triggered just when touching the wood itself. Any thoughts?

Steve Turrentine

Thanks again for this great content Alastair. Do you have any suggestions on the player. It plays my first track great. But the second and third seem to be random if at all. I’m at a loss.

Chad Hardy

none of these links seem to work

Torsten vom Lehn

It's because the closing parenthesis is counted in. Just remove the last character.

Joepie Platteau

Hi, are these capacitive touch sensors connected to the metal pins that you can see on top of the Pirate Box?

Katelyn Cahill-Rowley

Does anyone have a recommendation for a good comb-pattern pressure switch such as in the ddr touch pads? I want to use some as cobblestones to be stepped on in a pattern, people will really stomp on them so I want them to be as robust as DDR pads

L Wo

Hi Alastair, thank you for these resources. I'm having the issue that the capacative touch sensors are being triggered by the wood itself rather than when the wood is actually touched, any advice?

Bill Clark

Alastair I am getting the following message: exit status 1 src/LiquidCrystal_PCF8574/LiquidCrystal_PCF8574.h: No such file or directory The library is installed, so not sure what is happening. Hoping you can tell me.