This guide shows how to build a battery-driven Brick PCB based on the ubiquitous Wemos/LOLIN D1 Mini, that allows swapping out accessories (sensors, buttons, LEDs etc) as/when needed.
- Connect a battery.
- Flash the D1 Mini with the LED example.
- Check reading from
battery
.
- Enables wake up from sleep.
- Use a cable or solder.
- Snip off any protruding ends.
- Attach D1 Mini
- Test
sleep:5
and see if it wakes up in 5 sconds.
A couple of ways to get up and running with Node-RED and MQTT:
- FlowForge for a hosted solution.
- Docker image on a Raspberry Pi using f.ex. Balena.
- IOTstack on a Raspberry Pi