Skip to the content
2 layers41 × 35 mmAlexa power button, the printed circuit board in 3D

Alexa power button

Jeija/alexa-power-button6

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

3

README

README.md

Alexa / 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 firmware directory: Execute idf.py menuconfig and enter the Dash Button's MAC Address in Alexa 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 aws to upload and test the code.
  • Add THING_ENDPOINT (AWS IoT HTTPS REST API endpoint host, see the thing's Interact page in AWS IoT) and MQTT_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/certs as private.pem.key and certificate.pem.crt respectively. See esp-idf's AWS IoT documentation for details.
  • Confgiure the firmware: Run idf.py menuconfig in firmware and add your WiFi SSID and password in Alexa 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. Under Component 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 menuconfig in firmware to configure your python executable, serial port and flasher baud rate
  • alexa-power-button uses the usual esp-idf CMake build system and workflow. Run idf.py all and idf.py flash in firmware in order to compile and flash the firmware to your ESP32 board.

Attribution

Parts

28
QtyValueFootprintReferences
21KResistors_SMD:R_0603R1, R2
21uCapacitors_SMD:C_0603C1, C3
24.7uCapacitors_SMD:C_0603C2, C4
2IRLML 6344TO_SOT_Packages_SMD:SOT-23Q1, Q2
2PWRSWPin_Headers:Pin_Header_Straight_2x01J4, J7
2RSTSWPin_Headers:Pin_Header_Straight_2x01J5, J8
1100nCapacitors_SMD:C_0603C5
110KResistors_SMD:R_0603R4
112KResistors_SMD:R_0603R3
1CP2104Housings_DFN_QFN:QFN-24-1EP_4x4mm_Pitch0.5mmU2
1Conn_01x04Pin_Headers:Pin_Header_Straight_1x04J9
1ESP32-WROOMProject:ESP32-WROOMU3
1GPIOPin_Headers:Pin_Header_Straight_1x11J3
1PWRLEDPin_Headers:Pin_Header_Straight_2x01J6
1PWRLEDPin_Headers:Pin_Header_Straight_1x02J2
1TLV70033TO_SOT_Packages_SMD:SOT-23-5U1
1USBPin_Headers:Pin_Header_Straight_1x04J1
1USB_OTGConnectors:USB_Micro-BJ10

The 24 most common of 28 parts.

Similar boards

  • 4 layers124.6 × 68.7 mmOssc board, the printed circuit board in 3D

    Ossc board

    marqs85/ossc_pcb

    ossc pcb design files

    265 parts163
  • 2 layers33 × 15 mmMmcblkNX, the printed circuit board in 3D

    MmcblkNX

    ignasurba/mmcblkNX

    Hardware eMMC reader capable of reading Nintendo Switch boot0, boot1 and rawnand

    16 parts119MIT
  • 4 layers82.3 × 71.9 mmIsl board, the printed circuit board in 3D

    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 mmKeyboard, the printed circuit board in 3D

    Keyboard

    andrewcchen/blu60

    259 parts20
  • 4 layers22.6 × 20 mm6s4in1, the printed circuit board in 3D

    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 mmEEG v2.kicad Auto pcb, the printed circuit board in 3D

    EEG v2.kicad Auto pcb

    aaronadamski/brainsolutions-eegboard

    EEG Prototype Board for UCI Senior Design

    115 parts
  • 2 layers82.6 × 45.7 mmUsbmodulestick, the printed circuit board in 3D

    Usbmodulestick

    superna9999/usbmodulestick

    8 partsApache-2.0
  • 4 layers18 × 37 mmRcl57 mcu, the printed circuit board in 3D

    Rcl57 mcu

    tomcircuit/rcl57mcu

    MCU-based retrofit to TI-57 Programmable Calculators

    25 parts5

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.