|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#6
|
|||||
|
|||||
|
Re: HELP!
OK cool.
I'm glad you are taking the initiative to do stuff, because I know a lot of people that wouldn't even want to try. Alright. I'm going to tackle the code first, and then I'll look at your logistics. In easyC, the 2WD Arcade block is REALLY easy. Once you place this block, it give you all of the options. It asks which port your joystick is on, which axis you want to use for both x and y, and which motors to control in which directions. No code involved. Its a GUI. This means you don't have to initialize varibles, get values, etc. easyC does it all for you. As far as logistics. A few years back there was a simulator, but that was for the old PBASIC chip, and there is no new C simulator. It should be easy enough to set up your computer to download code to. Here is a link to the pdf with the wiring diagram: http://www2.usfirst.org/2007comp_173...ON_DIAGRAM.pdf All you need from this diagram is a path from the battery to the comptuer for power. You obviously don't need to hook up all of the spikes and victors and peripherals. If you REALLY just want to get started, find a 12 volt transformer, cut whatever end is on it off, put spade connectors on the ends and hook it to the computer. This is NOT reccomended by FIRST, because it is not fused, but as long as it is a low amp power supply (i.e. <10 AMP max), it shouldn't be a problem. OK, so here is some background. The RC needs to be connected to the OI. The OI is where you connect your joysticks, and the RC is where you connect your motors etc, (a.k.a. The Computer.) The easiest way to do this is with the TETHER cable (The red serial cable.) This will power the OI over the tether cable without requiring additional power to the OI via a 9v transformer. The other way to connect them is over the radio. You can use serial cables to connect the proper radios to the RC and OI (they should be labeled as to which is which)... You then plug your computer into the Program port. This is how programs are downloaded. You need to put the processor in program mode by pressing the PROG button until the Program State light turns orange. You can leave the serial cable plugged into the Program port to get feedback on the computer through the Terminal in easyC, if you put in PrintToScreen statements in your code. Be careful that you have control of the robot in this situations as not to rip your laptop off the desk. Your devices are then plugged into the RC. You can plug your Speed Controllers (The Victors) into the PWM ports using the Black/Red/White wires. The Victors have varible control over the motors. I would reccommend that you build your power system as soon as possible. This means the Distribution Block, the Black Circuit Breaker Panel, your computer, and a few devices. I say this because if you power your speed controllers, you can watch the lights change color based on the output of the PWM going to it. This can be used as an indicator as far as your program working. What did I leave out? I'm sure I left something out somewhere... Let me know, Jacob BTW, can I post this on CD? Other teams may have the same question, and I put a bit of time putting this together (I don't mind, in fact I love helping other teams, I would just like other teams to benefit.) Quote:
Remember, if this post was helpful, good Rep is always good.... Last edited by whytheheckme : 31-01-2007 at 09:48. Reason: Forgot something... |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| section 'InterruptVectorLow' type is non-overlay (was: HELP HELP HELP!!!!!) | naor52 | Programming | 14 | 24-02-2007 01:19 |
| Help: How do we get a teacher to help? (was: Help) | ChaosAlchimey | General Forum | 13 | 21-01-2007 11:57 |