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?”

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,

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

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: