Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 20
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
All today's birthdays', congrats!
Alfons (36)
Coronafix (51)
AmonRa (44)


Next birthdays
05/09 Alfons (36)
05/09 Coronafix (51)
05/09 AmonRa (44)
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 :: Tesla Coils
« Previous topic | Next topic »   

Would this be a viable controller?

 1 2 3 
Move Thread LAN_403
StormInABottle
Thu Jul 31 2014, 06:23PM
StormInABottle Registered Member #9252 Joined: Fri Jan 04 2013, 06:27AM
Location: Andromeda
Posts: 253
Steve Conner wrote ...

In that case, the control problem is much easier. No need to worry about missing the zero current switching points as an untuned primary SSTC doesn't have zero current switching to begin with. The Arduino would probably work out fine.
That's fantastic to hear smile
Back to top
Sigurthr
Thu Jul 31 2014, 11:49PM
Sigurthr Registered Member #4463 Joined: Wed Apr 18 2012, 08:08AM
Location: MI's Upper Peninsula
Posts: 597
The only issue will be ensuring the drive frequency doesn't droop below secondary resonance. I'm never much good at visualizing current commutations in bridges but I do know that every bridge I've ever built absolutely hates being run in the capacitive region. You can drive it above resonance as much as you like (with diminishing power transfer), but dip a bit below resonance and you're likely to blow some silicon if you don't bulletproof the bridge.
Back to top
StormInABottle
Fri Aug 01 2014, 01:27AM
StormInABottle Registered Member #9252 Joined: Fri Jan 04 2013, 06:27AM
Location: Andromeda
Posts: 253
Sigurthr wrote ...

The only issue will be ensuring the drive frequency doesn't droop below secondary resonance. I'm never much good at visualizing current commutations in bridges but I do know that every bridge I've ever built absolutely hates being run in the capacitive region. You can drive it above resonance as much as you like (with diminishing power transfer), but dip a bit below resonance and you're likely to blow some silicon if you don't bulletproof the bridge.
Well, I do believe the frequency would stay at resonance if i utilize my idea

" Maybe also, Just maybe, We can make it auto tuning by setting the compare match to a variable, Said variable changes according to feedback from an antenna/bottom of resonator
Maybe.. "

If what i read steve ward's site correctly, The coil is always in tune if it runs from it's own noise.
Back to top
Sigurthr
Fri Aug 01 2014, 03:48AM
Sigurthr Registered Member #4463 Joined: Wed Apr 18 2012, 08:08AM
Location: MI's Upper Peninsula
Posts: 597
Yes, but missed pulses from instruction execution will lower the actual output frequency. How much it lowers it is anyone's guess at this point. If you're missing 1% of pulses at 100KHz you're 10KHz under resonance, and from my tests with a direct VCO driven coil, 10KHz is more than enough to make a bridge very unhappy. That's 1%, if you're 2.5% out that's 25KHz.. miles away!
Back to top
StormInABottle
Fri Aug 01 2014, 03:55AM
StormInABottle Registered Member #9252 Joined: Fri Jan 04 2013, 06:27AM
Location: Andromeda
Posts: 253
Hmm, I doubt that there would be any missing pulses if we compare the signals to each other
By the way, During your tests, Was everything shielded from the EM field?

Also i do not quite understand how the arduino can skip/extend pulses, I believe the pulses are as accurate as the 16 Mhz crystal on the arduino, Also as long as the auto tuning system is functioning, We should technically never get on the capacitive side
Back to top
Sigurthr
Fri Aug 01 2014, 05:05AM
Sigurthr Registered Member #4463 Joined: Wed Apr 18 2012, 08:08AM
Location: MI's Upper Peninsula
Posts: 597
Yep, it was shielded.

At first I didn't hand write a program for the tests, as it was a quick look into the viability, and I'm not very experienced with arduino's lower level programming side. Basically I used a simple sketch that had you enter in a frequency via serial monitor and it would configure timer.1 to output pulses at the chosen frequency. I compared the output via scope and digital frequency counter. Ar 1MHz it was rather accurate, something like 999,400Hz. At 280KHz it was off by about 30KHz, somewhere around 250KHz. At 100KHz it was pretty accurate again. At direct fractions accuracy was good, at more distant fractions errors were introduced.

My initial impression was that it was something to do with the programming so I went and used a simple fixed variable and as little code as possible to see try and eliminate programming error. I hard coded in 10uS on and 10uS off, but still used digitalWrite functions. The result was ~37KHz. Clearly digitalWrite execution time was a problem. I looked into directly writing the IO registers but didn't give it a try, as at this point it was already proving to be too much hassle.

So, that's why I keep bringing up instruction execution delays. I literally had nothing other than standard setup, variable initialization, and two digitalWrite commands with variable calls and I couldn't get it to keep up. Assuming you write highly efficient code for timer.1 and the control loop, directly write to registers to avoid digitalWrite, and avoid any other high level instruction functions you may get something workable, but I don't know if you'll be able to set it to 50KHz and actually get 50KHz out. You might have to set it to 70KHz and get 51KHz out and call it good enough.
Back to top
Steve Conner
Fri Aug 01 2014, 09:08AM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
You will need to do as much of the work as you can in the timer hardware to avoid issues like this. You also need to check that the timer you're using has enough resolution to generate an accurate frequency. The Arduino libraries do a great job of abstracting away differences in the hardware, but by the same token they also do a great job of hiding its limitations. Read the microcontroller datasheet very carefully.

I think the problem described by Sigurthr is really two separate problems. The first one was limited resolution of a hardware timer, the second was instruction execution delays.

If I had to build something like this tomorrow, I would use a 4046 PLL chip, a PIC, and a CPLD. smile
Back to top
Ash Small
Fri Aug 01 2014, 10:32AM
Ash Small Registered Member #3414 Joined: Sun Nov 14 2010, 05:05PM
Location: UK
Posts: 4245
I'm not familiar with the Arduino myself, but you will want to avoid any high level programming, as this does introduce significant dalays.

I used to write stuff in machine code years ago, which avoids all of the problems with high level language, as well as low level assembler stuff.

Typing in all those ones and zeros is pretty time consuming, though, especially if you make a mistake. wink
Back to top
Linas
Fri Aug 01 2014, 12:46PM
Linas Registered Member #1143 Joined: Sun Nov 25 2007, 04:55PM
Location: Vilnius, Lithuania
Posts: 721
PSoC5LP does have FPGA like analog and digital capability, aka hardware processing as well as Cortex M3 core for more advanced stuff.

Maybe some one would try to do something with it ?

if not, go to STM32F429, it can run at 200MHz, at his point you can do loops with 20ns precision ( GPIO toggle will go up to 100MHz)

Back to top
Steve Conner
Fri Aug 01 2014, 06:31PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
As I said above, the resonant frequency of the coil changes during the burst, so it is not possible to achieve ZCS by just putting out a fixed frequency that you determined beforehand.

The method you described is more or less how I tune my PLL drivers by hand, but the frequency determined in this way is just a starting point, the driver will vary it during the course of the burst as it tries to maintain ZCS.

Finally, remember that a DRSSTC has two resonant frequencies, at least to start out with. Under exceptionally heavy streamer loading, or ground arcs, it collapses to a single frequency.
Back to top
 1 2 3 

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.