Notifications
Clear all

Pololu QTR-8RC Sensor module. Positional Values

3 Posts
2 Users
0 Reactions
163 Views
(@tmatatu)
Member
Joined: 2 months ago
Posts: 6
Topic starter  

How can I print out positional values (not sensor values) for a Pololu QTR-8RC sensor module using Arduino?


   
Quote
THRandell
(@thrandell)
Brain Donor
Joined: 3 years ago
Posts: 239
 

Hi @tmatatu

I have recently ported some bits of the Pololu Arduino Library to run the QTRX-MD-01RC on a Raspberry Pi Pico.  You can find the Library here https://github.com/pololu/qtr-sensors-arduino

How do you want to use the reflectance sensor?  If it's for line following then there are routines in the Library for that.  If not then you can use it to read all eight sensors in one call.  This will load up an array with sensor values that you can use any way you want to.  High values have low reflectance low values better reflectance...

Tom

To err is human.
To really foul up, use a computer.


   
ReplyQuote
(@tmatatu)
Member
Joined: 2 months ago
Posts: 6
Topic starter  

@thrandell Thank you for your help. I am using the sensor in a line follower.


   
ReplyQuote