Tuesday, 1 December 2015

Line follower robot without using microcontroller

Line follower robot without using microcontroller:

In order to make line follower robot, we have to use L293D, which is motor driver ic used to control the motors. IR sensor which gives its input to the motor driver ic i.e. L293D. 7805 is there to convert 9 volts to 5 volts. We can implement this circuit on breadboard as well.


Line Follower Robot

For circuit diagram, refer to Fritzing sketch given below:

Fritzing sketch

The motors are geared one, as we know that geared motor has more torque than normal motor. That's why we are using geared dc motor. In this figure, we are using two 9-volt battery, one is for motor driver and ir sensor while other one is dedicated for motor.

Pin diagram of  L293D
L293D is also known as h-bridge. In L293D, we have to two channels by which we can control two motors. 600mA output current per channel.

Truth Table of L293D

That's all for line follower robot.

Feel free to comment here.

Stay tuned for more projects....






Line follower robot in action

Sunday, 22 November 2015

Make computer application to control led on Arduino Uno

In order to control led of  Arduino Uno we need computer application. For that, we need Microsft Visual Studio. I am using Visual Studio 2012. I already had written the source code for it.

Source code is below:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Arduino
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            arduino.Open();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            arduino.Write("9");
        }

        private void button2_Click(object sender, EventArgs e)
        {
            arduino.Write("3");
        }

        private void button4_Click(object sender, EventArgs e)
        {
            arduino.Close();
            this.Close();
        }

        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }
    }
}

Below is design:





UI of computer application
 Changing COM PORT:

 
UI of computer application

After this, upload the arduino program on to your board.



All the files can be downloaded from here:
https://drive.google.com/file/d/0B4Px6Drl6Zz_LWFUcDd2QzBCQWM/view?usp=sharing