Pembahasan Mekanik Pembahasan Analisis
LAMPIRAN
PC6TOSC1 28
PC5 27
PC4 26
PC3 25
PC2 24
PC1SDA 23
PC0SCL 22
PC7TOSC2 29
PA6ADC6 34
PA5ADC5 35
PA4ADC4 36
PA3ADC3 37
PA2ADC2 38
PA1ADC1 39
PA0ADC0 40
PA7ADC7 33
PB6MISO 7
PB5MOSI 6
PB4SS 5
PB3AIN1OC0 4
PB2AIN0INT2 3
PB1T1 2
PB0T0XCK 1
PB7SCK 8
PD6ICP1 20
PD5OC1A 19
PD4OC1B 18
PD3INT1 17
PD2INT0 16
PD1TXD 15
PD0RXD 14
PD7OC2 21
RESET 9
XTAL1 13
XTAL2 12
AVCC 30
AREF 32
U1
ATMEGA8535 VI
1 VO
3
G N
D 2
U2
7805
D1
1N4001
C1
100uF
C2
100uF
Regulator Tegangan 5V DC
Saklar
R1
330
D2
LED
X1
CRYSTAL
C4
22pF
C5
22pF
R2
4k7
C6
1uF 1
2 3
4 10
9 8
7 5
6
J4
CONN-DIL10
Downloader
1 2
3 4
5 6
7 8
J5
CONN-SIL8 1
2 3
4 5
6 7
8
J6
CONN-SIL8 1
2 3
4 5
6 7
8
J7
CONN-SIL8 1
2 3
4 5
6 7
8
J8
CONN-SIL8
GND +5V
MOSI Reset
SCK MISO
DC Source
1 2
3 4
1 9
8 7
5 6
J1
CONN-DIL10 +VDC
GND
1 2
3 4
8 7
6 5
J2
CONN-DIL8
1 2
3
J3
CONN-SIL3 1
2 3
J9
CONN-SIL3
1 2
3
J10
CONN-SIL3
Push Button PB
PD PC
PA
ARev
1 2
3
J11
CONN-SIL3
R7
100R
R8
25k
R16
20k
R15
100R
R11
100R
R9
100R
R10
25k
R12
25k
D8
PHOTODIODE
D7
IR
D16
PHOTODIODE
D15
IR
D9
IR
D10
PHOTODIODE
D11
IR
D12
PHOTODIODE
D13
IR
D14
PHOTODIODE
R13
100R
R14
20k 1
2 3
4 5
6 7
8
J1
PORT C 1
2 3
4 5
6 7
8
J2
PORT B
R5
100R
R6
20K
D5
iR
D6
photo
D4
PHOTO
D3
IR
D1
IR
D2
PHOTO
R2
20k
R4
20k
R1
100R
R3
100 1
J3
PORT D.2
1
J4
CONN-SIL1
Q1
TIP142
Q2
TIP142
Q3
TIP142
Q4
TIP142
R2
1k4
R3
1k4
R4
1k4
R5
1k4 1
2
J1
TBLOCK-I2 1
J2
CONN-SIL1 1
J3
CONN-SIL1
D1
1N5402
D2
1N5402
D3
1N5402
D4
1N5402
1 2
J4
TBLOCK-I2 1
2
J5
TBLOCK-I2
Motor VCC
GND
PD.0 PD.1
C4
3300uF
C6
100uF VI
1 VO
3
G N
D 2
U4
7824
Q6
2N3055
D4
1N4002
R18
330
A B
BR1
KBPC802 1
2
J1
TBLOCK-I2
Rangkaian Minimum System ATmega32 Rangkaian Untuk Sensor
Driver Motor Rangkaian Regulator
Rangkaian Reset ATmega32 Rangkaian Osilator ATmega32
Spesifikasi
Webcam
Logitech C170h [12]
Webcam
Logitech C170h [15]
Penaik Tegangan Step Up 5v
Motor Dc 24v, 2A
LISTING PROGRAM GUI MATLAB
function varargout = realtimevarargin REALTIME MATLAB code for realtime.fig
REALTIME, by itself, creates a new REALTIME or raises the existing singleton.
H = REALTIME returns the handle to a new REALTIME or the handle to the existing singleton.
REALTIMECALLBACK,hObject,eventData,handles,... calls the local function named CALLBACK in REALTIME.M with the given input
arguments.
REALTIMEProperty,Value,... creates a new REALTIME or raises the
existing singleton. Starting from the left, property value pairs are
applied to the GUI before realtime_OpeningFcn gets called. An unrecognized property name or invalid value makes property
application stop. All inputs are passed to realtime_OpeningFcn via varargin.
See GUI Options on GUIDEs Tools menu. Choose GUI allows only one instance to run singleton.
See also: GUIDE, GUIDATA, GUIHANDLES Edit the above text to modify the response to help realtime
Last Modified by GUIDE v2.5 26-Feb-2017 16:49:23 Begin initialization code - DO NOT EDIT
gui_Singleton = 1; gui_State = structgui_Name, mfilename, ...
gui_Singleton, gui_Singleton, ... gui_OpeningFcn, realtime_OpeningFcn, ...
gui_OutputFcn, realtime_OutputFcn, ...
gui_LayoutFcn, [] , ... gui_Callback, [];
if nargin ischarvarargin{1} gui_State.gui_Callback = str2funcvarargin{1};
end
if nargout [varargout{1:nargout}] = gui_mainfcngui_State, varargin{:};
else gui_mainfcngui_State, varargin{:};
end End initialization code - DO NOT EDIT
--- Executes just before realtime is made visible. function realtime_OpeningFcnhObject, eventdata, handles, varargin
This function has no output args, see OutputFcn. hObject handle to figure
eventdata reserved - to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA
varargin command line arguments to realtime see VARARGIN
Choose default command line output for realtime clc;
cla; sethandles.edit10, String,0 ;
sethandles.edit11, String,0; sethandles.edit12, String,0 ;
sethandles.edit13, String,0 ; sethandles.edit8, String, ;
sethandles.edit9, String, ; handles.output = hObject;
Update handles structure guidatahObject, handles;
UIWAIT makes realtime wait for user response see UIRESUME uiwaithandles.figure1;
--- Outputs from this function are returned to the command line. function varargout = realtime_OutputFcnhObject, eventdata, handles
varargout cell array for returning output args see VARARGOUT; hObject handle to figure
eventdata reserved - to be defined in a future version of MATLAB handles structure with handles and user data see GUIDATA
Get default command line output from handles structure varargout{1} = handles.output;
--- Executes on button press in pushbutton2. function pushbutton2_CallbackhObject, eventdata, handles
hObject handle to pushbutton2 see GCBO eventdata reserved - to be defined in a future version of MATLAB
handles structure with handles and user data see GUIDATA
--- Executes on button press in pushbutton1. function pushbutton1_CallbackhObject, eventdata, handles
hObject handle to pushbutton1 see GCBO eventdata reserved - to be defined in a future version of MATLAB
handles structure with handles and user data see GUIDATA
--- Executes on button press in pushbutton3. function pushbutton3_CallbackhObject, eventdata, handles
hObject handle to pushbutton3 see GCBO