Line following robot based on the dsPIC33

Posted on Tuesday, May 15th, 2012 in project logs by DP

Exapod is building a line following robot based on the dsPIC33 and stuff he won from SparkFun‘s giveaways. Watch the little robot race through Monza in a video below.

i’m planning of building a robot with a dspic33fj128mc804 and two encoders for implement some dead reckoning algorithms so for learn something on the dspics i build a line-follower, it uses 6 analog sensors that are read with the auto-scan capability of the chip, the pwm is 12 bit and the control loop runs at almost 30 kHz (it only calculates the line position and the do a very simple PD routine that use fixed point math).

Via the forum.

This entry was posted on Tuesday, May 15th, 2012 at 7:00 pm and is filed under project logs. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

12 Responses to “Line following robot based on the dsPIC33”

  1. Mark says:

    Errr, why is it going around Monza the wrong way?

  2. lamia says:

    Hi, iam student can you share with us ur code? thanks

  3. CheAhMeD says:

    hello I have a similar project for my studies can you provide me a documentation about your robot ?
    I mean source codes and parts used for vidéo processing !!! thank you

    • exapod says:

      Like i said before if you send me a PM on the forum with your email i will send you everything that i have on that robot.
      Keep in mind that the source code is very strange because my programming skills are what they are :).
      What do you mean by video processing?

  4. CheAhMeD says:

    I thought that the robot contains a camera to detect the black line it’s kinda what I’m willing to do
    thank you very much I’m sending you my email
    PS: I will try to modify the source code so I can add the video processing module

  5. exapod says:

    This robot uses 6 infrared sensors to “read” the line position but in particular for my program anything that outputs the line position in terms of a number form 1000 to 6000 is ok.

  6. RJ says:

    i also build line follower robot using dsPIC33FJ64MC802 but the problem is, the voltage logic from dspic is 3.3v while the driver motor need min 4.5v to consider it as high. how to solve that problem?

  7. Gilberto says:

    Hi, I’m from Brazil and I’m working on a project really simillar to yours. Could you help me and send me your code or any information about your robot? I’d be really thankfull. And congrats for your experience, really quick and nice.

  8. VA tongheng says:

    Hi, I`m from Cambodia and I`m a student. I have a project similar to your project. Would you might sending yours code and circuit to me? I really thankfull first. Hope to see your help.
    my email:

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recent Comments

  • KH: Yeah, it's an end-user thing. Very few people would spend hundreds of hours on this kind of project and sustain it. It's more or less...
  • Max: Not quite a dinosaur if you've seen Big Hero 6 though... wait. You've watched it with your kids, didn't you? That's cheating...! ;) One of...
  • Edward Mallon: A visiting researcher dropped by our humble basement workshop with questions about the physical skill level students would need if they added one of our...
  • KH: And that looks really expensive... Only browsed the vid though, I'm an dinosaur so I had the sound off too. Nice of him to open-source...
  • Anton: I really need bus pirate!! Thanks