Small NRF24 receiver PCB

Help me by sharing this post


PREVIOUS TUTORIAL       NEXT PART

In this tutorial we will see how I've made this tiny PCB for a radio receiver. It is based on the ATMEGA328 chip and the NRF24 radio module. It has 4 outputs with H bridge and that means we can control the speed and direction of rotation of 4 DC motors. Ihas one more MOSFET output that could be controlled with PWM signal. You could use this for RC toy cars, drones, RC planes and so on. All you need is to power 5V to this PCB and connect motors, servos or any actuators to the outputs.




PART 1 - What we need

For this project we need a few components. See full list here on this link. We need taht small SMD version of the NRF24 radio module and the microcontroller of the Arduino, and that's the ATMega328p- au chip. Then we need 2 H bridge ICs, the MC1508, and the rest are small parts such as capacitors, resistors and diodes. We will need a diode with 0.5V dropvoltage in order to get the 3.3V from the 4.2 battery.

We need:
Arduino homemade tetris game LED





PART 2 - Schematic

The schematic has a few connections. First, we need the basic configuration of the ATMega chip, and for that we need the 16MHz resonaror, a few resistors for pullups and some capacitors. On the bottom left part of the scheamtic we have the configurations of the two H bridge ICs and on the right, a small MOSFET with a pulldown. On the top left corner we have the supply input and some pads for the NRF24 SMD radio mdoule. To get a lower voltage for this radio mdoule that works at 3.3V more or less, I've used just a simple diode.


Arduino schematic NRF24 small SMD receiver PCB





PART 3 - Solder the PCB

To make the PCB is very easy once you have all the components. Just follow the schematic above in order to see what components you need and the value of each resistors, capacitor and the rest of the components. But, I recommend you to start with the ATMega chip basic configuration. So solder the chip, the 16MHz crystal, the R10 and R11 resistors, the C3, C2 and C1 capacitors and power the chip. Connect an FTDI programmer to the UART pads on the abck and try to uplaod any test code.


Arduino NRF24 PCB plane radio


Below I have the PCB ready. Connect the FTDI programmer to the UART pads, to RX, TX, DTR pin adn power. Now, in order to test the chip, what I usually do is to uplaod a test code with a counter and Serial print. After I uplaod that I open the serial monitor and if I get the counter on the monitor, that means the IC works. Now the baord is ready. Let's see how we could use it.


Arduino NRF24 drone receiver PCB homemade




PART 4 - Example 1: DC motor control

Ok, for the first test I've made a simple RC car. Connect the battery at the input. Then add 2 DC motors at the outputs AR and AL. Then go below and downlaod the example receiver code. You will need the radio controller we've made in this tutorial so use the transmitter code from that tutorial. If you don't have the radio controller, just use the transmitter code from that tutorial and make your any kind of radio controller with potentiometers or cheap joysticks.



int AL1 = 5;
int AL2 = 6;
int AR1 = 2;
int AR2 = 4;

/**************************************************/

void setup()
{
  pinMode(AL1,OUTPUT);
  pinMode(AL2,OUTPUT);
  pinMode(AR1,OUTPUT);
  pinMode(AR2,OUTPUT);
  .
  .
  .
Arduino rc toy car motor DC




Help me by sharing this post












yt_link
insta_link
fb_link
twitter_link

NRF24 receiver
page 1/2



ADVERTISERS
PCBWAY PCB service





Gearbest Alfawise U30 2.8 inch Touch Screen DIY Desktop 3D Printer - U30 EU Plug Black
Alfawise U30 2.8 inch Touch Screen DIY Desktop 3D Printer - U30 EU Plug Black only $$162.89

AFFILATE

Gearbest Creality3D CR - 10S 3D Printer - EU Plug Upgrade Version Coffee and Black
Creality3D CR - 10S 3D Printer - EU Plug Upgrade Version Coffee and Black only $$352.94

Gearbest Creality 3D Ender-3 V-slot Prusa I3 DIY 3D Printer Kit 220 x 220 x 250mm Printing Size - EU Plug Black
Creality 3D Ender-3 V-slot Prusa I3 DIY 3D Printer Kit 220 x 220 x 250mm Printing Size - EU Plug Black only $$153.84

Gearbest Alfawise U20 Large Scale 2.8 inch Touch Screen DIY 3D Printer - EU - U20 EU Plug Black
Alfawise U20 Large Scale 2.8 inch Touch Screen DIY 3D Printer - EU - U20 EU Plug Black only $$253.39