Re: Esp32 433mhz communication
Posted: Mon Dec 10, 2018 8:27 pm
Could you share the config? I still cant figure out how to tune it to read 2000bps from RadioHead.
I think in such case you can use RMT or SPI just fine. Arduino library probably wraps everything in its own protocol which makes the whole process slower and uncontrollable. I'd like to also test NRF24L01 with larger data like video.I just want to receive one a float as string once every minute and dont know how to do itRMT is too complicated for me, and all the examples are only for how to read NEC codes, so im gonna adapt the Arduino library for my needs.
Code: Select all
for(i=0; i<bitPatternLength; i++)
{
if(bitPattern[i]==0)
SetGPIOLow()
else
SetGPIOHigh()
WaitFor(1mS)
}Indeed. Most examples encode 3:1 however. I'm not smart enough to argue why not & its only a small extra step. Actually one reason may be that it gives a '1' in all even when data is 0 and so trains the RF. Also I suppose you can lock onto a signal easier.I think he can send whole bytes over SPI.
Code: Select all
Regarding SPI - could it be used with a RF module?