Skip to content

Wake a computer and a video projector with a push button, using Wake on LAN and HDMI-CEC

Notifications You must be signed in to change notification settings

aangelot/WakeOnLAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Wake a computer and a video projector with a push button, using Wake on LAN and HDMI-CEC

### Hardware For this project we used :

Assembly

The feather huzzah and the ethernet shield are fixed together. The push button is connected to the shield : the NO port to one input port (such as the 16) and the 3V port through the resistance. The COM port is connected to the ground.

The ethernet shield is connected to the PC we want to wake up with an ethernet cable.

Finally the PC and the video projector are connected with an HDMI cable.

PC configuration

First we allow Wake on LAN on the PC (https://www.lifewire.com/wake-on-lan-4149800). Then we configure the ethernet connection with IPv4 :

  • IP address = 192.168.1.2
  • Mask = 255.255.255.0
  • Gateway = empty

We also notice the MAC address of the ethernet port.

Python 3.6 must be installed on the PC.

Video projector configuration

We allow the video projector to wake up when receiving a HDMI signal. This configuration depends on the video projector model.

Code

The code for the feather is attached. The ethernet library used must be compatible with the W5500 chip and ESP8266.

Two lines have to be changed :

  • the MAC address of the ethernet shield
  • the MAC address of the PC ethernet port

If the button is pushed less than 3 seconds, a magic packet is sent for the Wake on LAN. If it is pushed more than 3 seconds, the message "shutdown" is sent. The python code "shutdown_listener.py", turning in the background will read this message and shutdown the PC.

Use

Push for less than 3 second the button, the PC will start with the video projector. Push for more than 3 second the button, the PC will shutdown with the video projector.

About

Wake a computer and a video projector with a push button, using Wake on LAN and HDMI-CEC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published