The STM32 main controller, when selected as version V2_1,
features
low-power standby (800uA), receives infrared signals (which also serve as a wake-up signal), and upon receiving a specified command, controls the servo motor to move or generates a voltage level.
Hardware Selection
: Main Control Chip: STM32f103c8t6
; Infrared Remote Control Receiver Module: HX1838; Voltage
Regulator Chip: ME6211C33M5G-N;
Charging Chip: TP4056A.
Development Environment
: Arduino -> STM32duino.
Programming Method:
Serial Port Programming -> Press and hold BOOT0 (keep high level) -> Power on and automatically program.
Notes:
Install the latest versions of the Servo and IRremote libraries in the Library Manager.
Under Arduino, select the development board as Generic STM32F1 series.
In the toolbar, select BluePill F103C8 in Board Part Number.
In the toolbar, select STM32CubeProgrammer (Serial) in Upload Method.
An error may occur during programming: STM32CubeProgrammer cannot be found. Download and install it according to online tutorials.
You can use an STM32 development board for testing. Connect the BOOT0 jumper to high level, connect PA9 (TX) to the programmer's RX, and PA10 (RX) to the programmer's (TX). Power on to complete the programming.
Infrared receiver module signal pin PA6,
servo input signal pin PA11. Refer to the Bilibili ESP12F
video. Select version V2. Hardware function button: After powering on, connect to WiFi to obtain the timeout shutdown time and delayed shutdown time (default if not connected to WiFi). Receive a specified infrared signal once within the specified time and then execute the servo action, followed by a delayed shutdown (or automatic shutdown after timeout). Hardware selection: Main control chip ESP-12F, infrared remote control receiver module HX1838, voltage regulator chip LDO ME6211C33M5G-N, charging chip TP4056A. Development environment : Arduino. Programming method: Serial port programming -> Press and hold BOOT0 (keep high level) -> Automatic programming upon power-on. Notes: Use the latest version of the Servo library and IRremoteESP8266 library. Under Arduino, select the development board as NodeMCU 1.0. After powering on, it will connect to WiFi and access the target website (there will be a timeout of up to 8 seconds). During this time, it will not respond to infrared signal commands. The website should respond as a string with the delay and timeout milliseconds as the value. Refer to the Bilibili video.