Discussion forum for the BasicX family of microcontroller chips.
|
> 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. |
|
|
|
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 > >. |
|
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 > >. |
|
|
|
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] |
|
|
|
-----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] |
|
|
|
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] |