Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Line Follower Robot - Arduino & L298

  • 17-04-2016 02:21AM
    #1
    Registered Users, Registered Users 2 Posts: 284 ✭✭


    Hey, can you point me in the right direction to program this bot? I'm using five QDR1114 sensors. Hardware is working properly, 4v or greater detects black, less than that detects white, thanks.


Comments

  • Registered Users, Registered Users 2, Paid Member Posts: 7,265 ✭✭✭zg3409


    street wrote: »
    Hey, can you point me in the right direction to program this bot? I'm using five QDR1114 sensors. Hardware is working properly, 4v or greater detects black, less than that detects white, thanks.

    What inputs are the sensors connected to?
    Which sensor is which input?
    What outputs are the motors connected to?

    Did you buy it as a kit? link?


  • Registered Users, Registered Users 2 Posts: 284 ✭✭street


    zg3409 wrote: »
    What inputs are the sensors connected to?
    Which sensor is which input?
    What outputs are the motors connected to?

    Did you buy it as a kit? link?

    Thanks zg3409, sorry for the late reply.. I managed to get the line follower working after some more research. I used an Arduino Uno and this motor driver shield http://www.dfrobot.com/wiki/index.php/Arduino_Motor_Shield_%28L293%29_%28SKU:_DRI0001%29 Used Analog inputs 1-5 for sensors e.g Sensor 1 to A1 (leftmost sensor), Sensor 3 to A3 (middle sensor) and Sensor 5 to A5 (rightmost sensor). PWM from arduino output pins 5 and 6 and motor direction from pins 4 and 7 (digital pins) .


Advertisement