Professional Documents
Culture Documents
Pic Programming - Line Follower
Pic Programming - Line Follower
Pic Programming - Line Follower
• Digital Electronics
• Elementary Components
• understanding ICs
• MCU introduction
• PIC Microcontroller
• Development Board
• PIC custom Board
•Schematic and PCB Design
•Line following Robot
Digital Logic
Digital Logic
•High (+5 V, 3.3 V, 1.8 V,….) Digital ‘1’
•Low (0 V) Digital ‘0’
Datasheet provides :
Pin configuration
Application hint
Function Table Truth
table
Dimensions Why?? For
PCB designing
Electrical Charateristics
Input
Input can be
Logic “Low” voltage ≈0V
Logic “High” voltage ≈5V, 3.3V, 1.8V,..
Output is again
Logic High +5V
Logic Low 0V
SOLUTIONS
•Use of PCB (Printed Circuit Boards)
•Use of Microcontrollers
Electronic Lock
Lock Code (SET)
•Programming language is C.
MCU Functions
4. TIMERS
1. Electrical circuit:
- PIC, PCB board, Motor driver, Battery
2. 5-Sensors array
3. Battery
4. Motors
5. Mechanical chassis
5-Sensors array :
expenditure :
Total - 1950
uC (Programming)
MCC18
Compiler
MPLAB
v8,v9…
Programming PICDEM Tool
Environment Transfering the *.hex
file to the
microcontroller
MPLAB v8.00 (coupled with MCC18
compiler)
Void function()
{
int value=IN;
OUT=1;
OUT=0;
OUT=IN;
}
Constructs
•Sanjay Dhakar
sanjaydhakar07@gmail.com
•Danvir Singh
danvirsingh@gmail.com