Line Follower array


#1

Hİ there,

I want to use Makeblock Line Follower Array V1 Sensor with Arduino Uno. In the sensor, there are 4 pins noted as GND, VCC, S1 and S2. I need to use this sensor with Arduino Uno (not makeblock board), therefore, I am confused how to wire S1 and S2 to Arduino Uno. İ looked at sample program for this sensor, but unfortunately, there aren’t any comments to understand the code better. We are preparing for the competition ,therefore, any help will be great.

Thanks in advance


#2

Hi Eshgin,
I use the line follow array with Orion board (PORT 3), s1 to 12, s2 to 13, you may refer to this and connect to Uno board as Orion board is based on Uno. And this link, you can have the Orion schematic:
http://learn.makeblock.com/en/makeblock-orion/


#3

@tech_support, Thanks for your reply. Actually, I changed my board to Me Uno Shield. I connected line follower array and encoder motor to this shield. Everything works but I have a small issue with the code. I want to use “if else” but I don’t know how to use sensor readings.

For instance, I want to write that
if (sensor_readings == “111110”)
{
turn.right;
}

And for your information, I used line follower array sample program.
Line follower array connected to Port 3 (I changed data pin to 8).

Could you please help me? I tried some examples but they didn’t work.


#4

Hi Eshgin,
To this issue, we recommend you to check the right code by mblock3.
Please install mblock3 to your computer and wrote the program in scratch, then you can switch it to Auduino.
You can download mBlock3 from here http://www.mblock.cc/software-1/mblock/mblock3/#Download


By the way, you need to add the extension for line follower array first.

Thanks.


#5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.