https://github.com/mk-it-easy/optoma-esp32-remote
This project allows you to send commands to an Optoma ZH403 projector over RS-232 via a Wi-Fi REST server using an ESP32 microcontroller. The ESP32 connects to a Wi-Fi network and hosts a RESTful API, enabling remote control of the projector through HTTP requests.
https://github.com/mk-it-easy/optoma-esp32-remote
arduino esp32 esp32-arduino home-automation optoma-zh403
Last synced: 2 months ago
JSON representation
This project allows you to send commands to an Optoma ZH403 projector over RS-232 via a Wi-Fi REST server using an ESP32 microcontroller. The ESP32 connects to a Wi-Fi network and hosts a RESTful API, enabling remote control of the projector through HTTP requests.
- Host: GitHub
- URL: https://github.com/mk-it-easy/optoma-esp32-remote
- Owner: mk-it-easy
- License: apache-2.0
- Created: 2025-01-27T19:11:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-27T20:07:08.000Z (over 1 year ago)
- Last Synced: 2025-01-27T20:27:01.071Z (over 1 year ago)
- Topics: arduino, esp32, esp32-arduino, home-automation, optoma-zh403
- Language: C++
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Optoma ESP32 Remote
This project allows you to send commands to an Optoma ZH403 projector over RS-232 via a Wi-Fi REST server using an ESP32 microcontroller. The ESP32 connects to a Wi-Fi network and hosts a RESTful API, enabling remote control of the projector through HTTP requests.
**Note:** This is not an official Optoma repository. It is an independent project created to facilitate remote control of the Optoma ZH403 projector.
## Features
- Send power on/off commands to the Optoma ZH403 projector.
- Communicate with the projector using RS-232 protocol.
- Control the projector remotely via a Wi-Fi REST server.
## Hardware Setup
### Components
- ESP32
- MAX3232 TTL to RS-232 Adapter
### Connections
- ESP32 Pin 16 (TX2) -> MAX3232 TX
- ESP32 Pin 17 (RX2) -> MAX3232 RX
- ESP32 5V -> MAX3232 VCC
- ESP32 GND -> MAX3232 GND
```
+-------------------+ +------------------+ +------------------+
| ESP32 | | MAX3232 | | Optoma ZH403 |
| | | | | |
| 5V ---------> |-------| VCC | straight | |
| GND ---------> |-------| GND |------------| |
| TX2 (16) ----> |-------| TX | RS232 | |
| RX2 (17) ----> |-------| RX | | |
+-------------------+ +------------------+ +------------------+
```
## Setup
1. Connect the ESP32 to the Optoma ZH403 projector using an RS-232 interface. Ensure you use a straight-through cable, not a crossed (null modem) cable.
2. Upload the code to the ESP32.
3. Configure the Wi-Fi credentials by connecting to the 'Optoma ZH403 - ESP Remote' access point and provide your Wi-Fi credentials.
4. Access the REST server to send commands to the projector.
## Usage
- Power On: Send a GET request to `/?command=ON`.
- Power Off: Send a GET request to `/?command=OFF`.
## Example
```sh
curl http:///?command=ON
curl http:///?command=OFF
```