Write an ardunio program which turns a 32 bit into a series of bits on the GPIO. Instead wire your ardunio GPIO pin directly to an ESP32 pin. The modules just add RF pixie dust, forget them FTM. The 433MHz RX module returns a series of bits. The 433MHz TX module accept a series of bits. I have not used RMT RX & cannot put time in ATM but I can help you break the problem down. The manual was not clear about threshold units etc so best that you quickly understand the RMT in isolation.įorget the remote examples, they are much more involved. If you can reduce your Ardunio bps and/or reduce the packet length all the better until you are working.ĮDIT: Suggest you wire an ESP GPIO to your RMT and then switch GPIO on/off based on esp_timer_get_time() and see what comes out of the RMT. Fine if you send Arduino to Arduino but not when you have your code in the loop. You may find that you cannot divide your clock properly to match the Arduino (which is software bit banging) and/or the Arduino times are not accurate. Next you tell the RMT how many tick samples changes to ignore (the filter) before deciding to change the bit - for example the bit is high until you have 4 ticks of low. You are free to use any sample (tick) interval you want provided you sample the Arduino 2000bps adequately.Ĩ ticks per bit is cool but you could use more or less. The tick is your smallest measure of time and is when the RMT will sample your input. I have not used the RMT module in RX mode but is seems that you configure an input clock to give your base 'tick' Samples per bit = 8 = 500uS/8 = 62.5 uS between samples of the input signal The key points are packet format and bit length.īit length - how long a bit is! 1/2000bps = 500uS The code you quote is talking about a bit stream & message packet format rather than RF. This results in the first part of your message being drowned out hence you send 'training bits' (or just send the data a few times). The only gotcha is that the RX module may tend to ramp up the volume when nothing is happening. You give them a sequence of bits, they give you bits back. Don't let the radio/modulation voodoo spook you.
0 Comments
Leave a Reply. |