Chompin' at the bit! Truckin' Mike's First post!
' {$STAMP BS2}
' {$PBASIC 2.5}
'what's a microcontroller - pleaseletmykitcomein.bs2
'Explaining TruckinMikes parallax Basic Stamp delivery condition
DEBUG "I hope I'm not disrupting the BASIC STamp forum topic guidelines. I could not find an introduction thread using the search tool."
DEBUG "I have made it to page 86 so far in the What's a microcontroller manual -- without a basic stamp kit. But I'm gung ho and learning"
DEBUG "And yes, I have really been chompin' at the bit while waiting for my basic stamp kit to get to me.
"
DEBUG "Good news, I just now got a load back to TEXAS, I'm in Seattle. I'll should be home experimenting by next Tuesday."
DEBUG "Looking forward to getting to know everyone..."
truckinmike VAR byte
mybasickit VAR bit
delivered VAR nib
Do
IF (mybasickit = delivered) THEN
HIGH TruckinMike
DO
DEBUG CLS
DEBUG "Ya-Hoo"
PAUSE 1000
DEBUG CLS
PAUSE 1000
DEBUG "Yee-Haw!
PAUSE 1000
LOOP
ELSE
LOW TruckinMike
ENDIF
DEBUG CLS
DEBUG "Maybe Wednesday...
"
LOOP
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A truck driver was heading down the highway when he saw a priest at the side of the road. Feeling it was his duty, he stopped to give the priest a ride. A short time later, he saw a lawyer with a briefcase on the side of the road and aimed his truck at him. At the last second, he thought of the priest with him and realized he couldn't run over the lawyer, so he swerved, but he heard a thump anyway. Looking back as he drove on, he didn't see anything. He began to apologize for his behavior to the priest. "I'm sorry, Father. I barely missed that lawyer at the side of the road."
But the priest said, "Don't worry, son. I got him with my door."
' {$PBASIC 2.5}
'what's a microcontroller - pleaseletmykitcomein.bs2
'Explaining TruckinMikes parallax Basic Stamp delivery condition
DEBUG "I hope I'm not disrupting the BASIC STamp forum topic guidelines. I could not find an introduction thread using the search tool."
DEBUG "I have made it to page 86 so far in the What's a microcontroller manual -- without a basic stamp kit. But I'm gung ho and learning"
DEBUG "And yes, I have really been chompin' at the bit while waiting for my basic stamp kit to get to me.
![burger.gif](http://forums.parallax.com/images/smilies/burger.gif)
DEBUG "Good news, I just now got a load back to TEXAS, I'm in Seattle. I'll should be home experimenting by next Tuesday."
DEBUG "Looking forward to getting to know everyone..."
truckinmike VAR byte
mybasickit VAR bit
delivered VAR nib
Do
IF (mybasickit = delivered) THEN
HIGH TruckinMike
DO
DEBUG CLS
DEBUG "Ya-Hoo"
PAUSE 1000
DEBUG CLS
PAUSE 1000
DEBUG "Yee-Haw!
PAUSE 1000
LOOP
ELSE
LOW TruckinMike
ENDIF
DEBUG CLS
DEBUG "Maybe Wednesday...
![cry.gif](http://forums.parallax.com/images/smilies/cry.gif)
LOOP
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A truck driver was heading down the highway when he saw a priest at the side of the road. Feeling it was his duty, he stopped to give the priest a ride. A short time later, he saw a lawyer with a briefcase on the side of the road and aimed his truck at him. At the last second, he thought of the priest with him and realized he couldn't run over the lawyer, so he swerved, but he heard a thump anyway. Looking back as he drove on, he didn't see anything. He began to apologize for his behavior to the priest. "I'm sorry, Father. I barely missed that lawyer at the side of the road."
But the priest said, "Don't worry, son. I got him with my door."
Comments
From one Texan to another I think I speak for all here and say welcome.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A complex design is the sign of an inferior designer."
TMike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A truck driver was heading down the highway when he saw a priest at the side of the road. Feeling it was his duty, he stopped to give the priest a ride. A short time later, he saw a lawyer with a briefcase on the side of the road and aimed his truck at him. At the last second, he thought of the priest with him and realized he couldn't run over the lawyer, so he swerved, but he heard a thump anyway. Looking back as he drove on, he didn't see anything. He began to apologize for his behavior to the priest. "I'm sorry, Father. I barely missed that lawyer at the side of the road."
But the priest said, "Don't worry, son. I got him with my door."
DEBUG "I hope I'm not disrupting the BASIC STamp forum topic guidelines. I could not find an introduction thread using the search tool ."· ,CR
DEBUG "I have made it to page 86 so far in the What's a microcontroller manual -- without a basic stamp kit. But I'm gung ho and learning" ,CR
·DEBUG "And yes, I have really been chompin' at the bit while waiting for my basic stamp kit to get to me.
DEBUG "Good news, I just now got a load back to TEXAS, I'm in Seattle. I'll should be home experimenting by next Tuesday."· ,CR
DEBUG "Looking forward to getting to know everyone..."· ,CR
CR is Carriage Return, with out it your senteses will just run together.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mike2545
This message sent to you on 100% recycled electrons.
TMike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A truck driver was heading down the highway when he saw a priest at the side of the road. Feeling it was his duty, he stopped to give the priest a ride. A short time later, he saw a lawyer with a briefcase on the side of the road and aimed his truck at him. At the last second, he thought of the priest with him and realized he couldn't run over the lawyer, so he swerved, but he heard a thump anyway. Looking back as he drove on, he didn't see anything. He began to apologize for his behavior to the priest. "I'm sorry, Father. I barely missed that lawyer at the side of the road."
But the priest said, "Don't worry, son. I got him with my door."
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
Check out the new Savage Circuits TV!
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mike2545
This message sent to you on 100% recycled electrons.
Let the fun Begin!!!
Thanks,
TMike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A truck driver was heading down the highway when he saw a priest at the side of the road. Feeling it was his duty, he stopped to give the priest a ride. A short time later, he saw a lawyer with a briefcase on the side of the road and aimed his truck at him. At the last second, he thought of the priest with him and realized he couldn't run over the lawyer, so he swerved, but he heard a thump anyway. Looking back as he drove on, he didn't see anything. He began to apologize for his behavior to the priest. "I'm sorry, Father. I barely missed that lawyer at the side of the road."
But the priest said, "Don't worry, son. I got him with my door."
but alas, the problems begin...
I'm working on the "reaction timer" in the WHat's a microcontroller guide (p.99). I made the game for two players as instructed. But with one problem.
Note1: I'm using two leds, instead of the bi-color led per instructions (I don't have one).
Note2: I'm working on the professional development board. The PDB buttons are held normally high, and low when pressed.
Game function:
1. both players must press their respective input button - IN0 and IN1 buttons
2. then one led lights up (pin15)
3. a random number generator creates a pause,
4. then the START led comes on (pin14)
5 each person releases their button as fast as possible
6. I send the reaction times for players and the random pause time to the debug terminal
All of that works great. The problem is if one or both players released early (before the start led comes on) I could not make debug send a statement to the terminal addressing the issue... here is my code - where did I go wrong?
Look to the "NOTE" just after "LOW 14". With just one player the "timeCounter" would go to 1 when the player released before the start led came on. --- I suppose It does something different with two players -- thats where all the trouble is...
I don't want to waste anyone's time, if you could point me in the right direction, links, pdf's, etc that would be fine. The search feature is coming up with zero returns with "reaction timer"???
Thanks,
TMike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A truck driver was heading down the highway when he saw a priest at the side of the road. Feeling it was his duty, he stopped to give the priest a ride. A short time later, he saw a lawyer with a briefcase on the side of the road and aimed his truck at him. At the last second, he thought of the priest with him and realized he couldn't run over the lawyer, so he swerved, but he heard a thump anyway. Looking back as he drove on, he didn't see anything. He began to apologize for his behavior to the priest. "I'm sorry, Father. I barely missed that lawyer at the side of the road."
But the priest said, "Don't worry, son. I got him with my door."
Post Edited (TruckinMike) : 12/25/2009 6:22:32 PM GMT