381 views
The Hanshin Electric Railway (Hanshin Railway #Hanshin) 71-type #HO gauge model train (Nozomi Kogei paper kit) is fully wirelessly remote controlled by the ultra-compact microcomputer board XIAO ESP32C6 (21 x 17.5 mm). The train uses the GO controller to control speed, forward/reverse settings, and headlight/taillight LEDs. 1. ESP32-C6 SoC (System on Chip) equipped XIAO ESP32C6 microcomputer board This is a microcomputer board equipped with Espressif's #ESP32-C6 SoC (System on Chip). Although it is ultra-compact at 21 x 17.5 mm, it has a wide range of functions including 2.4 GHz Wi-Fi 6, ADC, PWM, SPI, I2C, etc.・Espressif ESP32-C6 SoC (System on Chip) Dual-core 32 bit RISC-V processor, maximum clock speed 160 MHz ・Memory 512 KB SRAM, 4 MB Flash ・Peripherals UART x1, LP_UART x1, I2C x1, LP_I2C x1 SPI x1, GPIO (PWM) x11, ADC x7, SDIO x1 ・Wireless BLE: Bluetooth 5.0, BLE: Bluetooth 5.0, etc. ・On-board antenna with a maximum communication distance of 80 m, external antenna can also be connected ・Dimensions: 21 x 17.5 mm 2. Features of remote control via Wi-Fi with XIAO ESP32C6 Fully wireless remote control via Wi-Fi Set power notch, brake step, forward/reverse with Train GO Controller Control headlights and taillights on and off with Train GO Controller 3. Remote control of Hanshin 71 series HO gauge train using #DenshadeGO Controller (two-handle type) 3.1 System configuration ① Equipped with #RaspberryPiPicoW in the DenshadeGO Controller (one-handle type) ② Build an MQTT broker with #RaspberryPi4 model B on the ground ③ Powering notch data, brake step data, and forward/reverse data are transmitted from the master controller to the RaspberryPi4 model B via MQTT communication ④ Powering notch data, brake step data, and forward/reverse data are transmitted from the RaspberryPi4 model B to the Hanshin 71 series HO gauge train equipped with a XIAO ESP32C6 via MQTT communication [Way equipment] ●RaspberryPi4 model B *MQTT broker (Aedes MQTT, executed on Node-RED) *PWM conduction rate calculation (executed on Node-RED) *Controller screen web distribution (executed on Node-RED) ((( (speedometer, notch command, brake step state, etc.) [Master controller] === MQTT communication MQTT communication === [Hanshin 71-series HO gauge vehicle] ●Raspberry Pi Pico W ●XIAO ESP32C6 *Powering notch *Receives various data (MQTT) *Brake step *PWM conduction rate conversion *Forward/reverse settings PWM signal *Headlight and taillight settings Motor driver *Transmits various data (MQTT) *Headlight and rear marker light blinking control ◆◆◆◆◆◆◆◆◆◆◆◆◆◆ Notes ◆◆◆◆◆◆◆◆◆◆◆◆◆◆ The modifications introduced in this video are for reference only, and do not guarantee operation. If you carry out modifications, please do so at your own risk. The video creator and related manufacturers take no responsibility for any malfunctions or damage to the model vehicle, XIAO ESP32C6, Raspberry Pi, controller (master controller), etc., or for any injuries, accidents, or fires caused by modifications. ◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆