Today in BTCIOT we make a Lightning Network candy dispenser/sweet machine!!!
The project is a continuation from the other BTCIOT tutorials, and uses much of the same code (so its reccomended you complete those tutorials first). We use a cheap arduino epaper module (MH-ET LIVE or WaveShare 1.54inch)...
Okay, here's a synthesized summary of the BTCIOT Tutorial podcast episode on the Lightning Network Sweet Machine/Candy Dispenser, broken down into the requested sections:
1. Narrative Summary
This podcast episode is the second in a series focused on building Bitcoin-powered Internet of Things (IoT) devices. The current installment details the construction of a "sweet machine"—a candy dispenser that accepts Lightning Network payments to release a treat. The tutorial walks viewers through both the hardware and software aspects of the project, starting with modifying a standard candy dispenser and building a custom enclosure to house the components. The build involves mounting an e-paper display, an ESP32 microcontroller, a DC motor, and a transistor circuit to control the motor's power. The host emphasizes safety precautions during the enclosure modification and provides clear explanations of the electronic components and their functions. Following the hardware build, the tutorial moves into the software setup, demonstrating how to create an account with Open Node and generate an API key necessary for the dispenser to request and process Lightning invoices. The project is designed to be extensible, with the potential to eventually transition to a self-hosted Lightning node for greater autonomy.
2. Main Topics Discussed
- Hardware Construction: Modifying a candy dispenser, creating a custom enclosure, mounting components (e-paper display, ESP32, DC motor, transistor).
- Electronic Components: Explanation of transistor function (as an electronic switch), motor wiring, e-paper display connections (SDI, SCLK, CS, DC, RST, Busy).
- Software Setup: Creating an Open Node account, generating an API key for Lightning invoice processing.
- Code Structure: Organizing code into separate files, referencing previous tutorials (Bitcoin price checker).
- Lightning Network Integration: Using Open Node initially, with a future goal of self-hosting a Lightning node.
- Power Management: Implementing a power-saving switch to put the device into sleep mode.
- Tools & Safety: Highlighting necessary tools (screwdriver, drill, soldering iron, Stanley knife) and emphasizing safety precautions during enclosure modification.
3. Key Quotes
- "We're going to be making a lightning powered candy dispenser sweet machine."
- "It'll be very beneficial if you haven't seen the previous tutorial on say the Bitcoin price checker."
- "This is just a way of us being able to activate a switch so we can get the charge to our motor."
- "I can't stress enough how blunt this standing knife is don't do it with a big standing knife you'll end up cutting your fingers open."
4. People Mentioned
- Host (unnamed) – Leads the tutorial and provides instructions.
5. Bitcoin Price if Mentioned
- No specific Bitcoin prices are mentioned in this segment of the podcast.