Sunday, December 8, 2013

Program a Flysky Fs-T6 with Dual Aileron Servos

Dual Aileron servos
I picked up a FlySky Fs-t6 from Amazon a while back to fly the RC-Help Trainer that I built from foam board. I opted for dual Aileron servos for greater control during setup. The problem is I couldn't find any way to set them up on the radio. There isn't a setting for this. Fortunately with a little digging I found a way to do it. Keep reading to find out how.

FlySky FS-T6 2.4ghz Digital Proportional 6 Channel Transmitter and Receiver System

Wednesday, December 4, 2013

Calculating Brush-less motor and prop size for RC Airplanes.

If you have ever tried to figured out the size of the electric motor needed on a homemade or other type of RC airplane and delved into the world of kv and watts and ESC amps then you probably have a few less hairs on your head because of it. I stumbled a cross a few different calculators online and some trains of though from some really smart folks and decided to condense them into this one article to ease your pain. Online calculators come and go, but once you have the formulas you will always be able to calculate the right sizes.

Sunday, November 17, 2013

Adding an Sainsmart IIC/I2C/TWI 1602 Serial LCD Module Display readout to the Arduino.

LCD mounted on Woody Bot

The Sainsmart IIC/I2C/TWI 1602 Serial LCD Module Display module allows you to display information directly on your project and also gives you the ability to interact with the Arduino directly by adding a few switches here and there. Having this ability is a great way to troubleshoot your project and have it interact with others.

SainSmart IIC/I2C/TWI 1602 Serial LCD Module Display For Arduino UNO MEGA R3 *New *

Choose a Display

When you decide to add an LCD readout to your Arduino project you will have to decide on a few things. What size, color and interface type do you want. Size is relevant to how much data you want to display at once. Color is personal preference mostly. Interface is largely a choice the number of free inputs/outputs left on your project and your technical abilities. I started by trying to add an old 16x2 display I had from an old plotter. This is doable, and in fact done all the time. My problem was it took 7 pins to run the lcd and I don't have that kind of real estate with an Arduino UNO R3 and a Motorshield on top. So I opted for an LCD model that incorporates the I2C interface board.

What is I2c

Lcd2004 with I2C Module on back.

I2C, read I Squared C is a two wire interface for slower speed devices that allows the Arduino to become a master controller of the slave device and send it commands that only require two wire connections to operate the device. So we go from 7 wires to only 2 to have a functioning LCD read out. The kewl part is that if you had more than one device that was I2c, you could use them on the same two pins. That is a pretty nice feature to have. The I2C Module on the back also incorporates a built in contrast pot. One less thing you have to design, wire and build.

Data and Clock Pins

The SCA(data) and SCL(clock) wires are the I2c connections needed to use this readout. On the Arduino Uno they are the A4 and A5 analog pins. On the MEGA board they use the Pins 20 and 21. I wasn't able to find a way to change this on the UNO boards, but it may be possible. I had to move a Ping sensor I installed earlier on pin A5 because of this.

100 Ohm resistor on 5 volt


The LCD2004 is s 5V device, so we have to clarify that even though the I2C only uses two wires for data, this is still a 4 wire LCD in that it uses 2 wires to supply data and 2 more wires to supply power and a ground for the device to run. I ran the data wires to the Breadboard I made on the motorshield on pins A4 (SCA) and A5(SCL). I then ran the power wires to the two pins behind port A5. Make sure you put a 100 Ohm resistor on the 5v+ side or your lcd will not work correctly. In the diagram They didn't have an IC2 LCD so I ran the wires to a regular LCD. Red is 5V(vcc) Black is Grd. Purple is SCA(Pin A4)and Blue is SCL(Pin A5).


The code for your new LCD is pretty simple once you find the right library. I struggled to find one that worked. The first thing I did was goto Sainsmart's site and download their library. One thing we know about Sainsmart is that the website is not up to date and half the stuff you have to hack away at to make it work. But that is the price you pay for cheap prices. Their library did not work for me. After a lot of research I stumbled across a guy who said that this unit was the same as one released by a company called DFRobot. So I tracked it down and found a library there that seemed to work very well. Go to DFRobot LCD and scroll to the bottom to download the library. The name is LiquidCrystal_I2Cv1-1.rar. Download and install it in your Arduino programmer. There are newer libraries but this one is the one works great with this LCD.

Add Code to Sketch

Next we need to add code to our sketch to make it work. Add the following two line in the section above your void setup().

#include <LiquidCrystal_I2C.h> //Include the installed library

LiquidCrystal_I2C lcd(0x3f, 16, 2); // set the LCD address to 0x3f for a 16 chars and 2 line display.

The default codes all have this (0x3f) address wrong, make sure you know the address of your lcd. Making sure its connected and ready with the I2C Scanner tool found here. Put the address it finds in the line above.

In void setup() add the following lines.



lcd.init(); // tell the lcd to be ready for data.

lcd.backlight(); // Turn on the back light, you can also do this in a function.


Add the following lines to your void loop() section.

void loop()


lcd.print("Hello There!"); //print on line 1 of the LCD

lcd.setCursor(0,1); //set the cursor to line 2

lcd.print("Im an Arduino"); Print on line 2



Here is the complete Woody bot Code with the LCD Added. I rewrote the code I used previously to utilize functions instead of all the code in a linear line. It makes it much easier to edit and troubleshoot the sketch later. This sketch includes status updates when the bot avoids an obstacle.

//Code for the Woody Bot, with Ping Sensor, and LCD2004 readout // //Kevin "Woody" Woodyard // //Check out for more info and build guide. #include <Ping.h> #include <AFMotor.h> #include <Wire.h> #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x3f,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display Ping ping = Ping(A3); //set which model ping your using AF_DCMotor motor(1, MOTOR12_64KHZ); //Set motors to right frequency to match your servo. // create motor #1, 64KHz pwm AF_DCMotor motor2(2, MOTOR12_64KHZ); // create motor #2, 64KHz pwm void setup() { Serial.begin(9600); // start serial communication at 9600 baud lcd.init(); // initialize the lcd lcd.backlight(); lcd.print(" Woody Bot");// Print a message to the LCD. lcd.setCursor(0,1); lcd.print(" Version 1.4"); //Print on line 2 of the lcd delay(3000); pinMode(A0, INPUT_PULLUP); // make pin A0 an input with internal pullup motor.setSpeed(255); // set the speed 0f the servos motor2.setSpeed(130); while (digitalRead(A0) == HIGH){ // Pause until the button is pressed lcd.setCursor(0,1); lcd.print(" Press Start! "); } } void loop() { Scan(); int inches = ping.inches(); // where are we??? Forward(); if(inches <= 6) { // if the Woody Bot gets too close... Left(); }else{ Forward(); } } void Scan(){ for(int i = 0; i<5; i++) // do this 5 times; } void Forward(){ //Run both motors forward lcd.setCursor(0,1); lcd.print(" ^^^Forward^^^ ");;; delay(100); } void Left(){ //Run Motors opposite to rotate left. lcd.setCursor(0,1); lcd.print(" Turn Left ");;; delay(300); } void Right(){ //Run Motors opposite to rotate right. lcd.setCursor(0,1); lcd.print(" Turn Right ");;; delay(300); }

Saturday, November 16, 2013

Arduino Battery Voltage Monitor to LCD on Woody Bot

Once you build an Arduino based robot you will soon run into a situation where your robot goes nuts in some way or another. This is often caused when the battery voltage has dropped below a level to support both the arduino and the peripherals you have attached to it.  One way to avoid or be made aware of this situation is to include a battery voltage monitor into your project. I have read a lot of naysayers saying this is not good practice, but I have had really good luck with this one and it keeps me aware of my battery status. Especially if your going to be using LiPo batteries.

Tuesday, November 12, 2013

How to add a breadboard to an Adafruit/Sainsmart Motorshield

Adafruit Motorshield Breadboard Area
If you have ever added an Adafruit/Sainsmart L293 Motorshield to and Arduino, then you know that it leaves very few options for easy connection of sensors and other devices. There is a small connection area on the board to connect to Analog pins A0 to A5, but you have to solder to the connections if you use them. I decided to make this a small breadboard area instead, so that you could plug your connections in, for ease in upgrading and changing circuits.

SainSmart L293D Motor Drive Shield For Arduino

The Woody Bot gets collision avoidance with the Parallax Ping

Parallax Ping Ultrasonic Distance Sensor
The next logical step to any robot build is to figure out a control system of some sort. You could remote control it with a cell phone, I-pad or a radio remote. You could build it as a Line Following robot, or make it completely autonomous. I am eventually going for the latter. You could also use a combination of all these. For now we are going to add the first step in the autonomous process and add a basic collision avoidance system. We are starting by adding one Parallax Ping Ultrasonic Distance Sensor. We will probably be adding to this in the future and use multiple Pings or Infrared sensors to help us avoid objects.

Parallax Ping Ultrasonic Range Sensor 28015

Sunday, November 10, 2013

Adding a Start Switch to Woody Bot

Start Switch for Woody Bot
If you have done anything with an Arduino based sketch you know that when it is done uploading or the second you apply power it starts running whatever it is programmed to do. This is fine except when your dealing with a robot that will run off the desk and crash to the floor. My solution with the help of some great people in the Arduino Forum was to put in a momentary push button switch that very basically holds the program until you push  the button. At which point it will then run the program until you remove power.

Adding Traction to the Arduino Woody Bot Wheels

Woody Bot
After building the Woody Bot, one problem I encountered was the lack of Traction from my homemade plastic wheels. Mainly on smooth flooring but sometimes on carpets as well. So I investigated a couple ways to fix this and decided on this.

Thursday, November 7, 2013

How to Build an Arduino Robot on a Budget - The Woody Bot

The Arduino Uno with
 Adafruit Motorshield
I have had my Arduino for a while now and just couldn't decide on what I wanted to build with it. I've wired some simple electronic circuit to play with. I've messed with servos and all kinds of simple motor designs. But I finally decided I wanted to build a robot. I saw all kinds of chassis that were really cool and you can buy them all over the place. Yet I decided to start from scratch and use stuff I had lying around and spend as little money as possible. Hopefully you can do the same and have as good a time doing it as I have.

Arduino UNO R3 board with DIP ATmega328P

Monday, November 4, 2013

What is an Arduino and Why do you need one?

If you haven't heard of an Arduino, then your in for a treat. All those little projects that you have thought up in that complex brain of yours but have never quite been able to figure out how to control them all. Well the Ardunio R3 will do it for you. Automation should be a huge keyword when dealing with an Arduino. Keep reading for the amazing details. Oh, Did I mention its only $15 too?

Arduino UNO R3 board with DIP ATmega328P

Raspberry Pi? You Hungry or what?

There is always some new gadget or device out there that has piqued my interest, or made me want to play with it. I was on the web searching for an interface for my media server and stumbled across a Micro Computer called the Raspberry Pi. If you haven't heard of it you need to read this article. It is a $25 HDMI capable 1080p Mini Computer that runs on Linux. Yes that says $25. Got your interest now?

Raspberry Pi Model B Revision 2.0 (512MB)

US Cutter Laserpoint Repair Sloppiness

When I decided to get into vinyl cutting, like many people I didn't want to spend $2500+ on a machine to find out if I liked it or not and if I could make money using it. So I started searching and found several companies marketing Sub $1000 machines that all claimed they could do everything the Graphtec's could do. So I finally decided on a Us Cutter Laserpoint 24" With a stand and catch basket it only set me back about $500 and it looked pretty good in red too.

USCutter 31.5-inch LaserPoint II Vinyl Cutter Contour Cutting w/ Stand & SCAL Pro

Thursday, September 19, 2013

NASCAR Raceday Checklist

So your going to a  NASCAR race? Whether it is your first race or your 50th race there are times when a checklist will help you remember things your supposed to have with you at the race. Just a simple list of things that make the race day go smoother and be more enjoyable. 

Thursday, June 27, 2013

Windows 7 Won't Wake Up

If you have ever had the troublesome computer that won't wake up after setting idle all night and when you move your mouse in the morning nothing happens. The power LED on the monitor stays amber and doesn't change color and no log on screen. Your not going to believe how simple the solution will be for some of you. Keep reading to find out.

Saturday, May 4, 2013

Vortex box add external USB drive in Linux for movies and music.

If you built a Vortexbox for all your music and have been using it for a while, chances are you stumbled across the fact that Vortexbox using Makemkv is also good all by itself for Ripping DVD videos for your archives. But it is not that great at serving them up. This is where Plex comes in as a media server for your videos. The problem you may encounter when you initially build your Vortexbox is that a 250Gb drive by itself will hold a lot of music, but not when there is video involved. Before long you will find yourself with a drive that is almost full. So how do you fix it? Buy a huge drive and completely re-install your system? This is a pain to say the least. My solution involves using external USB drives and adding storage in addition to what you already have.

Friday, May 3, 2013

Lenovo M92 with more than two displays, Triple and Quad

Lenovo M92 series
If you have a Lenovo M92/p series PC and tried to setup more than two displays, chances are your going to be disappointed. For some reason out of the box the displays are not configured with the correct drivers, and the BIOS is set wrong for multiple displays. If you call Tech support they will tell you this machine is not capable of running more than two displays without an expensive adapter. Well they are full of it. It can be done and I will show you how. With no expense to you other than cables.

Thursday, January 17, 2013

Recover articles from deleted Blogger site, even locked..

If you have ever had a site deleted by Blogger by its so called Spam Filter, then you know how upsetting it is to think you may have lost all your articles since the last backup. I back my site up regularly but not daily, which maybe we should do, but that is another article. Recently one of my sites was flagged as spam and I had about 6 articles I had not backed up, which I thought I  had lost for good. Fortunately I stumbled upon a way to recover them.