Updated Simple ESPSomfy RTS device (markdown)

rstrouse 2023-02-26 11:41:52 -08:00
parent c30e43f492
commit d975a52924

@ -13,9 +13,25 @@ For this project you need three items. First you need an ESP32, next you need a
* 8 - Dupont female/female connectors
## Sourcing an ESP32
I don't profess to be an expert on ESP32 models but if you get a 30-pin version of the ESP32S WROOM module from any of the online suppliers this will do nicely. The advantage of that is I have included the compiled binaries in the project so you can upload those directly without having to compile them.
The first thing you will need to do when choosing an ESP32 module is choose whether you want to connect to it via an ethernet cable or over wifi. The only things you need to ensure is that the board has at least 4Mb of flash and at least 5 pins that can be used as input or output and one pin that can be input only.
So long as you get a board with a minimum of 4Mb of flash, you can upload the binaries included in the releases whether it is wifi only or ethernet capable. If you buy one of these you can simply download the firmware and upload it to the ESP32 each time I release a software update. There is a handy uploader that is included with the firmware that will allow you to perform a remote firmware update without ever touching the module.
### Wireless boards
Most any wireless ESP32 will suffice to install ESPSomfy RTS if they meet the specs mentioned above.
### Wired Etherned
ESPSofmy RTS starting in version 1.3.x has support for wired ethernet ESP32 boards. For my production device I chose wifi and an ESP32 Wroom but I have hooked up a WT32-ETH01 to try it out and it works fine. Bear in mind that most of these boards have quirks to get them initially programmed. Most of them do not have a serial USB port on them and they share pins that you will likely use for your transceiver. So when initially programming you may find yourself disconnecting the transceiver to get the serial port to work. I have built in support for the most common boards but there are custom settings so you may add your own based upon the board specs.
Supported Ethernet Boards:
* WT32-ETH01
* Olimex ESP32-POE
* Olimex ESP32-EVB
* LILYGO T-Internet POE
* wESP32 (all versions)
***IMPORTANT:*** Always verify the settings for the board are correct. While I have pulled the information for the board settings from currently available information, manufacturers can change the spec sheets so incorrect Ethernet settings can actually destroy and ESP32.
If you buy one of these you can simply download the firmware and upload it to the ESP32 each time I release a software update. There is a handy uploader that is included with the firmware that will allow you to perform a remote firmware update without ever touching the module.
## Picking a CC1101 Transceiver
Originally, I bought a cc1101 transceiver with a spring type antenna and could not figure out why it would not consistently receive commands from my remotes. I then went about purchasing several other transceiver modules thinking that all my code is always perfect, so the hardware must be defective.
@ -31,6 +47,9 @@ If you bought one of the 10-pin transceivers, search the interweb for the wiring
The hardest part of the inital connection is determining which pins are which on the transceiver. Sadly, many of the available modules only label the pins with a number. As it turns out the mapping goes like this if you bought one of these boards.
***NOTE:*** The pinout for the ESP32 will be different if you chose an ethernet model. The GPIO pins below will not be available on your board. The ethernet PHY steals many if these. However, you can simply read through the datasheet and choose from the list of available pins. So you do not have to disconnect your radio to use the serial port though you should not choose GPIO0 or GPIO2 for any of the radio pins. As an aside start with one of the input only GPIOs for the RX. These are typically GPIO32+.
| Pin | Description | ESP Pin |
| --- | ----------- | ------- |
| 1 | GND | GND |