Hee Haw Sound

This experiment creates a Hee Haw sound for an alarm. The diagram shows the number of cycles for the HEE and the time taken for each cycle, equates to a certain length of time. The frequency of the HAW is lower and the number of cycles must be worked out so that the time for the HAW is equal to the time for the HEE. This is simple when writing the program. The values loaded into the two files for the HEE ar ...

Read more

Your first PICMicro Project using PIC16F84

After doing two weeks on LCDs, I thought I'd spend a few weeks focusing on the number one question that I get asked; "How do I start working with the Microchip PICMicro?" The question is asked from a variety of perspectives and goals, ranging from somebody that just wants to become casually familiar with the chip to people who want to learn about the PICMicro to students that have been given an assignment t ...

Read more

Matrix scankey 3×4 for Lcd 2 line For CSS Compiler

#include <16F877.h> #device adc=8 #FUSES NOWDT ,XT #use delay(clock=4000000) char const s[10]={'0','1','2','3','4','5','6','7','8','9'}; void init_mcu (void); void display (void); void display1 (void); void calculate (void); void hex_bcd2(int8 k); /*-------define keypad------------*/ #define row0 pin_b0 // input #define row1 pin_b1 // input #define row2 pin_b2 // input #define row3 pin_b3 // input #de ...

Read more

EasyEDA features for Schematic and PCB design

EasyEDA is a unique cloud-based EDA tool, designed to give electrical/electronic engineers, educators, engineering students and electronics hobbyists an easier EDA Experience. The objective of this cloud based circuit design tool is to help designers move from idea to manufactured prototype by providing comprehensive data and collaboration tools for electronic design. It is suitable for all users spanning f ...

Read more

Starting with PICmicro controllers

intro, first steps, tips, links, etc. (C) 2002 .. 2005 Wouter van Ooijen ([email protected]) Last change made at 2005 AUG 18. The latest version of this document can be found at http://www.voti.nl/swp. Unaltered duplication is allowed. Translations require approval of the author, which will most likely be granted if the quality of the translation is adequate. This is not a fool's guide: fools are much more foo ...

Read more

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
Scroll to top