Shop OBEX P1 Docs P2 Docs Learn Events
Spin Question and Help — Parallax Forums

Spin Question and Help

CenlasoftCenlasoft Posts: 265
edited 2010-06-03 21:11 in Propeller 1
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,
Curtis
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
555 x 499 - 71K

Comments

  • MagIO2MagIO2 Posts: 2,243
    edited 2010-06-03 21:00
    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.
  • TimmooreTimmoore Posts: 1,031
    edited 2010-06-03 21:11
    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?
Sign In or Register to comment.