Browsed by
Category: arduino

How to Arm E-Flight ESC with Arduino and without Guessing

How to Arm E-Flight ESC with Arduino and without Guessing

If you read one of my first posts here at remotebits.com, on arming an ESC, I happened up the solution by accident.  Today I wanted to try to arm an RC airplane ESC and it occurred to me that I didn’t have to guess how to do it. Disclaimer: use this information at your own risk.  I am not responsible for any damage. A more elegant solution was to read the PWM values first while turning on the transceiver and…

Read More Read More

BitZero Upgraded with Servo Shield and GPS

BitZero Upgraded with Servo Shield and GPS

In my last BitZero update, I installed a GPS module and began having a problem where the servos seemed to be glitching every second or so.  This turned out to be a resource contention.   The GPS module communicates to Arduino with interrupts, and this was disrupting the PWM pins from sending proper signal to the servos.  The solution turned out to be using the Adafruit Servo Shield.  The PWM processing is offloaded to the shield and can continue to run…

Read More Read More

Announcing: Project BitZero

Announcing: Project BitZero

What is Project BitZero? I’m glad you asked. It’s the beginning of this journey to document all of my side projects.  And the first project is a prototype for small scale autonomous vehicles.  Being the first project, and being a software development blog, counting begins with zero. Each Bit will be a part of this blog, which is of course,  also a play on words for site’s theme: computer programming.  I will also cover many topics on wireless tech.  That’s…

Read More Read More

How to Calculate Compass Heading from GPS Points

How to Calculate Compass Heading from GPS Points

So you’re building a robot with an Arduino, GPS, a compass and you want it to know which direction to turn so it goes to a waypoint?  Me too!   Here is my demo sketch on how to calculate the waypoint heading.   It amounts to using the atan2 function to calculate the angle between two points, converting the angle to degrees, then normalizing it to a compass reading. The below values are hardcoded. You can run the sketch yourself to test…

Read More Read More

Rover Build Update: Arduino + GPS + Servo = glitch

Rover Build Update: Arduino + GPS + Servo = glitch

In today’s learn as you go along lesson, hit a problem trying to integrate a GPS module on the Arduino with a servos connected to the board’s PWM pin.  The result was the servos would glitch about every second or so.  Doing some searching and based on some forum posts (here too), it looks like the solution is going to be a Servo Shield.  Offloading the PWM processing to the shield should hopefully alleviate the interrupt contention. Here’s a video…

Read More Read More

Compass Placement on the Robot

Compass Placement on the Robot

Another fun lesson learned in robot building.  Where to place the compass?  I noticed some strange readings today on my Adafruit LSM303.  I had already previously discovered that the metal and other electronics of the vehicle was messing with the readings.  I dug up a real compass to compare and immediately discovered an easy way to determine the location of interference and best placement.  For now, on this vehicle I will put forward of the front wheels.  I could also…

Read More Read More

Arduino RC Car with a Compass

Arduino RC Car with a Compass

Initial test video.  Arduino Uno with an Adafruit compass module to drive a Traxxas Slash.  The program turns the vehicle northward and maintains that heading, making any necessary adjustments while driving.  I’ll post build details after I refactor the hard-coded directional value to work with any heading.    

How to Read the Traxxas Radio PWM Signals using an Arduino

How to Read the Traxxas Radio PWM Signals using an Arduino

These are my notes on how to read the PWM servo signal coming from the Traxxas TQ receiver. Disclaimer: use this information at your own risk.  I am not responsible for any damage. RC car radio receivers communicate with the steering servo and electronic speed controller using electrical pulses called PWM(pulse width modulation).  Using an Arduino, we are able to capture  these pulses and print their values out to the Serial Monitor.  These numbers represent the width of the electrical…

Read More Read More

Controlling a Traxxas ESC with an Arduino

Controlling a Traxxas ESC with an Arduino

These are my notes for getting an Arduino Uno to control a Traxxas Velineon VXL-3s speed controller. Disclaimer: use this information at your own risk.  I am not responsible for any damage. Materials Needed Traxxas ESC Velineon VXL-3s Arduino Uno Stock Traxxas 7.2v battery Power cable First you need to connect one of the Arduino PWM(~) signal pins to ESC connector’s white lead).  Be sure it’s the ESC connector and not the steering servo, they look the same. Warning:  the…

Read More Read More