The 443Mhz remote for my blinds is falling apart, so i am starting a new project: i want to capture the 433Mhz signal, have it replayed by an esp32 that i eventually want to control through home assistant.
Step 1, capturing the signal went quite ok: i bought an rtl-sdr v4, installed universal radio hacker and not much later i had the binary data being sent for down, up and stop signals. The modulation is ask, and the data rate seems to be 2000 bits per second.
I also expected step 2, retransmitting the signal through one of those transmitters to be easy, but whatever i try, i can not get these transmitters to transmit anything: when i load the spectrum analyser of universal radio hacker, i clearly see something being transmitted when i press the remote, but when i trigger my arduino code through one of these transmitters, nothing seems to be transmitted at all.
The transmitters i bought to play around with:
- HopeRF RFM85W 433MHz RF
- T1 433MHz RF Transmitter - 2-12V
- and then one of those receiver/transmitter kits used in the dronework shop video about 433Mhz transmission
My code:
#include <RH_ASK.h>
#include <SPI.h>
RH_ASK driver(2000, 12, 11, 10);
void setup() {
Serial.begin(9600); // Initialize serial communication for debugging
// Initialize ASK driver
if (!driver.init())
Serial.println("Initialization failed");
else
Serial.println("Initialization successful");
}
void loop() {
uint8_t data[] = {0x48, 0x65, 0x6C, 0x6C, 0x6F};
// Transmit data
driver.send(data, sizeof(data));
driver.waitPacketSent();
Serial.println("sent");
}
This is basic example code ... i dont think i have done anything wrong here (but would love to be proven wrong
)
A photo of how this is connected:
And as requested, a handwritten schema ![]()
I already tried switching the cables. So arduino is connected to pc, the transmitter is connected to 5V and ground of arduino, data pin of transmitter is connected to pin 12.
In the top right of the photo you can see the tripod to which the rtl-sdr antenna is connected. When i press the remote, i clearly see something being transmitted on 433Mhz. But i dont see anything being transmitted by the arduino, with any of those 3 transmitters.
Any ideas?