• Log In
  • Register
Mtaram's Daze
  • Home
  • About me
    • Friends
    • iLike
  • Abstract
    • Color
    • Intellect
    • Pain
    • Poems
    • Success
  • Computers
    • Applications
    • Computer Troubleshooting
    • hardware
    • Security
      • Information Security
    • windows
  • General
    • Environment
    • Events
    • Finance
    • FUN n TP
    • How Tos
    • News
    • Reviews
    • Sidebar Photoblog
    • Sports
    • Work
  • Hacking
    • My Hacks
  • Internet
    • Google
    • Search
  • Mobile
    • Android
    • Apps
  • Social NW
    • Blog
    • Facebook
    • Twitter
    • Wordpress
  • Technology
    • Arduino
    • Gadgets
    • Gaming
  • 3 in 1 Search!
  • About US
  • RSS
  • May 19, 2013
  • SMS Updates

LASER Projector

‹‹‹ Previous Post Next Post ›››
January 25, 2012
By Utkarsh

laser circleI was fascinated by LASERs when I first went to IIT Kanpur during my school days. Since then I have been reading / playing a lot with LASERs. My first one was a LASER trip wire and then a LASER pattern generator. It all was around 10 years back. Having recently acquired an Arduino UNO a plethora of options have opened up. I have started to learn from the beginning and this time I have the power of a microcontroller with me. !0 years back these things were hard to find and were freaking expensive and I didn’t have a sponsor :P

Now I play around with stuff and fund my own projects. I have recently made a dice and a digital thermometer just to learn the new way of doing it.

Next was this LASER Projector (pattern generator to be precise). It involves two DC motors and L293D as a motor driver.

I customized the Motor driver circuit for speed control with Arduino PWM.

The table shows the connection details.

image

Two push buttons were added to control the speed of one motor. The other one rotated with a constant speed. One PWM pin was used to control the LASER as it gets too hot when switched on continuously.

The photo below shows the setup (Not very neat though)

Video

Source code

//LASER SHOW//

int motor1pin1 = 5;  //define digital output pin no.

int laser = 12;  //define the pin for laser output PWM.
int motor1pin2 = 6;    //define digital output pin no.

int speedpin1 = 3;     // define analog output pin no.

int motor2pin1 = 9;                  //define digital output pin no.

int motor2pin2 = 10;    //define digital output pin no.

int speedpin2 = 11;   // define analog output pin no.
int up = 1;  // define pushbutton pin no.
int down =2; // define pushbutton pin no.
int factor =32; //define speed control variable

void setup () {
pinMode(motor1pin1,OUTPUT);        //set pin 3 as output

pinMode(motor1pin2,OUTPUT);        // set pin 4 as output

pinMode(motor2pin1,OUTPUT);        //set pin 3 as output

pinMode(motor2pin2,OUTPUT);        // set pin 4 as output

pinMode(speedpin1,OUTPUT);
pinMode(speedpin2,OUTPUT);
pinMode(laser,OUTPUT);
pinMode(up,INPUT);
pinMode(down,INPUT);
Serial.begin(9600);

}

void loop () {
analogWrite(laser,228);

analogWrite(speedpin1,32);
digitalWrite(motor1pin1,LOW);
digitalWrite(motor1pin2,HIGH);
analogWrite(speedpin2,factor
);
digitalWrite(motor2pin1,HIGH);
digitalWrite(motor2pin2,LOW);
if(digitalRead(up)==LOW)
{
factor++;
}
if(digitalRead(down)==LOW)
{
factor–;
}
Serial.println(factor);
delay(500);

}

Tags: Arduino, L293D Motor Controller, LASER Projector

‹‹‹ Previous Post: Arduino – Digital Thermometer Next Post: Unobot 1–My First Bot ›››

You might also like

LASER scanners for vector projection I made a LASER projector with DC motors. This can display only circular forms. I wanted to make one that...
Why do students fail in exams…? It's not the fault of the student if he fails, because the year ONLY has 365' days. Typical academic...
October 16 ’09 – one of the best days of my life. Never did I know that today was going to be a memorable day of my life. Woke up as usual at 930 am and...
8 = Cat As a kid I loved to draw. Till I was not of the school going age, my mom used to teach me how to write...
Grab This Widget

Line Break

Author: Utkarsh (473 Articles)

Solution designer with Firstsource solutions. A post grad in Networks and IT Infrastructure. Technology enthusiast, blogger, webdesigner, Network security aspirant and in love with electronics and gadgets. This blog is an attempt to share what I find interesting... almost anything @Mtaram on twitter and Google+

3 Responses to “ LASER Projector ”

  1. Harsh on January 25, 2012 at 3:56 pm

    Suberb…. :)

  2. Nik_mod on January 25, 2012 at 4:54 pm

    Utkarsh,
    nice write up on the Laser, why not publish it on our site now you are a member . You may want to enter it in our upcoming competition !

    Look forward to seeing more projects both here and on C-o-R site
    Have good Day
    Nik Haramaki

  3. Utkarsh on January 25, 2012 at 6:35 pm

    Thanks Nik. One of the tutorials about DC motor driver with L293 was the inspiration for this one. Will Post more projects as I make them. Do let me know the dates for the upcoming competetion.

Leave a Reply

Click here to cancel reply.

Opt out of 'Thank You' e-mails..




Blogroll

  • Aima's blog
  • Anant Srivastav
  • Chatter That Matters
  • Computer Tricks and Tips
  • Harsh Ajmera's Blog
  • Life is Beautiful!!
  • Open Source Innovation
  • POET'S NOOK
  • Tech by a Teen
  • The Cyber Nag
  • The IT Axis
  • Vandy's Blog
  • VinolXi


Copyright © 2013 Mtaram's Daze. All Rights Reserved.
336 ‘queries’