Read PWM, Decode RC Receiver Input, and Apply Fail-Safe

Easy to use code to measure PWM signals (<2.5Khz) plus a dedicated function to calibrate the input from an RC receiver, including fail-safe.

Jul 27, 2019

101995 views

24 respects

Components and supplies

1

Arduino UNO

2

SG90 Micro-servo motor

Project description

Code

RC_Read_Example

arduino

An example sketch used to display raw data in order to calibrate your RC receiver and set your the fail safe. The PWMread_RCfailsafe.ino file should be copied into the same folder in order for the functions to be available.

PWMread_RCfailsafe

arduino

This .ino file contains the functions and pin change interrupt routines (ISR) used to decode an RC Receiver and apply a fail safe if the transmitter signal is lost. Copy and paste this file into the same folder as the main sketch (when you open the sketch this code will appear as a second tab in the arduino IDE). Then follow the instructions in the file.

RC_FrameRate

arduino

Example sketch that prints the frame rate and frequency of an RC Receiver. The PWMread_RCfailsafe.ino file should be copied into the same folder in order for the functions to be available.

RC_ServoMixer_Example

arduino

An servo mixing example. Two channels from a 6 channel are receiver are mixed and sent to two servos controlled using the servo library. The PWMread_RCfailsafe.ino file should be copied into the same folder in order for the functions to be available.

RC_FrameRate

arduino

Example sketch that prints the frame rate and frequency of an RC Receiver. The PWMread_RCfailsafe.ino file should be copied into the same folder in order for the functions to be available.

RC_ServoMixer_Example

arduino

An servo mixing example. Two channels from a 6 channel are receiver are mixed and sent to two servos controlled using the servo library. The PWMread_RCfailsafe.ino file should be copied into the same folder in order for the functions to be available.

RC_Read_Example

arduino

An example sketch used to display raw data in order to calibrate your RC receiver and set your the fail safe. The PWMread_RCfailsafe.ino file should be copied into the same folder in order for the functions to be available.

Downloadable files

Arduino Uno Setup

This RC Receiver is powered by 5v and ground from the ICSP pins with the 6 signal outputs connected to pins 2-7 Micro servo 1 is powered by 5v pin and ground, with signal wire connected to pin 9 Micro servo 2 powered by 3.3v pin and ground, with signal wired connected to pin 10

Arduino Uno Setup

Arduino Uno Setup

This RC Receiver is powered by 5v and ground from the ICSP pins with the 6 signal outputs connected to pins 2-7 Micro servo 1 is powered by 5v pin and ground, with signal wire connected to pin 9 Micro servo 2 powered by 3.3v pin and ground, with signal wired connected to pin 10

Arduino Uno Setup

Comments

Only logged in users can leave comments

kelvineyeone

0 Followers

0 Projects

Table of contents

Intro

24

0