7a9ee138db
* Lower default SPI Clock Lowered the default SPI clock as some displays might show glitches with the SPI frequency set above 40MHz. * Added missing library components Added the missing library symbols, footprints and 3D-models. These are all in a project-specific library called "omoteLib" (#19) * Implement MQTT publish in HardwareRevX Change-Id: I7b6955a662716f83dd8daf34128a353efa26bf80 * add batteryStatus info and allow access to it through the interface. Change-Id: Ieb748b1478d532f52ffff9edc783de3cbcf9f303 * rename hardwareAbstractionInterface Change-Id: I39a9bcd7fc4d92b271a40a869faae7870d6d88a1 * rename HardwareAbstractionInterface files Change-Id: Ifb6a96c38da61cb80aabc6c929e392a2fc91cf29 * fixed a typo * Re work directory structure to support new architecture Still need to get the Sim building * lvgl simulator working. * put init code into HardwareSimulator Class * ensure all targets build remove unused assets.c add new github actions that reflect new simulator * clean up build defines by using platform.ini to override default lv_config. remove unneeded include directory. Change-Id: Id63baa80dae89977d239a539b5db9ff67266e1d6 * Fix ESP32 Windows build after battling escape characters. Add esp32 Windows target to Actions. * Fixed screen height - corrected the SCREEN_HEIGHT - small graphical changes in OmoteUI to make it look like in the main branch --------- Co-authored-by: Max <Max-MKA@web.de> Co-authored-by: Matthew Colvin <Matthew.Colvin@garmin.com> Co-authored-by: Matthew Colvin <35540398+Mc067415@users.noreply.github.com> |
||
---|---|---|
.github/workflows | ||
CAD | ||
LVGL Simulator | ||
PCB | ||
Platformio | ||
LICENSE | ||
Menu.gif | ||
P1030424_small.jpg | ||
parts.jpg | ||
README.md | ||
sim GIF.gif | ||
Solder GIF.gif |
OMOTE - Open Universal Remote
Overview
OMOTE is an ESP32 based open source universal remote. Its capacitive 2.8” touchscreen provides an intuitive and snappy user interface for switching devices and settings. No hub or docking station is required as the remote features infrared, Wi-Fi and Bluetooth connectivity. With its well optimized power consumption, OMOTE can run for months on a charge. And since the design files are open source, you can fully customize them to your devices and needs.
Features
- 2.8” 320x240px capacitive touchscreen
- Ergonomic, fully 3D printed case
- Responsive LVGL user interface
- Built in infrared, Wi-Fi and Bluetooth
- Press any button or simply lift the remote to wake it up
- Up to 6 months of battery life using a 2000 mAh Li-Po battery
Dependencies
- espressif32@^6.1.0
- lvgl/lvgl@^8.3.4
- bodmer/TFT_eSPI@^2.5.23
- sparkfun/SparkFun LIS3DH Arduino Library@^1.0.3
- crankyoldgit/IRremoteESP8266@^2.8.4
- adafruit/Adafruit FT6206 Library@^1.0.6
- knolleary/PubSubClient@^2.8
- Chris--A/Keypad (modified for inverted logic)
The State of This Project
The hardware for OMOTE is designed to be easily replicated, using 3D-printed parts, a 2-layer PCB and commonly available components. The mechanical and PCB design can be considered mostly complete. Still, there might be areas for improvement, for example the IR range could be further optimized.
There is still a lot of work left to be done in terms of software. Right now, network settings, buttons and screen layouts are hard-coded. Controlling devices via MQTT is more of a tech demo at the moment and the network connection might not be perfectly reliable. Making the interface configurable, e.g. using a web interface, is a long-term goal.
To Do
Currently I have no idea if and when this will be done. But these would be the next steps:
- Easier configuration
- Document the current process of customization
- Store the configuration in Flash (e.g. as a editable json file)
- Add an interface for graphically editing the configuration
- Complete the on-device settings page
- Make the Wi-Fi connection more stable
See the open issues and discussions for a full list of proposed features (and known issues).
Getting Started
OMOTE might look like a finished product, but especially the software is not "consumer-friendly" yet. If you want to build your own remote and customize it to your devices, you should be somewhat experienced with electronics and programming.
Simulator
You can try the user interface on your PC using the LVGL simulator. Just follow these steps:
- Install Visual Studio, including the "Desktop development with C++" workload. You can use the free Community edition.
- Start Visual Studio and open LVGL.Simulator.sln
- Make sure that the build target is set to x64 and then run the local Windows debugger.
Hardware
The central component of OMOTE is its PCB. If you want to build the PCB yourself, you will need SMT-reflow tools like a hot plate or a hot-air station. The 2-layered board and a solder paste stencil can be ordered from any PCB manufacturer using the KiCad files. Manufacturers like OSHPARK or Aisler will accept these files directly. For JLCPCB or PCBWay, you can use their plugin to export the optimized Gerber files.
I sourced the electrical parts from LCSC, but most of them should be available from the usual suppliers like Digikey or Mouser as well. You can check out the BOM for all the necessary components.
The housing and buttons can be printed using PLA or PETG. I sliced the models with PrusaSlicer with a layer height of 0.25mm and printed them using ColorFabb PETG. It is important that the case part is printed with its flat side towards the print bed using lots of support structures. If your printer is well calibrated, the cover plate will snap onto the case.
Software
The remote can be charged and programmed via its USB-C port. Open the PlatformIO project to compile and upload the code to the ESP32. Within the code, you can edit the Wi-Fi settings and the button mapping. OMOTE features a IR-receiver which is not currently implemented in the code. You can still modify the ESp8266-IRRemote RecvDump example to read the codes from your TV remote.
Contributing
If you have a suggestion for an improvement, please fork the repo and create a pull request. You can also simply open an issue or for more general feature requests, head over to the discussions.
License
Distributed under the GPL v3 License. See LICENSE for more information.
Contact
Maximilian Kern - kernm.de
Project Link: https://hackaday.io/project/191752-omote-diy-universal-remote