May 21, 2018 - Hi, please any one help me to resolve my problum Iam having 3 Arduino boards non is working and giving the following ERROR Cannot create. How to program an ATMEGA2560 with an Arduino UNO/MegaHi. This is just a reference guide that i made motivated by the lack of clear information around Internet in the matter of programming an stand-alone Atmel ATMEGA chip different from the 'standard' ATMEGA 328P-PU found in the Arduino UNO board.
In CRO we use f=1/T formula to calculate frequency.Here also the same concept is used to calculate frequency
where
T is the time period of one cycle of signal in microseconds(us)
In the program of Arduino Frequency counter we used f=1000000/pulseTotal.
Where
pulse Total is nothing but, a Time period of Signal(T).
microseconds(us)=10^-6
See below how the formula is given asf=1000000/pulseTotal for Arduino Frequency Counter
f=1/T in microseconds,so the formula is given as f=1/Tx(us)
microseconds(us)=10^-6,So the formula is written as f=1/Tx10^-6.
If we Take micro seconds(us) to numerator it becomes 10^6.It is equal to the value that is 1000000
So finally the formula for arduino frequency counter is given as f=1000000/T.
since we are converting signals into square wave.The square wave contains Ton and Toff period,
So total time period of one cycle of signal is given as
pulseTotal=Ton+Toff
The below Code is used to calculate Ton and Toff.Ton=pulseHigh.Toff=pulseLow
pulseHigh = pulseIn(pulsePin, HIGH);
pulseLow = pulseIn(pulsePin, LOW);
Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upHave a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
commented Apr 15, 2018 • edited
edited
I was trying to upload Blinky. |
added the Component: Compilation label Apr 15, 2018
commented Apr 15, 2018
Restarting the IDE did not work. So I restarted the PC and it worked. |