[SOLVED] Understanding the math of ppm

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
jpj
Posts: 60
Joined: Sat Dec 10, 2016 3:07 pm

[SOLVED] Understanding the math of ppm

Post by jpj » Sun Dec 25, 2016 4:00 pm

I'm trying to understand the calculations used to arrive at 11.6ppm in the following statement:
There are 86400 seconds per 24-hour period, putting each second at about 11.6 millionths of the 24-hour period. That puts an error of 1 second per day at 11.6ppm.
Given a crystal with oscillator frequency of 32768 Hz and 86400 seconds per 24 hours, I'm trying to determine what formula arrives at 11.6ppm per second. I tried some different calculations but my math skills aren't great. :roll:

Thanks,
J
Last edited by jpj on Mon Dec 26, 2016 6:37 pm, edited 1 time in total.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Understanding the math of ppm

Post by Roberthh » Sun Dec 25, 2016 4:28 pm

1/86400 ~ 0.000,011,6 = 11,6 millionth

jpj
Posts: 60
Joined: Sat Dec 10, 2016 3:07 pm

Re: Understanding the math of ppm

Post by jpj » Sun Dec 25, 2016 5:14 pm

Thanks Robert. But how did you know to use "0.000,011,6" to begin with?

I was trying to understand how 11.6 ppm was determined, given the other values were known.

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Understanding the math of ppm

Post by dhylands » Sun Dec 25, 2016 6:16 pm

@roberthh showed that it came from 1 / 86400 which is 0.000011574 which is approx 0.0000116 or 11.6e-6

jpj
Posts: 60
Joined: Sat Dec 10, 2016 3:07 pm

Re: Understanding the math of ppm

Post by jpj » Sun Dec 25, 2016 6:18 pm

OK, that makes sense.

Thanks Robert and Dave!

Post Reply