|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
coding, motors, spikes, help
Posted by bill whitley at 2/13/2001 5:00 PM EST
Student on team #70, Auto City Bandits, from Powers Catholic High School and Kettering University. 1) Can the Van Door motor be run from a toggle switch? It requries a speed controller, correct? 2) When wiring in the pneumatic pump, do we run direct 12V power to the compressor, and then connect spike to the solenoids? Where does the pressure switch come into play? 3) Can both the globe & window motors be run from toggle switches & spikes? 4) Is it possible for the trigger of joystick one and the trigger of joystick two to control the same motor? (IE, so left joystick rotates left, right joystick rotates right) Can you give (at least a hint/start) to the PBASIC code necessary to do this? Bill Team #70 "Who needs engineers when you have chiefdelphi.com?" |
|
#2
|
|||
|
|||
|
Re: coding, motors, spikes, help
Posted by Kai Zhao at 2/13/2001 5:58 PM EST
Student on team #686, Botler & Associates, from Linganore High School, Frederick MD and NASA/GFSC and Smiths Industries. In Reply to: coding, motors, spikes, help Posted by bill whitley on 2/13/2001 5:00 PM EST: :1) Can the Van Door motor be run from a toggle switch? It requries a speed controller, correct? Yes and no. Yes its possible but it is not allowed. :2) When wiring in the pneumatic pump, do we run direct 12V power to the compressor, and then connect spike to the solenoids? Where does the pressure switch come into play? To use the pressure switch, you should hook the compressor to a relay as well as the solenoids. Note that you have do a little soldiering to accomplish this. I think that you *may* be able to have +5 to go directly to the circuit board and have gnd go through the pressure switch but I haven't tried it yet. :3) Can both the globe & window motors be run from toggle switches & spikes? For the window motor, yes and yes. For the globe motor, you'll need a speed controller BUT you can use a toggle switch. Go to the link on the bottom labeled Innovation FIRST to get the code example of how to use a toggle switch to control a speed controller. But basically, it's like the following: IF (switch var) = 0 then NEXTSTEP pwmX = 254 'going forward and full speed, 127 = neutral, > 127 = forward, |
|
#3
|
|||
|
|||
|
Re: coding, motors, spikes, help
Posted by Matt Leese at 2/13/2001 6:20 PM EST
Other on team #73, Tigerbolt, from Edison Technical HS and Alstom & Fiber Technologies & RIT. In Reply to: Re: coding, motors, spikes, help Posted by Kai Zhao on 2/13/2001 5:58 PM EST: : :1) Can the Van Door motor be run from a toggle switch? It requries a speed controller, correct? : Yes and no. Yes its possible but it is not allowed. Actually, this is a definite Yes. You can run the Van Door from a toggle switch and it is legal. You do however need to use a speed controller with it. This takes a slight modification of the program but I'm sure that you can easily figure out how to do it. Matt |
|
#4
|
|||
|
|||
|
Yikes, Better read Pbasic manual fast or use default program
Posted by Ed Sparks at 2/13/2001 5:59 PM EST
Engineer on team #34, The Rockets, from Bob Jones High / New Century High and DaimlerChrysler. In Reply to: coding, motors, spikes, help Posted by bill whitley on 2/13/2001 5:00 PM EST: : 1) Can the Van Door motor be run from a toggle switch? It requries a speed controller, correct? Speed Controller, Speed Controller, Speed Controller : 2) When wiring in the pneumatic pump, do we run direct 12V power to the compressor, and then connect spike to the solenoids? Where does the pressure switch come into play? NOTHING IS WIRED DIRECT TO THE BATTERY EXCEPT THE 60A BREAKER! Wire the compressor to the spike. wire the pressure switch to the robot controller (digital input). Write some code (see my post on compressor help). : 3) Can both the globe & window motors be run from toggle switches & spikes? Forget toggle switches. Use Victors or Spikes. : 4) Is it possible for the trigger of joystick one and the trigger of joystick two to control the same motor? (IE, so left joystick rotates left, right joystick rotates right) Can you give (at least a hint/start) to the PBASIC code necessary to do this? YES PWM1 = 127 if p1_trigger_switch 1 then CHECK_P2 PWM1 = 254 goto JUMP1 CHECK_P2: if p2_trigger_switch 1 then JUMP1 PWM1 = 0 JUMP1: |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Spikes with Motors | GregTheGreat | Electrical | 22 | 11-11-2003 10:25 |
| Can you use the spikes with the globe motors? | Caleb Fulton | Electrical | 1 | 15-02-2003 20:13 |
| Looking for practice motors & extra tape drive parts? | archiver | 2000 | 1 | 23-06-2002 22:54 |
| "Motors and Drive train edition" of Fresh From the Forum | Ken Leung | CD Forum Support | 6 | 29-01-2002 12:32 |
| Drill Motors | TF8 | Motors | 19 | 12-12-2001 13:13 |