Multitask device. Timing of an event.
hello.
i trying push tesla transformer limits oscillating @ self-resonance frequency , compensating fluctuations in frequency heat/ ionization/other losses. (not tesla transformer, similar device.)
i want write computer program arduino nano measures frequency @ high resolution means of timer interrupt.
as resonator oscillating, frequency recorded value of n divided number of (external) clock oscillations.
(seconds big here , me, programmer.)
when frequency value of n oscillation events / time established, program record , output value maybe track how changes in time.
the amount of n oscillation events have pass before output pin gives square impulse depend on impedance of oscillator.
i have dedicated analog input tell me time add boost of energy oscillator. after amplitude decays below value of a, value n noted , taken self-frequency of oscillator. boost of energy added oscillator via sharp spiked impulse. when value of n/timer clock pulses recorder
1) minimal impulse duration arduino nano can generate on output pin? can little approximately 16 nanoseconds?
this limitation of mosfet paired ltc4449.
a power mosfet mosfet driver ic provide spike @ command of output pin of arduino.
it similar when toddler sitting on swing , parent pushes swing @ right time keep @ resonance.
since wind/ air resistance / friction , other factors cause swing self-frequency fluctuate, there need push @ right time every time amplitude of swing falls below value.
this frequency meter of circuit similar example bicycle speedometer poster here:
http://www.instructables.com/id/arduino-timer-interrupts/?allsteps
2nd example.
http://www.atmel.com/images/doc8161.pdf
i reading datasheet , searching register names mentioned in above example.
2) if use external clock source timers, how fast can external clock be?
my circuit run @ around 10khz 10mhz. want resolution 2 orders higher if can be.
3) still need timer interrupt function desired result?
isr(timer1_compa_vect){//timer1 interrupt 1hz checks sum , ticks seconds)
i want make circuit run minimal code - induced delays , if delays significant, want circuit compensate them when timing of spike impulse calculated.
if requires learn more assembly-level commands, post links can read this. found few myself examples not relevant task.
4)what efficient way solve problem? can read a328p datasheed through won't me because cannot state want code.
5) how position sharp output pulse in relationship inputs frequency counter. can use standard pwm functions, rather not.
i want output reference same clock source frequency counter.
n events passes -> amplitude decays -> value of frequency recorder -> mosfet fires right before nearest peak.
the firing before nearest peak similar how ignition timed in automobiles. need math.
i better theoretical mathematics electronics , programming , getting lost in instructables example mentioned above.
( http://www.instructables.com/id/arduino-timer-interrupts/?allsteps )
some variables of program may entered via encoder or number pad.
i try build program self-learning, memory size of microcontroller limit.
there output text lcd screen of 4x20 lines. know how hook things did before many times.
there ordinary dds attached circuit, ad9833. if know examples of dds being interfaced arduino, please post link.
i building experimental jig several functions make things cheaper. arduino nano heart of device.
thank you.
this sample code, not sure want it. if can overclock timer, , go there.
maybe don't have work @ 10mhz maximum.
http://forum.arduino.cc/index.php/topic,108434.0.html
6) need solder thin copper wire smd ic 328p , connect external clock? circuit setup?
7) hook tosc2 pin bring in external clock timer2?
i trying push tesla transformer limits oscillating @ self-resonance frequency , compensating fluctuations in frequency heat/ ionization/other losses. (not tesla transformer, similar device.)
i want write computer program arduino nano measures frequency @ high resolution means of timer interrupt.
as resonator oscillating, frequency recorded value of n divided number of (external) clock oscillations.
(seconds big here , me, programmer.)
when frequency value of n oscillation events / time established, program record , output value maybe track how changes in time.
the amount of n oscillation events have pass before output pin gives square impulse depend on impedance of oscillator.
i have dedicated analog input tell me time add boost of energy oscillator. after amplitude decays below value of a, value n noted , taken self-frequency of oscillator. boost of energy added oscillator via sharp spiked impulse. when value of n/timer clock pulses recorder
1) minimal impulse duration arduino nano can generate on output pin? can little approximately 16 nanoseconds?
this limitation of mosfet paired ltc4449.
a power mosfet mosfet driver ic provide spike @ command of output pin of arduino.
it similar when toddler sitting on swing , parent pushes swing @ right time keep @ resonance.
since wind/ air resistance / friction , other factors cause swing self-frequency fluctuate, there need push @ right time every time amplitude of swing falls below value.
this frequency meter of circuit similar example bicycle speedometer poster here:
http://www.instructables.com/id/arduino-timer-interrupts/?allsteps
2nd example.
http://www.atmel.com/images/doc8161.pdf
i reading datasheet , searching register names mentioned in above example.
2) if use external clock source timers, how fast can external clock be?
my circuit run @ around 10khz 10mhz. want resolution 2 orders higher if can be.
3) still need timer interrupt function desired result?
isr(timer1_compa_vect){//timer1 interrupt 1hz checks sum , ticks seconds)
i want make circuit run minimal code - induced delays , if delays significant, want circuit compensate them when timing of spike impulse calculated.
if requires learn more assembly-level commands, post links can read this. found few myself examples not relevant task.
4)what efficient way solve problem? can read a328p datasheed through won't me because cannot state want code.
5) how position sharp output pulse in relationship inputs frequency counter. can use standard pwm functions, rather not.
i want output reference same clock source frequency counter.
n events passes -> amplitude decays -> value of frequency recorder -> mosfet fires right before nearest peak.
the firing before nearest peak similar how ignition timed in automobiles. need math.
i better theoretical mathematics electronics , programming , getting lost in instructables example mentioned above.
( http://www.instructables.com/id/arduino-timer-interrupts/?allsteps )
some variables of program may entered via encoder or number pad.
i try build program self-learning, memory size of microcontroller limit.
there output text lcd screen of 4x20 lines. know how hook things did before many times.
there ordinary dds attached circuit, ad9833. if know examples of dds being interfaced arduino, please post link.
i building experimental jig several functions make things cheaper. arduino nano heart of device.
thank you.
this sample code, not sure want it. if can overclock timer, , go there.
maybe don't have work @ 10mhz maximum.
http://forum.arduino.cc/index.php/topic,108434.0.html
6) need solder thin copper wire smd ic 328p , connect external clock? circuit setup?
7) hook tosc2 pin bring in external clock timer2?
code: [select]
void setup(){
//set timer2 interrupt @ 8khz
tccr2a = 0;// set entire tccr2a register 0
tccr2b = 0;// same tccr2b
tcnt2 = 0;//initialize counter value 0
// set compare match register 8khz increments
ocr2a = 249;// = (16*10^6) / (8000*8) - 1 (must <256)
// turn on ctc mode
tccr2a |= (1 << wgm21);
// set cs21 bit 8 prescaler
tccr2b |= (1 << cs21);
// enable timer compare interrupt
timsk2 |= (1 << ocie2a);
}
can hook kind of additional quartz clock source pin t0?
what part / circuit / configuration can use frequencies higher processor chip itself?
(if possible @ all?)
what part / circuit / configuration can use frequencies higher processor chip itself?
(if possible @ all?)
Arduino Forum > Using Arduino > Sensors > Multitask device. Timing of an event.
arduino
Comments
Post a Comment