Home Creators Posts Import Register Favorites Logout

Content

In this video, I'll show you how to use a load cell and an Arduino to create an electronic puzzle in which players have to place one or more items of the correct weight in order to release an electromagnetic lock.

Timings to the relevant sections in the video are as follows:

00:00 - 01:38 Intro and Demonstration

01:38 - 06:41 Component Explanation (particularly Load Cell and MagLock)

06:41 - 11:33 Wiring

11:33 - 29:36 Arduino Code

29:36 - 34:57 Calibration and Sensitivity

34:57 - 35:53 Wrap-up

To download the associated resources for this puzzle, please see the post at https://www.patreon.com/posts/17288201

Files

"Weight for It!" Escape Room Tech Puzzle

In this video, I'll show you how to use a load cell and an Arduino to create an electronic puzzle in which players have to place one or more items of the correct weight in order to release an electromagnetic lock. Documentation, code download, and wiring diagram available at https://www.patreon.com/posts/17288201 00:00 - 01:38 Intro and Demonstration 01:38 - 06:41 Component Explanation (particularly Load Cell and MagLock) 06:41 - 11:33 Wiring 11:33 - 29:36 Arduino Code 29:36 - 34:57 Calibration and Sensitivity 34:57 - 35:53 Wrap-up

Comments

Bizzaro.

What I really dig about your stuff is how simple you make everything. From the components to explaining it all in easy to swallow terms. Keep it up!

Bizzaro.

I'm experimenting with this puzzle and for some reason it's not working correctly. When I run calibrate I set the weight and hit enter and then it starts reading off numbers without me typing something (in your example"Y") This is the readout I'm getting. Place a known weight on the scale And type its mass in grams Scale factor calculated: 372.8 Calibration data saved to EEPROM Now remove the weight and send any key to continue Reading : 2 Reading : 4 Reading : 6 Reading : 6 Reading : 5 Reading : 3 Reading : 3 Reading : 4 Reading : 6 Reading : 6 Reading : 4 Reading : 5 Reading : 0 Reading : -387 Reading : -408 Reading : -407 Reading : -407 Reading : -407 Reading : -407 Reading : -404 Reading : -13 The negatives are when I remove the object. It never zeros out. It's a 5kg load cell with a 418g cup I am testing with.

oleg ardassov

Hello, could you please send me the code with resetting weight too so i don,t have to reset the prop each time.

Arielle Lewis

Can you post the links for the code and everything else!

David Schrempf

Hi Alastair, could you send me also the sample code to reset the puzzle by a resetting weight? Cheers

Henrik Feldmann

only got it working with the 0.1 release version of the HX711. Would be cool to get an update as something has changed in the Library.

Adam Hackbarth

The library isnt working. When I try to verify the code the it says its not found in the directory. Ive uploaded many libraries so I don't believe im doing any wrong.

derek hampton

Hey Alastair, I'm having an issue. I have to remove the 5v cable from the Arduino to get the Calibration part to work on the serial monitor it will just say "Calibrating..." once it disconnected "Place a known weight on the scale, " "And type its mass in grams into the Arduino IDE Serial Monitor". then I will set it all up the way you show, my Calibrated weight and my solution weight happen to be the same 306g on the Serial Monitor it says it reading -306 with nothing on then when I go to put my weight on nothing will change it still reads -306g it the Serial Monitor will scroll until I reconnect the 5v pin