Sign in

username:

password:



Not a member?

Search basicx



Search tips

Subscribe to basicx



basicx by Keywords

Accelerometer | ADC | ADXL | Adxl20 | AVR | BasicStamp | BX-35 | BX28 | BX35 | COM3 | Compiler | Downloader | EEPROM | Electromagnet | GetADC | GP2D1 | GPS | I2C | IDE | Keypad | LCD | LCD+ | MIDI | Motors | Multitasking | Netmedia | Networking | PCB | PID | PlaySound | PWM | Relays | RTC | Servo | ShiftOut | SitePlayer | SPI | Stack | Timer | USB

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | BasicX | FW: Generator System Control Ideas


Advertise Here

Discussion forum for the BasicX family of microcontroller chips.

FW: Generator System Control Ideas - James R. Parish - Sep 20 16:53:00 2003

> I need some input on this next project of mine. Having finished my first
> Basic-X project doing it "my way" before I jump on this one I would like
> to hear how "you would do it".
>
> I have a GENERAC 20KW genset that someone robbed all the start/run control
> boards from as well as the mechanical governor and generator exciter. The
> good news is I have a second identical genset that is working 100% so
> gathering information from the different sensors should be no problem.
>
> I want to use a BX-24 to replace all the missing parts. The sensors we
> have are:
> RMP - Flywheel tooth pickup (pulses).
> OVERTEMP - contact closure.
> LOW OIL PRESSURE - contact closure.
>
> I want to use a "JUMBO Model airplane servo" for throttle control. I'll
> put a scope on the tooth pickup and will probably need a Schmitt trigger
> circuit to square up the pulses, I can handle that so we can assume the
> pulse train will be a square wave.
>
> Would it make sense to put the throttle control in a TASK? We then could
> poll the engine safety sensors and start/stop inputs to see if we need to
> shut down the engine in the MAIN TASK.
>
> The exciter control may need to be in a TASK also, probably an analog
> voltage output to vary the exciter current to maintain the output voltage
> which means we also will have to monitor the 120/240VAC output. While at
> it, probably monitor the output for over/under voltage condition.
>
> Maybe someone on this list has already done this and would like to share
> the setup?
>
> Thanks.





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )


Re: FW: Generator System Control Ideas - Neil Jepsen - Sep 21 14:42:00 2003

What is the pulse frequency James?

James R. Parish wrote:
> > I need some input on this next project of mine. Having finished my first
> > Basic-X project doing it "my way" before I jump on this one I would like
> > to hear how "you would do it".
> >
> > I have a GENERAC 20KW genset that someone robbed all the start/run
> control
> > boards from as well as the mechanical governor and generator
> exciter. The
> > good news is I have a second identical genset that is working 100% so
> > gathering information from the different sensors should be no problem.
> >
> > I want to use a BX-24 to replace all the missing parts. The sensors we
> > have are:
> > RMP - Flywheel tooth pickup (pulses).
> > OVERTEMP - contact closure.
> > LOW OIL PRESSURE - contact closure.
> >
> > I want to use a "JUMBO Model airplane servo" for throttle control. I'll
> > put a scope on the tooth pickup and will probably need a Schmitt trigger
> > circuit to square up the pulses, I can handle that so we can assume the
> > pulse train will be a square wave.
> >
> > Would it make sense to put the throttle control in a TASK? We then could
> > poll the engine safety sensors and start/stop inputs to see if we need to
> > shut down the engine in the MAIN TASK.
> >
> > The exciter control may need to be in a TASK also, probably an analog
> > voltage output to vary the exciter current to maintain the output voltage
> > which means we also will have to monitor the 120/240VAC output. While at
> > it, probably monitor the output for over/under voltage condition.
> >
> > Maybe someone on this list has already done this and would like to share
> > the setup?
> >
> > Thanks. > Yahoo! Groups Sponsor
> ADVERTISEMENT
> <http://rd.yahoo.com/M=194081.3897168.5135684.1261774/D=egroupweb/S=1706554205:HM/A=1706996/R=0/SIG=11p5b9ris/*http://www.ediets.com/start.cfm?code=30509&media=atkins > >.




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

RE: FW: Generator System Control Ideas - James R. Parish - Sep 25 22:37:00 2003

I'll have to grab my freq counter and go measure it, the genset is 1800rpm.
Figure a couple hundred teeth on the flywheel times 1800 might be around
360000 - 400000 hz (400khz)

-----Original Message-----
From: Neil Jepsen [mailto:]
Sent: Sunday, September 21, 2003 3:42 PM
To:
Subject: Re: FW: [BasicX] Generator System Control Ideas

What is the pulse frequency James?

James R. Parish wrote:
> > I need some input on this next project of mine. Having finished my
first
> > Basic-X project doing it "my way" before I jump on this one I would
like
> > to hear how "you would do it".
> >
> > I have a GENERAC 20KW genset that someone robbed all the start/run
> control
> > boards from as well as the mechanical governor and generator
> exciter. The
> > good news is I have a second identical genset that is working 100% so
> > gathering information from the different sensors should be no problem.
> >
> > I want to use a BX-24 to replace all the missing parts. The sensors we
> > have are:
> > RMP - Flywheel tooth pickup (pulses).
> > OVERTEMP - contact closure.
> > LOW OIL PRESSURE - contact closure.
> >
> > I want to use a "JUMBO Model airplane servo" for throttle control.
I'll
> > put a scope on the tooth pickup and will probably need a Schmitt
trigger
> > circuit to square up the pulses, I can handle that so we can assume the
> > pulse train will be a square wave.
> >
> > Would it make sense to put the throttle control in a TASK? We then
could
> > poll the engine safety sensors and start/stop inputs to see if we need
to
> > shut down the engine in the MAIN TASK.
> >
> > The exciter control may need to be in a TASK also, probably an analog
> > voltage output to vary the exciter current to maintain the output
voltage
> > which means we also will have to monitor the 120/240VAC output. While
at
> > it, probably monitor the output for over/under voltage condition.
> >
> > Maybe someone on this list has already done this and would like to
share
> > the setup?
> >
> > Thanks. > Yahoo! Groups Sponsor
> ADVERTISEMENT
>
<http://rd.yahoo.com/M=194081.3897168.5135684.1261774/D=egroupweb/S=17065542
05:HM/A=1706996/R=0/SIG=11p5b9ris/*http://www.ediets.com/start.cfm?code=3050
9&media=atkins > >.





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: FW: Generator System Control Ideas - neil jepsen - Sep 28 15:17:00 2003

400Khz is right on the upper limit for counttransitions or pulsein and I
doubt if you'll be able to successfully count so fast. What I would be
tempted to try is a simple FtoV convertor ( a tacho circuit if you
like) or even a charge pump and read the resulting analogue voltage
using the ADC on the bx24. That way you wouild not need to get involved
in tasks, which makes life easier, and then you could right a simple
PID loop to control the servo => engine throttle setting. You would need
to select high quality components for your F to V to get long term
stability, but thats not difficult. Writing a PID loop in basic is easy,
but challenging. Because your control loop does not need to be fast,
you could do everything in subroutines and a main loop.
neil

James R. Parish wrote:

> I'll have to grab my freq counter and go measure it, the genset is
> 1800rpm.
> Figure a couple hundred teeth on the flywheel times 1800 might be around
> 360000 - 400000 hz (400khz)
>
> -----Original Message-----
> From: Neil Jepsen [mailto:]
> Sent: Sunday, September 21, 2003 3:42 PM
> To:
> Subject: Re: FW: [BasicX] Generator System Control Ideas
>
> What is the pulse frequency James?
>
> James R. Parish wrote:
> > > I need some input on this next project of mine. Having finished my
> first
> > > Basic-X project doing it "my way" before I jump on this one I would
> like
> > > to hear how "you would do it".
> > >
> > > I have a GENERAC 20KW genset that someone robbed all the start/run
> > control
> > > boards from as well as the mechanical governor and generator
> > exciter. The
> > > good news is I have a second identical genset that is working 100% so
> > > gathering information from the different sensors should be no
> problem.
> > >
> > > I want to use a BX-24 to replace all the missing parts. The
> sensors we
> > > have are:
> > > RMP - Flywheel tooth pickup (pulses).
> > > OVERTEMP - contact closure.
> > > LOW OIL PRESSURE - contact closure.
> > >
> > > I want to use a "JUMBO Model airplane servo" for throttle control.
> I'll
> > > put a scope on the tooth pickup and will probably need a Schmitt
> trigger
> > > circuit to square up the pulses, I can handle that so we can
> assume the
> > > pulse train will be a square wave.
> > >
> > > Would it make sense to put the throttle control in a TASK? We then
> could
> > > poll the engine safety sensors and start/stop inputs to see if we
> need
> to
> > > shut down the engine in the MAIN TASK.
> > >
> > > The exciter control may need to be in a TASK also, probably an analog
> > > voltage output to vary the exciter current to maintain the output
> voltage
> > > which means we also will have to monitor the 120/240VAC output. While
> at
> > > it, probably monitor the output for over/under voltage condition.
> > >
> > > Maybe someone on this list has already done this and would like to
> share
> > > the setup?
> > >
> > > Thanks.
> >
> >
> > Yahoo! Groups Sponsor
> > ADVERTISEMENT
> >
> <http://rd.yahoo.com/M=194081.3897168.5135684.1261774/D=egroupweb/S=17065542
> 05:HM/A=1706996/R=0/SIG=11p5b9ris/*http://www.ediets.com/start.cfm?code=3050
> 9&media=atkins>
> >
> >
> > >. >
> Yahoo! Groups Sponsor
> ADVERTISEMENT
> <http://rd.yahoo.com/M=194081.3897168.5135684.1261774/D=egroupweb/S=1706554205:HM/A=1732163/R=0/SIG=11n0nglqg/*http://www.ediets.com/start.cfm?code=30510&media=zone >
> >.
[Non-text portions of this message have been removed]





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

RE: FW: Generator System Control Ideas - Lauren Vanderhoof - Sep 29 11:52:00 2003



-----Original Message-----
From: neil jepsen [mailto:]
Sent: Sunday, September 28, 2003 1:18 PM
To:
Subject: Re: FW: [BasicX] Generator System Control Ideas 400Khz is right on the upper limit for counttransitions or pulsein and I
doubt if you'll be able to successfully count so fast. What I would be
tempted to try is a simple FtoV convertor ( a tacho circuit if you
like) or even a charge pump and read the resulting analogue voltage
using the ADC on the bx24. That way you wouild not need to get involved
in tasks, which makes life easier, and then you could right a simple
PID loop to control the servo => engine throttle setting. You would need
to select high quality components for your F to V to get long term
stability, but thats not difficult. Writing a PID loop in basic is easy,
but challenging. Because your control loop does not need to be fast,
you could do everything in subroutines and a main loop.
neil

-------------

Did I miss something here? A quick BOTE calc gives:

1800 rev/min * 1 min/60 secs * 200 pulses/rev = 6000 pulses/sec or 6 KHz

should be within the capabilities of the BX-24 directly.

cheers,
lauren

----------------

James R. Parish wrote:

> I'll have to grab my freq counter and go measure it, the genset is
> 1800rpm.
> Figure a couple hundred teeth on the flywheel times 1800 might be around
> 360000 - 400000 hz (400khz)
>
> -----Original Message-----
> From: Neil Jepsen [mailto:]
> Sent: Sunday, September 21, 2003 3:42 PM
> To:
> Subject: Re: FW: [BasicX] Generator System Control Ideas
>
> What is the pulse frequency James?
>
> James R. Parish wrote:
> > > I need some input on this next project of mine. Having finished my
> first
> > > Basic-X project doing it "my way" before I jump on this one I would
> like
> > > to hear how "you would do it".
> > >
> > > I have a GENERAC 20KW genset that someone robbed all the start/run
> > control
> > > boards from as well as the mechanical governor and generator
> > exciter. The
> > > good news is I have a second identical genset that is working 100% so
> > > gathering information from the different sensors should be no
> problem.
> > >
> > > I want to use a BX-24 to replace all the missing parts. The
> sensors we
> > > have are:
> > > RMP - Flywheel tooth pickup (pulses).
> > > OVERTEMP - contact closure.
> > > LOW OIL PRESSURE - contact closure.
> > >
> > > I want to use a "JUMBO Model airplane servo" for throttle control.
> I'll
> > > put a scope on the tooth pickup and will probably need a Schmitt
> trigger
> > > circuit to square up the pulses, I can handle that so we can
> assume the
> > > pulse train will be a square wave.
> > >
> > > Would it make sense to put the throttle control in a TASK? We then
> could
> > > poll the engine safety sensors and start/stop inputs to see if we
> need
> to
> > > shut down the engine in the MAIN TASK.
> > >
> > > The exciter control may need to be in a TASK also, probably an analog
> > > voltage output to vary the exciter current to maintain the output
> voltage
> > > which means we also will have to monitor the 120/240VAC output. While
> at
> > > it, probably monitor the output for over/under voltage condition.
> > >
> > > Maybe someone on this list has already done this and would like to
> share
> > > the setup?
> > >
> > > Thanks.
> >
> >
> > Yahoo! Groups Sponsor
> > ADVERTISEMENT
> >
>
<http://rd.yahoo.com/M=194081.3897168.5135684.1261774/D=egroupweb/S=17065542
>
05:HM/A=1706996/R=0/SIG=11p5b9ris/*http://www.ediets.com/start.cfm?code=3050
> 9&media=atkins>
> >
> >
> > >. >
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
<http://rd.yahoo.com/M=194081.3897168.5135684.1261774/D=egroupweb/S=17065542
05:HM/A=1732163/R=0/SIG=11n0nglqg/*http://www.ediets.com/start.cfm?code=3051
0&media=zone >
> >.
[Non-text portions of this message have been removed]





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: FW: Generator System Control Ideas - Kenneth Smith - Sep 29 17:11:00 2003

Lauren you are correct on the frequency at 6000 hz or 166.6 us. The
doc on the Basicx says it will go down to 1.085 us or 921.6 Khz.
However I will have to agree with Neil on the Frequency to Voltage
converter. You will use a lot less processing time doing it that way
and I assume he will be getting other info on the engine.
All the commerical units, that I worked on, use this configuration
to detect Starting, running and over speed.
I wrote a spreadsheet on this to obtain a formula for scaling voltage
to servos for joysticks.

Ken

--- In , "Lauren Vanderhoof" <lvanderhoof@s...>
wrote: > -----Original Message-----
> From: neil jepsen [mailto:njepsen@i...]
> Sent: Sunday, September 28, 2003 1:18 PM
> To:
> Subject: Re: FW: [BasicX] Generator System Control Ideas > 400Khz is right on the upper limit for counttransitions or pulsein
and I
> doubt if you'll be able to successfully count so fast. What I would
be
> tempted to try is a simple FtoV convertor ( a tacho circuit if you
> like) or even a charge pump and read the resulting analogue voltage
> using the ADC on the bx24. That way you wouild not need to get
involved
> in tasks, which makes life easier, and then you could right a
simple
> PID loop to control the servo => engine throttle setting. You would
need
> to select high quality components for your F to V to get long term
> stability, but thats not difficult. Writing a PID loop in basic is
easy,
> but challenging. Because your control loop does not need to be
fast,
> you could do everything in subroutines and a main loop.
> neil
>
> -------------
>
> Did I miss something here? A quick BOTE calc gives:
>
> 1800 rev/min * 1 min/60 secs * 200 pulses/rev = 6000
pulses/sec or 6 KHz
>
> should be within the capabilities of the BX-24 directly.
>
> cheers,
> lauren
>
> ----------------
>
> James R. Parish wrote:
>
> > I'll have to grab my freq counter and go measure it, the genset is
> > 1800rpm.
> > Figure a couple hundred teeth on the flywheel times 1800 might be
around
> > 360000 - 400000 hz (400khz)
> >
> > -----Original Message-----
> > From: Neil Jepsen [mailto:njepsen@i...]
> > Sent: Sunday, September 21, 2003 3:42 PM
> > To:
> > Subject: Re: FW: [BasicX] Generator System Control Ideas
> >
> > What is the pulse frequency James?
> >
> > James R. Parish wrote:
> > > > I need some input on this next project of mine. Having
finished my
> > first
> > > > Basic-X project doing it "my way" before I jump on this one
I would
> > like
> > > > to hear how "you would do it".
> > > >
> > > > I have a GENERAC 20KW genset that someone robbed all the
start/run
> > > control
> > > > boards from as well as the mechanical governor and generator
> > > exciter. The
> > > > good news is I have a second identical genset that is
working 100% so
> > > > gathering information from the different sensors should be no
> > problem.
> > > >
> > > > I want to use a BX-24 to replace all the missing parts. The
> > sensors we
> > > > have are:
> > > > RMP - Flywheel tooth pickup (pulses).
> > > > OVERTEMP - contact closure.
> > > > LOW OIL PRESSURE - contact closure.
> > > >
> > > > I want to use a "JUMBO Model airplane servo" for throttle
control.
> > I'll
> > > > put a scope on the tooth pickup and will probably need a
Schmitt
> > trigger
> > > > circuit to square up the pulses, I can handle that so we can
> > assume the
> > > > pulse train will be a square wave.
> > > >
> > > > Would it make sense to put the throttle control in a TASK?
We then
> > could
> > > > poll the engine safety sensors and start/stop inputs to see
if we
> > need
> > to
> > > > shut down the engine in the MAIN TASK.
> > > >
> > > > The exciter control may need to be in a TASK also, probably
an analog
> > > > voltage output to vary the exciter current to maintain the
output
> > voltage
> > > > which means we also will have to monitor the 120/240VAC
output. While
> > at
> > > > it, probably monitor the output for over/under voltage
condition.
> > > >
> > > > Maybe someone on this list has already done this and would
like to
> > share
> > > > the setup?
> > > >
> > > > Thanks.
> > >
> > >
> > > Yahoo! Groups Sponsor
> > > ADVERTISEMENT
> > >
> >
>
<http://rd.yahoo.com/M=194081.3897168.5135684.1261774/D=egroupweb/S=17
065542
> >
> 05:HM/A=1706996/R=0/SIG=11p5b9ris/*http://www.ediets.com/start.cfm?
code=3050
> > 9&media=atkins>
> > >
> > >
> > > >.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Yahoo! Groups Sponsor
> > ADVERTISEMENT
> >
>
<http://rd.yahoo.com/M=194081.3897168.5135684.1261774/D=egroupweb/S=17
065542
> 05:HM/A=1732163/R=0/SIG=11n0nglqg/*http://www.ediets.com/start.cfm?
code=3051
> 0&media=zone>
> >
> >
> >
> > >. >
> [Non-text portions of this message have been removed]




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )