Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 112
  • 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
06/27 JLaz (30)
06/28 Alessandro (32)
06/28 Andrew L. (33)
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 »   

V3 Coil Carbine

Move Thread LAN_403
ben5017
Fri Mar 08 2013, 05:32PM
ben5017 Registered Member #3315 Joined: Thu Oct 14 2010, 04:23PM
Location:
Posts: 156
can you send me triggerin code pretty please
Back to top
Maxwell
Fri Mar 08 2013, 06:42PM
Maxwell Registered Member #8497 Joined: Tue Dec 04 2012, 06:24PM
Location:
Posts: 74
Just the part to trigger an SCR?

Thats only like 3 new lines of code:

pinMode(4,OUTPUT); //SCR Gate Output (through TIP-120 transistor)


if(engage==1)
{
digitalWrite(4,HIGH) ; //pin 4 goes high to transistor
delay(1); //delay 1ms
digitalWrite(4,LOW);
speed_trap(10,11); //digitalPin# entry, digitalPin# exit
}
Back to top
ben5017
Fri Mar 08 2013, 07:57PM
ben5017 Registered Member #3315 Joined: Thu Oct 14 2010, 04:23PM
Location:
Posts: 156
need to link up my optical sensors to the arduino then output to igbt
Back to top
ben5017
Fri Mar 15 2013, 01:07AM
ben5017 Registered Member #3315 Joined: Thu Oct 14 2010, 04:23PM
Location:
Posts: 156
max, how about an adjustable one shot timer?
Back to top
Maxwell
Fri Mar 15 2013, 01:19PM
Maxwell Registered Member #8497 Joined: Tue Dec 04 2012, 06:24PM
Location:
Posts: 74
@ben5017 - I just saw your post.
Explain specifically the order in which you would like things to happen and I can code it up for you no problem
Back to top
ben5017
Sun Mar 17 2013, 06:55AM
ben5017 Registered Member #3315 Joined: Thu Oct 14 2010, 04:23PM
Location:
Posts: 156
Max this is what I need

Phase 1:
1: pulling the trigger activates a 1shot trigger output with an adjustable pulse length.
2:when a switch is flipped, pulling and holding the trigger no longer oneshots but puts it into astable output with adjustable on/off times.
3:(x5) sensor setups that will be connected to the output of my optical gates (IR diode + opamp) which when a slug blocks the beam the arduino will send a signal to my igbt gate drivers.

the above is the minimum things I need right now to fire the x3cc.

Phase 2:
After that I will be working on the drum magazine which will hold 30+ slugs. I plan on connecting it to a continuous rotation servo or a dc/gear reducer motor, or maby a stepper, haven't decided yet. these will be controlled by the arduino which will read a signal from a hall effect sensor that will detect the presence of a slug. The arduino will rotate the motors as soon as it doesn't detect anything, until it does. the sensitivity will need to be adjustable as well to dial the feeding system in.

phase 3:
The frame will be the final step after it is firing/feeding acceptable and i get my cnc router fully operational.

Hope this helps.

Back to top
ben5017
Tue Mar 19 2013, 03:16AM
ben5017 Registered Member #3315 Joined: Thu Oct 14 2010, 04:23PM
Location:
Posts: 156
update:

phase 1: #3 Done

got the firing code for one of my optical sensors working, along with an auto calibration of the sensor upon program start up to set expected max min values, along with a manual sensitivity adjustment 0-255. still have to add the rest of the stages. The sensor is super sensitive. cant wait to see If it makes it shoot any faster. (Would the arduino digital output be that much quicker than a 555?)

next up is the triggering code. I messed around with modifying a De-bouncing trigger code for a bit today. trying to act as a adjustable pulse "one shot", with out much luck. Haven't given much thought to the select fire yet either.(max where you at bro??)

Back to top
Maxwell
Wed Mar 20 2013, 02:02AM
Maxwell Registered Member #8497 Joined: Tue Dec 04 2012, 06:24PM
Location:
Posts: 74
Hi ben5017,

Been quite busy with other things at the moment - apologies on the delayed code.

The arduino can output hellafast for what it is - roughly 1059times/millisecond without overhead.

You can use the delaymicroseconds command to turn on/off very quickly:
"
digitalWrite(outPin, HIGH); // sets the pin on
delayMicroseconds(50); // pauses for 50 microseconds
digitalWrite(outPin, LOW); // sets the pin off
"
Back to top
Yandersen
Wed Mar 20 2013, 10:27AM
Yandersen Registered Member #6944 Joined: Fri Sept 28 2012, 04:54PM
Location: Canada
Posts: 340
How about some noise-supression to prevent possible false-triggering? ALL inputs must become insensitive to ANY signals for a dozen microseconds every time after ANY of the coils got energized or switched off, as this process emits high level EMI.
Back to top
ben5017
Wed Mar 20 2013, 05:12PM
ben5017 Registered Member #3315 Joined: Thu Oct 14 2010, 04:23PM
Location:
Posts: 156
yan:

1 step ahead of you. Have a few picked out. I dunno how to size them though. Take a look if you get a chance http Link2

Max: gonna mess around with the injector driver code tonight. Ill keep you posted. Thanks for the tips. Any more commands you think might be usefull? links to a good refrence?
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.