This shows you the differences between two versions of the page.
iothings:proiecte:2023sric:esp32_home_automation [2024/05/30 01:13] valentin.radu2005 |
iothings:proiecte:2023sric:esp32_home_automation [2024/05/30 01:55] (current) valentin.radu2005 |
||
---|---|---|---|
Line 4: | Line 4: | ||
* Email: valentin.radu@valinet.ro | * Email: valentin.radu@valinet.ro | ||
* Master: SRIC | * Master: SRIC | ||
- | * [[https://youtu.be/|Demo]] | ||
===== Introduction ===== | ===== Introduction ===== | ||
Line 10: | Line 9: | ||
This project implements two functionalities for my smart home setup: | This project implements two functionalities for my smart home setup: | ||
- | * Speaker volume control using TV remote | + | * Speaker volume control using TV remote [[https://youtu.be/j-plKCrtVP4|Demo]] |
- | * Smart Air Conditioning | + | * Smart Air Conditioning [[https://youtu.be/R3kvEPo8lK0|Demo]] |
Both tasks are centered around an ESP32-WROOM board. | Both tasks are centered around an ESP32-WROOM board. | ||
Line 19: | Line 18: | ||
The goal for this task was to control the volume for the stereo system using the TV's remote control. | The goal for this task was to control the volume for the stereo system using the TV's remote control. | ||
- | === About the current situation === | + | === About === |
The speakers are connected using the TV's headphone jack. Unfortunately, the software on my TV model is particularly dumb, in that it only allows changing the volume of its internal speakers using the volume controls on the remote. Initially, I wanted to use optical audio, but that does not allow for volume control due to its nature (optical audio transmits digital audio over infrared which simply carries the soundwave without any volume information - traditionally, it is the job of the receiver unit to regulate the volume). Then, I looked into using the HDMI ARC (audio return channel) feature, but, again, this is poorly implemented and does not allow for volume change. Lastly, I chose to connect the speakers via the headphone jack, which allows change via the "Sound" section of the TV menu, but not directly using the IR remote control. | The speakers are connected using the TV's headphone jack. Unfortunately, the software on my TV model is particularly dumb, in that it only allows changing the volume of its internal speakers using the volume controls on the remote. Initially, I wanted to use optical audio, but that does not allow for volume control due to its nature (optical audio transmits digital audio over infrared which simply carries the soundwave without any volume information - traditionally, it is the job of the receiver unit to regulate the volume). Then, I looked into using the HDMI ARC (audio return channel) feature, but, again, this is poorly implemented and does not allow for volume change. Lastly, I chose to connect the speakers via the headphone jack, which allows change via the "Sound" section of the TV menu, but not directly using the IR remote control. | ||
Line 36: | Line 35: | ||
{{:iothings:proiecte:2023sric:esp32s.png?200|}} | {{:iothings:proiecte:2023sric:esp32s.png?200|}} | ||
- | === Circuit diagram === | + | === Pinout === |
* TSOP4838 pin 1 > ESP32 pin 14 | * TSOP4838 pin 1 > ESP32 pin 14 | ||
Line 353: | Line 352: | ||
The goal for this task was to be able to smart control the AC unit that I have in my home, bypassing the included remote control. The end goal was to have them controlled from anywhere around the globe. | The goal for this task was to be able to smart control the AC unit that I have in my home, bypassing the included remote control. The end goal was to have them controlled from anywhere around the globe. | ||
- | === About the AC units === | + | === About === |
The AC units are Bosch Climate 3000i [[https://www.bosch-industrial.com/gb/en/ocs/commercial-industrial/climate-3000i-18569608-p/| ]]. These are actually manufactured by Midea and sold under the Bosch brand in Romania [[https://community.home-assistant.io/t/bosch-5000i-air-conditioning/367752/9| ]]. The units feature an OEM dongle option, but the functionality is limited and it comes with a steep price [[https://www.emag.ro/modul-wi-fi-aparat-de-aer-conditionat-bosch-seria-3000-5000i-7736606215/pd/DJV5GHMBM/| ]]. | The AC units are Bosch Climate 3000i [[https://www.bosch-industrial.com/gb/en/ocs/commercial-industrial/climate-3000i-18569608-p/| ]]. These are actually manufactured by Midea and sold under the Bosch brand in Romania [[https://community.home-assistant.io/t/bosch-5000i-air-conditioning/367752/9| ]]. The units feature an OEM dongle option, but the functionality is limited and it comes with a steep price [[https://www.emag.ro/modul-wi-fi-aparat-de-aer-conditionat-bosch-seria-3000-5000i-7736606215/pd/DJV5GHMBM/| ]]. | ||
Line 365: | Line 364: | ||
{{:iothings:proiecte:2023sric:esp32s.png?200|}} | {{:iothings:proiecte:2023sric:esp32s.png?200|}} | ||
- | === Circuit diagram === | + | === Pinout === |
* USB red wire (USB 5V) > ESP32 5V pin | * USB red wire (USB 5V) > ESP32 5V pin | ||
Line 373: | Line 372: | ||
* IR LED long pin > ESP32 GPIO19 pin | * IR LED long pin > ESP32 GPIO19 pin | ||
* IR LED short pin > ESP32 GND pin | * IR LED short pin > ESP32 GND pin | ||
+ | |||
+ | |||
+ | {{:iothings:proiecte:2023sric:valinet_ac_control.png?200|}} | ||
=== Software === | === Software === | ||
Line 566: | Line 568: | ||
* https://vestelvisualsolutions.com/fr/products/interactive-flat-panel/ifm65th752-4/files/vestel-visual-solutions-rs232-lan-customer-control-v1-1-c6ab95453035.pdf | * https://vestelvisualsolutions.com/fr/products/interactive-flat-panel/ifm65th752-4/files/vestel-visual-solutions-rs232-lan-customer-control-v1-1-c6ab95453035.pdf | ||
* https://www.vishay.com/docs/82459/tsop48.pdf | * https://www.vishay.com/docs/82459/tsop48.pdf | ||
+ | * https://github.com/crankyoldgit/IRremoteESP8266/blob/master/examples/IRrecvDumpV3/IRrecvDumpV3.ino | ||
* https://www.bosch-industrial.com/gb/en/ocs/commercial-industrial/climate-3000i-18569608-p/ | * https://www.bosch-industrial.com/gb/en/ocs/commercial-industrial/climate-3000i-18569608-p/ | ||
* https://community.home-assistant.io/t/bosch-5000i-air-conditioning/367752/9 | * https://community.home-assistant.io/t/bosch-5000i-air-conditioning/367752/9 |