My Hover Craft
Microman171
Posts: 111
I have the idea to make a hovercraft run via the w, a, s, d keys how can I do this w/o debugin or even with it but so i can continuesly read the key. If i leave it how it is then i push the w key once and the BS2 stamp just keeps transmitting via the hacked hovercraft controller. Can somebody please post their code on how to do this because my 1st attempt made the moters kinda pulse then the 2nd attempt made the motor go until the hovercraft was turned off and reset pushed. I would like to run of the key board because if I make some kind of controller that defeats the purpose of the project.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1 + 1 = Window
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
0............................................0
0............................................0
0.(Microman171@hotmail.com)..0
0............................................0
0............................................0
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1 + 1 = Window
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
0............................................0
0............................................0
0.(Microman171@hotmail.com)..0
0............................................0
0............................................0
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Comments
W
a s d
W being the one pressed Debugin should write the value of W to a Varialble caller user but once i push that either A it stops after a few milliseconds regardless of me finishing pushing or not then it will loop creating the pulse effect and that is no good. Or B i push the button once and it goes forever. Either A I need a new command for my BS2 to read from the keyboard or B Im doing something wrong about the way im useing it. I've attached code if that helps:
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1 + 1 = Window
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
0............................................0
0............................................0
0.(Microman171@hotmail.com)..0
0............................................0
0............................................0
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
All my exes live in Texas
Oh yeah, all my exes are six feet under the ground!!!
One was a lineman who violated the one hand rule.
The·second put his tongue on 10 car batteries wired in series.
The third was involved in a tesla coil experiment gone bad.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1 + 1 = Window
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
0............................................0
0............................................0
0.(Microman171@hotmail.com)..0
0............................................0
0............................................0
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1 + 1 = Window
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
0............................................0
0............................................0
0.(Microman171@hotmail.com)..0
0............................................0
0............................................0
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
All my exes live in Texas
Oh yeah, all my exes are six feet under the ground!!!
One was a lineman who violated the one hand rule.
The·second put his tongue on 10 car batteries wired in series.
The third was involved in a tesla coil experiment gone bad.
Post Edited (kingneb) : 10/24/2005 9:24:33 PM GMT
Microman171 is using the DEBUGIN (which is a specialized form of SERIN) command to accept input from the computer.
Microman171,
What you are looking for would probably be a good candidate for a "state machine" style of code. This has been covered before on this forum. With your current program, the Stamp "interprets" the key, and "moves a little" then looks for another key. If you want the craft to keep going, don't turn off the motors (the LOW commands in your code) until they need to be turned off...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1 + 1 = Window
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
0............................................0
0............................................0
0.(Microman171@hotmail.com)..0
0............................................0
0............................................0
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1 + 1 = Window
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
0............................................0
0............................................0
0.(Microman171@hotmail.com)..0
0............................................0
0............................................0
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1 + 1 = Window
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
0............................................0
0............................................0
0.(Microman171@hotmail.com)..0
0............................................0
0............................................0
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
ENIAC: P4 2.8ghz E, 1024MB PC3200 Dual Channel 800MHZ, P4C800E-Deluxe, ATI X800XL, 120GB Sata WD HDD, Audigy 2 ZS Sound, AMG 1080 Antec case, Bose TriPort Headphones.· Running on Windows XP Pro SP 2.
Monitor: Samsung SyncMaster 930B
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
ENIAC: P4 2.8ghz E, 1024MB PC3200 Dual Channel 800MHZ, P4C800E-Deluxe, ATI X800XL, 120GB Sata WD HDD, Audigy 2 ZS Sound, AMG 1080 Antec case, Bose TriPort Headphones.· Running on Windows XP Pro SP 2.
Monitor: Samsung SyncMaster 930B
"I reject your reality and substitute my own"
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1 + 1 = Window
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
0............................................0
0............................................0
0.(Microman171@hotmail.com)..0
0............................................0
0............................................0
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1 + 1 = Window
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
0............................................0
0............................................0
0.(Microman171@hotmail.com)..0
0............................................0
0............................................0
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Have you heard of visual basic.NET? Visual Basic 5 and 6 are obsolete but still used. Worse yet, they are not availible anymore or fully supported. VB.NET has a serial port class build directly into it. If you are not familiar with object oriented programming, learning it is not hard. All you need is those nutshell style tutorials you can find with google searches, not those big fat books you get at borders. Too much jargon and too expensive, no bang for buck, LOL. The Beta 2 Visual Basic 2005 is available for free here:
lab.msdn.microsoft.com/express/vbasic/default.aspx
I wish you the best of luck
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
All my exes live in Texas
Oh yeah, all my exes are six feet under the ground!!!
One was a lineman who violated the one hand rule.
The·second put his tongue on 10 car batteries wired in series.
The third was involved in a tesla coil experiment gone bad.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1 + 1 = Window
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
0............................................0
0............................................0
0.(Microman171@hotmail.com)..0
0............................................0
0............................................0
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Thank You
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
All my exes live in Texas
Oh yeah, all my exes are six feet under the ground!!!
One was a lineman who violated the one hand rule.
The·second put his tongue on 10 car batteries wired in series.
The third was involved in a tesla coil experiment gone bad.
Post Edited (kingneb) : 10/31/2005 7:06:12 AM GMT
For the basic stamp please use LEDs as logic indicators to see if the stamp is responding correctly to your keyboard transmission. For example, you hit the W key. The response is sketchy, sometimes it lights and other times it does not light or light immediately. That problem is a timing issue. That maybe what you are having.
See if this works (this assumes you have LEDs connected to pins 0 through 3):
Post any problems with logic indication.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
All my exes live in Texas
Oh yeah, all my exes are six feet under the ground!!!
One was a lineman who violated the one hand rule.
The·second put his tongue on 10 car batteries wired in series.
The third was involved in a tesla coil experiment gone bad.
Post Edited (kingneb) : 10/31/2005 7:42:45 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1 + 1 = Window
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
0............................................0
0............................................0
0.(Microman171@hotmail.com)..0
0............................................0
0............................................0
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Too many lies from the right, which is the wrong side of the tracks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1 + 1 = Window
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
0............................................0
0............................................0
0.(Microman171@hotmail.com)..0
0............................................0
0............................................0
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Too many lies from the right, which is the wrong side of the tracks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1 + 1 = Window
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
0............................................0
0............................................0
0.(Microman171@hotmail.com)..0
0............................................0
0............................................0
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1 + 1 = Window
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
0............................................0
0............................................0
0.(Microman171@hotmail.com)..0
0............................................0
0............................................0
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/