JoseAvendano
Hello everybody,

We started getting questions on the newly released Infrared sensor that will included in the kits for this years competition. To checkout what the kit looks like, how to assemble it, brief electronics crash course and a bunch of other cooler resources, BEST has setup the following link:

http://www.bestinc.org/IR_Kit

So what can you do with it ?

Well you can detect things, use it for autonomous robot navigation or even to communicate information. We put together a couple of Simulink models as a starting point and we have a Mobile Robotics Training that will help you program autonomous robot navigation. Attached to this post you will find some starting models to implement your own wheel encoders and perform line following. If you have any questions feel free to post a response or contact us! 

If you haven't already, request your MATLAB and Simulink license to use for this year of the competition here so you can explore the models and start preparing for the season.

Below a couple of teaser pictures. Hope this helps!

Sincerely,

Jose Avendano - MathWorks Student Competitions Team

MathWorks support for BEST - passcompetitions@mathworks.com



Simulink_IR_Encoder.png 
Simulink_LineFollowing1.png 
Simulink_LineFollowing3.png 

Quote 1 0
Kjax
How might one use the Best Ir sensor with RobotC (non-graphical)? More specifically, can you use the regular line follow sensor commands, or would you need to set it up as an alternative type of input to read the values from the sensor?
Quote 0 0
JoseAvendano
Kjax,

Great question, the VEX Line Tracker sensor is actually an analog sensor, which means you get a range of values that correspond somewhat to the intensity of color detected. On the other hand, the BEST IR sensor is digital and is connected to one of the Cortex digital ports (Digital Input). It will output only whether the line is detected or not (boolean 0 or 1). You can affect the sensitivity (detected intensity of color/line) of the sensor itself with the potentiometer in the transmitter part of the sensor (You can find more info on the Sensor documentation). The placement of both the transmitter and receiver pcbs of the sensor will also affect when the line is detected.

To program for it, all you would have to do in a different language after you have placed the sensor and set the sensitivity is set the desired port as a digital input and call the "digitalRead" command to get access to the boolean data.  

Hope this helps! If anybody has more comments please feel free to chip in 🙂

Best,

Jose
Quote 1 0
Kjax
Thanks for the fast response Jose. I hope that the documentation for this sensor continues to develop so that that by the time of national reveal its a little easier to adapt for the different programming software(s). As it is, the link that comes on the package for the sensor simply explains basic electronics, how to assemble the sensor, and set the sensitivity, it doesn't list how to sensor should be set up(in software), or give any example code or graphics. I might make a post later when i figure out the integration with RobotC to make it a little easier to those who find it.
Quote 0 0
JoseAvendano
BEST Teams,

We added the Simulink models and more models covering autonomous triggering to the VEX Companion App. Make sure you download the latest version to get all the models!

https://www.mathworks.com/matlabcentral/fileexchange/47903-vexcompanionapp

Attached some teaser pictures.

     Autonomous_subsystems.png 
Autonomous_stateflow.png  Autonomous_chart.png 
Quote 0 0
dwfunk4475
Would someone please fix the link: "http://www.bestinc.org/IR_Kit" is not working. 

Thanks!

-dwf
Quote 0 0
JoseAvendano
dwf,

Here is an alternate link setup by BEST. 

http://www.bestinc.org/IR_Kit/show.html

Best,

Jose
Quote 0 0
Dragongamer1848

Dear Jose,
Can you find a way to fix the line following algorithms link? Even though I see it in the pictures, I still can't click it or use it in any way.

Sincerely,
Broc

Jose Avendano - MathWorks Student Competitions Team

MathWorks support for BEST - passcompetitions@mathworks.com



  
Simulink_LineFollowing1.png 
Simulink_LineFollowing3.png 

Quote 0 0
JoseAvendano
Broc,

Yeah unfortunately the pictures don't have the links, but the links work if you open the Simulink models.

Here are the links though so you guys can access from here:

Mobile Robotics Training

https://www.mathworks.com/videos/series/student-competition-mobile-robotics-training.html

Line follower with 1 sensor (Part of the Mobile Robotics series)

https://www.mathworks.com/videos/student-competition-mobile-robotics-training-part-3-designing-line-following-algorithms-1498677757283.html

Line Following with 3 sensors

https://www.mathworks.com/help/supportpkg/armcortexbasedvexmicrocontroller/ref/line-follower-arm.html


Best,

Jose



Quote 0 0