Simple LFR PID using PICBasic Pro

Works done? Proud of it? Show off here! Let's see what you've built can help inspire others.

Simple LFR PID using PICBasic Pro

Postby holy_rainman » Thu May 03, 2012 9:05 pm

Project Name: Simple LFR PID using PICBasic Pro

Author/Designer: holy_rainman

Project Description:
To implement classic PID control algorithm to the Line Following Robot using Basic Language. The sensors used are from CYTRON SN-IRS-02 (thanks for the cute sensor) and are processed using analogue method. The motor driver used are L293D + micrometal gearmotor 30:1 which are common in mobile robot . I made the PCB board stacked together cause it gives a compact image towards the robot. I put on a common LCD to scroll the menu and to ease the troubleshooting process. The hardware cost around RM 250.

Photo/Picture/Figure/Diagram/Flowchart:
The LFR:
Image
PCB Top 1:
Image
PCB Top 2:
Image
PCB Bottom 1:
Image
PCB Bottom 2:
Image
The video:


Compiler: PICBasic Pro 2.46

Source code: Basic Language

Schematics & PCB Docs:
PCB Top:
Image
PCB Bottom:
Image

Programing:
Refer file as per attached.
Attachments
PID LFR.rar
PID LFR
(2.05 KiB) Downloaded 308 times
holy_rainman
Newbie
 
Posts: 8
Joined: Mon Nov 30, 2009 2:45 am

Re: Simple LFR PID using PICBasic Pro

Postby holy_rainman » Thu May 03, 2012 10:30 pm

fyi, the robot move kinda sluggish because i post the non optimum value of pid at that time. The optimum value of Kp, Ki,and Kd needs to be tuned in order to have a good output. 1,1,7 at maximum battery of 7.4V
holy_rainman
Newbie
 
Posts: 8
Joined: Mon Nov 30, 2009 2:45 am

Re: Simple LFR PID using PICBasic Pro

Postby ABSF » Fri May 04, 2012 12:25 am

I love your PCB design - very beautiful, neat and tidy. Are all the holes plated through?

Allen
The next war will determine NOT who is right BUT what is left.
User avatar
ABSF
Professional
 
Posts: 810
Joined: Wed Nov 10, 2010 9:32 am
Location: E Malaysia

Re: Simple LFR PID using PICBasic Pro

Postby holy_rainman » Fri May 04, 2012 9:14 am

thanks allen, however the holes are not plated :( i have to solder a wire to get the top and bottom a connection.
holy_rainman
Newbie
 
Posts: 8
Joined: Mon Nov 30, 2009 2:45 am


Return to Project Showcase

Who is online

Users browsing this forum: No registered users and 19 guests