Skip to the content
4 layers30.6 × 67.9 mmReceiver, the printed circuit board in 3D

Table of contents: 1. Design Overview 2. Software 3. Electrical 4. Bill of Materials ## Design Overview The three main components in building this car are the software, electrical, and the mechanical aspect of the car…

Size
30.6 × 67.9 mm
Copper layers
4
Thickness
1.6 mm
Parts
46
Nets
41
Pads
152
Tracks, vias
210, 32
Pours
2
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
28 Apr 2025
Updated
5 Jan 2026

Overview

Receiver is an open-source printed circuit board by finnhittson, from the finnhittson/RC-Car-Build-Workshop repository on GitHub. It is a 4-layer board of 30.6 × 67.9 mm with 46 parts on 41 nets, routed with 210 tracks and 32 vias.

It is built around the PIC32MX170F256B-I/SO and AMS1117-3.3. Its parts include 13 resistors, 7 capacitors, 6 diodes, 5 transistors and 4 ICs. It belongs with the PIC boards of this library.

Main components

2

README

README.md

9V Battery Power RC Car

This repo documents how to make an RC car and transmitter using 3D printted parts, a PIC16LF18325 microcontroller, nRF24L01 RF modules, a 9V battery to power the car and the transmitter, and other basic hardware components.

RC_Car

Table of contents:

  1. Design Overview
  2. Software
  3. Electrical
  4. Bill of Materials

Design Overview

The three main components in building this car are the software, electrical, and the mechanical aspect of the car and controller. The following sections talks about each of these parts in detail.

Software

Using the PIC16LF18326 as the microcontroller, the driver code was written exclusively in C. The driver code was programmed onto the PIC16 using the MPLAB SNAP and the MPLABX IDE. The software components are broken into the following three files:

  1. main.c: runs main finite state machine responsible for executing high level transmitter/receiver instructions for controlling motors and servos for the receiver and reading analog control inputs for the trasmitter.
  2. spi.c: helper SPI functions for transmitting and receiving messages to and from the nRF24L01 radio module.
  3. nRF24L01.c: helper functions for configuring the nRF24L01 radio module using the spi.c functons.

Because this project is intended to be a workshop only one version of code or main.c file is written for simplicity. Therefore, for the main.c to differentiate between running transmitter code and receiver, a GPIO pin on the micro is dedicated for this indication. The pin under questions is RA5 (pin 2) from the tables below which descripe the pinout for the PIC16 in both the receiver and transmitter. If RA5 is pulled high, then the main.c executes transmitter code only. Similarly if RA5 is pulled low, then the main.c only executes receiver code.

Transmitter Pin DescriptionReceiver Pin Description
Pin NumberPortNet NameNotesPin NumberPortNet NameNotes
1$V_{DD}$3.3Vpower supply1$V_{DD}$3.3Vpower supply
2RA53.3Vtype select2RA5GNDtype select
3RA4CSNSPI bus3RA4CSNSPI bus
4RA3MCLRprogram/NC4RA3MCLRprogram/NC
5RC5MOSISPI bus5RC5CEradio enable
6RC4SPEEDpot input6RC4PWM5.1motor PWM
7RC3STEERpot input7RC3PWM6servo PWM
8RC2IRQradio interrupt8RC2PWM5motor PWM
9RC1MISOSPI bus9RC1MISOSPI bus
10RC0SCKSPI bus10RC0SCKSPI bus
11RA2CEradio enable11RA2MOSISPI bus
12RA1STEER_TRIMpot input12RA1IRQradio interrupt
13RA0LEDstatus13RA0LIGHTSstatus
14$V_{SS}$GNDpower supply14$V_{SS}$GNDpower supply

The following image shows the state machine executed on the transmitter PIC16. When the PIC16 detects its a transmitter then it starts the state machine with the inital state of COLLECT_ADC_DATA. In the COLLECT_ADC_DATA state, the PIC16 cycles through the three ADC ports to collect their value. Once complete, it transitions to the TRANSMIT_ADC_DATA state where it packages up this information into a packet and sents this information over the SPI bus to the nRF24L01 radio module. Once this is complete it then transitions to the CLEAR_INTERRUPT state. In this state the PIC16 is waiting for the interrupt line to go low which indicates a successful transmission to the receiver. From here the state machine then transitions to a DONE state where the hardware to read the analog pins is reinitialized and the process repeates itself after DONE transitions to COLLECT_ADC_DATA.

Transmit_state_machine

The transmission packet is 8 bytes long and has the following breakdown.

  1. Byte 1 is the radio ID and is chosen by the user as an extra indentification method so that in the instance when the radio receives a packet from another RC car on the same channel, it will only execute the instructions if the packet come from a transmitter with the same ID.
  2. Byte 2 is the high byte of the ADC conversion value for RC4. The PIC16 has a 10 bit ADC so it takes two bytes to store its value. It stores the eight LSB of the conversion in the first byte and the remaining two bits in the first two bits of the second byte.
  3. Byte 3 is the low byte of the ADC conversion value for RC4.
  4. Byte 4 is the high byte of the ADC conversion value for RC3.
  5. Byte 5 is the low byte of the ADC conversion value for RC3.
  6. Byte 6 is the high byte of the ADC conversion value for RA1.
  7. Byte 7 is the low byte of the ADC conversion value for RA2.
  8. Byte 8 is a checksum of all the bytes transmitted. The checksum is computed by summing all the bytes and subtracting the result from 0xFF. The result is transmitted and the receiver checks the checksum by summing every byte of the packet and if the result is 0xFF then no bits were corrupted or lost.

Packet_structure

When the PIC16 detects is a receiver it starts the state machine in the READ_RX. In this state it waits until the interrupt line from the nRF24L01 radio module goes low which indicates that a packet has been received. From here it transitions to the UPDATE_CONTROLS state. In this state the PIC16 collects the packet from the nRF24L01 radio module, unpacks it, and updates the PWM signals for the servo and motor. Once complete it transitions back to the READ_RX state where it waits until the next packet is ready.

Receive_state_diagram

Electrical

The receiver schematic is shown below. For the receiver, the PIC16LF18325 communicates with the nRF24L01 radio module through a SPI bus for receiving commands that are then decoded into a PWM signals for motor and servo control. The PIC16 also controls the motors and servo respectivly and was chosen for its small size, GPIO pin count, and packaging style. The L9110 h-bridge controls the motor and is a very basic h-bridge for driving small motors which make it perfect for this application. The LM2937 linear voltage regulator creates the 3.3V supply for the PIC16, nRF24L01 radio module, lights, and servo power. The lights part of the schematic act as the headlights of the car and are controlled by the PIC16 toggeling the 2N7000 mosfets. Receiver_schematic

The transmitter schematic is shown below. In this instance the PIC16 commuicates with the nRF24L01 radio module to send commands for the receiver. The PIC16 also controls the status LED which indicates power and pairing status. The two modes of control are the two potentiometers which act as the cars accelerator and steering control. There is also one trim pot for the driver to tune the front steering axel so that the car does not drift left or right when driving straight.

Transmitter_schematic

Mechanical

Bill of Materials

Transmitter Bill of Materials
ComponentQuantitySourcePart Number
9V battery1DigiKey547-A1604BK210J-ND
0.1uF2DigiKeyBC1084TR-ND
220uF1DigiKey399-6122-ND
10uF1DigiKey399-15738-ND
LED2DigiKey732-5016-ND
2N70001DigiKey4878-2N7000CT-ND
4702DigiKeyCF14JT470RTR-ND
10k2DigiKeyCF14JT10K0TR-ND
5k Control Pot2DigiKey2223-PT01-D115D-B502-ND
5k Trim Pot1DigiKey3386P-103LF-ND
Power Switch1DigiKeyEG1903-ND
PIC16LF183261DigiKeyPIC16LF18326-I/P-ND
nRF24L01 Radio Module1AliExpressnRF24L01
LM29371DigiKeyLM2937ET-3.3/NOPB-ND
Receiver Bill of Materials
ComponentQuantitySourcePart Number
9V battery connector1DigiKey547-A1604BK210J-ND
0.1uF2DigiKeyBC1084TR-ND
220uF1DigiKey399-6122-ND
10uF1DigiKey399-15738-ND
LED2DigiKey732-5016-ND
9g Servo2DigiKey732-5016-ND
2N70001DigiKey4878-2N7000CT-ND
4702DigiKeyCF14JT470RTR-ND
10k2DigiKeyCF14JT10K0TR-ND
Power Switch1DigiKeyEG1903-ND
PIC16LF183261DigiKeyPIC16LF18326-I/P-ND
nRF24L01 Radio Module1AliExpressnRF24L01
LM29371DigiKeyLM2937ET-3.3/NOPB-ND
L9110H1DigiKey1528-4489-ND

Parts

46
QtyValueFootprintReferences
610kResistor_SMD:R_0402_1005MetricR1, R6, R8, R9, R10, R11
6470Resistor_SMD:R_0402_1005MetricR2, R4, R5, R7, R12, R13
52N7000Package_TO_SOT_SMD:SOT-23Q1, Q2, Q3, Q4, Q5
4LEDConnector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_VerticalD1, D2, D3, D4
4MountingHole_PadMountingHole:MountingHole_2.5mm_Pad_TopBottomH1, H2, H3, H4
30.1uCapacitor_SMD:C_0402_1005MetricC1, C2, C5
2LEDLED_SMD:LED_0402_1005MetricD5, D6
110uCapacitor_SMD:C_0402_1005MetricC7
110uCapacitor_SMD:C_0805_2012MetricC9
11kResistor_SMD:R_0402_1005MetricR3
1220ureceiver:U2-K_NCHC3
122uCapacitor_Tantalum_SMD:CP_EIA-2012-15_AVX-PC10
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U6
1Battery_Cellreceiver_footprints:BAT_BH9VPCBT1
1DebugConnector_PinSocket_2.54mm:PinSocket_1x03_P2.54mm_VerticalJ2
1L9110HPackage_DIP:DIP-8_W7.62mm_SocketU4
1MotorConnector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_VerticalM2
1NRF24L01_BreakoutRF_Module:nRF24L01_BreakoutU3
1PIC32MX170F256Breceiver:SSOP28_MC_MCHU5
1PowerConnector_PinSocket_2.54mm:PinSocket_1x03_P2.54mm_VerticalSW1
1ProgramConnector_PinSocket_2.54mm:PinSocket_1x05_P2.54mm_VerticalJ1
1ServoConnector_PinSocket_2.54mm:PinSocket_1x03_P2.54mm_HorizontalM1
1~{MCLR}pcb_radio:SW_1825910-6-4SW2

More from finnhittson/RC-Car-Build-Workshop

2
  • 4 layers38 × 72.6 mmTransmitter, the printed circuit board in 3D

    Transmitter

    finnhittson/RC-Car-Build-Workshop

    Table of contents: 1. Design Overview 2. Software 3. Electrical 4. Bill of Materials ## Design Overview The three main components in building this car are the software, electrical, and the mechanical aspect of the car…

    30 parts
  • 4 layers54.1 × 43.7 mmProgrammer, the printed circuit board in 3D

    Programmer

    finnhittson/RC-Car-Build-Workshop

    Table of contents: 1. Design Overview 2. Software 3. Electrical 4. Bill of Materials ## Design Overview The three main components in building this car are the software, electrical, and the mechanical aspect of the car…

    18 parts

Similar boards

  • 4 layers15.6 × 31.3 mmPIC32Flex, the printed circuit board in 3D

    PIC32Flex

    finnhittson/PIC32-Breakout-Board

    PIC32Flex is a breakout board for the PIC32MX170F256B. This repo holds schematic revision information, how to fabricate this board for yourself, and examples on how to use the board.

    14 parts
  • 2 layers50 × 50 mmHW4, the printed circuit board in 3D

    HW4

    klemensiten/ME433

    Repo of Klemens Iten for MECH_ENG 433: Advanced Mechatronics, Spring 2023 @ Northwestern University.

    23 parts
  • 2 layers50 × 50 mmHW4 1, the printed circuit board in 3D

    HW4 1

    sirojc/me433-advanced-mechatronics

    ME433 Advanced Mechatronics Spring 2023 @ Northwestern University

    23 parts
  • 2 layers290.1 × 130 mmPro V2, the printed circuit board in 3D

    Pro V2

    kata0510/Lily58

    6×4+4keys column-staggered split keyboard.

    312 parts2.3k
  • 2 layers26.2 × 45.5 mmPL18 multiprotocol, the printed circuit board in 3D

    PL18 multiprotocol

    pascallanger/DIY-Multiprotocol-TX-Module

    Multiprotocol TX Module (or MULTI-Module) is a 2.4GHz transmitter module which controls many different receivers and models.

    24 parts1.9kGPL-3.0
  • 4 layers99 × 53.3 mmPSLab, the printed circuit board in 3D

    PSLab

    fossasia/pslab-hardware

    PSLab Hardware Design and Schematics https://pslab.io

    199 parts1.7kApache-2.0
  • 4 layers85 × 56 mmPslab mini, the printed circuit board in 3D

    Pslab mini

    fossasia/pslab-mini-hardware

    PSLab Mini Hardware https://pslab.io

    182 parts1.2kApache-2.0
  • 4 layers100 × 54 mm32Bit shift register, the printed circuit board in 3D

    32Bit shift register

    MaltWhiskey/Mega-Cube

    16x16x16 PL9823 Cube with Teensy 4.0 and FlexIO driver

    64 parts766

Questions

How big is the Receiver PCB?

It measures 30.6 × 67.9 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Receiver use?

46 parts, built around the PIC32MX170F256B-I/SO and AMS1117-3.3. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Receiver KiCad files?

From the finnhittson/RC-Car-Build-Workshop repository on GitHub, at the commit this page was made from: the board is schematics/receiver/receiver.kicad_pcb and its schematic schematics/programmer/programmer.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Receiver design in my own project?

Its repository states no licence, so its author keeps all rights: ask finnhittson before reusing the design.