Home > Projects > Home Automation Projects > Combo Blocks using an Arduino

Combo Blocks using an Arduino

Summary of Combo Blocks using an Arduino


Imagine a safe that opens with any small object chosen as its combo: this project uses an array of force sensors and an Arduino to recognize the weight distribution of chosen key objects and lock/unlock a cabinet door. A servo-driven latch secures the door; an LED indicates locked (red) or unlocked (green). The prototype used laser-cut acrylic sensor blocks and commercial or homemade pressure sensors, plus basic woodworking to build the box. Materials and step-by-step assembly include building the box, mounting the servo latch, wiring sensors to the Arduino, and attaching the sensor platform.

Parts used in the Safe that Opens with Objects:

  • 1 box with a door
  • 1 Arduino Uno
  • 1 12x12 inch 1/4 inch thick color acrylic sheet
  • 1 12x12 inch 1/8 inch thick color acrylic sheet (detail work)
  • 2 12x12 inch 1/8 inch thick clear acrylic sheets
  • 1 servo
  • 4 small pressure sensors (SparkFun product 9673)
  • 4 1 inch long, 1/4 inch diameter dowels (shelving pegs)
  • 1 push button
  • 1 tri-colored LED
  • 1 potentiometer
  • 4 1 kOhm resistors
  • 9V battery and casing
  • solid wire
  • scraps of wood and wood glue (or latch)
  • double-sided tape
  • hot glue and glue gun
  • acrylic bond (for bonding acrylic pieces)

Project by CU Boulder Thinks That Think students:
Michelle Bourgeois, Charles Dietrich, and Ben Link

Imagine having a safe in which the combo is any small object of your choosing.  Perhaps it’s your favorite coffee mug, or a bat man figurine.  This project is based on this idea, using the weight and placement of your “key” object(s) to determine the combination for a safe.

This safe uses an array of force sensors to determine the unique weight distribution of your key object(s).  The Arduino is set up to lock and unlock the safe door when objects are placed on the platform, and an LED indicates whether the door is locked (red) or unlocked (green). For this prototype, we used stacks of Alphabet Blocks as our key to open the safe.  This project utilizes a laser cutter, some soldering, and a cabinet in which we constructed ourselves, but you could modify any box you wish to use.
Arduino Combo Blocks
Note: There is a variation of this project which uses homemade sensors.  You will see additional materials and steps for this variation.  These sensors were taken from the “DIY Force Sensitive Resistor” Instructable.

Materials:
1 box with a door
1 Arduino Uno
1 12×12″ 1/4″ thick, color acrylic sheet
1 12×12″ 1/8″ thick, color acrylic sheet (detail work)
2? 12×12″ 1/8″ thick, clear acrylic sheets
1 servo
4 small pressure sensors  (www.sparkfun.com/products/9673 )
4 1″ long, 1/4″ diameter dowels (cut from shelving pegs)
1 push button
1 tri-colored LED
1 potentiometer
4 1 kOhm ? resistors
9V battery and casing
solid wire
scraps of wood and wood glue (or latch)
double-sided tape
hot glue and glue gun

Additional Materials (for homemade sensors):
1 3×4″ one-sided copper plated PCB (http://www.jpmsupply.com/servlet/the-196/Copper-Clad-Circuit-Board/Detail )
1/4″ thick, conductive foam
Aleene’s Original Tacky Glue (http://www.amazon.com/Aleenes-Original-Tacky-Glue-4-oz/dp/B00195OGKA )
composite wire

Step 1: Build the Safe

1. Obtain or build a box with a door .  We built our own box out of spare shelving and 2.5″ screws.  Two hinges where attached to the door and the left interior of the box.  Each side was then sanded to be smooth and each facing was covered with piping and white caps over the screws.  It measures one cubic foot.
Arduino Combo Blocks circuit
2. Attach the locking servo with duct tape or other means.

3. Build a latch that fits the servo lock.  We made ours out of small scraps of wood and used wood glue to bond it to the interior of the door.

4. Drill a hole in the top of the box to allow wiring to the servo and light sensor.

Step 2: Build the Sensor Block

Our sensor block was made using a laser cutter to cut pieces of clear acrylic.

Holes allowed the wiring from the Arduino to reach the hole in the safe for the servo.

The pieces were bonded together using an acrylic bond.

The sensor block was bonded to a 12×12″ piece of clear acrylic with a square cut out to use as its base.

Major Components in Project
1 box with a door
1 Arduino Uno
1 12×12″ 1/4″ thick, color acrylic sheet

 

For more detail: Combo Blocks using an Arduino

Quick Solutions to Questions related to the Safe that Opens with Objects:

  • What determines the combination for the safe?
    The weight and placement of your chosen key object(s) determine the safe combination using an array of force sensors.
  • What microcontroller is used to control lock and sensors?
    An Arduino Uno is used to lock and unlock the safe and read the sensors.
  • How does the safe indicate locked or unlocked status?
    A tri-colored LED indicates whether the door is locked (red) or unlocked (green).
  • What component physically locks the door?
    A servo is attached to operate a latch that locks the door.
  • What materials are used to build the sensor platform?
    The sensor block was made from laser-cut clear acrylic pieces bonded together and attached to a 12x12 inch acrylic base.
  • Can homemade sensors be used in this project?
    Yes; there is a variation using homemade sensors based on the DIY Force Sensitive Resistor Instructable with additional materials listed.
  • What sensors were used in the prototype?
    Four small commercial pressure sensors (SparkFun product 9673) were used in the prototype.
  • How is the servo mounted inside the box?
    The servo was attached inside the box using duct tape or other means and a wooden latch was built to fit the servo lock.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top