Castle Creations, INC.

Similar documents
Electronic Speed Controls and RC Motors

Autonomous Refrigerator. Vinícius Bazan Adam Jerozolim Luiz Jollembeck

Current Amplifying using a Line Driver

RS7 testing G.Rutter Ltd 2013

DeviceCraft Revision #1 11/29/2010

WIRELESS DC MOTOR SPEED AND DIRECTION CONTROL USING IR (PWM and H-Bridge)

Figure 1. DMC 60 components.

University of North Carolina-Charlotte Department of Electrical and Computer Engineering ECGR 3157 Electrical Engineering Design II Fall 2013

PAK-Vb/c PWM Coprocessor Data Sheet by AWC

BMS BMU Vehicle Communications Protocol

Design Document. Analog PWM Amplifier. Reference: DD00004

Electric Bike BLDC Hub Motor Control Using the Z8FMC1600 MCU

Lab Exercise 9: Stepper and Servo Motors

Analog I/O. ECE 153B Sensor & Peripheral Interface Design Winter 2016

WIRELESS DC MOTOR SPEED AND DIRECTION CONTROL USING RF COMMUNICATION

MD03-50Volt 20Amp H Bridge Motor Drive

LINEAR IC APPLICATIONS

Application Note #AN-00MX-002

Speed Control of Single Phase Induction Motor Using Infrared Receiver Module

EE 314 Spring 2003 Microprocessor Systems

DUAL 4-20 MA NETWORK BRIDGE. Voltage. Regulator. Neuron CPU. Ohm Sense Resistor. Model 1400A Block

SG2525A SG3525A REGULATING PULSE WIDTH MODULATORS

SL300 Snow Depth Sensor USL300 SNOW DEPTH SENSOR. Revision User Manual

Hello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which

PreLab 6 PWM Design for H-bridge Driver (due Oct 23)

B RoboClaw 2 Channel 30A Motor Controller Data Sheet

Controlling an AC Motor

OVERVIEW. CONTENTS Controller Specifications + Programmable Features Page 2. Wire Connection and Installation Page 3.

3.3V regulator. JA H-bridge. Doc: page 1 of 7

CCE Image may differ from the actual product By Martin Labbé, eng., Jasmin Goupil & Louis Perreault

MSK4310 Demonstration

MAINTENANCE MANUAL AUDIO BOARDS 19D902188G1, G2 & G3

LM13600 Dual Operational Transconductance Amplifiers with Linearizing Diodes and Buffers

Castle Multi-Rotor ESC Series User Guide

B Robo Claw 2 Channel 25A Motor Controller Data Sheet

ECE 363 EXAM #2 (F18) 4 problems for 100 pts Problem #1: Amplifier Output Error (25 pts)

T6+ Analog I/O Section. Installation booklet for part numbers: 5/4-80A-115 5/4-90A-115 5/4-80A /4-90A-1224

SP310001/02: Wireless Power Controller for Fast Charging Transmitter

Directions for Wiring and Using The GEARS II (2) Channel Combination Controllers

CIRCUITS THAT ARE AVAILABLE ON LODAR RECEIVERS Features listed below are available on 92 Series and 93 Series

DASL 120 Introduction to Microcontrollers

Mate Serial Communications Guide This guide is only relevant to Mate Code Revs. of 4.00 and greater

For more information on these functions and others please refer to the PRONET-E User s Manual.

Latest Control Technology in Inverters and Servo Systems

EE283 Electrical Measurement Laboratory Laboratory Exercise #7: Digital Counter

Application Note. Brushless DC Motor Control AN-1114

Jaguar Motor Controller (Stellaris Brushed DC Motor Control Module with CAN)

EE445L Spring 2018 Final EID: Page 1 of 7

King Fahd University of Petroleum and Minerals. Department of Electrical Engineering

DC Motor and Servo motor Control with ARM and Arduino. Created by:

Robotic Navigation Distance Control Platform

When input, output and feedback voltages are all symmetric bipolar signals with respect to ground, no biasing is required.

CONVERTING 1524 SWITCHING POWER SUPPLY DESIGNS TO THE SG1524B

Hello and welcome to this Renesas Interactive Course that provides an overview of the timers found on RL78 MCUs.

Activity 4: Due before the lab during the week of Feb

ENGR 1110: Introduction to Engineering Lab 7 Pulse Width Modulation (PWM)

SPECIFICATION NO Model Automatic GTAW Welding System

LaserPING Rangefinder Module (#28041)

Micro Controller Based Ac Power Controller

Electric Druid Tap Tempo LFO

Modeling, Simulation and Implementation of Speed Control of DC Motor Using PIC 16F877A

The rangefinder can be configured using an I2C machine interface. Settings control the

HI 2204LT Loop Powered Level Weight Transmitter OPERATION AND INSTALLATION MANUAL

Brushless DC Motor Controller Specification Assemblies 025F0248

Application Note 160 Using the DS1808 in Audio Applications

Instruction Manual. Description Calibration. Excitation Sensor and Reverse Power Relay

ML4818 Phase Modulation/Soft Switching Controller

Final Mini Project Report

Model 3102D 0-2 kv H.V. Power Supply

Embedded Systems. Oscillator and I/O Hardware. Eng. Anis Nazer First Semester

Teaching Children Proportional Control using ROBOLAB 2.9. By Dr C S Soh

Overview Getting Started First Time Use

GE Fanuc IC695ALG600. Rx3i PacSystem

Service Information System

2.017 DESIGN OF ELECTROMECHANICAL ROBOTIC SYSTEMS Fall 2009 Lab 4: Motor Control. October 5, 2009 Dr. Harrison H. Chin

EE152 Final Project Report

HAW-Arduino. Sensors and Arduino F. Schubert HAW - Arduino 1

815-BR SERVO AMPLIFIER FOR BRUSH SERVOMOTORS

PAK-VIIIa Pulse Coprocessor Data Sheet by AWC

Introductory Electronics for Scientists and Engineers

DNT2400. Low Cost 2.4 GHz FHSS Transceiver Module with I/O

ASCII Programmer s Guide

Download: assembler source mhm031002a.asm

HOW TO UNDERSTAND THE WORKINGS OF RADIO CONTROL

Graphical Control Panel User Manual

Hello, and welcome to the TI Precision Labs video series discussing comparator applications. The comparator s job is to compare two analog input

Automotive Electronics. [pl.wikipedia.org]

WWVB Receiver/Decoder With Serial BCD or ASCII Interface DESCRIPTION FEATURES APPLICATIONS

INSTRUCTIONS. 3DR Plane CONTENTS. Thank you for purchasing a 3DR Plane!

Piezo Kalimba. The initial objective of this project was to design and build an expressive handheld

LF442 Dual Low Power JFET Input Operational Amplifier

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER

MAINTENANCE MANUAL AUDIO AMPLIFIER BOARD 19D904025G1 (MDR) AUDIO AMPLIFIER BOARD 19D904025G2 (MDX)

PNI MicroMag 3. 3-Axis Magnetic Sensor Module. General Description. Features. Applications. Ordering Information

with Electronic Assistant

CprE 288 Introduction to Embedded Systems (Output Compare and PWM) Instructors: Dr. Phillip Jones

Hello, and welcome to this presentation of the STM32 Infrared Timer. Features of this interface allowing the generation of various IR remote control

Fig 1: The symbol for a comparator

RB-Rop-08 Scorpion XXL Dual 20A 6V to 28V R/C DC Motor Driver

Massachusetts Institute of Technology MIT

Transcription:

Castle Link Live Communication Protocol Castle Creations, INC. 6-Feb-2012 Version 2.0 Subject to change at any time without notice or warning. Castle Link Live Communication Protocol - Page 1

1) Standard RC PWM Signal: Castle Link Live is a communication protocol that is very similar to the standard PWM signal used in RC control. The standard RC protocol, as pictured below (a), is simply a pulse repeating around 20ms (50Hz). The actual pulse frequency can vary greatly between manufactures but is generally close to either 50Hz or 100Hz. The throttle input (or servo position) is defined by the width of the pulses. In general 1.0ms is the minimum and 2.0ms is the maximum. All RC transmitters are different; some only make it down to 1.1ms while others can go all the way down to 0.8ms. Most speed controls deal with this via some type of calibration (automatic or otherwise) process. (a) Standard RC Pulse Castle Link Live Communication Protocol - Page 2

2) Castle Link Live Overview: Castle Link Live is an inverted form of the standard RC pulse. As you can see below (b), there is still a pulse every 20ms and that pulse still varies from 1.0ms to 2.0ms. The difference is the polarity of the pulse. Also note the negative tick just past the end of the pulse; this is how data is sent from the ESC. The time from the end of the pulse to the tick can be measured to determine the live data. (b) Castle Link Live Communication Castle Link Live Communication Protocol - Page 3

3) Castle Link Live Pulse Detail: The value for the data item is determined by measuring the time between the rising edge at the end of the RC pulse to the falling edge of the tick. The image below (c) shows a 1ms RC pulse followed by a 0.5ms data item. Data Item, measured from rising edge to tick Fast Rising Edge RC Pulse Tick (c) Example 1ms RC pulse followed by 0.5ms data item Castle Link Live Communication Protocol - Page 4

4) Packet Description: There are 12 pulses in this version of the Link Live data packet, each one containing a different data item (voltage, current, etc ). The picture below (d) shows the first 10 pulses in a packet. The very first pulse in this image does not have a tick after it; this is a RESET pulse to allow easy synchronization. No tick, indicating the start of a new packet (d) First 10 data items in a Castle Link Live packet Castle Link Live Communication Protocol - Page 5

5) Data Items: The data in the 12 pulses is as follows: 1. RESET No tick at all to allow easy synchronization with the data stream. 2. Calibration A 1.0ms pulse to calibrate time scales, part of a possible 2-point calibration. 3. Voltage The battery voltage measured by the ESC. 4. Ripple Voltage The difference between the battery voltage measured during the FET on time and FET off time. There is no Ripple Voltage at full throttle because there is no FET off time. 5. Current The current measured by the ESC. Not supported on some controllers. 6. Throttle The standard 1-2ms RC pulse as measured by the ESC. 7. Output Power The ESC s current output power percentage. 8. RPM The current electrical RPM of the motor attached to the ESC. 9. BEC Voltage The current voltage of the ESC s BEC. Not supported on some controllers. 10. BEC Current The current amount of current that is being provided by the ESC s BEC. Not supported on some controllers. 11. Temperature / Calibration The current temperature of the ESC if the ESC has a linear temperature sensor. A 0.5ms calibration pulse, part of a 2-point calibration otherwise. 12. Temperature / Calibration The current temperature of the ESC if the ESC has a NTC temperature sensor. A 0.5ms calibration pulse, part of a 2-point calibration otherwise. Castle Link Live Communication Protocol - Page 6

6) Calibration: Because all oscillators have some amount of error and drift over their temperature range it is very important to use the calibration values to accurately determine the data fields. Data item 2 is a 1ms pulse and the smaller of 11 and 12 will be a 0.5ms pulse. With these two points you can determine an offset and scale to correlate the two clocks 7) Temperature: Temperature is measured in one of two ways, and embedded temp sensor or an external NTC resistor. Only one of these two data fields will have valid data (greater than 0.5ms). If the controller is NTC type, logarithmic math is required to do the conversion. Castle Link Live Communication Protocol - Page 7

8) Conversion: The following table (e) lists the conversion factors necessary to turn the measured and scaled pulse length into an actual value. Data Item Scale Units / ms Max Pulse Length (ms)* Max Value Voltage 20 Volts 5 100 Ripple Voltage 4 Volts 5 20 Current 50 Amps 5 250 Throttle 1 Milliseconds 2.5 2.5 Output Power 0.2502 Percent 4 1 RPM 20,416.7 Electrical RPM 5 100,000 BEC Voltage 4 Volts 5 20 BEC Current 4 Amps 5 20 Temperature (Linear) 30 Degrees C 5 150 Temperature (NTC) 63.8125 Units ** 4 255 (e) Conversion Factors The live value is computed by multiplying the corrected time by the scale. For example if, after scaling, the third data pulse in the packet measured 1.5ms: The third data pulse is Voltage, the scale value is 20. Subtract the constant 0.5ms from the measured value: Value = 1.5ms 0.5ms = 1.0ms The result is the simple multiplication: Voltage = Value * Scale = 1.0ms * 20 = 20.0V * Not counting the required 0.5ms delay after the receiver pulse. Every pulse will be at least 0.5ms, or in other words, 0.5ms is a value of 0. *** NTC Thermistor requires additional math to determine the temperature Degrees C = 1 / (ln(value*r2 / (255-value) / R0) / B + 1/298) 273 R0 = 10000, R2 = 10200, B = 3455 Castle Link Live Communication Protocol - Page 8

9) Talking Castle Link Live: To implement the Castle Link Live protocol care must be taken when generating the RC pulse. In any RC pulse type of application, both edges of the pulse should be driven with a totem-pole style driver circuit that is common to most microprocessors. This ensures fast edges that result in more accurate timing information. Castle Link Live has an additional requirement however, after the end of the pulse the receiver line must be placed in a high-impedance state so that the ESC can pull the line low later to make the tick. The following image (f) shows the end of a pulse (rising edge) being pulled quickly to a 3.3V level and then released to a high-impedance state. High-Impedance State RC Pulse Fast Rising Edge (f) The end of a Castle Link Live RC pulse, pulled hard to 3.3V then released to a high-impedance state Castle Link Live Communication Protocol - Page 9

At the end of the data item, the controller will pull the line to ground for about 1.0us and then release the line allowing it to float back high. This fast edge can be used for timing and as an external interrupt for most microcontrollers. High-Impedance State Fast falling edge (g) An up close view of the tick Castle Link Live Communication Protocol - Page 10

10) Hardware Considerations: Castle Link Live requires the signal line be left in a high-impedance state by both the ESC and the controlling device at some times. During these times the line needs to float up to at least 2.5V to ensure that the ESC sees a logic (1). This will require a pull-up resistor on the controlling device, or on the connection between the controlling device and the ESC. The ESC has an internal pull-down resistor with a value of 6.65k, so, the required pull-up resistor will be somewhere in the 1.0k to 10k range, depending on the voltage being pulled-up too. Please reference the chart below (i). Voltage Pulled Up To Required Pull Up Resistor 3.3V 2k or smaller 5.0V 6.65k or smaller 6.5V 10k or smaller (i) Required Pull Up Resistor Based on Pull Up Voltage Castle Link Live Communication Protocol - Page 11

13) Revision Log: 2.0 6-Feb-2012: Initial Public Release Castle Link Live Communication Protocol - Page 12