![]() ![]() Place the robot on the track as the sensors are centered on the black tape.If the bot still give problem to track the line, Do as follows: Make sure the motors are connected properly.The sensor is plugged in properly and in the correct port. ![]() Make sure the batteries are fully charged.But in case it doesn't, Here's what to do. You should see the robot follow the line straight away. Now place the robot on the track and power it on. Make a track with the tape on a white surface. To make the track, take a black electrical tape (2cm or 3/4 inch). Here is the code file you can directly upload:įinally we can test how our line follower works. Then hit Upload and wait for the code to get uploaded. In the mixly, Select "Arduino/Genuino Uno" and select the correct Com port. First connect the board to your PC using USB. Now to time to upload the code onto the control board. Note: If you have no prior experience with Arduino programming, you don't have to do this. Once you have made the loop, click on the arrow on the right side of the screen to pull the Code editor to take a look at the final code. Again, make sure you use the correct name and values. Next follow the similar drag and drop to make the loop.Select "else" from the dropdown, drag and place it in the if-do block. Drag it to the canvas and click on the small blue gear icon on it. Goto "Control" and select "if-do" block.Next we want to make a loop which will call these functions when the sensors are triggered. With that been done, we now have 5 movement functions which will control the motors. Just refer to the image above and make sure you select the correct pin and set the right value. Drag another "AnalogWrite", select pin "6" and value 80. Now from the "In/Out" drag "AnalogWrite", Select pin "5" and set value "80".Select pin "4" and set it "High", Again drag a new "DigitalWrite" and select pin "7". Next goto "In/out" tab and drag "DigitalWrite".So goto the "Functions" tab and drag "do procedure". First we have to create some functions namely: front, back, left, right and stop.Now open the Mixly IDE and follow the steps below: So make sure you have installed the software. We will use the Mixly block programming to build this algorithm. Here I assume that you have already assembled the robot, if you haven't then refer my previous instructable. So without wasting any more time, let's get started with building one. They are used in factories to carry material/products from one place to another without human assistance. These type of robots are used in many industries. Line followers, as the name implies just follows lines. Keybot provides us with an arduino compatible development board. Now that we can detect black line, all we have to do is write an algorithm that will track this line and make the robot follow it. Using this we can detect the black line on white surface. Black colour absorbs most of the light and hence no/very small amount is reflected to the photodiode. The IR LEDs keep emitting light which is then reflected on the white surfaces and received by the photodiode. In Keybot, we have a Line sensor with 3 of these IR pair. These sensors consists of 1 IR LED and 1 photodiode each.There can be 2 sensors or an array of these sensors for more complex raouts. It does this using a set of IR sensors and a microcontroller. So a line follower is an autonomous robot that can detect and track a black line on white surface or vice versa. Before we start first let's look into what a line follower is and how it works.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |