In this book, you can study the basics of learning and experimenting with microcontrollers as the foundation of the IoT, from the introduction of MPLAB to the production of PIC microcontroller line tracers, in sequence. Exercises and experiments will be carried out so that you can learn in an easy-to-understand way.
Table of Contents
Introduction
1. Basic use of MPLAB 1.1 MPLAB (1) Download (2) Installing MPLAB (3) Installing the XC compiler (4) Launching MPLAB 1.2 PIC16F84A 1.3 How to use the PIC C language (1)Initialization (2)Programme for LED lighting (3)Writing to PIC16F84A (4)LED lighting experiment
2. Programming and experimentation in C 2.1 LED lighting (1)One LED on PORTB (2)Two LEDs on PORTB (3)Two LEDs alternating on PORTB (4)Two LEDs alternating on PORTB-2 (5)Four LEDs in sequence on PORTB (6)Binary number display on PORTB (7)Four LEDs in sequence on PORTB-2 (8)Four LEDs in sequence on PORTB-3
2.2 Tact SW input (1)Connect SW to PORTA and turn on LED (2)Connect SW to PORTA and turn on LED-2 (3)Connect SW to PORTA and turn on LED-3 (4)Connect another SW to light two LEDs (5)When the SW is turned from on to off, the two LEDs blink (6)LED blinking speed changes when SW is turned from ON to OFF (7)Two LEDs light up with two SWs
2.3 Sound output (1)Output sound from piezoelectric speaker (2)Sound C D E F G A B C (3)While the switch is pressed, C is sounded (4)Each press of the switch outputs C D E F G A B C in sequence. (5)Play music
2.4 Servo motor (1)Control at 0° position (2)Position control of servo motors with switches (3)Position control of servo motors with switches-2 (4)Position control of servo motors with switches-3
2.5 Sensors, etc (1)Full Color LED (2)CDS sensor (brightness sensor) (3)Distance Sensors (4)Photo Reflector
3. Making a Line Tracing Robot
Postscript
4.References
|