Author Topic: Controlling electormagnets with my computer?  (Read 2052 times)

yahurd

  • Member
  • **
  • Posts: 677
  • Kudos: 384
  • Hero of Time
    • http://www.yahurd.my-place.us/
Controlling electormagnets with my computer?
« on: 8 August 2009, 12:59 »
Can anyone tell me how to individually control 10 electromagnets with a PC?

I need to be able to adjust each one individually, control the strength, shut them on, and off etc.

Can anyone tell me how to do this?

davidnix71

  • Member
  • **
  • Posts: 760
  • Kudos: 501
Re: Controlling electormagnets with my computer?
« Reply #1 on: 12 August 2009, 04:02 »
The GadgetMaster

http://www.pcgadgets.com/

10 stepper motors, each connected to the trim pot of each electromagnet's control board.


yahurd

  • Member
  • **
  • Posts: 677
  • Kudos: 384
  • Hero of Time
    • http://www.yahurd.my-place.us/
Re: Controlling electormagnets with my computer?
« Reply #2 on: 14 September 2009, 22:49 »
They need to oscillate, I think either between rates or on and off, at several thousand cycles per second. can gadgetmaster do that? and if not does anyone know how I could?

Lead Head

  • Global Moderator
  • Member
  • ***
  • Posts: 1,508
  • Kudos: 534
Re: Controlling electormagnets with my computer?
« Reply #3 on: 15 September 2009, 05:32 »
You will probably need to use some kind of PIC micro-controller with an amplifier board. AFAIK, there is no built in interface on a PC that can handle 10 simultaneous outputs. If it was just 1 or 2 magnets you wanted to control, the parallel port would suffice.
sig.

Aloone_Jonez

  • Administrator
  • Member
  • ***
  • Posts: 4,090
  • Kudos: 954
Re: Controlling electormagnets with my computer?
« Reply #4 on: 15 September 2009, 12:11 »
I agree, use a PIC.

How much current do the magnets draw and what voltage do they require?

If you don't need any more than 5V@500mA in total then you could power the whole thing from the USB port, otherwise you'll need a separate power supply (assuming you're not mounting this inside the PC's case). You can buy wall plugs or small switched mode power supplies quite cheaply.

You'll need a driver to power the magnets; this could just be a transistor.

This doesn't sound like a hard project but unless you have at least a basic knowledge of electronics, assembly programming and can solder you're going to struggle.

Here are some PIC tutorial sites.
http://www.gooligum.com.au/tut_baseline.html
http://www.winpicprog.co.uk/pic_tutorial.htm
http://www.mstracey.btinternet.co.uk/index.htm
This is not a Windows help forum, however please do feel free to sign up and agree or disagree with our views on Microsoft.

Oh and FUCKMicrosoft! :fu: