Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 41
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
No birthdays today

Next birthdays
05/07 a.gutzeit (63)
05/08 wpk5008 (34)
05/09 Alfons (36)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: Projects
« Previous topic | Next topic »   

PC Controlled Laser Turret

1 2 
Move Thread LAN_403
uzzors2k
Tue Apr 07 2009, 07:47PM Print
uzzors2k Registered Member #95 Joined: Thu Feb 09 2006, 04:57PM
Location: Norway
Posts: 1308
As a side project I've been working on a PC controlled laser turret the last few weeks. The idea was to cheaply and quickly whip up some kind of turret with a laser mounted on it, so if I ever wanted to, I could experiment with laser tracking. I didn't succeed in doing it quickly, but it was done cheaply. The mechanical part was the most difficult for me, so I put the least effort in it. tongue Rotational movement is provided by two sets of gear assemblies taken from old CD-ROM drives, which are simply glued together. The laser was taken from an old laser pen, which also had a LED flashlight. The laser/LED assembly was glued to one of the gears. That constitutes the basic hardware, which now only needs some means of being controlled.


1239131924 95 FT0 Img 0665

Given my conversion to AVR I chose to use the ATTiny2313 for this project. In terms of PC control I could use the parallel or serial port, but parallel is newb, and the AVR has a USART module built in, so serial it is. Some circuitry was made. More specifically I used a MAX232 to convert RS-232 level to TTL for the µC, some gatedrivers for motorcontrol, and otherwise there's just support circuitry for the AVR chip. The firmware for the AVR does nothing but receive an incoming serial byte, do some rudimentary error check, and write it to portb. I used MikroC Pro to make the firmware, but given the code's simplicity it could have been done just as easily in assembly.

1239132626 95 FT0 Img 0702

To ease steering the turret I also decided to make a dedicated windows application which could send the correct codes at the punch of a button. This was a first for me, and I made the mistake of starting with Visual C++, which blew me away. I now see why Visual Basic is more popular. After three days of work I churned out a simple little program far beyond what I had expected to achieve. It even gives error messages instead of crashing!

1239133003 95 FT0 Turret Software Screenshot

All in all it's a fun little gadget, but the gear reduction is too low so it's very jerky. I know servos are meant for this sort of thing, but I didn't have any. I'm not good at writing about projects after they're done, so do ask! Here's the firmware, schematic and software.
]firm_and_soft-ware__schemmie.zip[/file]

1239133173 95 FT0 Img 0705
Back to top
hotcrazyfruit
Wed Apr 08 2009, 01:52AM
hotcrazyfruit banned on 5/26/2009
Registered Member #1877 Joined: Mon Dec 22 2008, 02:03AM
Location:
Posts: 147
what you should do is get an astronomy laser pointer and get rid of the current limiting resistor i it. then set stuff on fire. that would be impressive.
Back to top
Dr. H.
Wed Apr 08 2009, 03:40AM
Dr. H. Registered Member #931 Joined: Mon Jul 30 2007, 05:25PM
Location: Bulgaria
Posts: 486
Good day guys

hotcrazyfruit wrote ...

what you should do is get an astronomy laser pointer and get rid of the current limiting resistor i it. then set stuff on fire. that would be impressive.


But be shure that the turret won't go crazy and set your house on fire hee hee ill

Are those DC motors that you are using for positioning ?

Cheers smile
Back to top
...
Wed Apr 08 2009, 05:41AM
... Registered Member #56 Joined: Thu Feb 09 2006, 05:02AM
Location: Southern Califorina, USA
Posts: 2445
That is quite awesome! I agree though, you should steel a diode out of a fast (20x or so) dvd-burner and get a housing for it (you can get them on ebay pretty cheep, check out Link2 for a ton of info on such projects) and increase the laser power.

As to the motors, it seems like you have enough gear reduction, you just need to slow the motors down. you could probably rig something with a resistor and a few diodes from the output of the avr, so that one pin gives default full speed and another gives ex 1/10 speed, and have 2 buttons on your program large step or small step.
Back to top
uzzors2k
Wed Apr 08 2009, 06:13PM
uzzors2k Registered Member #95 Joined: Thu Feb 09 2006, 04:57PM
Location: Norway
Posts: 1308
I'm using 5V DC motors for positioning. With the voltage drop from the gate drivers the motors only see 2.5V. I've thought about different ways to get better precision, but as is the motors have very little torque. To the point that any further decrease in power would make them too weak to overcome the mechanical resistance from the signal wires!

I just purchased and received a PHR-803-T module on ebay, so we'll see about the laser upgrade. wink
Back to top
Dr. H.
Wed Apr 08 2009, 06:42PM
Dr. H. Registered Member #931 Joined: Mon Jul 30 2007, 05:25PM
Location: Bulgaria
Posts: 486
Why don't you consider upgrading to steppers ? There are some very cheap half-step drivers that will give you very good positioning with some gear reduction, and you will be able to exactly point it where you want. Also you only need direction and clock signal for every stepper.

Cheers smile
Back to top
Renesis
Wed Apr 08 2009, 08:20PM
Renesis Registered Member #2028 Joined: Mon Mar 16 2009, 08:13PM
Location: Norway
Posts: 319
Nice project, that is not something you see everyday.

You could use a couple of servo motors like those used on rc cars. They are both cheap and powerful.

Wouldnt it be neat if you could steer the turret with your mouse, like a first person shooter game?
Back to top
ConKbot of Doom
Wed Apr 08 2009, 09:52PM
ConKbot of Doom Registered Member #509 Joined: Sat Feb 10 2007, 07:02AM
Location:
Posts: 329
Renesis wrote ...

Nice project, that is not something you see everyday.

You could use a couple of servo motors like those used on rc cars. They are both cheap and powerful.

Wouldnt it be neat if you could steer the turret with your mouse, like a first person shooter game?
and with a laser you could use the main laser itself with a few photodiodes as a home position setup... have it look up till the laser hits a photodiode directly above it to home elevation, and then rotate down 30 degrees and rotate till you hit one to home azimuth
Back to top
hotcrazyfruit
Thu Apr 09 2009, 04:00AM
hotcrazyfruit banned on 5/26/2009
Registered Member #1877 Joined: Mon Dec 22 2008, 02:03AM
Location:
Posts: 147
i just remembered of another way, you could use the same technology old ball mice use. having a perforated wheel, then a photo transistor and led . then mounting the wheel to the axel of the part that rotates and elevates the laser. probably use an IRED so it doesent glow) and have a circuit count the number of times the photo transistor receives a pulse of light. this could be used to calculate the angle of the laser, as long as you know how many perforations there are in the wheel. take apart an old mouse and see for your self, its actually quite a far fetched idea, and i was surprised when i took one apart to see that.
Back to top
Ryan Parle
Thu Apr 09 2009, 01:37PM
Ryan Parle Registered Member #2038 Joined: Fri Mar 20 2009, 03:39PM
Location: Bristol Uk
Posts: 60
One of my other hobbies is AstroPhotoraphy, and i have been helping a friend develop his own system for a motor driven encoded mount for his telescope.

We have actually used an old serial ball mouse to alow confirmation of the mount being in the correct position, we drive the mount using stepper motors ripped out of an old printer and the driver board is an Omnima driver board.

others have used the ardunio (SP) board to controll their mounts, in order to supply the current needed by the motors a seperate driver baord was made, i dont know the specs, but i would imagine for somthing as small as this project the it might be possible to drive the motors directly.
Back to top
1 2 

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.