-
1Step 1
The pinout of expansion slot P1 is:
- 1: GND
- 2: GND
- 3: ESP8266 GPIO0 - connect to GND (pin 2) to flash the firmware
- 4: ESP8266 GPIO13
- 5: ESP8266 GPIO12
- 6: +3.3V
- 7: ESP8266 RXD
- 8: ESP8266 TXD
To flash a firmware of your choice you need an FTDI programmer. It is necessary to disconnect the IRShine from the power outlet, open the solder joint R9 because during the firmware flash the ESP8266 is powered by the FTDI programmer, short the GPIO0 input (slot P1, pin 3) to GND, connect the FTDI programmer to the expansion slot P1 (GND, +3.3V, TXD and RXD) and flash the firmware. When the firmware is flashed you can remove the FTDI programmer, close the solder joint R9 and plug the IRShine into the power outlet.
To extend the wifi range of the esp-03 controller you can replace the integrated ceramic antenna with a 3 cm wire as seen in the photos.
To mount the PCB, three self tapping screws M2x7 and three M2x16 are necessary to connect the top cover to the plug box.The IRShine uses ESP8266 GPIO14 to control the power led emitter
Bill of materials:
- U1 - Meanwell IRM-10-3.3
- U2 - ESP8266 module ESP-03 with 1MB flash
- U3 - Analog/Linear LT1764EQ#PBF
- Q1 - Diodes Inc DMG6968U-7
- R1 - 4.7K 1% 1/8W SMD 0805
- R2 - 3.3K 1% 1/8W SMD 0805
- R3 - Optional trimmer (no mount)
- R4 - 100K 1% 1/8W SMD 0805
- R5 - 0 ohm (solder joint)
- R6 - 10K 1% 1/8W SMD 0805
- R7 - 10K 1% 1/8W SMD 0805
- R8 - 10K 1% 1/8W SMD 0805
- R9 - 0 ohm (solder joint)
- R10 - 243 ohm 1% 1/8W SMD 0805
- R11 - 10K 1% 1/8W SMD 0805
- C1, C6 - Wurth 885012207098
- C2 - Murata GRM31CR60J227ME11L
- C3 - Kemet A700X107M12RATE015
- C4 - Vishay TR3D107K010C0150
- C5 - Murata GRM21BR60J107ME15K
- L1 - Murata BLM31KN801SN1L
- IR Power LED emitter 940nm: Opulent LST1-01F09-IR03-00 (Osram Oslon Black SFH4726S)
- P1 - Header 2.54mm 8 pins
- Plug box - 3D printed, see Files section for STL files
Configuration of Tasmota firmware for IRShineIt is recommended to use latest version of Tasmota (release 8).
The configuration template for IRShine is:{"NAME":"HPIRBlaster","GPIO":[0,0,0,0,0,0,0,0,51,4,8,0,0],"FLAG":0,"BASE":18}
With Tasmota firmware it is possible to send and receive MQTT infrared commands. In this example the MQTT topic is "hpir01" and the command will control any Samsung TV:
- topic: cmnd/hpir01/IRSEND
- payload for TV switch on: {"Protocol":"SAMSUNG","Bits":32,"Data":0xE0E0F00F}
- payload for TV switch off: {"Protocol":"SAMSUNG","Bits":32,"Data":0xE0E019E6}
With this configuration Tasmota also receives and decodes the infrared commands sent by external remote controls and transmits them with the MQTT protocol. In this example, IRShine receives an external IR NEC command and sends the corresponding MQTT message:
- topic: tele/hpir01/RESULT
- payload: {"IrReceived":{"Protocol":"NEC","Bits":32,"Data":"0x40BD906F"}}
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.