Home Creators Posts Import Register Favorites Logout

Content

This post contains additional resources to support the magnetic puzzle tutorial at https://www.patreon.com/posts/26349661

Arduino Code: https://drive.google.com/open?id=1bwt1C-z6FJ-dYhyhnvxDx_kgBsoTc_Ml

Hall Sensor mount STL: https://drive.google.com/open?id=1mVFMD1vP04Pu2F97aWG06aj5kb203MVX

Wiring diagram: https://drive.google.com/open?id=1CWKLA0hhwKSDjREUuKPgD1bDeHZwkd7_

Fritzing project: https://drive.google.com/open?id=1XcvQAF8sveLfCoiJ0b9eaLLw7tu_S6xL

The components I used in the demonstration were purchased from the following suppliers:

SS49E: https://www.ebay.co.uk/itm/10PCS-New-Hall-element-49E-OH49E-SS49E-linear-Hall-switch/191862758680

A1324: https://www.ebay.co.uk/itm/A1324LUA-T-Linear-Hall-Effect-Sensor-Switch-3-Pin-SIP/173847471516

A3144: https://www.ebay.co.uk/itm/5Pcs-NEW-A3144E-Hall-Sensor-44E-OH44E-Hall-Sensor-UK/152553984292

A1389: https://www.digikey.com/product-detail/en/allegro-microsystems-llc/A1389LUA-9-T/620-1778-ND/5014630

Reed switch: https://www.aliexpress.com/item/10pcs-N-O-Reed-switch-Magnetic-Switch-2-14mm-Normally-Open-Magnetic-Induction-switch/32803902404.html

Comments

Todd Child

Sincere thanks for posting the code!! Had great fun modifying this to multi-sensor for my first project. Works nicely. If you have any interest in the code let me know how to get it to you. Happy to share. I documented and put in some flagged debugging to aid others. Thanks again! Great site, great projects! can't wait to get this in to the puzzle box!

HistoryPod

This is fantastic. I've had success with reed switches in a tangram puzzle before, and tried to use them in a puzzle where you move the hands of a clock (fitted with a magnets) to a pre-determined time. Sadly the distance to the switch was too great for the size of magnet I can use, so your guidance on Hall Effect Sensors has proven invaluable. However, I'm struggling to work out how to edit the code to run two separate sensors - I've tried doubling up each of the functions and calls in the code and naming them '1' and '2' but I can't work out how to run two separate arrays and call the trigger function when the state of both sensors changes (i.e. both clock hands are in the correct position). If you're able to provide any suggestions or guidance I'd be very grateful!

Scott E Smith

Following up with what HistoryPod has written: Like a lot of us, we are often checking out your videos and resources to learn about technology and to adapt it to our particular needs. When you posted your multi-RFID sketch, it was quite helpful, as it helped newbies like me figure out how to take a simple 1-item input and turn it into something more complex (and thus more enjoyable). I'm similarly stymied about chaining hall sensors together for a puzzle I'm working on. The complexity of the "averaging sensor readings" is critical, but I'm not sure how to turn this into an array involving, say, 6 sensors that must all read magnetic change simultaneously in order to trigger the output.