Shop OBEX P1 Docs P2 Docs Learn Events
Questions about the counters — Parallax Forums

Questions about the counters

ADZ_916ADZ_916 Posts: 30
edited 2013-02-09 22:02 in Propeller 1
Hey guys, I'm working on a project using the prop to control a solid state Tesla coil.

So far on the breadboard I have a 74hc14 inverter, a 74hc109 j/k, and a 74hc108 setup in a configuration that has worked well for me in testing and setting up my first solid state coil.
3.jpg


I decided that this was a project begging for a propeller control and so Ive started writing code for a menu based control system.
I believe a great understanding of the cog counter modules is what I will need to focus on to ultimately achieve all of my goals.
At this point I can setup counters(using the synth object) for both the clock (coil resonate frequency) and for Interrupter and have a VERY basic understanding of the counters(I've read AN001 but admittedly it is currently a little over my head).
The next step in this project is to use feedback to the propeller to track the freq of the coil as it changes with corona/streamer loading or objects in the area moving and changing the relative capacitance to ground. Ive been able to read the freq of the antenna using a frequency counter object I've found in the object exchange. Now how to make the output freq follow the feedback? Also eventually I would like to implement a PLL mode I've seen PhilPi's code:
http://forums.parallax.com/showthread.php/123791-Propeller-mediated-Sine-Wave-Frequency-Synthesizer
But do not understand how to modify the code to take feedback from say pin 5 and output a matched freq instead of duty.


Any help is greatly appreciated.

Thanks! -ADZ
1024 x 459 - 30K
3.jpg 30.2K
Sign In or Register to comment.