Computer Science Canada Remote Control Car |
Author: | cii009 [ 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 ) ________________ 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 |
Author: | McKenzie [ Mon Jan 19, 2004 9:19 pm ] |
Post 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. |
Author: | cii009 [ Mon Jan 19, 2004 9:36 pm ] |
Post 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? |