Go to Post You can take my blocker... but you can never take my cheesecake! - Andrew Schreiber [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-04-2011, 19:55
William3370 William3370 is offline
Programming & Electronics Captain
FRC #3370 (Aftershock)
Team Role: Programmer
 
Join Date: Apr 2011
Rookie Year: 2010
Location: Irving, Texas
Posts: 3
William3370 is an unknown quantity at this point
Air Compressor

Before you read: My goal is to make an air cannon


I've only been programming for a year and this is our teams second year to compete and last year's game made it especially to just program a simple push bot. I had no experience and volunteered to take the position of head programmer because no one else wanted to.

I'm considerably more knowledgeable now than I was last year but i've never touched VIs or things such as solenoids and autonomous mode.

Please Correct me if i'm wrong:

A solenoid sort of acts like a button (that's a big sort of) in that when it is turned on it sends a true or on statement and when it is off, it sends a false or off statement. It controls things like Gyros, accelerometers, and of course air compressors and the like.

Now to set one up (programming wise) I know that I have to do all the basic good stuff like opening it in begin.vi and closing it in finish.vi.

But what im wondering is how to send the signal for on or off? Does it act like a jaguar or PWM for the compressor? And if so do I need to program a reverse command so that their is a forward and reverse?
__________________
William
Team 3370
Lead Programming Captain
Lead Electronics Captain
Reply With Quote
  #2   Spotlight this post!  
Unread 10-04-2011, 21:17
ATannahill ATannahill is offline
Registered User
AKA: Alex Tannahill
no team
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Southfield, Michigan
Posts: 3,248
ATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond repute
Re: Air Compressor

I can help you with theory but I will not be a big help with code.

For your robot, it is usually best to run a solenoild off the relay board in port 8 of the cRio. This board has two pins on each port. They are usually off (both set to ground). When it is switched on, one (I don't know which) is set to 12/24 volts and the other is ground. Therefore the circuit is completed and the solenoid is triggered. This might be as you understand it, I am just trying to clarify.

Gyros and accelerometers are not controlled by a relay. They should be hooked to the analogue input board in slot 1 or 2 of your cRio.
__________________

- Arizona North

Last edited by ATannahill : 10-04-2011 at 21:20.
Reply With Quote
  #3   Spotlight this post!  
Unread 10-04-2011, 21:58
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Air Compressor

I'm not sure what you're talking about, but it isn't a solenoid.

In FRC, the word "solenoid" usually refers to a pneumatic solenoid valve. It takes an electrical signal, either from a Spike relay module or from the cRIO's solenoid breakout, and controls the flow of pressurized air to a pneumatic cylinder. They are most often used simply to extend or retract the cylinder.

Gyros are sensors; the ones from the Kit of Parts connect to an analog breakout on the cRIO. Accelerometers are also sensors; some are analog similar to the gyro, and others use a structured digital communication protocol like IIC or SPI. The air compressor is turned on and off using a Spike relay module, under the control of a pressure switch which is connected to a Digital Input.

In order to properly explain how to program something, I need to know what that something is. Tell me what kind of mechanism you want to control, and I can tell you an appropriate way to control it.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:42.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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