Sep 082016
  

If you’re looking for a robotics project to build. And if you want to be fun, quick, and easy this is the robot project for you. I found it at https://www.hackster.io/lovelyideas-in/arduino-remote-car-using-bluetooth-hc-05-android-app-control-3da97d  Mr. Jones Kys did a wonderful job developing this. Everything you need is available for download, including the Arduino sketch, schematic, and Android app.

Bill Of Materials:

  • Arduino – Uno,Nano, or Pro-Mini will work. Possibly others as well.
  • HC-05 Bluetooth module
  • Two DC motors and a chassis (you can be creative with the chassis)
  • L293D Dual H-Bridge motor driver
  • Power source (I used two 18650 Lithium Ion Rechargeable Batteries)
  • The Arduino IDE software (available for free at https://www.arduino.cc/en/Main/Software)

The rough prototype.

I put this together using an Arduino Pro-Mini and HC-05 Bluetooth module. An Arduino Nano would also work perfectly. I powered this using two Lithium Ion rechargeable batteries. I ran the hot lead to the RAW pin on the Arduino Pro-Mini. And the 5 volts for the Bluetooth module came from the VCC pin on the Arduino Pro-Mini. I am looking forward to cleaning it up as well as possibly including encoders on each wheel to solve the issue of one motor turning faster than the other, which causes the bot to veer off a straight line.

 

Motor with encoder wheel and two encoders.

 

 

 

 

 

 

 

 

You can see in the picture what an encoder looks like and also pictured is the encoder wheel you mount to your axle that spins inside the two protrusions on the encoder. Also you might notice the 0.1uF capacitor I soldered between the two terminals on the motor. That cuts down on theEMF emissions from the motor that can interfere with the radio signal.

Here’s a short video of the robot/car in action.

 

You can download everything you need and check out the project at:

https://www.hackster.io/lovelyideas-in/arduino-remote-car-using-bluetooth-hc-05-android-app-control-3da97d

Jul 172016
  

 

Working with Level Shifters

Level shifters are a wonderful and very affordable solution when you have a situation where you have to interface a 3.3VDC and a 5VDC device. They are also called voltage shifters and they come in uni-direction versions where the signal only goes one way, bi-directional where signal goes both ways, direction controlled level shifters with a dedicated directional pin, logic level shifters that put logic functionality and voltage translation into a single design, and finally application specific level shifters .You will also find them in a variety of multi-channel types as well as bit rates. In this article we’ll cover the 5VDC/3.3VDC bi-directional 2 and 4 channel types available on Ebay for a very low cost and how to use them in your ingenious projects.

Step 1: Two channel level shifter

 

This was my first level shifter. I bought it from a seller on Ebay. When i bought I had not yet worked with level shifting so I did not notice the module was not marked to indicate which side was LV (low voltage) or HV (high voltage). Simply put you supply 5VDC and GND (ground) to one side of the module and 3.3VDC and GND to the other side. The first time i used it I was using a 3.3VDC ESP8266 to wirelessly control a 5 VDC servo. Without the shifter the ESP8266 would not boot up. Once I had the shifter in place it performed perfectly.

The markings that are on the module are:prefaced with an “A” on one side and “B” on the other.

  • AVCC (I soon figured out this was the 5VDC input)
  • ASCL – This seems to indicate the module is I2C compatible.
  • ASDA – In an I2C situation this would seem to be the SDA data signal connection
  • AGND – This pin goes to the ground bus

In this example I’m interfacing a 3.3VDC HC-06 bluetooth module with a 5VDC Arduino Pro Mini to turn on and off an LED using Putty on a BT equipped laptop.

Step 2: 3.3VDC HC-06 Bluetooth – 5VDC Arduino Pro Mini

I also bought some 4 channel shifters and they are marked HV and LV which tells me which side should be connected to the 5VDC power and which gets the 3.3VDC power. They are also marked TX and RX but I disregarded that in this setup and I am having no problems TXing on the RXing channel. I’ve breadboarded a 3.3VDC HC-06 Bluetooth with a 5VDC Arduino Pro Mini. using I’m using PuTTY ( a free SSH and telnet client for Windows) on a bluetooth eqipped laptop to control the Arduino to turn on and off the LED. You can get a free copy of PuTTY at http://www.putty.org/

The Arduino Bluetooth LED control sketch is avalable @ https://volthauslab.com/sketchs/Bluetooth/bluetoothLEDcontrol.ino