Thread

Index > teleproject > Receiving NRF wireless
Author/Date Receiving NRF wireless
memecode
15/08/2024 1:36pm
As part of testing all the functions of the v3 PCB I got up to testing the NRF wireless port. After a lot of mucking around I could get to the point where the sending side (ESP32 + PCBv3) could send data and receive back an "ACK" saying the destination got the message. The destination being this lil fella:




However after no amount of checking the receiving side settings would that CH340 based adapter pass the received bytes back up to the serial connection to the PC. It was very frustrating to know it's receiving the packets but not giving me the data.

So I started to look for alternatives. As I had a Teensy 3.6 board lying around I thought to myself "why not try that?" as a receiver. So I wired it up to the NRF board and copied over the NRF test code I has from the ESP32, converted it to receiving mode and got it to compile and upload to the Teensy. Immediately I got available data. And after printing that out I was getting the right packets. First time!

Now what's even more interesting to me is that the Teensy can operate as a MIDI class compliant device! What that means in practice that I no longer need to have some virtual MIDI software running on the laptop to convert the NRF packets to MIDI. I can put all that in the Teensy and have that show up as a MIDI hardware device. Which may also mean better latency!? Maybe? IDK. And I can move it from computer to computer without installing software.

After all that the NRF wireless link is now considered "working" and really the next step is the wood working required to get the prototype built. Which I'm likely to get into next Wednesday.
Reply