Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #466487 > unrolled thread
| Started by | David Lesher <wb8foz@panix.com> |
|---|---|
| First post | 2017-07-02 03:13 +0000 |
| Last post | 2017-07-03 00:51 -0500 |
| Articles | 20 on this page of 67 — 15 participants |
Back to article view | Back to sci.electronics.design
F to bits David Lesher <wb8foz@panix.com> - 2017-07-02 03:13 +0000
Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-01 20:27 -0700
Re: F to bits David Lesher <wb8foz@panix.com> - 2017-07-02 05:21 +0000
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 07:36 -0700
Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-01 22:34 -0700
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 07:55 -0700
Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-02 11:44 -0400
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 08:51 -0700
Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-02 12:00 -0400
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 10:20 -0700
Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-02 13:52 -0400
Re: F to bits Neon John <no@never.com> - 2017-07-02 13:41 -0400
Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-02 11:22 -0700
Re: F to bits "John Miles, KE5FX" <jmiles@gmail.com> - 2017-07-02 12:55 -0700
Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-02 13:12 -0700
Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-02 13:27 -0700
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 14:18 -0700
Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-02 14:37 -0700
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 14:44 -0700
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 14:48 -0700
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 15:44 -0700
Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-02 16:23 -0700
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 16:26 -0700
Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-02 16:36 -0700
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 16:44 -0700
Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-02 17:13 -0700
Re: F to bits krw@notreal.com - 2017-07-02 19:53 -0400
Re: F to bits Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2017-07-03 10:30 +0300
Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-03 09:44 -0700
Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-03 09:50 -0700
Re: F to bits Jasen Betts <jasen@xnet.co.nz> - 2017-07-04 05:18 +0000
Re: F to bits Les Cargill <lcargill99@comcast.com> - 2017-07-03 00:44 -0500
Re: F to bits Les Cargill <lcargill99@comcast.com> - 2017-07-03 00:42 -0500
Re: F to bits Jasen Betts <jasen@xnet.co.nz> - 2017-07-04 05:11 +0000
Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-02 19:32 -0400
Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-02 16:40 -0700
Re: F to bits klaus.kragelund@gmail.com - 2017-07-02 16:45 -0700
Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-02 19:55 -0400
Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-02 17:07 -0700
Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-02 20:30 -0400
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 17:39 -0700
Re: F to bits klaus.kragelund@gmail.com - 2017-07-02 18:09 -0700
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 18:45 -0700
Re: F to bits "John Miles, KE5FX" <jmiles@gmail.com> - 2017-07-02 17:49 -0700
Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-02 22:56 -0400
Re: F to bits "John Miles, KE5FX" <jmiles@gmail.com> - 2017-07-02 21:52 -0700
Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-03 01:38 -0400
Re: F to bits David Brown <david.brown@hesbynett.no> - 2017-07-03 12:37 +0200
Re: F to bits edward.ming.lee@gmail.com - 2017-07-03 04:23 -0700
Re: F to bits David Brown <david.brown@hesbynett.no> - 2017-07-03 14:10 +0200
Re: F to bits leongdentalsf@gmail.com - 2017-07-03 06:14 -0700
Re: F to bits Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-07-03 15:46 +0100
Re: F to bits edward.ming.lee@gmail.com - 2017-07-03 08:24 -0700
Re: F to bits Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-07-03 17:12 +0100
Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-03 12:50 -0400
Re: F to bits Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-07-03 18:36 +0100
Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-05 02:01 -0400
Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-03 09:30 -0700
Re: F to bits Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-07-03 12:32 +0100
Re: F to bits David Lesher <wb8foz@panix.com> - 2017-07-03 00:54 +0000
Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-02 18:14 -0700
Re: F to bits David Lesher <wb8foz@panix.com> - 2017-07-03 02:33 +0000
Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-02 21:29 -0700
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 22:46 -0700
Re: F to bits Les Cargill <lcargill99@comcast.com> - 2017-07-02 12:40 -0500
Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-02 11:38 -0700
Re: F to bits Les Cargill <lcargill99@comcast.com> - 2017-07-03 00:51 -0500
Page 1 of 4 [1] 2 3 4 Next page →
| From | David Lesher <wb8foz@panix.com> |
|---|---|
| Date | 2017-07-02 03:13 +0000 |
| Subject | F to bits |
| Message-ID | <oj9occ$nvk$1@reader2.panix.com> |
Seeking a packaged line (~~60hz) frequency [or period] counter with I2C or SPI output to feed a Mega2560 box. The goal is to monitor a b/u generator's speed. Suggestions? -- A host is a host from coast to coast.................wb8foz@nrk.com & no one will talk to a host that's close.......................... Unless the host (that isn't close).........................pob 1433 is busy, hung or dead....................................20915-1433
[toc] | [next] | [standalone]
| From | Lasse Langwadt Christensen <langwadt@fonz.dk> |
|---|---|
| Date | 2017-07-01 20:27 -0700 |
| Message-ID | <2192abfc-4310-4d00-b334-898980df4ef1@googlegroups.com> |
| In reply to | #466487 |
Den søndag den 2. juli 2017 kl. 05.13.22 UTC+2 skrev David Lesher: > Seeking a packaged line (~~60hz) frequency [or period] counter > with I2C or SPI output to feed a Mega2560 box. The goal is to > monitor a b/u generator's speed. > > Suggestions? > why not use the Mega2560 to measure the period?
[toc] | [prev] | [next] | [standalone]
| From | David Lesher <wb8foz@panix.com> |
|---|---|
| Date | 2017-07-02 05:21 +0000 |
| Message-ID | <oj9vta$5ab$1@reader2.panix.com> |
| In reply to | #466489 |
Lasse Langwadt Christensen <langwadt@fonz.dk> writes: >Den s=C3=B8ndag den 2. juli 2017 kl. 05.13.22 UTC+2 skrev David Lesher: >> Seeking a packaged line (~~60hz) frequency [or period] counter >> with I2C or SPI output to feed a Mega2560 box. The goal is to >> monitor a b/u generator's speed. =20 >>=20 >> Suggestions? >>=20 >why not use the Mega2560 to measure the period? That's a possibility we're considering.... -- A host is a host from coast to coast.................wb8foz@nrk.com & no one will talk to a host that's close.......................... Unless the host (that isn't close).........................pob 1433 is busy, hung or dead....................................20915-1433
[toc] | [prev] | [next] | [standalone]
| From | edward.ming.lee@gmail.com |
|---|---|
| Date | 2017-07-02 07:36 -0700 |
| Message-ID | <64a77aa6-46a8-4157-9ce7-3c848a1ac744@googlegroups.com> |
| In reply to | #466493 |
On Saturday, July 1, 2017 at 10:21:53 PM UTC-7, David Lesher wrote: > Lasse Langwadt Christensen <langwadt@fonz.dk> writes: > > >Den s=C3=B8ndag den 2. juli 2017 kl. 05.13.22 UTC+2 skrev David Lesher: > >> Seeking a packaged line (~~60hz) frequency [or period] counter > >> with I2C or SPI output to feed a Mega2560 box. The goal is to > >> monitor a b/u generator's speed. =20 > >>=20 > >> Suggestions? > >>=20 > > >why not use the Mega2560 to measure the period? > > That's a possibility we're considering.... Yes, Mega2560 is probably good enough. The question is what you are going to do with the data? I assume you need to send it to a more powerful computer (server) somewhere.
[toc] | [prev] | [next] | [standalone]
| From | Don Y <blockedofcourse@foo.invalid> |
|---|---|
| Date | 2017-07-01 22:34 -0700 |
| Message-ID | <oja0eu$9ag$1@dont-email.me> |
| In reply to | #466487 |
On 7/1/2017 8:13 PM, David Lesher wrote: > Seeking a packaged line (~~60hz) frequency [or period] counter > with I2C or SPI output to feed a Mega2560 box. The goal is to > monitor a b/u generator's speed. > > Suggestions? How accurate do you need to be? Presumably, the mains will not be available when the generator's output is "of interest". But, the device you're contemplating could be located *on* the "backed up mains" just as easily as on the output of the genset. Can it be indoors? (i.e., in a relatively constant environment) Or, does it have to reside in the same environment that the generator is likely located (which may be out-of-doors)
[toc] | [prev] | [next] | [standalone]
| From | edward.ming.lee@gmail.com |
|---|---|
| Date | 2017-07-02 07:55 -0700 |
| Message-ID | <2a34b32b-fbbf-4649-98d1-38ce736fa91f@googlegroups.com> |
| In reply to | #466495 |
On Saturday, July 1, 2017 at 10:35:02 PM UTC-7, Don Y wrote: > On 7/1/2017 8:13 PM, David Lesher wrote: > > Seeking a packaged line (~~60hz) frequency [or period] counter > > with I2C or SPI output to feed a Mega2560 box. The goal is to > > monitor a b/u generator's speed. > > > > Suggestions? > > How accurate do you need to be? Presumably, the mains will not be > available when the generator's output is "of interest". But, the > device you're contemplating could be located *on* the "backed > up mains" just as easily as on the output of the genset. > > Can it be indoors? (i.e., in a relatively constant environment) > Or, does it have to reside in the same environment that the generator > is likely located (which may be out-of-doors) I believe the main concern is the start/stop kick in/out times. If it's feeding some time clocks, they could be off by seconds. To be truly accurate, you would need to adjust following frequencies to compensate. To echo rickman, perfect job for an FPGA.
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-07-02 11:44 -0400 |
| Message-ID | <ojb46l$hhg$1@dont-email.me> |
| In reply to | #466526 |
edward.ming.lee@gmail.com wrote on 7/2/2017 10:55 AM: > On Saturday, July 1, 2017 at 10:35:02 PM UTC-7, Don Y wrote: >> On 7/1/2017 8:13 PM, David Lesher wrote: >>> Seeking a packaged line (~~60hz) frequency [or period] counter >>> with I2C or SPI output to feed a Mega2560 box. The goal is to >>> monitor a b/u generator's speed. >>> >>> Suggestions? >> >> How accurate do you need to be? Presumably, the mains will not be >> available when the generator's output is "of interest". But, the >> device you're contemplating could be located *on* the "backed >> up mains" just as easily as on the output of the genset. >> >> Can it be indoors? (i.e., in a relatively constant environment) >> Or, does it have to reside in the same environment that the generator >> is likely located (which may be out-of-doors) > > I believe the main concern is the start/stop kick in/out times. If it's feeding some time clocks, they could be off by seconds. To be truly accurate, you would need to adjust following frequencies to compensate. > > To echo rickman, perfect job for an FPGA. This is one where you need to pay attention to detail to get it right. Most stuff in an FPGA is actually simple, basic logic design, but this is not a beginner design without a little help. I designed a freq counter circuit once and it requires attention to the fact that two clocks are involved. I'm sure there are plenty of reference designs available today. I didn't have one when I rolled mine. I had to figure it out from first principles. -- Rick C
[toc] | [prev] | [next] | [standalone]
| From | edward.ming.lee@gmail.com |
|---|---|
| Date | 2017-07-02 08:51 -0700 |
| Message-ID | <86525d0b-a54c-4c4f-a951-05c8e7464481@googlegroups.com> |
| In reply to | #466533 |
On Sunday, July 2, 2017 at 8:45:00 AM UTC-7, rickman wrote: > edward.ming.lee@gmail.com wrote on 7/2/2017 10:55 AM: > > On Saturday, July 1, 2017 at 10:35:02 PM UTC-7, Don Y wrote: > >> On 7/1/2017 8:13 PM, David Lesher wrote: > >>> Seeking a packaged line (~~60hz) frequency [or period] counter > >>> with I2C or SPI output to feed a Mega2560 box. The goal is to > >>> monitor a b/u generator's speed. > >>> > >>> Suggestions? > >> > >> How accurate do you need to be? Presumably, the mains will not be > >> available when the generator's output is "of interest". But, the > >> device you're contemplating could be located *on* the "backed > >> up mains" just as easily as on the output of the genset. > >> > >> Can it be indoors? (i.e., in a relatively constant environment) > >> Or, does it have to reside in the same environment that the generator > >> is likely located (which may be out-of-doors) > > > > I believe the main concern is the start/stop kick in/out times. If it's feeding some time clocks, they could be off by seconds. To be truly accurate, you would need to adjust following frequencies to compensate. > > > > To echo rickman, perfect job for an FPGA. > > This is one where you need to pay attention to detail to get it right. Most > stuff in an FPGA is actually simple, basic logic design, but this is not a > beginner design without a little help. > > I designed a freq counter circuit once and it requires attention to the fact > that two clocks are involved. I'm sure there are plenty of reference > designs available today. I didn't have one when I rolled mine. I had to > figure it out from first principles. > I am thinking the same. Perhaps two 64 bits counter. One for internal time base and one for external real counts. Run the generator and/or inverter at slightly higher frequency. Chop cycles for adjustments. AVR's 16 bit counter is not going to be enough for good accuracy.
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-07-02 12:00 -0400 |
| Message-ID | <ojb542$ki8$1@dont-email.me> |
| In reply to | #466535 |
edward.ming.lee@gmail.com wrote on 7/2/2017 11:51 AM: > On Sunday, July 2, 2017 at 8:45:00 AM UTC-7, rickman wrote: >> edward.ming.lee@gmail.com wrote on 7/2/2017 10:55 AM: >>> On Saturday, July 1, 2017 at 10:35:02 PM UTC-7, Don Y wrote: >>>> On 7/1/2017 8:13 PM, David Lesher wrote: >>>>> Seeking a packaged line (~~60hz) frequency [or period] counter >>>>> with I2C or SPI output to feed a Mega2560 box. The goal is to >>>>> monitor a b/u generator's speed. >>>>> >>>>> Suggestions? >>>> >>>> How accurate do you need to be? Presumably, the mains will not be >>>> available when the generator's output is "of interest". But, the >>>> device you're contemplating could be located *on* the "backed >>>> up mains" just as easily as on the output of the genset. >>>> >>>> Can it be indoors? (i.e., in a relatively constant environment) >>>> Or, does it have to reside in the same environment that the generator >>>> is likely located (which may be out-of-doors) >>> >>> I believe the main concern is the start/stop kick in/out times. If it's feeding some time clocks, they could be off by seconds. To be truly accurate, you would need to adjust following frequencies to compensate. >>> >>> To echo rickman, perfect job for an FPGA. >> >> This is one where you need to pay attention to detail to get it right. Most >> stuff in an FPGA is actually simple, basic logic design, but this is not a >> beginner design without a little help. >> >> I designed a freq counter circuit once and it requires attention to the fact >> that two clocks are involved. I'm sure there are plenty of reference >> designs available today. I didn't have one when I rolled mine. I had to >> figure it out from first principles. >> > > I am thinking the same. Perhaps two 64 bits counter. One for internal time base and one for external real counts. Run the generator and/or inverter at slightly higher frequency. Chop cycles for adjustments. AVR's 16 bit counter is not going to be enough for good accuracy. I expect a 24 bit counter will do nicely. Consider the time base accuracy and you'll see anything beyond 1 ppm is not just icing on the cake, but sprinkles on the icing. -- Rick C
[toc] | [prev] | [next] | [standalone]
| From | edward.ming.lee@gmail.com |
|---|---|
| Date | 2017-07-02 10:20 -0700 |
| Message-ID | <2b53ccf6-3c14-4a04-82b3-fd99d86355ad@googlegroups.com> |
| In reply to | #466541 |
On Sunday, July 2, 2017 at 9:00:42 AM UTC-7, rickman wrote: > edward.ming.lee@gmail.com wrote on 7/2/2017 11:51 AM: > > On Sunday, July 2, 2017 at 8:45:00 AM UTC-7, rickman wrote: > >> edward.ming.lee@gmail.com wrote on 7/2/2017 10:55 AM: > >>> On Saturday, July 1, 2017 at 10:35:02 PM UTC-7, Don Y wrote: > >>>> On 7/1/2017 8:13 PM, David Lesher wrote: > >>>>> Seeking a packaged line (~~60hz) frequency [or period] counter > >>>>> with I2C or SPI output to feed a Mega2560 box. The goal is to > >>>>> monitor a b/u generator's speed. > >>>>> > >>>>> Suggestions? > >>>> > >>>> How accurate do you need to be? Presumably, the mains will not be > >>>> available when the generator's output is "of interest". But, the > >>>> device you're contemplating could be located *on* the "backed > >>>> up mains" just as easily as on the output of the genset. > >>>> > >>>> Can it be indoors? (i.e., in a relatively constant environment) > >>>> Or, does it have to reside in the same environment that the generator > >>>> is likely located (which may be out-of-doors) > >>> > >>> I believe the main concern is the start/stop kick in/out times. If it's feeding some time clocks, they could be off by seconds. To be truly accurate, you would need to adjust following frequencies to compensate. > >>> > >>> To echo rickman, perfect job for an FPGA. > >> > >> This is one where you need to pay attention to detail to get it right. Most > >> stuff in an FPGA is actually simple, basic logic design, but this is not a > >> beginner design without a little help. > >> > >> I designed a freq counter circuit once and it requires attention to the fact > >> that two clocks are involved. I'm sure there are plenty of reference > >> designs available today. I didn't have one when I rolled mine. I had to > >> figure it out from first principles. > >> > > > > I am thinking the same. Perhaps two 64 bits counter. One for internal time base and one for external real counts. Run the generator and/or inverter at slightly higher frequency. Chop cycles for adjustments. AVR's 16 bit counter is not going to be enough for good accuracy. > > I expect a 24 bit counter will do nicely. Consider the time base accuracy > and you'll see anything beyond 1 ppm is not just icing on the cake, but > sprinkles on the icing. The correct answer is going to be somewhere between 24 and 64. Don't forget that this time base counter is counting/dividing a typical 20M to 50M clock.
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-07-02 13:52 -0400 |
| Message-ID | <ojbblt$8u5$2@dont-email.me> |
| In reply to | #466553 |
edward.ming.lee@gmail.com wrote on 7/2/2017 1:20 PM: > On Sunday, July 2, 2017 at 9:00:42 AM UTC-7, rickman wrote: >> edward.ming.lee@gmail.com wrote on 7/2/2017 11:51 AM: >>> On Sunday, July 2, 2017 at 8:45:00 AM UTC-7, rickman wrote: >>>> edward.ming.lee@gmail.com wrote on 7/2/2017 10:55 AM: >>>>> On Saturday, July 1, 2017 at 10:35:02 PM UTC-7, Don Y wrote: >>>>>> On 7/1/2017 8:13 PM, David Lesher wrote: >>>>>>> Seeking a packaged line (~~60hz) frequency [or period] counter >>>>>>> with I2C or SPI output to feed a Mega2560 box. The goal is to >>>>>>> monitor a b/u generator's speed. >>>>>>> >>>>>>> Suggestions? >>>>>> >>>>>> How accurate do you need to be? Presumably, the mains will not be >>>>>> available when the generator's output is "of interest". But, the >>>>>> device you're contemplating could be located *on* the "backed >>>>>> up mains" just as easily as on the output of the genset. >>>>>> >>>>>> Can it be indoors? (i.e., in a relatively constant environment) >>>>>> Or, does it have to reside in the same environment that the generator >>>>>> is likely located (which may be out-of-doors) >>>>> >>>>> I believe the main concern is the start/stop kick in/out times. If it's feeding some time clocks, they could be off by seconds. To be truly accurate, you would need to adjust following frequencies to compensate. >>>>> >>>>> To echo rickman, perfect job for an FPGA. >>>> >>>> This is one where you need to pay attention to detail to get it right. Most >>>> stuff in an FPGA is actually simple, basic logic design, but this is not a >>>> beginner design without a little help. >>>> >>>> I designed a freq counter circuit once and it requires attention to the fact >>>> that two clocks are involved. I'm sure there are plenty of reference >>>> designs available today. I didn't have one when I rolled mine. I had to >>>> figure it out from first principles. >>>> >>> >>> I am thinking the same. Perhaps two 64 bits counter. One for internal time base and one for external real counts. Run the generator and/or inverter at slightly higher frequency. Chop cycles for adjustments. AVR's 16 bit counter is not going to be enough for good accuracy. >> >> I expect a 24 bit counter will do nicely. Consider the time base accuracy >> and you'll see anything beyond 1 ppm is not just icing on the cake, but >> sprinkles on the icing. > > The correct answer is going to be somewhere between 24 and 64. Don't forget that this time base counter is counting/dividing a typical 20M to 50M clock. Frequency is not the issue, it's accuracy. Why use a 0.01 ppm counter when the xtal accuracy is 1000 times worse? -- Rick C
[toc] | [prev] | [next] | [standalone]
| From | Neon John <no@never.com> |
|---|---|
| Date | 2017-07-02 13:41 -0400 |
| Message-ID | <pdbilclnq9du5tn5cf2ecjfs8utkpuri48@4ax.com> |
| In reply to | #466526 |
On Sun, 2 Jul 2017 07:55:58 -0700 (PDT), edward.ming.lee@gmail.com wrote: >I believe the main concern is the start/stop kick in/out times. If it's feeding >some time clocks, they could be off by seconds. To be truly accurate, you >would need to adjust following frequencies to compensate. most backup generators have a time delay after loss-of-power to make sure it is a real loss. My Genrac's unit is 10 seconds. Then the engine runs for a few seconds of warm-up. Mine is 5 seconds. So the power is off for at least 15 seconds minimum. Generators can be faster. The Tech Spec for most nuclear plants is 12 seconds to be connected to the Vital Bus, on frequency and regulated voltage. That's one of the things my nuclear company did was test these large (typ 50MW) generators to certify that they meet Tech Specs after a major plant mod. The take-home is that 60Hz-referenced clocks simply must be reset unless they have battery/crystal backup. John John DeArmond http://www.neon-john.com http://www.tnduction.com Tellico Plains, Occupied TN See website for email address
[toc] | [prev] | [next] | [standalone]
| From | Don Y <blockedofcourse@foo.invalid> |
|---|---|
| Date | 2017-07-02 11:22 -0700 |
| Message-ID | <ojbde3$gag$1@dont-email.me> |
| In reply to | #466526 |
On 7/2/2017 7:55 AM, edward.ming.lee@gmail.com wrote: > On Saturday, July 1, 2017 at 10:35:02 PM UTC-7, Don Y wrote: >> On 7/1/2017 8:13 PM, David Lesher wrote: >>> Seeking a packaged line (~~60hz) frequency [or period] counter with I2C >>> or SPI output to feed a Mega2560 box. The goal is to monitor a b/u >>> generator's speed. >>> >>> Suggestions? >> >> How accurate do you need to be? Presumably, the mains will not be >> available when the generator's output is "of interest". But, the device >> you're contemplating could be located *on* the "backed up mains" just as >> easily as on the output of the genset. >> >> Can it be indoors? (i.e., in a relatively constant environment) Or, does >> it have to reside in the same environment that the generator is likely >> located (which may be out-of-doors) > > I believe the main concern is the start/stop kick in/out times. If it's > feeding some time clocks, they could be off by seconds. To be truly > accurate, you would need to adjust following frequencies to compensate. I saw no mention of "keeping time" (using synchronous motor driven timepieces) in the OP. Perhaps David could clarify that? Unless the genset is running already (and all you worry about is the transfer time), there is going to be a significant delay (loss of power) between when the mains falls away (and can be assuredly considered to be *gone* vs. just winking in and out) and when the genset fires up and assumes the load through the transfer switch. I.e., any timepieces that were locked to the line frequency clock directly (vs. indirectly) will have lost time in that interval. Presumably, the OP wants to *do* something with the observations -- even if that's as simple as displaying it on an indicator. OTOH, depending on the type of genset (diesel, propane, gas, inverter, etc.) the frequency can be an indication of the stability of the driven load and the genset's ability to keep ahead of it. We have a genset colocated with the load center (easier to wire) that backs up certain branch circuits in the event of prolonged outages. I have a processor there that monitors its performance as well as allows me to spin it up/down on demand (outages, periodic "exercises", etc.), monitor things like the starter battery (voltage, charging current, starter amps), line/load characteristics, etc. Eventually (move to a larger genset) it will also allow for loads to be shed based on its own assessment of the outage and demand (in Summer, keep the freezer running; in winter, keep the furnace blower running; etc.) [I can talk directly to loads so the genset/loadcenter doesn't actually have to disconnect individual branch circuits] So, the *consumer* of that information is the real issue (I doubt keeping old synchronous motor timepieces accurate is the driving concern :> ) > To echo rickman, perfect job for an FPGA. >
[toc] | [prev] | [next] | [standalone]
| From | "John Miles, KE5FX" <jmiles@gmail.com> |
|---|---|
| Date | 2017-07-02 12:55 -0700 |
| Message-ID | <532f9052-5280-46b3-9283-5523efc4ecd6@googlegroups.com> |
| In reply to | #466526 |
On Sunday, July 2, 2017 at 7:56:04 AM UTC-7, edward....@gmail.com wrote: > I believe the main concern is the start/stop kick in/out times. > If it's feeding some time clocks, they could be off by seconds. To be > truly accurate, you would need to adjust following frequencies to > compensate. > > To echo rickman, perfect job for an FPGA. The notion that a single-cycle-per-instruction MCU running at 16 MHz is inadequate to directly monitor any operational parameter of a 60 Hz generator is certainly interesting. The requirement for an FPGA to do this particular job is even more interesting. -- john, KE5FX
[toc] | [prev] | [next] | [standalone]
| From | Lasse Langwadt Christensen <langwadt@fonz.dk> |
|---|---|
| Date | 2017-07-02 13:12 -0700 |
| Message-ID | <0eff1401-c632-4a83-a294-00f2c294f528@googlegroups.com> |
| In reply to | #466577 |
Den søndag den 2. juli 2017 kl. 21.55.52 UTC+2 skrev John Miles, KE5FX: > On Sunday, July 2, 2017 at 7:56:04 AM UTC-7, edward....@gmail.com wrote: > > I believe the main concern is the start/stop kick in/out times. > > If it's feeding some time clocks, they could be off by seconds. To be > > truly accurate, you would need to adjust following frequencies to > > compensate. > > > > To echo rickman, perfect job for an FPGA. > > The notion that a single-cycle-per-instruction MCU running at 16 MHz is > inadequate to directly monitor any operational parameter of a 60 Hz > generator is certainly interesting. > > The requirement for an FPGA to do this particular job is even more > interesting. by interesting I assume you mean crazy ;) 16MHz is 62.5ns, try getting the zeros crossing detection that accurate
[toc] | [prev] | [next] | [standalone]
| From | Don Y <blockedofcourse@foo.invalid> |
|---|---|
| Date | 2017-07-02 13:27 -0700 |
| Message-ID | <ojbknu$9af$1@dont-email.me> |
| In reply to | #466579 |
On 7/2/2017 1:12 PM, Lasse Langwadt Christensen wrote:
> Den søndag den 2. juli 2017 kl. 21.55.52 UTC+2 skrev John Miles, KE5FX:
>> On Sunday, July 2, 2017 at 7:56:04 AM UTC-7, edward....@gmail.com wrote:
>>> I believe the main concern is the start/stop kick in/out times.
>>> If it's feeding some time clocks, they could be off by seconds. To be
>>> truly accurate, you would need to adjust following frequencies to
>>> compensate.
>>>
>>> To echo rickman, perfect job for an FPGA.
>>
>> The notion that a single-cycle-per-instruction MCU running at 16 MHz is
>> inadequate to directly monitor any operational parameter of a 60 Hz
>> generator is certainly interesting.
>>
>> The requirement for an FPGA to do this particular job is even more
>> interesting.
>
> by interesting I assume you mean crazy ;)
>
> 16MHz is 62.5ns, try getting the zeros crossing detection that accurate
I don't see where the OP stated any particular accuracy requirements:
"(~~60hz)".
Run the zero-crossing detector into a counter/timer/capture input
and note the value on a free-running counter clocked at a rate
"precise" enough for the resolution you desire (accuracy being
a different thing, entirely). Design for constant latency (in
hardware or software) and you can largely ignore it (the latency).
Do this again and again and again. From that, infer averages
of individual cycles: first was detected in 16.6ms, second was
detected 16.602ms later suggests that they, as a pair, happened
at *about* ("~~") 16.601ms intervals.
(OP didn't indicate who/what was going to be LOOKING at the
data nor how often they would be doing so; drive a panel
meter and you'll have to take steps to SLOW the display
to something that a human can perceive!)
I use "physical-variable-to-frequency" sensing techniques
A LOT -- they let you dynamically trade precision for response
time (and can give *both* from the same signal) -- so they
are well suited for applications where you might want to make
a quick decision based on partial information:
"We're to the left of center"
"The sample is darker than the control"
and are willing to wait for a more refined decision:
"We're exactly X off of center, towards the left"
"The sample is X% more opaque than the reference"
[toc] | [prev] | [next] | [standalone]
| From | edward.ming.lee@gmail.com |
|---|---|
| Date | 2017-07-02 14:18 -0700 |
| Message-ID | <02a5fea9-f880-4f23-bff3-21f4aab977e6@googlegroups.com> |
| In reply to | #466579 |
On Sunday, July 2, 2017 at 1:12:34 PM UTC-7, Lasse Langwadt Christensen wrote: > Den søndag den 2. juli 2017 kl. 21.55.52 UTC+2 skrev John Miles, KE5FX: > > On Sunday, July 2, 2017 at 7:56:04 AM UTC-7, edward....@gmail.com wrote: > > > I believe the main concern is the start/stop kick in/out times. > > > If it's feeding some time clocks, they could be off by seconds. To be > > > truly accurate, you would need to adjust following frequencies to > > > compensate. > > > > > > To echo rickman, perfect job for an FPGA. > > > > The notion that a single-cycle-per-instruction MCU running at 16 MHz is > > inadequate to directly monitor any operational parameter of a 60 Hz > > generator is certainly interesting. > > > > The requirement for an FPGA to do this particular job is even more > > interesting. > > by interesting I assume you mean crazy ;) Why not, some FPGA boards are really cheap. Just got my $16 cyclone II board including shipping from China. Oh, a free USB blaster programmer too. > > 16MHz is 62.5ns, try getting the zeros crossing detection that accurate Except that you can't sample at 16Mhz, you have to use the 10 bits prescaler. But what prescaler do you set to range from 0.01ms to seconds. As for FPGA, you can use up to 8000 bit counter on a cyclone II.
[toc] | [prev] | [next] | [standalone]
| From | Lasse Langwadt Christensen <langwadt@fonz.dk> |
|---|---|
| Date | 2017-07-02 14:37 -0700 |
| Message-ID | <5946b368-2540-4316-b387-4ce14dd8c463@googlegroups.com> |
| In reply to | #466586 |
Den søndag den 2. juli 2017 kl. 23.19.03 UTC+2 skrev edward....@gmail.com: > On Sunday, July 2, 2017 at 1:12:34 PM UTC-7, Lasse Langwadt Christensen wrote: > > Den søndag den 2. juli 2017 kl. 21.55.52 UTC+2 skrev John Miles, KE5FX: > > > On Sunday, July 2, 2017 at 7:56:04 AM UTC-7, edward....@gmail.com wrote: > > > > I believe the main concern is the start/stop kick in/out times. > > > > If it's feeding some time clocks, they could be off by seconds. To be > > > > truly accurate, you would need to adjust following frequencies to > > > > compensate. > > > > > > > > To echo rickman, perfect job for an FPGA. > > > > > > The notion that a single-cycle-per-instruction MCU running at 16 MHz is > > > inadequate to directly monitor any operational parameter of a 60 Hz > > > generator is certainly interesting. > > > > > > The requirement for an FPGA to do this particular job is even more > > > interesting. > > > > by interesting I assume you mean crazy ;) > > Why not, some FPGA boards are really cheap. Just got my $16 cyclone II board including shipping from China. Oh, a free USB blaster programmer too. > and a board with an mcu is $1 > > > > 16MHz is 62.5ns, try getting the zeros crossing detection that accurate > > Except that you can't sample at 16Mhz, you have to use the 10 bits prescaler. But what prescaler do you set to range from 0.01ms to seconds. > why would you need to use the prescaler? incrementing a variable when the timer rolls over every few ms is not an issue > As for FPGA, you can use up to 8000 bit counter on a cyclone II. sure but what would be the point?
[toc] | [prev] | [next] | [standalone]
| From | edward.ming.lee@gmail.com |
|---|---|
| Date | 2017-07-02 14:44 -0700 |
| Message-ID | <523a5e32-342e-4473-9464-db5740d5a38e@googlegroups.com> |
| In reply to | #466591 |
On Sunday, July 2, 2017 at 2:37:18 PM UTC-7, Lasse Langwadt Christensen wrote: > Den søndag den 2. juli 2017 kl. 23.19.03 UTC+2 skrev edward....@gmail.com: > > On Sunday, July 2, 2017 at 1:12:34 PM UTC-7, Lasse Langwadt Christensen wrote: > > > Den søndag den 2. juli 2017 kl. 21.55.52 UTC+2 skrev John Miles, KE5FX: > > > > On Sunday, July 2, 2017 at 7:56:04 AM UTC-7, edward....@gmail.com wrote: > > > > > I believe the main concern is the start/stop kick in/out times. > > > > > If it's feeding some time clocks, they could be off by seconds. To be > > > > > truly accurate, you would need to adjust following frequencies to > > > > > compensate. > > > > > > > > > > To echo rickman, perfect job for an FPGA. > > > > > > > > The notion that a single-cycle-per-instruction MCU running at 16 MHz is > > > > inadequate to directly monitor any operational parameter of a 60 Hz > > > > generator is certainly interesting. > > > > > > > > The requirement for an FPGA to do this particular job is even more > > > > interesting. > > > > > > by interesting I assume you mean crazy ;) > > > > Why not, some FPGA boards are really cheap. Just got my $16 cyclone II board including shipping from China. Oh, a free USB blaster programmer too. > > > > and a board with an mcu is $1 Unless he is making thousands of them, probably not much different. I need only one for now, so don't care about $15 more. > > > > > > > 16MHz is 62.5ns, try getting the zeros crossing detection that accurate > > > > Except that you can't sample at 16Mhz, you have to use the 10 bits prescaler. But what prescaler do you set to range from 0.01ms to seconds. > > > > why would you need to use the prescaler? incrementing a variable > when the timer rolls over every few ms is not an issue That implies prescaler already. Have you programmed the AVR hardware counter? > > > As for FPGA, you can use up to 8000 bit counter on a cyclone II. > > sure but what would be the point? Simple, straight forward implementation.
[toc] | [prev] | [next] | [standalone]
| From | edward.ming.lee@gmail.com |
|---|---|
| Date | 2017-07-02 14:48 -0700 |
| Message-ID | <0d521f7c-0eac-462a-b321-656767bcf26c@googlegroups.com> |
| In reply to | #466594 |
On Sunday, July 2, 2017 at 2:44:18 PM UTC-7, edward....@gmail.com wrote: > On Sunday, July 2, 2017 at 2:37:18 PM UTC-7, Lasse Langwadt Christensen wrote: > > Den søndag den 2. juli 2017 kl. 23.19.03 UTC+2 skrev edward....@gmail.com: > > > On Sunday, July 2, 2017 at 1:12:34 PM UTC-7, Lasse Langwadt Christensen wrote: > > > > Den søndag den 2. juli 2017 kl. 21.55.52 UTC+2 skrev John Miles, KE5FX: > > > > > On Sunday, July 2, 2017 at 7:56:04 AM UTC-7, edward....@gmail.com wrote: > > > > > > I believe the main concern is the start/stop kick in/out times. > > > > > > If it's feeding some time clocks, they could be off by seconds. To be > > > > > > truly accurate, you would need to adjust following frequencies to > > > > > > compensate. > > > > > > > > > > > > To echo rickman, perfect job for an FPGA. > > > > > > > > > > The notion that a single-cycle-per-instruction MCU running at 16 MHz is > > > > > inadequate to directly monitor any operational parameter of a 60 Hz > > > > > generator is certainly interesting. > > > > > > > > > > The requirement for an FPGA to do this particular job is even more > > > > > interesting. > > > > > > > > by interesting I assume you mean crazy ;) > > > > > > Why not, some FPGA boards are really cheap. Just got my $16 cyclone II board including shipping from China. Oh, a free USB blaster programmer too. > > > > > > > and a board with an mcu is $1 > > Unless he is making thousands of them, probably not much different. I need only one for now, so don't care about $15 more. > > > > > > > > > > > 16MHz is 62.5ns, try getting the zeros crossing detection that accurate > > > > > > Except that you can't sample at 16Mhz, you have to use the 10 bits prescaler. But what prescaler do you set to range from 0.01ms to seconds. > > > > > > > why would you need to use the prescaler? incrementing a variable > > > when the timer rolls over every few ms is not an issue > > That implies prescaler already. Have you programmed the AVR hardware counter? OK, you can do up to 4ms without prescaler. But when the gen kick in, it could be several seconds. > > > > > > As for FPGA, you can use up to 8000 bit counter on a cyclone II. > > > > sure but what would be the point? > > Simple, straight forward implementation.
[toc] | [prev] | [next] | [standalone]
Page 1 of 4 [1] 2 3 4 Next page →
Back to top | Article view | sci.electronics.design
csiph-web