PIC12F675 Tutorial 6 : Driving a standard servo motor with a PIC

Servo motor driver tutorial. This tutorial uses the 12F675 microcontroller to drive a servo. The microcontroller generates the signals to control a standard servo using Timer 0 interrupts (I used a Futaba servo).  It does not do anything clever just sets the servo position to predefined positions at one second intervals. A Timer 0 interrupt creates the 20ms timebase for servo updates using the internal cloc ...

Read more

I2C bus for 24LC16 For CSS Compiler

  #include <16F877.h> #device adc=8 #FUSES NOWDT ,XT #use delay(clock=4000000) #use i2c(Master,Fast,sda=PIN_C4,scl=PIN_C3) #INCLUDE "LCD_4BIT.C" #include "I2C_24LCxx.c " int8 value,setpoint=112; void main(){ setup_adc_ports(NO_ANALOGS); setup_adc(ADC_OFF); setup_psp(PSP_DISABLED); setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); setup_timer_1(T1_DISABLED); setup_timer_2(T2_DISABLED,0,1); set_tris_c(0B100 ...

Read more

PIC12F675 Tutorial 7: A Servo controller driving a standard servo motor using serial port command

This servo controller generates a signals to control a standard servo motor (I used a Futaba servo but you can use any servo) using the 12F675 microcontroller.  You can type a text command into a serial terminal e.g Hyperterminal to set the position of the servo. The project software works slightly differently to the previous one as interrupts are used for pulse timing - this lets it both service the serial ...

Read more

How to interface RFID with PIC18F4550 Microcontroller

RFID (Radio Frequency Identification and Detection) is widely used everywhere from highly secured defense laboratories to school attendance system. By employing RFID, much secured entry systems can be developed without incurring huge costs. These are the reasons of excessive use of RFID technology. In this article, interfacing of an RFID reader module has been explained with PIC18F4550. The USART interrupt, ...

Read more

One wire bus (DS1820) Control For CSS Compiler

#include <16F877A.h> #device adc=8 #FUSES NOWDT,XT //No Watch Dog Timer #use delay(clock=4000000) #include <Shift_595_C.c> // 25.5 C 0.5 to step #include <read_temp.c> void main(){ setup_adc_ports(NO_ANALOGS); setup_adc(ADC_OFF); set_tris_a(0xff); set_tris_b(0x00); value = 0; display(); delay_ms(100); while(true){ read_ds1820(); value = temp; hex_bcd(value*10); sent_data(); delay_ms(100); ...

Read more

PIC Microcontroller Unit(PIC16F877A)

A Project entitled "PIC Microcontroller Unit" presented by Quezon City Polytechnic University (QCPU), Fourth year students of Bachelor of Science in Information Technology (BSIT), Major in Computer Technology. For the elecytive subject of "MIcroprocessor". Submitted by Group number two(2) and to be submitted to Professor Ambito. For School Year 2012-2013, Second Semester. Group Members: Graellos Cesar Jr. G ...

Read more

How to work with inbuilt Analog Comparators of PIC18F4550

Analog comparator is an electronic device which compares the two voltage signals and provides TTL logic output to indicate the larger signal. The analog comparator is used in various applications where two inputs signals need to be compared. IR sensor is a very common example where analog comparator is used. PIC18F4550 has two in-built comparators which can be used in eight different modes. These in-built c ...

Read more

How to work with External (Hardware) Interrupts of PIC18F4550

Interrupts are special events that require immediate attention. They cause the processor to cease the running task to serve a special task for which the interrupt event had occurred. After the special task is over, the processor resumes performing the original task. The processor can also serve these events by polling method. But polling is an inefficient technique as compared to interrupts. In the polling ...

Read more

LightKit: Pic Spoon Feed Model Railroad Lighting with Pic 12F683 12F690 and Pickit2 Video Tutorial Series

In this video series I am walking through step by step setting up from scratch to build a model railroad structure and layout lighting system that includes using the Pickit2, MPLAB and HI-Tech C. This is a complete walk through! Part 1 - http://youtu.be/DJlT0ZIQiO8 Installing MPLab and Hi-TechC / Obtaining a Pickit Programmer Part 2 - http://youtu.be/IR2s0dn-dQU General Pic information / Bread boards / Prot ...

Read more

Introduction To The PIC Microcontroller Talk video tutorial

In this talk, you are introduced to how to get started using the PIC Micro. The talk includes practical tips and ideas. In addition, the link to download all the material is here: 4shared.com/folder/2FPmwzlu/_online.html This includes beginner documentation, demo software, and additional material, like how to modify the PICKit-2 and what you'll need to get started. The key to getting started is, KEEP IT SIM ...

Read more
Scroll to top