

The line follower robot is an automatic robot that can follow a single path which can be any color line. and another benefit is that you can make another project Bluetooth RC car with the same kit only you have to buy a Bluetooth module. which is quite cheap and can anyone easily afford it. line following robot Arduino can be made at a very low price nearly $20. if you are planning to have this robot ready-made from the market it will be expensive but with this tutorial, you can make this robot cheap. This is your call where you want to use it. this project can use at many places like hotels and restaurants to serve the customers. maze solver robot is also similar to this. * * Created by * * This example code is in the public domain * * Tutorial page: */ # include # define DEG_PER_STEP 1.If you have made ever this kind of robot then this will be tough for you. Therefore, we need a hardware driver in between Arduino and the stepper motor. However, the signals from Arduino do not have enough voltage and/or current that the stepper motor requires. How to control a stepper motor using ArduinoĪrduino can generate signals to control the stepper motor. STEP_PER_REVOLUTION = (360 / DEG_PER_STEP) * nįor example, If the motor's datasheet specifies 1.8 degree/step: Control method STEP_PER_REVOLUTION = (360 / DEG_PER_STEP) * 2 Depending on the method of control, the steps per revolution (let's call STEP_PER_REVOLUTION) is calculated as the following table: Control method

The motor's specification specifies the degree per step (let's call DEG_PER_STEP). The above image also shows the specification of two different motors with different wire naming and wire coloring. You need to read the datasheet or manual to see the mapping between wire color and pin name. The order of pins, wire naming, and wire coloring can vary between manufacturers.
