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.
Registered Member #27
Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
If the signal can be made digital you can use a capture unit that will give you a very accurate time stamp of the transition of the signal. The aurdinio we are talking about has only one capture module so might be troublesome for that. Maybe you could convert the phase difference into a voltage before it is sampled so the sample rate does not have to be faster than the rate of change in the phase. There are hundreds of ways to do it, you just have to find a method that you like.
To show something a lot more capable (but not more expensive): It is blindingly fast and can do sampling of analog signals at 2 MHz without even involving the CPU. The down side is that the full complexity hits you in the face and the learning curve is quite steep.
Registered Member #30
Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
If I were doing this I'd just bolt a PIC or Arduino onto an existing analog PLL circuit. The chip just has to deal with slowly changing DC voltages, because the PLL handles all the fast stuff.
Registered Member #190
Joined: Fri Feb 17 2006, 12:00AM
Location:
Posts: 1567
What I will do is remake the circuit without the PLL feedback. I will tap off the PCA1 output which should XOR the two signals. I can then use the processor to stay right at midvoltage as it wonders around. This should not be hard at all.
Quickie.
My capacitor tank voltage can be over 300-600v for what I am planning. I was going to run it through 100k and then have a pair of fast diodes clamping it. 600^2/100k = 3.6w
Are there fast diodes for this wattage? I was using the N4148, but I don't think they will handle this power. Any suggestions for cleaning this up and not frying my PLL?
Registered Member #190
Joined: Fri Feb 17 2006, 12:00AM
Location:
Posts: 1567
Uzzors,
I guess if the input impedance to the PLL pin is high, the voltage after the resistor would be very low. I should measure it. Does anyone know what the input impedance for the input pins? I did not see it on the datasheet.
Registered Member #56
Joined: Thu Feb 09 2006, 05:02AM
Location: Southern Califorina, USA
Posts: 2445
They are quite high resistance wise (probably >1meg with the internal pullups/downs disabled, obviously with the pullup or pulldown resistors enabled the input impedance would be the resistance of the internal resistors), but they do have appreciable capacitance which could cause issues with high frequencies.
Registered Member #51
Joined: Thu Feb 09 2006, 04:17AM
Location:
Posts: 263
Yes, AVR chips are great to work with and easy to program. Just get/make a programmer and wire a 6 pin IDC connector on your board and connect it to the correct pins on your AVR. See the datasheet to get the pins correct.
Registered Member #190
Joined: Fri Feb 17 2006, 12:00AM
Location:
Posts: 1567
When doing analogwrite(3, 128) one implements a 50% (128/256) duty cycle on pin 3. The pwm routine is limited to 1/256 resolution. I was reading that the TImer1 has 10 bits of resolution and I saw some low-level routines for doing this. Am I correct in seeing this?
Registered Member #580
Joined: Mon Mar 12 2007, 03:17PM
Location: Melbourne, Australia
Posts: 410
IamSmooth wrote ...
has anyone here programmed the atmega328?
me the 16 bit timer (I think thats timer 1) seems to go at 16000000>>8 Hz with no prescaler as far as i see. which is 62,500 counts/sec with a 16Mhz crystal
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.