How to UPS Mains Power Any Battery Powered Smart Device (Yale Conexis L1 Door Lock)

3.5K142

Intro: How to UPS Mains Power Any Battery Powered Smart Device (Yale Conexis L1 Door Lock)

This Instructables will show you how to adapt any battery powered device to run from the mains while still maintaining a battery backup, so you will never have to replace batteries again and you won't be affected by power cuts. This type of device is known as a UPS (Uninteruptable Power Supply).

I did this for my Yale Conexis L1 smart door lock but you can use the same process for any battery powered device. The door lock was a great example where this project can really be useful becase Yale don't sell a mains powered version and the door lock will never need to be portable, so running a cable to it is no problem!

Now there a number of different ways to do this. A few alternatives are below:

  • Buy a battery to mains converter from Amazon. This is super cheap and easy but does not provide a battery backup: https://www.amazon.co.uk/Battery-Eliminator-AIEVE-...
  • Use rechargable AA cells with a AA charger soldered to the battery holder of your smart device. I didn't go for this method because I found online that my smart door lock cannot be used with rechargables, I assume due to the lower voltage (1.2V per cell as opposed to 1.5V per non-rechargable cell). Also lead acids have more capacity and are known to be more rugged and longer lasting that AAs.

STEP 1: How to Select the Right Voltage Regulator for You?

First things first, figure out how what voltage and current you need from the voltage regulator before you buy your voltage regulator. FIguring out the voltage is easy, just count the number of batteries and multiply that by the battery cell voltage. e.g. I had 4x 1.5V AA batteries, which makes 6V total, I used a voltage regulator with 6.5V output because that's what I could find at a low price and a fully charged AA cell will be around 1.6V anyway.

Figuring out what current you need from the voltage reg is a little trickier, you need to measure that yourself. To do this:

  1. Set up your multimeter for current measurement. Current must be measured in series, so you usually have to move the red probe to the amps position and set the dial on your meter to current measurement.
  2. Place a small piece of card in between one of the battery connections to break the circuit, then touch your multimeter leads one on each side of the card touching the battery tabs (this will connect your multimeter in series with the circuit and should now power your device with the multimeter as part of the circuit)
  3. Run your device and read the current draw. I tested mine 5 or so times and took an average reading of around 200mA which is well within the 1A that my voltage reg is capable of

STEP 2: 3D Print Your Enclosure

Download and print my enclosure design which fits all the parts really well using this link to GrabCAD: https://grabcad.com/library/how-to-ups-mains-power...

Print the box base and lid on your 3D printer with full support material (there are 2 captive nut cavities that need support) I think I used about 20% infill for the box.

Save the cable tensioners and cable clips to print later because they need a different infill.

STEP 3: Build Your Circuit Pt 1

While your 3D printer minion is working away you can build up your electronic circuit.

In your voltage regulator datasheet it should provide a suggested circuit. I have attached the circuit for the voltage reg I used (the image with the DC/DC box in the top left).

  1. Cut out a piece of stripboard to about 50mm x 65mm
  2. Drill 4 holes in the strip board in the locations shown in the attached image to match up with the screw bosses in the 3D print
  3. Solder the voltage regulator with capacitors onto the middle of the board following the circuit diagram
  4. Solder the screw terminals for the input and output lines
  5. Add labels to prevent mixing up the input/output connections and the polarities, important!

STEP 4: Build Your Circuit Pt2

Your battery charger leads need to connect to the input of the voltage regulator circuit as well as to the battery, in other words the battery, the charger and the voltage regulator need to all connect in parallel.

To do this; splice the battery charger cables and sodler 2 new wires in. Remember to use heat shrink to insulate.

Then plug everything in and use your volt meter function to:

  • check that you're getting around 13-14V out of the battery charger
  • and 6.5V from your voltage regulator

STEP 5: Prepare Your 3D Printed Box

  1. Remove your box from the printer
  2. Begin a seperate print for the cable tensioners and cable clips with 100% in fill and support material:
    1. cable tensioner from my box design is found as part of the GrabCAD download here: https://grabcad.com/library/how-to-ups-mains-power...
    2. cable clips from here: https://grabcad.com/library/cable-clip-8
  3. Clear out the support material from the captive nut cavities
  4. Put the 4 M4 nuts into the captive nut cavities (the bolts for the cable tensioner will hold onto these nuts for greater force than self taping screws into plastic)

STEP 6: Assemble the UPS

  1. Screw your circuit board to the lid using the screw bosses and your small self-tapping wood screws
  2. Place your battery into the enclosure
  3. attach the cables from your battery charger to the power in side of your circuit (with the battery charger unplugged). Make sure you have the polarity correct!
  4. attach the output cables to the power out side of your circuit
  5. before plugging in the battery, just plug in the charger and check that you're getting 13-14V out from the battery charger and 6.5V out from the voltage regulator (be aware; some battery chargers may be clever enough to sense if the battery is there, so would not give out a voltage without a battery plugged in)
  6. plug in your battery using the red and black spade connectors of the battery charger. Make sure the polarity is correct! Double check the voltages again
  7. screw in the cable tensioners using the M4 bolts (you can screw these in fairly tight but not so much that you crack the plastic). These will make sure the cables will never get yanked out of the circuit board
  8. Place the lid on the base of the enclosure and use the 4 long 4mm diameter wood screws to screw the lid onto the base

STEP 7: Solder the UPS Output to Your Smart Device

  1. Remove the origonal batteries from your smart device, you'll never need them again!
  2. Dissassemble your smart device to find where the origonal batteries connect to the circuit board
  3. Check the polarity of the origonal battery connections. If you're lucky this might be labelled on the board, but most often you will need to reference the + and - of the batteries to tell you the polarity of the circuit board connection.
  4. Solder the output wires from your UPS to the battery connections of your smart device. Make sure you get the polarity right.
  5. Then create a hole for the new wire to pass out of the device, I used a needle file for this

STEP 8: Cable Management

Use your 3D printed cable clips to trail your cable in a neat path. I used hot melt glue to glue these on but you can also use foam double-sided pads.

STEP 9: Sumg-ness

Be smug with the thought that your device will never run out of battery again!

Comments

Its a great simple solution but if your going to make the effort of printing a box you need to put all the wiring in the box or shorten the cables. As for cable management you can use slim rounded trunking or remove the lock drill a hole to the edge of the frame and cut a channel down the edge and along the bottom then glue the wire in place leaving visible cables is not a good look alternately just print a small white box and mount next to the lock with a small 6v lead acid battery inside and a charging connector then mount some small clear hook on the hinge edge. the SLA will last a lot longer than the AA batteries and you can just plug it in overnight when it finally goes low. Also you can get usb to 6v lead and just install a white powerbank next to the lock but you will only get 1amp i think. Using a powerbank is a smaller option even if you have that on your setup shown here and you can use a small usb power plug to keep it charged up