Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 12
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
One birthday today, congrats!
Vaxian (17)


Next birthdays
05/21 Dalus (34)
05/21 Kizmo (37)
05/22 Skynet (32)
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 :: Electromagnetic Projectile Accelerators
« Previous topic | Next topic »   

Microcontroller Switching?

Move Thread LAN_403
currentkills91
Wed Jun 15 2011, 09:43AM Print
currentkills91 Registered Member #3831 Joined: Thu Apr 14 2011, 02:54PM
Location:
Posts: 265
Hey everyone, I was looking around at things I could do to increase the efficiency of my coilgun rifle, and I came across the whole microcontroller switching idea.

I could use the microcontroller to turn the MOSFETs, or IGBTs on when the IR beam is broken, and then off right when I wanted to, helping to increase overall efficiency a little bit.

I was looking around for some microcontrollers, and came across this one. Would this do the job for me? I honestly have not the slightest amount of knowledge when it comes to these things. Hopefully you guys here can point me in the right direction. (:
Back to top
Artikbot
Wed Jun 15 2011, 11:25AM
Artikbot Registered Member #3247 Joined: Mon Sept 27 2010, 09:42AM
Location: Spain
Posts: 137
Why not using a simple comparator?

If you use an LM311 and connect the open emitter pin to the gate of your SCR/IGBT it will work as good as a microcontroller. And probably faster.


Concerning the 'closing when I want' thing, probably a small variable capacitor could help you achieve that 'desired length' without the need of a microcontroller.
Back to top
Saz43
Wed Jun 15 2011, 03:54PM
Saz43 Registered Member #1525 Joined: Mon Jun 09 2008, 12:16AM
Location: America
Posts: 294
Artikbot wrote ...

Why not using a simple comparator?

If you use an LM311 and connect the open emitter pin to the gate of your SCR/IGBT it will work as good as a microcontroller. And probably faster.


Concerning the 'closing when I want' thing, probably a small variable capacitor could help you achieve that 'desired length' without the need of a microcontroller.

Also, to control the pulse width you can use a simple 555 IC which just requires a single resistor and capacitor to "program". The Microcontroler itself won't increase your efficiecny in any way a 555 couldn't. What the microcontroller is usefull for is if you have so many coil stages and so many logic functions on your coilgun that it gets to the point where it's easier to use one microcontroller as opposed to many many ICs.

If you want to increase efficiency, some additional measures you might consider are:

1. Put Iron end-caps on your coil(s) to improve magnetic coupeling. This works only for lower voltages (~<100V)
2. Use a string of series diodes (as opposed to just one diode) in anti-parallel to improve shutoff current quenching
3. Use a diagonal half-bridge to improve shutoff current quenching
4. Reduce working voltage and use multiple coil stages
5. Take simple measures like winding your coil neatly and tightly, use short fat wires or copper busbars instead of long wires to connect your coil to your capacitor bank, minimize length and diameter of the barrel.
Back to top
currentkills91
Wed Jun 15 2011, 08:40PM
currentkills91 Registered Member #3831 Joined: Thu Apr 14 2011, 02:54PM
Location:
Posts: 265
I was thinking of using a microcontroller because i'm thinking of moving up to 4 stages for my gun...and I always seem to have bad luck with 555's -.-
Back to top
Artikbot
Wed Jun 15 2011, 08:50PM
Artikbot Registered Member #3247 Joined: Mon Sept 27 2010, 09:42AM
Location: Spain
Posts: 137
No real need to use 555s to trigger...

4 stages? LM2901 and job solved. Very fast comparator, both collector and emitter open. Although it's better (simplifies circuitry) to just have open emitter.

Search for a quad comparator with open emitter only, or invent a bit with an LM2901.


I keep insisting on the open emitter because you can directly drive the SCR/IGBT gates with no need of additional circuitry, besides of the obvious resistor.


Edit: Ooops! Head went bonkers, confused LM2901 with LM339 :S
Back to top
currentkills91
Wed Jun 15 2011, 09:09PM
currentkills91 Registered Member #3831 Joined: Thu Apr 14 2011, 02:54PM
Location:
Posts: 265
Yeah, i'm using the LM339 right now to trigger the three stages...I suppose I could stick with it, I just though it would be cool to start getting into microcontrollers.
Back to top
Artikbot
Wed Jun 15 2011, 09:31PM
Artikbot Registered Member #3247 Joined: Mon Sept 27 2010, 09:42AM
Location: Spain
Posts: 137
Cool, but not the best idea... Unless you switch with massive IGBTs and control pulse lenghts and so on.

But if you simply dump everything on the caps to the coils, there's no real need to use a micro.


You've made me think about something...


A cool micro implementation would be sensing thje projectile, opening the IGBT, sensing it again, measure the speed, then sense it again (second accelerator coil), measure speed again, then sense it again (final accelerator) and calculate average muzzle speed, muzzle energy based upon a given initial mass, and interpolate an acceleration in the barrel.


That would be one epic masterpiece of an idea.


And AFAIK, not complicated to do, if you get a fast enough micro (or even two micros, one sensing stuff and opening coils, the other one doing the calculus and storing the results).


The Arduino platform would be good, the PICAXE might be a tad too slow (talking about sensing projectile, opening gates and having to interpolate functions together)
Back to top
big5824
Wed Jun 15 2011, 10:56PM
big5824 Registered Member #1687 Joined: Tue Sept 09 2008, 08:47PM
Location: UK, Darlington
Posts: 240
Id personally go down the microcontroller route, if you use the built in comparators most have you will be able to get it running only a few microseconds slower than a standalone comparator. Plus, the microcontroller will open up inumerable new possibilities, such as plotting project speed data throughout the acceleration, coil firing delays, etc.

As for the choice of micro, if you consider yourself competent at coding I would jump straight to a dspic or something of similar level, however if you have never programmed before then yes start with an arduino. If you do choose the dspic then feel free to pm me any questions, as I've been learning how to use them over the past few months so most of the info is still fresh in my mind :)
Back to top

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.