View Full Version : Line tracking
jaster67
24-01-2011, 20:35
Can anyone direct me to some sample line tracking VI's for Labview? My team is trying it out this year and we don't know where to start.
Greg McKaskle
24-01-2011, 20:53
The Getting Started window for LabVIEW lets you choose the robot project that has game code. The game code is the autonomous code that includes line following code.
Greg McKaskle
Cow Bell Solo
24-01-2011, 22:00
I know its not quite what your looking for but from a concept perspective try and find a local FLL team. They do line tracking all the time and from working with them and seeing many teams they are always so excited to share and talk about what they did and everything. Also I this is where the GDC was trying to get FLL involved with the game. I know I've seen so many people mention about working with and FTC team but don't forget about the FLL teams as well and their knowledge.
bbsoccergamer
28-01-2011, 15:10
The Inital autonomousVI with the Team code has line tracking code included. just need to make sure the drive motors and DIO for the sensors are referenced and hooked up properly.
I found this but we are having trouble setting it up can we just deploy this VI to the bot.
If you create a "default FRC project with game code" in Labview it has line tracking already included.
However, there is a bug in the program. You will need to edit the Begin vi and add the open functions and name the device reference IR1, IR2, and IR3.
And there is information here: http://decibel.ni.com/content/docs/DOC-14730
WireFreaks2156
09-02-2011, 21:07
How are the sensors wired to the CRIO?
Use the digital side car. Blue goes to ground, Brown is to power, and the other two can be switched whether you would like a normally high or a normally low return, for the signal.
Note that Blue and Brown need to be connected to the Power Distribution board. The line sensors take a minimum of 10.3 volts, and the Digital Side car only supplies 5.
WizenedEE
10-02-2011, 00:08
Note that Blue and Brown need to be connected to the Power Distribution board. The line sensors take a minimum of 10.3 volts, and the Digital Side car only supplies 5.
It's much easier to plug them into the solenoid breakout, so you don't have to soldier larger wires on them.
However, if you do that you have to run code to turn on all the solenoids, and that only works when the robot is enabled, so calibration is hard.
WireFreaks2156
10-02-2011, 19:55
OK, so the blue and black will go to the power board, and the others go to the sidecar. I can't find the actual instructions anywhere. So I am thinking then we will connect the other two leads to the sidecar on 3 of the digital i/o connectors. We use labview, so we will define 3 little green VI's to represent the connectors. Is there anything else we need to know?
Alan Anderson
10-02-2011, 22:51
OK, so the blue and black will go to the power board, and the others go to the sidecar. I can't find the actual instructions anywhere.
Brown goes to power (a red connector) on the power distribution. Blue goes to ground (a black one).
So I am thinking then we will connect the other two leads to the sidecar on 3 of the digital i/o connectors.
You only need one of the black or white wires from each sensor. The LabVIEW line-tracking code expects white. Don't connect anything to the ground or power pins of the Digital I/O connectors.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.