

Alexa power button
Use an Amazon Dash Button or an Alexa Voice Command instead of your computer's power button
- Size
- 41 × 35 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 28
- Nets
- 33
- Pads
- 134
- Tracks, vias
- 407, 21
- Pours
- 5
- Routed
- Yes
- KiCad
- KiCad 4
- Created
- 2 Nov 2017
- Updated
- 3 Jan 2022
Overview
Alexa power button is an open-source printed circuit board by Jeija, from the Jeija/alexa-power-button repository on GitHub. It is a 2-layer board of 41 × 35 mm with 28 parts on 33 nets, routed with 407 tracks and 21 vias.
It is built around the CP2104EK, ESP32-WROOM-32 and TLV70033DCK. Its parts include 10 connectors, 5 capacitors, 4 resistors, 3 ICs and 2 transistors. It belongs with the ESP32 boards of this library.
Main components
3CP2104EK
-- USB Conversion Modules ROHSSilicon LabsUSB Conversion ModulesESP32-WROOM-32
SMD,18x25.5mm-40℃~+85℃ -98dBm 2.4GHz 2.7V~3.6V 20dBm Bluetooth4.2 ESP32-DOWDQ6 UART、SDIO、SPI、I2C、GPIO、PWM、ADC、DAC SMD,25.5x18mm WiFi Modules ROHSEspressif SystemsWiFi ModulesTLV70033DCK
SC-70-5-40℃~+125℃@(Tj) 1 200mA 250mV@(200mA) 3.3V 31uA 48uVrms 5.5V 68dB@(1kHz) Fixed Over Current Protection、Short Circuit Protection、Thermal shutdown、Enable control、Input under-voltage protection Positive SC-70-5 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSTexas InstrumentsVoltage Regulators - Linear, Low Drop Out (LDO) Regulators
README
README.mdAlexa / Dash Button = PC power button
If you like to hide your desktop computer case so that it's not in the way, you probably know that it can be quite annoying to have to press the power button in an uncomfortable location every time you want to turn on your PC. alexa-power-button solves this by enabling you to use both voice commands for Amazon's digital assistant "Alexa" and/or an Amazon Dash Button to start your computer.
Hardware
alexa-power-button doesn't use Wake on LAN so that you can save energy by turning off all of the attached network equipment apart from a single WiFi router in your home. Instead, the only additional active device is a small ESP32-based PCB inside the computer case that can be programmed and powered using the mainboard's internal USB connectors. Most mainboards can charge phones and other USB devices while the PC is turned off, and this current is more than enough to power the ESP32. The PCB contains n-channel MOSFETs that can be used to pull the power / reset button data line low. This assumes that the power / reset button input of the mainboard consists of an active-low input pin with a positive bias voltage. This pin should then be connected to the MOSFET's drain.
The KiCad design files (schematic, PCB layout) are provided in hardware.
Dash Button Setup
- Use the Amazon App to configure the dash button
- In the last step, don't select which of the products in the list to order
- Press the dash button and use wireshark or similar tools to get the button's MAC address
- In the
firmwaredirectory: Executeidf.py menuconfigand enter the Dash Button's MAC Address inAlexa Power Button --> Dash Button MAC Address(including colons)
After flashing the firmware, the ESP32 will capture all WiFi traffic and check if source or destination address of the IEEE 802.11 header match the provided Dash Button MAC address.
Alexa Skill + AWS MQTT / Lambda Setup
- Follow some of the commonly available tutorials on how to create an Alexa Skill, set up a Lambda function and set up AWS IoT for MQTT
- Make sure to select Payload Version
v2 (legacy)when creating the Alexa Skill - Upload the Lambda function. If you have the AWS CLI set up, you can use the Makefile provided in
awsto upload and test the code. - Add
THING_ENDPOINT(AWS IoT HTTPS REST API endpoint host, see the thing's Interact page in AWS IoT) andMQTT_BASE_TOPIC(prefix for MQTT topic, e.g.myhome/mypc) as environment variables for the Lambda function - Get your device private key and device certificate from AWS IoT and copy them to
firmware/main/certsasprivate.pem.keyandcertificate.pem.crtrespectively. See esp-idf's AWS IoT documentation for details. - Confgiure the firmware: Run
idf.py menuconfiginfirmwareand add your WiFi SSID and password inAlexa Power Button. Configure your (arbitrary but unique) AWS IoT Client ID and add the same MQTT base topic as specified in your Lambda function environment variable. UnderComponent Config --> Amazon Web Services IoT Platform, add your AWS IoT HTTPS REST API endpoint host, see the thing's Interact page on AWS IoT. - Flash the firmware. If errors occur while connecting to AWS IoT, see the documentation in esp-idf for some common problems.
Flash the firmware
- Use
idf.py menuconfiginfirmwareto configure your python executable, serial port and flasher baud rate alexa-power-buttonuses the usual esp-idf CMake build system and workflow. Runidf.py allandidf.py flashinfirmwarein order to compile and flash the firmware to your ESP32 board.
Attribution
- ESP32 schematic symbol and footprint: adamjvr's ESP32-kiCAD-Footprints
- Alexa Skill Lambda function validation (
aws/validation.js): Amazon's alexa-smarthome-validation - ESP32 code: Roughly based on esp-idf's AWS IoT Subscribe/Publish Example
Parts
28| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | 1K | Resistors_SMD:R_0603 | R1, R2 |
| 2 | 1u | Capacitors_SMD:C_0603 | C1, C3 |
| 2 | 4.7u | Capacitors_SMD:C_0603 | C2, C4 |
| 2 | IRLML 6344 | TO_SOT_Packages_SMD:SOT-23 | Q1, Q2 |
| 2 | PWRSW | Pin_Headers:Pin_Header_Straight_2x01 | J4, J7 |
| 2 | RSTSW | Pin_Headers:Pin_Header_Straight_2x01 | J5, J8 |
| 1 | 100n | Capacitors_SMD:C_0603 | C5 |
| 1 | 10K | Resistors_SMD:R_0603 | R4 |
| 1 | 12K | Resistors_SMD:R_0603 | R3 |
| 1 | CP2104 | Housings_DFN_QFN:QFN-24-1EP_4x4mm_Pitch0.5mm | U2 |
| 1 | Conn_01x04 | Pin_Headers:Pin_Header_Straight_1x04 | J9 |
| 1 | ESP32-WROOM | Project:ESP32-WROOM | U3 |
| 1 | GPIO | Pin_Headers:Pin_Header_Straight_1x11 | J3 |
| 1 | PWRLED | Pin_Headers:Pin_Header_Straight_2x01 | J6 |
| 1 | PWRLED | Pin_Headers:Pin_Header_Straight_1x02 | J2 |
| 1 | TLV70033 | TO_SOT_Packages_SMD:SOT-23-5 | U1 |
| 1 | USB | Pin_Headers:Pin_Header_Straight_1x04 | J1 |
| 1 | USB_OTG | Connectors:USB_Micro-B | J10 |
The 24 most common of 28 parts.
Similar boards
- 4 layers124.6 × 68.7 mm

- 2 layers33 × 15 mm

MmcblkNX
ignasurba/mmcblkNX
Hardware eMMC reader capable of reading Nintendo Switch boot0, boot1 and rawnand
16 parts119MIT - 4 layers82.3 × 71.9 mm

Isl board
marqs85/DExx-vd_isl
Advanced video digitizer add-on module for Terasic DE series FPGA development boards.
121 parts33GPL-3.0 - 2 layers285 × 94.6 mm

- 4 layers22.6 × 20 mm

6s4in1
lucascheuer/6s4in1_4layer
This version has moved to 4 layers to increase the current capability from the original version
154 parts4GPL-3.0 - 2 layers66.9 × 41.5 mm

EEG v2.kicad Auto pcb
aaronadamski/brainsolutions-eegboard
EEG Prototype Board for UCI Senior Design
115 parts - 2 layers82.6 × 45.7 mm

- 4 layers18 × 37 mm

Questions
How big is the Alexa power button PCB?
It measures 41 × 35 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Alexa power button use?
28 parts, built around the CP2104EK, ESP32-WROOM-32 and TLV70033DCK. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the Alexa power button KiCad files?
From the Jeija/alexa-power-button repository on GitHub, at the commit this page was made from: the board is hardware/hardware.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Can I use the Alexa power button design in my own project?
Its repository states no licence, so its author keeps all rights: ask Jeija before reusing the design.