sam_d
04-27-2006, 04:00 PM
Hey Everybody,
I am a Mechanical Engineering student and have been working on a design project involving a hybrid golf cart. I am using a Basic Stamp 2 module alongwith the carrier board for our charging control circuit. My question involves trying to measure a signal for a certain amount of time.
I am trying to measure a digital input and would like to program the module to activate an IF loop only if it gets a high input for over 5s (or some other value). However, I cannot seem to work out how I would do that. Could someone give me some ideas regarding this? This is my first time ever working with microcontrollers so I am a bit lost really!
Thanks in advance!
-Sam
I am a Mechanical Engineering student and have been working on a design project involving a hybrid golf cart. I am using a Basic Stamp 2 module alongwith the carrier board for our charging control circuit. My question involves trying to measure a signal for a certain amount of time.
I am trying to measure a digital input and would like to program the module to activate an IF loop only if it gets a high input for over 5s (or some other value). However, I cannot seem to work out how I would do that. Could someone give me some ideas regarding this? This is my first time ever working with microcontrollers so I am a bit lost really!
Thanks in advance!
-Sam