Go Back   IceInSpace > Equipment > ATM and DIY Projects
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread
  #1  
Old 01-12-2011, 02:02 AM
Merlin66's Avatar
Merlin66 (Ken)
Registered User

Merlin66 is offline
 
Join Date: Oct 2005
Location: Junortoun Vic
Posts: 8,927
USB motor/ servo driver + relay???

Help needed guys.....
I want to control a shutter and an external lamp from the USB port.

The shaft on the shutter need to rotate 90 degrees (open to closed position) and the neon lamp takes 2A at 12V.
So, ideally - close the shutter, switch on the lamp, switch off the lamp, open the shutter....
I've looked at some PIC options (POLOLU Maestro, Microbee DC servo, and stepper version) but the need for the lamp switching seems to be a problem.
I'm no electronic wizard...only need a job done.
Can you help??
Reply With Quote
  #2  
Old 01-12-2011, 11:36 PM
Poita (Peter)
Registered User

Poita is offline
 
Join Date: Jun 2011
Location: NSW Country
Posts: 3,586
The lamp switching shouldn't be a problem, just drive a big relay and switch the lamp with that. How fast does this all have to be and what on earth is it for?
Reply With Quote
  #3  
Old 02-12-2011, 12:54 AM
Merlin66's Avatar
Merlin66 (Ken)
Registered User

Merlin66 is offline
 
Join Date: Oct 2005
Location: Junortoun Vic
Posts: 8,927
It's to remotely operate a neon reference lamp in a spectroscope.
Before and after each set of spectrum images we need to take a reference spectrum to allow correct calibration.
There's no real timing constraints, the lamp exposure would be of the order of 10 seconds.
Reply With Quote
  #4  
Old 02-12-2011, 10:55 AM
joshhagger's Avatar
joshhagger (Josh)
Registered User

joshhagger is offline
 
Join Date: May 2010
Location: Mount Compass, South Australia
Posts: 32
Arduino?

An arduino would probably do what you want, can be used via usb or ethernet & can control relays & stepper motors.

Little Bird Electronics has the hardware & the Arduino site has the software, libraries & code ideas.

Regards,
Josh
Reply With Quote
  #5  
Old 02-12-2011, 01:11 PM
alistairsam's Avatar
alistairsam
Registered User

alistairsam is offline
 
Join Date: Nov 2009
Location: Box Hill North, Vic
Posts: 1,837
Have a look at the picaxe's as well.
I've seen a few similar completed projects and they're very easy to use.
programming code couldn't be simpler.

you can attach relays to a few of these boards. most picaxes support servos natively. http://www.microzed.com.au/index.php...afm6d089isk8d1

http://www.picaxe.com/Circuit-Creato...Outputs/Relay/

http://www.picaxeforum.co.uk/forum.php

but when you say powered by usb does it have to be pc controlled or is the usb just a 5v source?
Reply With Quote
  #6  
Old 02-12-2011, 03:40 PM
mswhin63's Avatar
mswhin63 (Malcolm)
Registered User

mswhin63 is offline
 
Join Date: May 2009
Location: Para Hills, South Australia
Posts: 3,622
I currently use PIC myself and programming is a lot easier than when i first started but I feel Arduino has provided a slight better range and solution than PIC. One is the development kit for PIC uses a special lead for connecting (3.5mm) to PC while Arduino uses regular USB connections. I am considering switching to Arduino.
Reply With Quote
  #7  
Old 02-12-2011, 06:51 PM
Bassnut's Avatar
Bassnut (Fred)
Narrowfield rules!

Bassnut is offline
 
Join Date: Nov 2006
Location: Torquay
Posts: 5,065
Quote:
Originally Posted by alistairsam View Post

but when you say powered by usb does it have to be pc controlled or is the usb just a 5v source?
Thats a good point, USB controlled or powered is bit tricky.

Unless you want to go to the bother of building a pcb with a micro etc (lots of electronics but granted, save money) why not just buy a cheap small PLC ($150 or so) and everything is built in. Then a wind screen wiper motor or such with 2 limit switches at 0 and90deg and a bit of programing (done right on the PLC, no PC) and it's done. The lamp is simply switched by a built in PLC output relay. No soldering or electronics is required.

If USB control is required, there are many pre-built USB relay out - limit sw in interface modules available, but they require PC interface software/coding skills.
Reply With Quote
  #8  
Old 02-12-2011, 07:39 PM
Merlin66's Avatar
Merlin66 (Ken)
Registered User

Merlin66 is offline
 
Join Date: Oct 2005
Location: Junortoun Vic
Posts: 8,927
Fred, et al,
The shutter is inside the spectroscope and probably only needs 50gm to rotate...
I bought the POLOLU Maestro USB servo driver and a small 12V RC model type servo - The Maestro package has a windows interface which allows me to control the rotation of the servo but there's no connections I can use to control a relay...it's been suggested I need to buy a "latching" 5V relay to control the lamp.
I'm no electronics wizard, but the cost and complexity just seems to rise..
I'm thinking of just buying the Microbee controller (servo and switching capable) but that another 30gbp!
Reply With Quote
  #9  
Old 02-12-2011, 07:52 PM
Bassnut's Avatar
Bassnut (Fred)
Narrowfield rules!

Bassnut is offline
 
Join Date: Nov 2006
Location: Torquay
Posts: 5,065
OK, think of this. Program the servo and mechanically align the mechanics to operate the shutter from 10deg to 100deg (90 deg). Fit a microswitch to the servo actuator, so its activated (pushed) at 0 deg. Connect the microswitch to the lamp. Programing the servo from 10 to 0 and back to 10 operates the lamp, and 10 to 100 deg operates the shutter. If you need the lamp to be on whilst the shutter is operated, then get a "latching" relay switched by the microswitch. 10-0-10 to turn it on, then after operating the shutter, 10-0-10 to turn it off again. This all might sound odd, but ive done this kind of thing on several projects and it works very well.

Last edited by Bassnut; 02-12-2011 at 08:14 PM.
Reply With Quote
  #10  
Old 02-12-2011, 08:40 PM
Merlin66's Avatar
Merlin66 (Ken)
Registered User

Merlin66 is offline
 
Join Date: Oct 2005
Location: Junortoun Vic
Posts: 8,927
Fred,
Great minds think alike, or was it something about fools....
Yes, I've just found a small microswitch in my junk box so I'll set it up with the servo....
I was thinking even of a small camplate on the shutter shaft to activate...
Reply With Quote
  #11  
Old 02-12-2011, 09:15 PM
Bassnut's Avatar
Bassnut (Fred)
Narrowfield rules!

Bassnut is offline
 
Join Date: Nov 2006
Location: Torquay
Posts: 5,065
Exactly.
Reply With Quote
  #12  
Old 03-12-2011, 08:19 AM
Poita (Peter)
Registered User

Poita is offline
 
Join Date: Jun 2011
Location: NSW Country
Posts: 3,586
Or if the cam-plate is a hassle, use a magnet and a reed-switch, which will be a total cost of <$5 and reed switches can take quite a bit of current.
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time is now 04:05 AM.

Powered by vBulletin Version 3.8.7 | Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Advertisement
Bintel
Advertisement