View Single Post
  #5   Spotlight this post!  
Unread 07-03-2015, 18:30
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,594
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Limit Switches....

First, some "is it plugged in and is the hardware working" questions:
  • You referred to DIO vs Relay. The limit switches must be plugged into DIO.
  • Do you have limit switches physically installed to the DIO pins?
  • How are these connected? The simplest setup is for the switch to connect/break a connection between the signal and ground pin. A connection which involves the +5V pin won't work, because the signal pin is already internally pulled up to high voltage.
  • When your mechanism reaches the limits of travel, do the switches engage?
  • When your mechanism reaches the limits of travel, does the voltage at the signal pin change? The easiest way to watch this is to install a short "PWM extension cable" at the RIO end of your sensor cable and measure the voltage between the ground and signal (black and white) wires.

Finally, while I am not an NI/LV programmer, it looks to me like your two arms are always supposed to do the same thing, as their input is split from the same data line. This "one degree of freedom" is being controlled by two separate joystick axes, one of which is inverted. I suppose these are left and right analog triggers on the xBox controller or something similar (yes, those triggers are mapped to axes 2 and 3, and return 0 to 1 values). It appears your intent is to disregard axis 2 when you're at the top, and axis 3 when you're at the bottom. Presuming that the axes return positive values, your motors are set up to work properly if they require negative input voltage to go up, and positive to go down. If your setup is not like this, then how is it set up and what are you expecting it to do?
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote