MartinFowler

Computer WIFI/infrared remote boot card (deluxe version)

 
Overview

 

I’ve always wanted to get a voice-activated computer switch, but sometimes I don’t want to get up and turn off the computer when I’m lying in bed. I happened to see someone making it in the square, so I took it and modified it myself.

https://lceda.cn/PQG2030PQG/tian-mao-jing-ling-yuan-cheng-kai-ji-ka

Drawing reference from this post, the switch pins have not been changed, and the program is universal.

I plan to flash the Homekit firmware and use Siri to control it. Although there is a Tmall Genie, the efficiency of the Tmall Genie is too low. Turning on a light is more laborious than turning it on yourself!

The Apple firmware uses HAA Homekit made by foreign masters. After flashing, I just need to write Json by myself. My board hasn't arrived yet, so I haven't written it yet.

 

principle:

This is achieved by using the microcontroller to simulate a person pressing the computer power on and reset buttons. When most computers are turned off, there are one or two auxiliary power supplies, 5VSB and 3.3VSB, which can be used to power the microcontroller. One of the two wires for powering on or resetting is grounded, and the other is a high-level signal line, so pulling the level low will enable powering on or resetting.

 

Introduction:

1. The circuit is simplified, the USB-TLL circuit is removed, wiring is reduced, and many unnecessary components are reduced. The entire board is only 3cm high.

2. Added USB power supply and SATA power supply control, which can be used to control USB humidifiers and external hard drives.

3. A temperature sensor is added, which can monitor the chassis temperature in real time and realize alarm and other linkage functions through the APP.

4. An infrared remote control switch is added, which can be detached and used alone. The smart remote control can also be used to remotely switch on and off the machine. It only requires two components. The disadvantage is that there is no real-time feedback.

 

The WIFI function of this board requires ESP12 and ESP07 series chips, and the infrared switch requires STC15W104 series microcontroller.

 


RES-, RES+, PRSW-, and PRSW+ are connected to the chassis reset and power-on buttons. PRSW+ and RES+ are connected to the motherboard. 5VSB and 3V3 are used for power supply and status detection when PCIE is not plugged in.

When I opened the ITX and measured the size, I found the infrared switch I had made before. Let’s make a board for it.

 

-------------------------------------------------- ----------------2021.3.21 The board arrives-------------------------------- ----------------------------------------

Infrared first

The board is still too high, so after polishing it, I can barely fit it into the chassis.

There is no problem with the infrared test. It can also be controlled well with a mobile phone and Tmall Genie with a smart remote control.

Infrared remote control demonstration

Let’s talk about the infrared program

Controlled by STC15F104E microcontroller

One output realizes inching (on and off) and continuous (forced shutdown, there will be no action in the shutdown state) control

It will enter the learning mode within 2 seconds after powering on. If no infrared signal is received within 2 seconds, it will exit the learning mode and enter the running mode.

The first flash is for power-off signal learning, and the second flash is for forced shutdown signal learning.

The total of the microcontroller and infrared receiver tube is less than 2 yuan, the volume is less than half of the ESP12F, and the power consumption is ultra-low.

The WIFI part is still being debugged, to be continued...

 

-------------------------------------------------- ----------------2021.3.31 WIFI control test--------------------------------- --------------------------------------------------

The temperature sensor and Pmos tube are not included, so this part was not tested.

1. Main switch, press once to turn on/off, press twice to force shutdown, has status display, and can turn on/off notifications in my home.

2. The host is reset. There is something wrong with the circuit. The IO5 pin needs to be connected to a resistor of about 2K and then connected to RESET, otherwise it will affect the status judgment.

3. USB power control, adjustable voltage. However, it cannot be completely turned off. I wonder if there is a problem with the MOS.

4. Wake up and boot through PCIE WAKE#. People who are too lazy to wire can use this to boot up, but they cannot shut down. There are also cases when the host is powered on by mistake (IO2 should not be used), so it is recommended to disconnect the WAKE# line.

 

How to flash and use Homekit firmware can be found in the link below. It is very detailed and powerful. Station B also has tutorials, you can search for them yourself.

https://github.com/RavenSystem/esp-homekit-devices/wiki

After brushing, you can implement various functions by configuring different json. Please see the attachment for my json.

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-08 15:14:10

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号