You are on page 1of 6

MICROCONTROLLER APPLICATION AND DEVELOPMENT

KIT

USE AND EXPERIMENT BOOK

Writers:
Dr. F. Zeynep KÖKSAL Emrah İŞSEVER
Ph.D. in EEE, ODTÜ/1990 G.Ü.T.E.F./1998

Oğuz ŞENGÖZ
B.Sc. EEE, ODTÜ/2014

BETİ BİLİŞİM TECHNOLOGIES LTD. STI. MAY


2014

i
© All printing, publishing and sales rights of this book belong to Beti Bilişim Teknolojileri İmalat
Sanayi İç ve Dış Tic. Ltd. Şti. Permission of the specified institution
In accordance with the provisions of the Law on Intellectual and Artistic Works No. 5846 and
2936, all or parts of the book are mechanical, electronic, photocopying.
It cannot be reproduced, quoted, pictures, figures, graphics etc.
of the authors and Beti Bilişim Teknolojileri İmalat Sanayi İç ve Dış Tic. Ltd. It can not be used
without the permission of Sti.

Editör

Nazlı Elif KÖKSAL


MS in Economics
Université Paris I-Panthéon-Sorbonne/2002

Request Address:
Beti Information Technologies Manufacturing Industry İç ve Dış Tic. Ltd. Sti.
Serefli Street No:40/5 Deputies / AnkaraTel: 0 312 2221800
info@beti.com.tr

on-line order www.elektrovadi.com


PREFACE

Our country, Turkish engineers,


technicians, technicians, Technical
University, Vocational School,
Technical High School and
Vocational High School students,
briefly
All who follow the excitement of
Technological Development in the
field of electronics with us.
We continue to introduce our
colleagues to the Technological
Training Sets. in 2001
After PICuse/84, which is based on
Microchip's PIC Microcontrollers,
which we put up for sale, now the
original Beti MCU
our set; Various application cards, C
Compiler Software and
documentation are offered to the
use of our country's technical
education and training.

Our expertise in Microcontroller Training Sets, which is registered by everyone,


directs us to new topics and continues by developing our mission in the
production of "Advanced Technology Training Sets".
motivates us to do it. With our scientific and academic approach; Instead of
expensive and sophisticated systems in all our training sets, cheap,
We create an easy-to-use and student-friendly hardware and software
development infrastructure. The use of our sets with this setup
becoming widespread will carry the total quality of technical education in our
country to global dimensions. Keep following us.
regards
Dr. F. Zeynep KÖKSAL

iii
CONTENTS
Preface........................................................................................... iii
SET CONTENTS................................................................................ 1
SETTING UP THE SYSTEM.................................................................. 1
MATTERS TO BE CONSIDERED IN USING THE SYSTEM.......................... 2
PART I EASY PIC7......................................................................... 3
GET TO KNOW EASY PIC7................................................................. 3
POWER SUPPLY............................................................................... 4
MCU SOCKETS................................................................................ 4
USB ON-BOARD PROGRAMMER......................................................... 5
I/O GROUPS................................................................................... 6
HEADER......................................................................................... 7
BUTTONS....................................................................................... 7
LEDS............................................................................................. 7
RESET CIRCUIT............................................................................... 8
7-PIECE INDICATOR........................................................................ 8
GRAPHIC LCD................................................................................. 9
TOUCH PANEL................................................................................ 10
CHARACTER IN 4-BIT MODE LCD...................................................... 11
RS232 COMMUNICATION................................................................. 12
USB COMMUNICATION.................................................................... 13
USB-UART COMMUNICATION........................................................... 14
DIGITAL THERMOMETER DS1820...................................................... 14
ANALOG THERMOMETER LM35.......................................................... 15
ADC INPUTS................................................................................... 16
I2C EEPROM CIRCUIT...................................................................... 16
PIEZO BUZZER CIRCUIT.................................................................. 17
ADDITIONAL GND PINS................................................................... 18
MICROBUS SOCKET STRUCTURE....................................................... 18
SAMPLE CLICK CARDS..................................................................... 19

CHAPTER II EXPERIMENTS............................................................20
EXPERIMENT 1..................... Data Output Application in Microcontroller 21
EXPERIMENT 2...................................... LED Walking Light Application 23
EXPERIMENT 3............. Data Input-Output Application in Microcontroller 26
EXPERIMENT 4.......................... 7-Part LED Display Control Experiment 28
EXPERIMENT 5.................................... LCD Module Control Experiment 32
EXPERIMENT 6............... Digital-To-Analog Converter (DAC) Experiment 37
EXPERIMENT 7................ Analog Temperature Measurement Application 45
EXPERIMENT 8................................. Stepper Motor Control Experiment 48
EXPERIMENT 9...................................................... Keypad Application 53
EXPERIMENT 10............................... RS232 Communication Experiment 56
EXPERIMENT 11............................................ Relay Control Experiment 66
EXPERIMENT 12................. Application of Pulse Width Modulation (PWM) 69
EXPERIMENT 13.................................. RTC Real Time Clock Experiment 75
EXPERIMENT 14...................... Application of Optical Elevator Simulation 83
EXPERIMENT 15................................................... Bargraph Application 89
EXPERIMENT 16.................................................... Marquee Application 95
EXPERIMENT 17........................... Light Frequency Converter Experiment 99
EXPERIMENT 18............................................. Graphic LCD Application 103
EXPERIMENT 19..................................................... RS485 Application 107
EXPERIMENT 20........................................... Touch Screen Application 115
EXPERIMENT 21...................................... Sound Generator Application 120
EXPERIMENT 22............. Analog-To-Digital Converter (ADC) Experiment 123
EXPERIMENT 23.................................................. EEPROM Application 127
EXPERIMENT 24................................. USB Communication Application 130
EXPERIMENT 25............ Application of Ultrasonic Distance Measurement 134

You might also like