Have in mind that for each part below, we need it two times in order to make two radio chat modules and test the connection. See full part list for all the components. But we need the 3D printed case to place everything inside it so download the STL files and print it. Then go to the past tutorial and get the GERBERs for the keyboard PCB and make it. We need an Arduino NANO, an OLED display, the battery with a small USB charger and the radio module. I'm using the CC1101 radio module. Extra, we need a buzzer and a sliding switch.
- 1 x keyboard PCB: See past tutorial
- 1 x Arduino NANO: LINK eBay
- 1 x 128x64 OLED display: LINK eBay
- 1 x CC1101 radio module: LINK eBay
- 1 x 18650 battery: LINK eBay
- 1 x TC4056A charger: LINK eBay
- 1 x active buzzer: LINK eBay
- 1 x sliding switch: LINK eBay
- 1 x 3D case: Download STL
- 4 x Threaded Round Insert : LINK eBay
See the schematic below. Once you have the keyboard made, the rest is very easy. Just make the connections as below. Just be careful, upload the code from below before you connect the Tx and Rx wires from the keyboard. Otherwise the code won't upload. Connect the battery to the charger and the charger output to the sliding swith and that to 5V that will power everyting. The Radio module will be connected at 3.3V.
First we make the power part. We solder the battery to the small charging module with USB input. Then, we soler wires to the output of the module and the negative wire goes to Arduino ground and the positive to one pin of the sliding switch. Then from the switch, we connect a red wire to the 5V pin of the Arduino. Now the circuit has power.
Ok, now we connect all the wires from all modules except the keyboard. Before we connect that, go below, and downlaod the code and uplad it to the Arduino and then you could connect the keyboard Rx and Tx pins. Now, slide the switch and test if it works. If yes, we could now place all the parts inside the 3D printed case.
Get the 3D printed case and some brass threads inserts. Heat the soldering ion and push the thread inside the holes. Now we could use screws. First thing I do is to glue in place the OLED dsiplay on the fron part of the case and also screw in place the keyboard with some 3mm plastic screws.
Glue everything inside the case. Pass the antenna through the hole and glue that in place as well. make sure the charging module is in front of the charging hole and that the USB can fit ok. Glue the sliding switch to the side and now we could close the case. Use some 3mm screws for that.
Below you have the code for the radio chat module. The code is the same for both transmitter and receiver. So, just download it from below and upload it to both Arduinos and then we could make a test and see if it works and we could caht between the modules. But you will need some libraries as well. On th link below you will find those as well for the CC1101 radio module and the OLED display. So download those and install them to the Arduino IDE. Then, uplaod the code.
#include <ELECHOUSE_CC1101.h> //Download it here: http://electronoobs.com/eng_arduino_ELECHOUSE_CC1101.php
#include <Adafruit_GFX.h> //download here: https://www.electronoobs.com/eng_arduino_Adafruit_GFX.php
#include <Adafruit_SSD1306.h> //downlaod here: https://www.electronoobs.com/eng_arduino_Adafruit_SSD1306.php
#define OLED_RESET 5
int buzz = 3;
In the video below we have the test and as you can see we could send 60 characters and receive the same amount. The top part of the screen is for the sneder and the bottom half of the display is for the received text. You could also set the name first so all other users could know who you are so you could use this with multiple users.
See the tutorial video below for more information. I hope you like this tutorial and maybe support my work on PATREON. Thank you!