Author Topic: Implementation of a wireless 2.4 Ghz Radio Frequency connection, info ?  (Read 473 times)

0 Members and 1 Guest are viewing this topic.

Offline Nlight

  • Thread Starter
  • Posts: 53
  • Location: France
Hi all,

There is a future keyboard that I aim to design with no rush, I have at least another one to build before this one. I would love to make 2.4Ghz RF connection for it, as I don't like, at all, bluetooth, too much disconnection problems (feel free to enlight me and change my mind).

As I am not skilled in electronics, because I never practice and keep forgetting the few I've learned, I don't know if the following idea is viable, thoughts ? links ?
Edit : Yes, this is definitely the right track
Edit 2 : On the picture, just replace the word keycodes by scancodes



Thanks  :)
« Last Edit: Sun, 29 March 2020, 18:46:46 by Nlight »

Offline Nlight

  • Thread Starter
  • Posts: 53
  • Location: France
Re: Implementation of a wireless 2.4 Ghz Radio Frequency connection, info ?
« Reply #1 on: Fri, 27 March 2020, 16:24:15 »
Ok, I digged a bit, and I have a good start :
We need a transceiver module. The module's chip is a NRF24L01, seems popular.
Here is a pair of cheap modules using that chip :
https://fr.aliexpress.com/item/32820450141.html

and here is a noob tutorial :

additional vids, same thing, but some additional infos :

different wireless modules explained :
https://youtu.be/vxF1N9asjts

While I used a teensy 2 in my last keyboard, the process was quite straightfoward,  I'm still lacking practice with arduino and alike, this is progress nonetheless.
I intend to use a Teensy 3.2, it has several pins used for SPI, however, I am a bit lost/conused by the availables pins on it :
  • cs
  • sck
  • din : "Data In" I guess
  • dout : "Data Out" I guess
while the pins on the transceiver module are :
  • TRQ : ???
  • MISO : Master Input Slave Output master being the MCU (arduino like, here a teensy), and slave the RF module. Connects to the SPI Din pin
  • MOSI : Master Output Slave Input, so connects to the SPI Dout pin on the teensy 3.x
  • SCK : well that one's easy
  • CSN : guess it goes onto the CS pin
  • CE : ???
  • VCC : easy enough
  • GND : yeah, obvious too

If any of you could point me the right direction that would be great, thanks :)

[tags] : transceiver module radio frequency 2.4ghz wireless RF arduino teensy
« Last Edit: Sun, 29 March 2020, 06:09:28 by Nlight »

Offline rrrsss

  • Posts: 24
Re: Implementation of a wireless 2.4 Ghz Radio Frequency connection, info ?
« Reply #2 on: Sun, 29 March 2020, 23:00:21 »
some projects are already built on this idea

NRF24 chip based is here from tmk: https://github.com/ahtn/tmk_keyboard/tree/wireless
while a totally new firmware is here: https://github.com/ahtn/keyplus

There's also Mitosis/Chimera that's based on nRF52 chips, based on tmk/qmk too.

Most of these are split keyboards but can be utilized to create a single board with dongle receivers

Offline Nlight

  • Thread Starter
  • Posts: 53
  • Location: France
Re: Implementation of a wireless 2.4 Ghz Radio Frequency connection, info ?
« Reply #3 on: Mon, 30 March 2020, 06:22:42 »
Awesome ! Thanks, that's exactly the kind of input I need  :thumb: