View Full Version : Spin Question and Help

06-04-2010, 03:44 AM
Hi everyone,
A while back I created an Eddy Current Analyzer using the Prop. I want to put it into the Completed Projects for everyone to try. I am having problems trying to make an auto calibrate for finding the resonant frequency of my probe (coil) I have attached the pcb image and the spin code. This circuit or project is a shield for the prop demo board. I will provide my software (written in Processing language) to view results also when I can get this spin problem solved. Am I doing something wrong in the Calibate_Coil Procedure? Any help would be appreciated.
Thank you,
Parts list:
C1 = 470 PF Capacitor
C2 = .1 UF Capacitor
R1 = 100 ohms Resistor
R2 = 1 M Ohm Resistor
R3 = 1 M Ohm Pot
L1 = 3.10 mH Ferrite core coil
The Two channels ADC is the 12 bit 3202-B

06-04-2010, 04:00 AM
My guess:
In CalibrateCoil you try to start >3000 COGs, don't you?

ADmax is 0.
If the condition to start a COG is true you should stop the previous one or exit the loop after starting the COG.

06-04-2010, 04:11 AM
Another issue is New_Synth uses counters on the main cog which doesnt stop so the counters dont stop either. So you end up with multiple cogs driving the output pin

I assume you want to sweep looking for the largest a2d and use that freq?