Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Remote Control Car
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
cii009




PostPosted: Mon Jan 19, 2004 8:34 pm   Post subject: Remote Control Car

Hi,
I am having a little problem with my computer engineering class assignment.
Objective: My objective is to first get a remote control car, and use the remote and connect the (BACK, FORWARD, LEFT-TURN, and RIGHT TURN) and use bread-boards and parallelput to control the car with out the bottons, but commands using turing (DOS VERSION)

here is the program that i have**(which doesnt work Sad)
________________
var n:int
loop
get n
parallelput (n)
delay (10)
end loop

/*where they put like n=1 so it sends power to parallelput 1 and it is the right turing button wire.
*******************************
I am very new to turing and i do not know how to do it. Please help me.

*My major problems
-When I connect ALL four wires (which care connected from EACH of the buttons) the car WITH OUT the program goes back wards and turns right. I have tried using 2 bread-boards, but no such luck.
Please help me, to whom ever knows this. And please tell me ANYTHING that might help.
Thx
Sponsor
Sponsor
Sponsor
sponsor
McKenzie




PostPosted: Mon Jan 19, 2004 9:19 pm   Post subject: (No subject)

Your code looks fine and should place a high value on pin 2. The problem with computer engineering is I would have to look at your wiring. I assume other students got it working (machine is set up right.) Looks like a wiring problem.
cii009




PostPosted: Mon Jan 19, 2004 9:36 pm   Post subject: (No subject)

i put it like
D0 D1 D2 D3
back Front L-Side R-Side

but out bread-boards are labled 1,2,3,4,5 .... and so on.
I used 2,3,4,5. Is that OK?
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: