I want to use one of those cheap 433mhz transmitter/receivers as a remote control for an arduino (actually, I'll be using a Tiny, but I'm developing on perfboarduino that behaves like an Uno).
THE ARDUINO IS BEING CONTROLLED - NOT THE OTHER WAY AROUND. I know there are a billion projects about using your arduino to drive the transmitter; that's not what I'm doing.
I'm just completely lost on how to write the code for the receiver. The receiver is producing a constant gibberish signal from interferance, and even in a faraday cage, the receiver switches between 1 and 0. My understanding of the automatic adaptive gain is that it will adjust gain appropriately... but this means that what I'm listening to is going to be:
I've stared at this, and I just have no idea where to even get started on writing something that can pick the signal out of the gibberish. It's not that I can write something but it doesn't work - I CANT EVEN DO THAT. I have just no idea - none at all - how to pick the signal out of the gibberish. (honestly, this feels really wierd emotionally - I cannot remember another time when I've looked at a programming or hardware task and had NO IDEA AT ALL how to even get started).
I've done some simple arduino programming before, and I've done a lot of programming in other languages - and, I don't know what critical insight i'm missing, but I just have no clue how to do this.
I've seen a few examples of things that receive 433mhz on arduino, but they are all directed towards reading out the pattern in order to design code that works, and so they start from a known point, and don't have to do the parts that I'm clueless on.
Maybe the problem is that there's no way to get a feel for this without accounting for the interferance, since the receiver will generate shit on it's own, even in a faraday cage, so I can't start from something simple, because the hardest part needs to be done before anything can be done. Like, I wanted to start out with something that just turned a light on when it received something. But of course, THAT isn't going to work, because when there's no signal, the signal keeps switching from high to low.
Does anyone have an example of an Arduino sketch that does something when receiving a code from 433mhz receiver? I figure if I saw how it was being done, I'd have no trouble adapting it to my goal, but I'm clearly missing some critical bit of knowledge.
I am also designing the transmitter (this side is trivial) - the transmissions will be sent by a different MCU (an Espruino), so I can design the code however I want; this was recommended:
If you're making your own signal format, it seems a good form is: A ~4ms '1' signal - which is easy to detect and which gives the receiver time to adjust A series of pulses - PWM is easiest, maybe 0.7ms for a 0, and 1.3ms for a 1, with a gap of ~0.5ms
Please help - I'm desperate here.