Skip to the content
2 layers40 × 32 mmRc to hbridge, the printed circuit board in 3D

A PCB to convert R/C PPM signals into H-Bridge compatible PWM and direction signals as used by many popular H bridge boards

Size
40 × 32 mm
Copper layers
2
Thickness
1.6 mm
Parts
18
Nets
24
Pads
84
Tracks, vias
166, 16
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
21 Feb 2017
Updated
26 Mar 2019

Overview

Rc to hbridge is an open-source printed circuit board by makerhqsac, from the makerhqsac/rc_to_hbridge repository on GitHub. It is a 2-layer board of 40 × 32 mm with 18 parts on 24 nets, routed with 166 tracks and 16 vias.

It is built around the ATMEGA328-AU. Its parts include 6 connectors, 2 capacitors, 2 resistors, 2 diodes and 1 IC. It belongs with the interfaces and adapters boards and the AVR (ATmega, ATtiny) boards of this library.

Main components

1

README

README.md

R/C to H-Bridge

A PCB to convert R/C PPM signals into H-Bridge compatible PWM and direction signals as used by many popular H bridge boards. This allows the separation of the R/C signal processing from the H bridge, such that you can combine this board with small to very large H bridge boards.

The default firmware for this board handles the mixing of the Throttle and Steering channels to drive two differential motors, aka "Tank Style". It also has two AUX inputs that map to two digital outputs that allow R/C channels to toggle the outputs LOW and HIGH based on the R/C value. This can be useful to add things like weapon arm/disarm, self-righting mechanisms, lights, etc.

Many H bridge boards in the 2A range are available on Amazon quite cheap, such as This one or This one.

The Board

PCB

Typical Configuration

Powering

The board requires 5VDC power to operate. It can be powered either from the R/C inputs (which usually come from the R/C receiver which gets power from the ESC or BEC) or you can power directly to the + and - port next to the R/C inputs. If powering via the dedicated power port, you should disconnect the + in on the R/C inputs.

Pins

R/C

The R/C inputs connect directly to an R/C receiver. By default R/C center is 1500uS, and max throw is +/- 500uS in each direction.

All R/C inputs have a Dead Zone which when the input is +/- this value from center (1500uS) the value will not trigger any change in outputs nor apply power changes to the motors. The default Dead Zone is 25uS.

  • T :: Throttle input - expected to be neutral throttle at 1500uS R/C value
  • S :: Steering input - expects neutral left/right travel at 1500uS R/C value
  • A :: AUX A - Values above R/C center + Dead Zone will turn OUT A to HIGH, values below R/C center - Dead Zone will turn OUT A to LOW
  • B :: AUX B - Same as AUX A, but controls OUT B

H bridge

The H Bridge side of the board is designed to interface to H-Bridge with either 4 or 6 pin controllers. The EN pins contain the PWM signal and the corresponding 1/2 or 3/4 pins will either be LOW/HIGH or HIGH/LOW based on the mixed input of the throttle/steering R/C signals to control the direction of the motors. The actual PWM signal format will depend on if the board is in 4 or 6 pin mode. This is detailed in the next section. The PWM signal is also affected by if breaking is enabled or not.

To connect 6 pin H Bridges, simply connect the ENA/1/2 pins to the first motor inputs and ENB/3/4 to the second motors inputs.

To connect a 4 pin H Bridge, connect ENA/1 to the first motor and ENB/4 to the second. The 1 and 4 pins will toggle between LOW and HIGH to control direction. If you need to change motor direction and cannot do so by reversing the motor wires, you can use pins 2 and 3 instead.

PWM Modes

This firmware supports 6 and 4 pin dual channel H-Bridge boards. The format for the PWM signal is different depending on the PWM mode as well as if breaking is enabled. The mode can be adjusted by placing the board in configuration mode. To enter configuration mode, make sure the R/C transmitter is on, place a jumper across the H-bridge pins 2 and 3 and then power on the R/C to H-Bridge board. At power on, if the board sees H-bridge pins 2 and 3 connected together, it will go into configuration mode.

Configuration mode can be seen by the R/C status LED blinking 5 times at startup. Then every 4 seconds, the R/C status will blink a certain number of times, corresponding to the current active PWM mode. To change the mode, use the steering channel all the way to the left or right to change the current mode. The following table outlines the different modes:

Mode NumberMode NameCommon H-Bridge Chips
14 PIN PWM, no breakingL9110S
24 PIN PWM, with breakingL9110S
36 PIN PWM, no breakingL-298
46 PIN PWM, with breakingL-298

After the desired configuration mode is set by using the steering channel, unplug the power to the R/C to H-Bridge board and remove the jumper between H-Bridge pins 2 and 3. Powering the board will start it up in normal mode, outputting the new mode to the PWM pins on the H-Bridge.

Breaking

If breaking is enabled (PWM modes 2 or 4), then if the throttle is in the forward direction and you switch the throttle into reverse, rather than instantly flipping the motors into reverse, a breaking operation is sent to the H-Bridge. It will remain in the breaking state until the throttle returns back to center, and then the next time the throttle goes into reverse the motors will actually be driven in reverse.

OUT

The OUT ports A and B toggle from LOW to HIGH based on the R/C input signals connected to inputs A and B. There is also 5v power available on the OUT port.

SERIAL

This port is designed as an expansion port for future use and/or hacking. It provides a TTL serial connection to the ATMega chip along with 5v power.

Parts

18
QtyValueFootprintReferences
222pFCapacitors_SMD:C_0603C1, C2
2330Resistors_SMD:R_0603R1, R2
2CONN_01X04Pin_Headers:Pin_Header_Straight_1x04_Pitch2.54mmP1, P5
1ATMEGA328-AHousings_QFP:TQFP-32_7x7mm_Pitch0.8mmIC1
1AVR-ISP-6Pin_Headers:Pin_Header_Straight_2x03_Pitch2.54mmCON1
1CONN_01X02Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mmP2
1CONN_01X06Pin_Headers:Pin_Header_Straight_1x06_Pitch2.54mmP4
1CONN_02X06Pin_Headers:Pin_Header_Straight_2x06_Pitch2.54mmP3
1Crystal_GND24Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
1GREENLEDs:LED_0603D2
1LOGOmachadolab:mhq_logo_smallG***
1REDLEDs:LED_0603D1

The 15 most common of 18 parts.

Similar boards

  • 2 layers82 × 120 mmSample Numeric Keyboard, the printed circuit board in 3D

    Sample Numeric Keyboard

    famichu/MagLev_Switch_MX

    The 3D printable magnetic levitation contactless switch with the linear output hall effect sensor.

    66 parts467
  • 2 layers76.2 × 76.2 mmPaperBack Converter, the printed circuit board in 3D

    PaperBack Converter

    dqydj/PaperBack_EPaper_Display

    Internet Connected or Standard Input EPaper Display

    92 parts83MIT
  • 2 layers18 × 33.2 mmArduino pro mini, the printed circuit board in 3D

    Arduino pro mini

    etimou/arduino-pro-mini-kicad

    This is a clone of the well known arduino board "pro-mini" designed in kicad while the original was designed in eagle. Ref https://store.arduino.cc/arduino-pro-mini

    23 parts69
  • 2 layers101.6 × 147.3 mmKarabas pro revER, the printed circuit board in 3D

    Karabas pro revER

    andykarpov/karabas-pro

    FPGA based retrocomputer with FDD and HDD controllers

    223 parts37MIT
  • 4 layers100 × 100 mmATU, the printed circuit board in 3D

    ATU

    hmatuschek/ATU

    Simple, portable automatic antenna tuner

    127 parts21
  • 2 layers100 × 70 mmWSPR Beacon, the printed circuit board in 3D

    WSPR Beacon

    alexf91/WSPR-Beacon

    Si5351 based WSPR beacon

    79 parts15GPL-3.0
  • 2 layers52.6 × 45.6 mmPyramiduino, the printed circuit board in 3D

    Pyramiduino

    baldengineer/addohms

    Projects and files from AddOhms Tutorials

    23 parts11GPL-3.0

Questions

How big is the Rc to hbridge PCB?

It measures 40 × 32 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Rc to hbridge use?

18 parts, built around the ATMEGA328-AU. 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 Rc to hbridge KiCad files?

From the makerhqsac/rc_to_hbridge repository on GitHub, at the commit this page was made from: the board is hardware/rc_to_hbridge.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Rc to hbridge design in my own project?

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