EveryCircuit
Contact
Reviews
Home
Karma247
modified 8 years ago

HELP - Frequency Counter - 3

2
24
300
03:55:44
Re posted. I posted this a while ago. Is there any way to speed this up, so you don't have to wait so long for the result? The frequency being measured is the AC voltage source in the bottom left corner. This is counted against the reference frequency adjacent to it. Only 10 Hz resolution & 0 - 990 Hz. Have to wait a while for the pulse to complete from the reference frequency :(
published 8 years ago
LeButch
8 years ago
Don't repost circuits please.
Karma247
8 years ago
@ LeButch - Why not?? Who are you to make such a request anyway?
roops1967
8 years ago
Hey Karma247 its been a long time great to see you back :)
hurz
8 years ago
@LeBitch, I dont see a happy end for you, if you continue to be an asocial troll.
Karma247
8 years ago
Hi roops1967. Yeah, been so busy with child, work, the universe, or so it feels sometimes. Also, I wasn't too happy when lots of my stuff stopped working because the changes made in EC. I didn't really have time to redo them. This circuit for example, I understand that you need it to run slowly, to see and understand the detail of how it works, but it would great if you could speed it up. Then you could change the frequency and see the result in a few seconds. I'm sure people would look at this circuit, see a few pulses occur with no result, get bored and close it.
hurz
8 years ago
@Karma247, for this I have commented yesterday on one of your older circuits. Speed up the simulator is not an easy topic to understand. Maybe this help http://everycircuit.com/circuit/4810522328563712
Karma247
8 years ago
Hi hurz, thanks for your answer. I guess were stuck with this speed for now. I have sometimes wondered, that it might be a good idea to have a dumb mode for digital circuits. Once the circuit was verified in normal mode, it would then be possible to switch to a dumb mode for a more real time experience. So no complex calcs, just logic. Just a thought :)
hurz
8 years ago
Hmmmm, the law is the following and there is no way around. "A simulator has to calculate at least two times a voltage/value for the highest 1.harmonic occurance (sinwave)" in case this harmonic is handled non liniear the sampling must be even drastical increase, cuz nonlinearities generate higher order harmonics (infinite). Time discreet simulation is a wasteful thing, and results easily in chaotic behaviour when subsampled. Maybe you like to discuss a simple example I can prepare?
roops1967
8 years ago
Okay hurz that is beyond my comprehension :P , lets hope Karma247 is on your level
roops1967
8 years ago
Karma247 you discovered that the optimum settings for this sim speed is 3x the speed, so for sim speed 1s/s you can't have higher than 3hz, this also true for logic trains so it will be 1/3 of 1s which is 334ms period rounded to higher. Gates are harder, i just remember periods can't be shorter than 5.05ms for 1s/s sim speed, so just divide it down for shorter sim speeds
roops1967
8 years ago
Little example with a workaround for logic periods: http://everycircuit.com/circuit/5454232634523648
hurz
8 years ago
Nice template for the digital world. Things are getting much worser if the analog world joins. Look at this high pass filter I connected to your 334ms rectagular. It suppose to go from 0 to 5V and exponential down to zero and the same for negative. The point is, EC can not reach the truth 5V cause for this it has to catch all harmonics 3,5,7,9,11,... but it cant and the simspeed I have set is already ugly slow 2.78ms/s and we get 4.93V missing 70mV from higher harmonics. Go back on simspeed you used roops which is fine for a pure digital circuit, the analog world fails completely and does not even get 1V in peak missing 4V!!! Here the screenshot, so you dont have the pain of slow simulation http://imgur.com/X054FlY RC combi was 1uF and 10kOhm in case you would like to verify.
hurz
8 years ago
I added the analog world problem to your template. http://everycircuit.com/circuit/6610744383897600 this template could be, with some text, a nice example document for everycircuit and its limits.
Karma247
8 years ago
No, way above my level too :)
Karma247
8 years ago
Roops1967 and hurz, thanks for spending time considering my problem. You've helped me understand a little more. I'm in the middle of moving house at the moment, so I'm struggling to spend much time on EC.
hurz
8 years ago
See you later 😉
roops1967
8 years ago
Good luck
roops1967
8 years ago
Hurz you may aswell be writing in German, lol! I understand some of it and tried your example, i see it never reaches 5v even at slowest 2.78ms/s. This is becuz the sim can only take limited amount of discreet samples? How do other sims get a around this limitation? I'm having trouble understanding how are harmonics involved here
hurz
8 years ago
Right, a rectagular 50% width 0% rise and fall does have infinite harmonics. As higher the harmonics the lower its energy. But they are still present and importante. To build a perfect rectangular you need energy unit 1 for the first/base harmonic. Second is zero. Third is in energy 1/3 of base. 4th is 0, 5th is 1/5. 7 is 1/7, 9-1/9, 11-1/11, 13, 15 17 19 21 ...... all even are zero and oddN is 1/N. All this to n=infinite is a perfect rectangular. Sure EC cant calculate till infinity, as you said its limited in sampling points which depends on simspeed! So a simple NO-switch resistor and cap formed as high pass generates frequencies which can not be handled by EC! And right, other simtools do have ways to work around that better with exponetial interpolations which fits better in this 1. order high pass example, but for higher more complex circuits, all simulators will fail and cant watch into future 😉
roops1967
8 years ago
Soz hurz I need some time to absorb what you have written :P
hurz
8 years ago
Ask for, whats unclear, step by step, before you break your head to long 😉
roops1967
8 years ago
Karma247 instead of counting cycles per interval, this circuit will be much quicker to count the intervals per cycle(s), okay it won't be as accurate and the value will be 'ms' not 'Hz'... but you can double or quadruple the cycles for more accuracy and inverse the result to get hertz (i think that should be possible?)
roops1967
8 years ago
Hurz I have many questions that i don't know where to start. I'm trying to visualise it first

EveryCircuit is an easy to use, highly interactive circuit simulator and schematic capture tool. Real-time circuit simulation, interactivity, and dynamic visualization make it a must have application for professionals and academia. EveryCircuit user community has collaboratively created the largest searchable library of circuit designs. EveryCircuit app runs online in popular browsers and on mobile phones and tablets, enabling you to capture design ideas and learn electronics on the go.

Copyright © 2026 by MuseMaze, Inc.     Terms of use     Privacy policy