Showing posts with label Arduino. Show all posts
Showing posts with label Arduino. Show all posts

Sunday, May 25, 2014

Arduino Based Phone/ Bluetooth Controlled Bot

Hello

In this article I discuss how I made a Bluetooth Controlled Bot.


Time Required: 

1 Hour

What is it ?

A Bluetooth controlled robot. You can control the movement of the robot (forward, backward, left, right) through an Android device. I used an application named Sena Bluetooth Terminal to send data from my android device to the robot.

Parts Required


1. Arduino Uno
2. Battery Operated Motor (BO)
3. Wheels
4. Chassis
5. L293D Motor Driver
6. 2 9V Battery
7. HC05 Blutooth Module

Most of this parts can be found on ebay. 

If you are reading this out of shear interest, chances are high that you know something to many thing about arduino microcontroller. If not, than just google it.

Before you proceed in making this, learn how to handle the HC05 Bluetooth module. Below is the link that will show you how to get into AT command mode and configure the Bluetooth module. 


https://www.youtube.com/watch?v=-z_0aU8VHzk



Once everything is fine with the Bluetooth module you can fall in line with this article.

The figure below is self-explanatory and here is the wiring information.
The Arduino Uno should be powered with a separate 9V battery (Not shown in figure)


L293D Motor Driver and Arduino Pin Connection 

Pin 1 goes to Arduino Pin 2
Pin 2 goes to Arduino Pin 4
Pin 3 goes to Motor 1.1
Pin 4 goes to Ground
Pin 5 goes to Ground
Pin 6 goes to Motor 1.1
Pin 7 goes to Arduino Pin 5
Pin 8 goes to Arduino 5V pin
Pin 9 goes to Arduino Pin 3
Pin 10 goes to Arduino Pin 6
Pin 11 goes to Motor 2.1
Pin 12 goes to Ground
Pin 13 goes to Ground
Pin 14 goes to Motor 2.2
Pin 15 goes to Arduino Pin 7
Pin 16 goes to 9V supply

Bluetooth module and Arduino pin Configuration

RXD pin to Arduino pin 11
TXD pin to Arduino pin 10
VCC to Arduino 3.3V
GND to Arduino Ground


Note: It is better to use a L293D breakout board rather than the lone IC. They are easily available in ebay.

Note: Arduino ground, HC05 Bluetooth module ground and 9V Ground is common as seen in the figure



Below is the link to the Arduino Sketch or Code
https://drive.google.com/file/d/0BzjnppE-h-xeV21RVzk2MlJkZGs/edit?usp=sharing

Monday, March 11, 2013

Solar Tracker Based Solar Panel using Arduino



First Look!!

Hello, till date I have posted number of articles in my blog, but none on my core interest of Arduino microcontroller. This is because I’m still learning it and lots remain to be learnt. Nevertheless here is one of my very simple projects on Arduino microcontroller. I’m sure this post will be a boon for all those newbie on Arduino and equally stupid for the microcontroller experienced guys. For any questions or comments you can mail me at rishiraj.in@gmail.com or Facebook me! (Link at right side of this page)Oh, forgot to mention, this project won a small prize at a small project competition in my state


Solar Tracker Based Solar Panel using Arduino

In this post I present you a prototype of a solar tracker based solar panel. The solar panel changes its orientation according to the direction of the Sun. 
Final Prototype of the Solar Tracker based Solar Panel
Notice how the 3 sensors are kept at the Sensor Board


How it happens?

Basically there are sensors mounted. This sensor when illuminated by the sun rays gets activated and sends a signal to the Microcontroller. The microcontroller in return instructs the motor to move by the specified speed and direction.
There are three sensors fixed in such a way that each sensor gets activated at 3 instants of the entire day, i.e. Morning, Noon, and Afternoon. As the sun raises the first sensors gets activated due to ray of sun falling on it. As a result the Solar Panel orients itself to receive the early morning sunrays. Similarly the Solar panel orients itself when it is noon and afternoon to receive the sun rays efficiently and thereby increase the efficiency of the solar cell.
This dynamic Solar Panel has a greater efficiency since it can illuminate its solar cell even at the morning and afternoon time of the day.
Since it is just a prototype hence I have used torch light to depict sunlight. I made sure that the torch light illuminates only one sensor (LDR) at a time, i.e. one sensor for Morning, one for noon and one for afternoon.

Technical Aspect (Not really)

The Motor and the Sensor (LDR) is controlled by Arduino Microcontroller. The sensor has a predefined threshold value which is crossed when it is illuminated. Once the threshold value is crossed the Arduino sends an instruction to the motor to move.
To make sure that the current demand of the motor is met without affecting the microcontroller, the Motor is connected to a Motor driver (IC L293D) circuit which in turn is connected to the microcontroller.
To control the speed of the motor, PWM technique is used.


The Circuit

The image below shows the circuit, though it looks messy but trust me, it’s very simple.



Blue Wire: Connected from digital Pin 10 and 11 of Arduino to Pin 2 and Pin 6 of L293D Motor driver IC.

Green Wire: the 5V power supply from Arduino to Pin 1 and Pin 16 of IC L293D and also to all the LDRs as shown in figure.

Orange Wire: From Pin 3 and Pin 7 of IC to the DC Motor.

Red Wire: 9V external DC supply. This supply depends on the rating of the DC motor used. In my case I had a 9V DC motor hence 9V supply.

Black Wire: Common ground of the entire circuit. Pin 4, Pin 5, Pin 12, Pin 13, and Arduino ground Pin, 9V battery ground.

Resistor: I just used 100 Ohm resistor and this was chosen randomly. You can use any low resistance.


The Arduino Sketch (Code. . .)

Download It ! ! ! 
You may have to change some part of the Code depending on the intensity of the light where you keep the prototype and the intensity of the torch light used. I guess you'll do it easily, in case of any error or problem write to me.