Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Need help with 255 Variable (http://www.chiefdelphi.com/forums/showthread.php?t=2600)

kmcclary 25-02-2002 01:11

Quote:

Originally posted by CaptainPlaid
The auto/off/on option is a very good one. We have used it the past two years and it is very useful. [...] Use a momentary pushbutton for the On function. This is the code I use for the OI pump control: [...]
Using a momentary switch is an excellent point, and probably a good idea. It would be good to point out that the "override code" goes AFTER the normal pump handling code in the program (and before the SEROUT command), so it IS an override... :)

Quote:

Check out our control system here.
VERY pretty! BTW... What is the "glasses" jack all about on your control panel??? Do you have some VR thing going??? :)

We made our case out of painted, sanded 1/2" plywood, with a replaceable top panel of aluminum. VERY quick to make. This allows us to swap out the top panel quickly if a revision is made.

The footprint is identical to the footprint of a pair of CH Joysticks. Our top panel is EXACTLY 11" long, and less than 8.5" wide. This allows us to use DTP (Desk Top Publishing) to print a NICE paper legend sheet with any printer (in landscape mode) that also can be changed quickly. It is sandwiched in a standard plastic single sheet protector available in any office supply, and is held in alignment on the top panel with the same screws that hold the panel onto to the box.

I see you're using push/pull pop-latch connectors to open your panel. The bottom of ours is simply open, with L-brackets facing inwards. It is held to our main "shelf" control board via Velcro. This allows us to simply "grab and pull" the box open in less than a second for access without hauling out a screwdriver.

BTW, this year, our custom Aux Box is our "Weapons Officer's" Station, and is intended to contain all "exotic" controls and monitor LEDs. For simplicity, our Driver's Station is just the pair of CH Flightsticks, with all auxilary functions and adjustments mapped onto the various buttons and thumbwheels. However, since the Aux box's VELCRO footprint matches the joystick pair's Velco EXACTLY, if we ever desire to do something strange for the Driver's Station, we simply replicate another Aux Box, and instrument it differently.

This creates our Standard OI Board, that won't change from year to year. Although one Station has room for *3* joystick equivalents, we also have a "Mini-Aux" box designed with the footprint of ONE joystick, in case we ever want to do a "mixed" control station of one joystick and one Mini-Aux box, or a Mini-Aux box sandwiched between a pair of CH joysticks.

- Keith McClary, Advisor, Huron High 830 Rat Pack

Joseph F 25-02-2002 06:57

Quote:

Have your Electronics teacher check your work. If HE (or SHE) can't tell a good from a bad soldering joint, you've got OTHER problems at your school...
electronics teacher? I wish we had one of those! A tech teacher would be nice to... maybe even a shop class. Closest we have is physics classes.

Quote:

What I'm talking protecting against in a program are LOGICAL errors. For example, if a timer variable is not checked correctly, it wraps around (overflow/underflow) forever and therefore never switches things to the next state.
That is something I took into concideration. I posted my program earlier in the thread if you care to look at it. Notice it uses a word, but doesn't even pass 1000. When the counter starts running once it passes 900 (i think thats what i have it at currently) the compressor turns on and as long as the compressor is on it resets the value to 910 every time it goes through the program. That way if for some odd reason the timer jumped unless it jumped above 65536 from below 900 everything should run fine.

Quote:

You'd have to break the chassis apart (or go at it with diagonal cutters in the cranny of some L-channel from the INSIDE of the robot) to get at some of our wiring
Given the shape of our robot our wires aren't as protected as we would like. Most of them are fairly safe and would take quite a stretch to get at, but a few (like the one for the airtanks) are a bit closer to danger than we would like. If we are underweight we may add some sort of protection at the competition.

Quote:

What turns it off? Only time, or does it go back across the high pressure setting then run the clock again? BTW, watch out for the logical possibility of the pump trying to switch on from your override, then off because the high pressure switch has not responded yet due to lags and thinks it is still "at pressure now", then back on again once the pressure switch responds a fraction of a second later
It's turned off when the pressure switch is tripped, however unless I fire the pneumatics a second time it wont turn on again until the timer triggers it. The timer turns the pump on. The pressure switch turns it off. So at worst it should go on, then off right away and stay in the off state for a short period of time. Also in your previous post... Didn't cases 1 and 3 have this on, off, on problem? The "oscillating" around either the high or low switch.

Quote:

If we're allowed to do it NOW (are we?),
I didn't mean have a switch wired up ready to be tossed on. I meant set up the switch controls in a copy of the program I have saved so that i'll know exactly what I need to do when at the competition.


Quote:

You've used up ALL FOUR PORTS??? WOW! You must be controlling an OCTOPUS
What I meant was we've used up all the switches we currently have, and soldering wires in the pit is not something i'm looking forward to. We used the joysticks on ports 1 and 3. The tank drive takes away some of port 2's controls and our port 4 controls also take over the aux on port 1. We could add stuff to port 2 if we really needed... It just doesn't seem quite neccessary yet.

Quote:

As I said, the program is already written for you in Team Update #5. It is only a TWO LINE program! (Plus a couple of aliases...) Just drop it in now, assign the right input bits for it, and comment it out for the time being so it's ready to roll if other things don't work out.
Good tip. I'll be sure to do that.

CaptainPlaid 25-02-2002 12:59

Quote:

What is the "glasses" jack all about on your control panel??? Do you have some VR thing going??? :)
Well, we all know that you have to wear safety glasses while you are driving (although personally I don't think saftey glasses would help if something made it through the plexiglass of the driver station). You might as well have somewhere to plug them in right? Come see Big MO at Cleveland, GLR, or Nats.


Your control system sounds nice but the description is quite confusing. Any pics? I like the modular idea. We have decided to keep all of our robots together though so we can make a new controller every year. Takes time but also allows for creativity.

kmcclary 26-02-2002 14:49

Quote:

Originally posted by CaptainPlaid
Well, we all know that you have to wear safety glasses while you are driving (although personally I don't think saftey glasses would help if something made it through the plexiglass of the driver station). You might as well have somewhere to plug them in right? Come see Big MO at Cleveland, GLR, or Nats.
What, is that just a mechanical "retaining wire" while operating, a "storage clip" for between rounds, or are you actually putting blinking LEDs on your glasses or some other active, wired thing? :) (IMO "blinky glasses" would be interesting, but I think that violates the "no special clothing" rule, and could even become an entanglement hazard around the Operators Station!)

BTW... What is your team NUMBER, and your True Name, "CaptainPlaid"??? :) The Big Mo page cited doesn't have your team number, nor a link to your main site, and you haven't mentioned your real name in this thread.

Quote:

Your control system sounds nice but the description is quite confusing. Any pics? I like the modular idea.
We'll be at Buckeye (Cleveland OH) and GLR (Ypsilanti MI). I don't have any pics yet, but some other members do. However, I don't think they'll be up before Cleveland, so just stop by and see 830 (Rat Pack) at the contest.

Let me take one more crack at describing the box... If this doesn't suffice, I'll have to work on a REAL document, with pictures.

First, our main board is simply a 4' x 12" piece of 1/2" wooden shelving, used in bar and hook shelves. Layout is VERY similar to the boards used in the CDI contest, with the OI in the middle, and two "user stations", one on either side:
http://www.chiefdelphi.com/pics/bin/...or_control.jpg
We were in the CDI, and liked the layout, so we did something similar for this, our first contest. The joysticks are held down with 1"x1" velcro squares, to allow for quick R&R or something else to be placed there. We used the velcro cable ties from the kit, not wiring channel, but the LAYOUT is similar.

We set up a Driver's station with a pair of joysticks, as is shown in the picture, but replace the OTHER station with an Aux Box that drops into the same space.

The basic Aux Box is made with 5 pieces of 1/2" plywood, held together with drywall screws, not glue, to allow disassembly if needed. It has four sides and a top, with the bottom open. OUTSIDE dimensions are around 13"w x 6"d x 4"h, (hack off ~.5-1" for INSIDE dimensions) which by design turns out to be EXACTLY the footprint of two CH Joysticks side by side. By picking these dimensions, the velcro mounting squares are in the same place, and we can switch the main board's configuration to and from combinations of boxes and sticks at will.

The bottom of the box has two 5" sections of 1" L-channel, attached on the inside edges of the sides, with the bottom edges facing INWARDS. This provides a smooth surface underneath the box to place Velcro squares to hold it down to our main board, without marring the appearance of the box.

Wiring: The box has a hole drilled in the side for the cable with the DB connector on it. It is long enough to plug into ANY of the four port connectors when placed on either side of the OI, and has enough conductors in it to COMPLETELY wire the connector. On the inside of the box, an overhand knot in the cable acts as a strain relief, then the cable runs through cable tiedowns to a set of labeled barrier strips screwed on one of the long inside surfaces. This gives us a FULL set of SCREW terminals, with ALL of the signals available (4 pots, 5 switches), along with two grounds, and +5V. If we ever wish to, this design also allows us to add in and power a "custom box" from the barrier strip.

The top of the box has a cutout in it of about 10" x 4.75". Onto this, we drop a 11" x 5.25" aluminum "main panel". That size gives us 1/2" around on all edges to screw it on with 3 sheet metal screws on each long edge. By picking a panel size within 11" x 8.5", it allows us to use *any* DTP software to make up a custom label on standard paper. One copy is sacrificed as a Drill Guide, then a fresh one is sandwiched inside a standard Page Protector sheet, trimmed, and held on with the same screws that hold the panel down.

THIS is where the design stops before a specific contest.

**NOW** your control panel is simply a "DROP IN"! For a specific contest, Electrical builds the generic board and box RIGHT AWAY during week ONE, and a few blank, FLAT panels. When you're ready a couple of weeks later, punch the panel for whatever controls you've decided upon. No complex sheet metal work required, and NO soldering. If you screw up, grab another blank panel. Square holes for rocker switches are easily made with a Dremel and a 409 or 420 cutter disk. Your "switch bag" contains an assortment of switches, 100K pots, and LEDs with premade pigtails with ring tongue lugs on them. Edit and print your new label, punch your holes, sandwich a label sheet to it and screw it onto the box, drop in the controls, screw them onto whatever signals you wish, and you're done with customizing the hardware within a day or so!

BTW... Even if you decide to "wear" some of your controls (i.e. a backpack "marionette" controller), the Aux Box provides you a place for your monitor LEDs, the OTHER switches and pots, and a custom "breakaway" jack for the backpack so you won't have to worry about strain relief damage of the OI from an overexcited operator that moves around too much. :)

If you need to change something later at the contest, pull out your drill or Dremel, punch the new hole, drop in the new control or LED, screw it onto an unused analog or digital bit, use a magic marker on your top panel, and go tweak the program to use it.

The prewired barrier strip means **NO** soldering is required at the contest site for control system hardware changes!

We do also have a Mini-Box designed, that replaces the footprint of ONE joystick, with a Piggyback Feedthrough harness that doesn't take up a port connector. (However, that wasn't needed for THIS contest.) Each station COULD contain two joysticks and a FULL Aux Box, but we envision station configurations of 1-2 joysticks, and/or 1 full or mini Aux Box, with the most common being: 2 joysticks, 1 joy + 1 mini/full box, 2 joysticks + 1 mini BETWEEN them, or 1 full box.

For THIS contest, the Driver's Station became simply a pair of CH Joysticks, with all auxilary controls mapped onto buttons and thumbwheels. The "Weapon's Officer's Station" has a single custom full sized Aux Box and all the strange control hardware.

I hope this explains things better. OOC, would there be any interest in a formal document on this modular OI board design, with images, for a white paper area somewhere?

Quote:

We have decided to keep all of our robots together though so we can make a new controller every year. Takes time but also allows for creativity.
We felt that standardizing on a "generic modular control system design" of this style still keeps flexibility and creativity high, but eliminates a LOT of the unknowns in our build. NOW, we can get to work FASTER next time, and the electical group can have almost 90% of the board DONE before we have to know ANYTHING about our actual control needs.

For the same reason, we're also starting design on a "standard RC control tray/board module" for next year. It'll contain the RC, Spikes, and Victors, (and possibly the minibreaker panel as well), and simply bolt onto our frame. THIS year, IMHO wiring was a real nightmare. We were forced into SEVERAL reworks of frame components when we found what we hadn't ENOUGH good space reserved for electrical stuff, and some people plumb forgot about connector clearances. <DOH!>

BTW, although we made an Electrical Simulator Board to test out things via umbilical, when we got to putting the RC onto its FINAL position on the machine, we found that the RC's RADIO connector was damaged and wouldn't work! With the shipping delays, we didn't get a working RC back from Innovation First repair until a few HOURS before shipping on 2/19...

That is why **NEXT** time, we're going to just allocate a suspension bolt-on point on the machine somewhere for a simple, prewired RC "module" board, to make sure it is functional and completed in its "robot form" MUCH sooner!

BTW... Our DRIVETRAIN this year is modular, too! Now THAT worked out well! :)

- Keith McClary, Advisor, Ann Arbor (MI) Huron High Team 830 "Rat Pack"


All times are GMT -5. The time now is 23:17.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi