With the arrival of the RF-Nano a scanner can be built using just an RF-Nano, a cheap ebay OLED , a PP3 battery and a few short pieces of wire - its the simplest project to build yet is incredibly useful for displaying the spectral output of any 2.4g transmitter.
The RF-Nano is available from Aliexpress: https://www.aliexpress.com/item/32980796969.html
OLEDs are plentiful on ebay, eg: https://www.ebay.co.uk/itm/1-3-OLED-LCD ... 2967389693
If you buy the 1.3" version there are no code changes to make, just load the sketch as is.
If you want to use the smaller 0.96" display you need to edit the file SSD1X06.h
You can do this in the IDE by clicking on the tab labelled "SSD1X06.h"
The as-is settings for the 1.3" OLED are:
Code: Select all
#define SSD1106 // comment out one or other of these lines so as to leave the definition active for the type of display driver you have
//#define SSD1306 // comment out one or other of these lines so as to leave the definition active for the type of display driver you have
Code: Select all
//#define SSD1106 // comment out one or other of these lines so as to leave the definition active for the type of display driver you have
#define SSD1306 // comment out one or other of these lines so as to leave the definition active for the type of display driver you have
The photos show a 1.3" display:
Heres - the diagram - it really is this easy, but check the display annotation as some OLEDs have the
four pins in a different order, as you can see from the photo above
By borrowing the redundant A6 & A7 input-only pins for the power connections, the display can be rigidly mounted on a 4-pin header soldered to A4, A5, A6 & A7 but only IF the order of vcc, gnd, clock & data align correctly: (if not its only 4 wires....)
...and the sketch.
This differs from the original only in that the CE and CSN pins are transposed (D9 and D10 swapped):
Since this project was posted a different type of RF-Nano has appeared - it has a red PCB and is made by 'Tstar Tech' and has two differences - the CE and CSN pins are changed to 7 and 8, and its not the 'plus' version of the NRF24L01:
This is the 'universal' version which can be configured for the small 0.91-inch 128x32 or either size 128x64 oled, and any type of RF-Nano, but see notes here on how to configure for other displays and boards:
This is Martins original code from 2016 which suits the original diagram for the separate NRF24L01+ and Nano:
Cheers
Phil