|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#31
|
|||||
|
|||||
|
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? |
|
#32
|
||||
|
||||
|
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:
Quote:
Quote:
EDIT: 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. |
|
#33
|
|||||
|
|||||
|
Re: Breaker Switches and Buttons to Motors
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.
Use of the -not- will depend on which terminal NC vs NO you wired up. Last edited by Mark McLeod : 12-02-2013 at 10:40. |
|
#34
|
||||
|
||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|