Go to Post devote your life to FIRST. It will pay off. - suneel112 [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
  #31   Spotlight this post!  
Unread 12-02-2013, 10:05
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: Breaker Switches and Buttons to Motors

I'm still not sure what a "breaker switch" is in your description. I would normally understand it as the robot's main power switch, but that's obviously not what you're talking about. You mentioned limit switches once, so I'll assume that's what you mean.

Mark has already pointed out that you can't have two separate Motor Set functions next to each other and expect things to work, so I'll let that go for now.

With the logic in your code, the "break" input will prevent the button press from being recognized when it is True. That means you have to have a switch closed from SIG to (-) on the DIO pins in order for the button to make the motor run. How are your switches wired? There are typically three terminals on a limit switch; which terminal are you connecting to each pin on the Digital Sidecar?
Reply With Quote
  #32   Spotlight this post!  
Unread 12-02-2013, 10:10
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Breaker Switches and Buttons to Motors

To guy from other page: Ok, i'll try to figure out how to do that, i would use another and maybe?
Quote:
Originally Posted by Alan Anderson View Post
I'm still not sure what a "breaker switch" is in your description. I would normally understand it as the robot's main power switch, but that's obviously not what you're talking about. You mentioned limit switches once, so I'll assume that's what you mean.
Sorry about that, limit switches, don't know why i got that they are breaker switches...
Quote:
Originally Posted by Alan Anderson View Post
Mark has already pointed out that you can't have two separate Motor Set functions next to each other and expect things to work, so I'll let that go for now.
Ok, will try something at lunch today.
Quote:
Originally Posted by Alan Anderson View Post
With the logic in your code, the "break" input will prevent the button press from being recognized when it is True. That means you have to have a switch closed from SIG to (-) on the DIO pins in order for the button to make the motor run. How are your switches wired? There are typically three terminals on a limit switch; which terminal are you connecting to each pin on the Digital Sidecar?
I just remember two but i will check... Thought i posed somewhere else earlier...

EDIT:
Quote:
Originally Posted by sthreet View Post
Wired into the Digital I/O into signal and negative.
Will check again though... Not sure what you mean by three terminals... But should I get rid of the not also?

Last edited by sthreet : 12-02-2013 at 10:12.
Reply With Quote
  #33   Spotlight this post!  
Unread 12-02-2013, 10:33
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,731
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Breaker Switches and Buttons to Motors

Quote:
Originally Posted by sthreet View Post
Not sure what you mean by three terminals...
A typical limit switch has three terminals seen here:



One is marked COM and the ground wire goes there.
Then you have a choice of two terminals for the signal wire that essentially give opposite answers.
  • NC is Normally Closed and completes the circuit only while the limit switch is not depressed
  • NO is Normally Open and completes the circuit only when the limit switch is depressed. The opposite of NC.
There are reasons to choose one over the other. For instance, we like Normally Closed if the switch is acting as a fail safe (if the switch fails, it's still safe). So, say the switch gets broken, then the mechanism is disabled by default, because NC acts like it's being depressed if it gets ripped off the robot.

Quote:
Originally Posted by sthreet View Post
But should I get rid of the not also?
Use of the -not- will depend on which terminal NC vs NO you wired up.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 12-02-2013 at 10:40.
Reply With Quote
  #34   Spotlight this post!  
Unread 12-02-2013, 16:59
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Breaker Switches and Buttons to Motors

Thanks for the diagram, helped a lot, we had both the ones on the left wired and I didn't even know the bottom was able to be wired...
Anyway, any way to explain how I can combine them and get a three-way button thingy? or should I just make one if the other button is false...???

EDIT: ABOUT SERVOES:
1) Should the attached code run them assuming they are connected to the pwm/digital sidecar correctly?
2) How do they connect to the digital sidecar? They are wired into pwm and only have one set of wires/socket...

Last edited by sthreet : 12-02-2013 at 20:29.
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:33.

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