0% found this document useful (0 votes)
52 views15 pages

Line Follower

This document discusses the design and programming of a line following robot. It includes diagrams of the mechanical design and block diagrams of the electronic systems. The key components are sensors to detect the line, an analog to digital converter to process the sensor signals, a microcontroller to run algorithms to determine motor movements, and drivers to control the motors based on the microcontroller output. Programming examples in C are provided to initialize ports and sensors and to implement the line following logic.

Uploaded by

Imam Muis
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views15 pages

Line Follower

This document discusses the design and programming of a line following robot. It includes diagrams of the mechanical design and block diagrams of the electronic systems. The key components are sensors to detect the line, an analog to digital converter to process the sensor signals, a microcontroller to run algorithms to determine motor movements, and drivers to control the motors based on the microcontroller output. Programming examples in C are provided to initialize ports and sensors and to implement the line following logic.

Uploaded by

Imam Muis
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

PENGENALAN

DIGITAL ROBOT LINE FOLLOWER

OLEH:
EMMANUEL AGUNG NUGROHO
PROGRAM STUDI MEKATRONIKA
POLITEKNIK ENJINERING INDORAMA
ROBOT LINE FOLLOWER
Diagram blok Robot Line Follower
Mekanik Line Follower robot
SENSOR ARRAY
Cara Kerja
PENGOLAH SINYAL
 TUJUAN : MENGUBAH SINYAL ANALOG DARI
RECEIVER MENJADI BINARY/ DIGITAL

 KOMPARATOR
 KOMBINASI GERBANG
 PULL UP/DOWN
 ADC
 DLL
Komparator
Kombinasi Gerbang
MIKROKONTROLLER
1. ALUR BERFIKIR ROBOT LINE FOLLOWER
2. ALGORITMA
3. PEMROGRAMAN
#include <mega8535.h> //Mikrokontroler yang dipakai A
#define s1 PINA.0 //Pendekalrasian sensor 1 di pinA.
#define s2 PINA.1 //Pendekalrasian sensor 2 di pinA.
#define s3 PINA.2 //Pendekalrasian sensor 3 di pinA.2
#define s4 PINA.3 //Pendekalrasian sensor 4 di pinA.3
void main(void)
{
// Declare your local variables here
// Input/Output Ports initialization
// Port A initialization
// Func7=In Func6=In Func5=In Func4=In Func3=In Func2=In F
// State7=T State6=T State5=T State4=T State3=T State2=T Stat
PORTA=0x00;
DDRA=0x00;
// Port B initialization
// Func7=In Func6=In Func5=In Func4=In Func3=In Func2=In F
// State7=T State6=T State5=T State4=T State3=T State2=T Stat
PORTB=0x00;
DDRB=0x00;
// Port C initialization
// Func7=In Func6=In Func5=In Func4=In Func3=In Func2=In F
// State7=T State6=T State5=T State4=T State3=T State2=T Stat
PORTC=0x00;
DDRC=0xFF;
// Port D initialization
// Func7=In Func6=In Func5=Out Func4=Out Func3=Out Func2
// State7=T State6=T State5=0 State4=0 State3=0 State2=0 State
PORTD=0x00;
DRIVER
 FUNGSI MENJALANKAN / MENGENDALIKAN MOTOR
 TRANSISTOR
 MOSFET
 IC
Contoh driver motor menggunakan mosfet
SELAMAT MENCOBA

You might also like