Skip to content

Latest commit

 

History

History
104 lines (78 loc) · 8.85 KB

File metadata and controls

104 lines (78 loc) · 8.85 KB

Bitcoin Multi Coin ATM

This ATM can be built for about $150 USD in materials

Multi Coin ATM

Pros: Accepts multiple coins (setup for penny, nickel, dime, quarters)

Cons: Configuration of the coin acceptor takes more time

Video Walkthrough

https://www.youtube.com/watch?v=A0-by4YgqxY

Required Parts:

Parts

Recommended Tools

Tools

Assembly Instructions

Print the 3D parts

  1. Print the 3D Box, then print the Slotted Side Panel.

    Printed Box

LNBits Wallet Setup

  • Go to LNBits and create a wallet (give it whatever name you wish). Once created, it will show a warning that the wallet is only secured by this URL. Copy the URL.
  • In the root of this project, go into the qrcodejs folder and open index.html. Paste your wallet URL and it will generate a QR code for you to print. I suggest taping this to the back of a post it note and putting it inside of your ATM for safekeeping. Deposit whatever you are comfortable with (I recommend 5,000 sats).
  • NOTE: This method of storing BTC is not secure and I only recommend putting 10,000 sats or less on this wallet just for demonstrating the functionality of the ATM to your friends/family on the go. Keep your SATS safe at all times :)
  • Go to the extensions tab and add/enable "LNURLDevice", then click on it in the sidebar menu.
  • Enter in the following information. LNBits Configuration
  • On this screen, make sure to copy the id and key - we will use these in our code in the next section. LNBits Configuration

Micro Controller Configuration

While that is printing, lets prepare the micro controller.

  • Download the Arduino IDE
  • Once installed, connect the micro controller to your computer via USBC, and from the dropdown select "Select other board and port...", and select the "ESP32 Dev Module" and on the right select your USB port that it is connected to.
  • Copy and paste the code from the arduino-code folder into the editor. Replace the "DEVICE_ID" with our id from the previous section, and "SECRET_CODE" with our key from the previous section.
  • Click the upload button (the second button on the top left). Once it uploads to the micro controller you should see the Bitcoin ATM screen. It can safely be removed from the computer and is ready for the assembly into our box.

Coin Acceptor Configuration

Next, we will configure the coin acceptor for USD currency. Connect the red and black wires from the coin acceptor to the battery bank respectively and load it with batteries. To configure the coin acceptor, follow the manual. Make sure to configure each coin for the correct number of pulses (1 - penny, 5 - nickel, 10 - dime, 25 - quarter).

Coin Configuration Setup Coin Configuration Setup Coin Configuration Setup

Assembling the ATM

Now we get to put everything together and make this functional!

Assemble the LCD Screen

  • Start by taking apart the LCD panel. There are tiny little tabs that lock into the metal plate so gently pry them until you can get the top and bottom separated.
    LCD Step 1
  • Before assembling it into the ATM, ensure your printer made the LCD hole perfectly straight. If necessary, shave the edges to be straight before inserting. Insert it through the top of the ATM at an angle. Get the steel plate situated first, then place the top down on top of it.
    LCD Step 2
  • Flip the ATM upside down and press so it makes a tight fit.
    LCD Step 3
  • Plug the USBC cable into the micro controller, then gently lift the cable and press it down with some hot glue (do not get it on the board). This will hold the LCD firmly in place so it never wants to come apart.
    LCD Step 4

Assemble the Toggle Switch

  • On to the toggle switch! There are 3 pins on the toggle switch, the silver is the ground (black), and the two golds are power (red).
    Toggle Step 1
  • Solder a black wire onto the silver pin, and two red wires on the gold pins.
    Toggle Step 2
  • Slide shrink tubing onto the wires and shrink them with a lighter.
    Toggle Step 3
  • Smooth out the 3D hold with a utility knife and then slide the toggle switch into the device.
    Toggle Step 4
  • Place the nut through the wires and spin it onto the toggle switch. I prefer the LED of the toggle switch to be facing downward, but it doesn't really matter for functionality.
    Toggle Step 5

Assemble the Coin Acceptor

  • Plug the coin acceptor wires into the back of the device (snip the gray wires), and place it through the front of the box. Secure it loosely with the top two bolts.
    Coin Acceptor Step 1
  • Secure the device with the bottom two bolts and tighten when everything aligns squarely on the front of the device.
    Coin Acceptor Step 2

Assembling the Breadboard

  • Prepare the breadboard by peeling off the sticky backing.
    Breadboard Step 1
  • Place the breadboard in the upper right of the box. You will want to place it so that all of the holes are accessible
    Breadboard Step 2

Connecting the 12V to 5V Power Adapter

  • Prepare the 12V step down adapter, and grab some super glue or hot glue.
    12V Step 1
  • Apply some glue to the back of the adapter.
    12V Step 2
  • Orientation is important! Place the adapter just below the toggle switch nut with the red and black wires facing the outside opening of the box. The USB wire should naturally want to wrap around the toggle wires. Make sure not to block the panel slot when fixing this to the box.
    12V Step 3
  • Wrap the excess USB wire around the toggle nut wires (2x) and then glue it to the top of the adapter box. This holds everything nice and secure for us and still makes it accessible.
    12V Step 4
  • You can now plug in the white USB cable to the 12V adapter.

Wiring the device

  • The wiring it fairly straightforward, just make sure to save the red wire coming from the center pin of the toggle switch, as that will go directly to our battery bank. Here is a couple images showcasing the wiring diagram.
    Wiring Configuration 1
    Wiring Configuration 2
  • Connect the white and blue wires to the micro controller. The ATM is upside down in this picture - the white wire goes 6 holes in, and the blue wire is the last hole.
    Wiring Configuration 3.
  • When you are all finished wiring, it should look like this!
    Wiring Configuration 4

Connecting it to power

  • Prepare the battery bank. Place shrink tubing over the red and black wires and then solder the red wire to the wire coming from the center toggle switch wire. Connect a black wire to the breadboard and solder that to the battery bank black wire.
    Battery 1
  • Using a lighter, shrink the shrink tubing.
    Battery 2
  • Place a 3M strip to the side of the battery bank and press it against the front so we have plenty of room for our coins to drop into the ATM. Battery 3

Slide the Panel on

  • Time to close this thing up and power it on!
    Final
  • Here is our finished product. Power it on and enjoy!
    Final 2