ESP32 + NRF24L01+ library to control Levolor blinds
This is a library known to work with ESP32 and NRF24L01+. It allows direct control of Levolor blinds by replaying stored remote codes. The easiest way to use this is to install the library and open the Directolor example. You can then clone one of the Directolor remotes to a remote you own. Then you can program your shades to the new cloned remote or using Directolor and control the blinds with either Directolor or your own remote.
This differs from Wevolor (https://wevolor.com/) in that you DON'T need a Levolor 6 button remote.
Typical usage:
Make sure you have the prerequisites:
- esp32 board manager version 1.0.6 or higher
- SerialCommands (by Pedro Tiago Pereira) version 2.2.0
- RF24 (by TMRh20, Avamander) version 1.4.5
- CRC (by Rob Tillaart) version 0.3.1
Install the solution
- download solution, install to your libraries folder
- open the GetBlindCodes example
- choose to either copy the Directolor remotes to your remotes or copy your remotes to Directolor
Copy Directolor remotes to your remotes:
- open the battery door on your remote
- using a paper clip or similar, put the remote into duplicate mode
- hold the all key on your current remote
- using the serial monitor, choose the correct remote, and send the join command
- reset your shades to the remote you just duplicated
Copy your remotes to Directolor:
- using the serial monitor, put Directolor into Remote Search Mode
- press the stop button on your current remote with a single channel selected
- using the serial monitor, dump the remote codes
- copy the remote codes into Directolor.h
Test that you can control your shades via the serial monitor (open, close, stop, etc)
Once it is working, open the Directolor example. Update your WiFi params. Connect to http://directolor (or the IP address - logged to serial monitor) Test that you can control your shades via the web interface
Please report any issues here.
To connect the ESP32 to the NRF24L01+ connect:
(Some have recommended a 10uF cap across ground and 3.3V - I haven't needed the cap.)
ESP32 pin | rf24 pin |
---|---|
ground | 1 |
3.3v | 2 |
22 | 3 (CE) |
21 | 4 (CSN) |
18 | 5 (SCK) |
23 | 6 (MOSI) |
19 | 7 (MISO) |