Tutorials

PIC16F877 breadboard LCD 4-bit mode prototype setup

PIC16F877 Driving LCD in 4-Bit Mode using PIC16F877 with Proteus Simulation

Introduction This microcontroller project shows how a PIC16F877 can drive an LCD display using 4-bit mode inside a Proteus simulation.The project demonstrates LCD control with fewer data pins, making it useful for embedded systems where I/O pin saving is important.It is a practical electronics example for learning how a PIC microcontroller communicates with an alphanumeric […]

PIC16F877 Driving LCD in 4-Bit Mode using PIC16F877 with Proteus Simulation Read More »

PIC18F4550 USB mass storage prototype setup

PICDEM FS USB Mass Storage Device using PIC18F4550 with Proteus Simulation

Introduction This microcontroller project demonstrates how to simulate a USB Mass Storage Device (MSD) using the PIC18F4550 in a Proteus simulation environment. The system mimics how a USB flash drive communicates with a computer, making it highly valuable for learning embedded systems and USB protocol basics. It is especially useful for students and engineers exploring

PICDEM FS USB Mass Storage Device using PIC18F4550 with Proteus Simulation Read More »

Hee Haw Sound

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

Hee Haw Sound 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 #define col0 pin_b4 // output #define

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

One wire bus DS1820 Control For CSS Compiler

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); } }

One wire bus (DS1820) Control For CSS Compiler Read More »

LightKit Pic Spoon Feed Model Railroad Lighting with Pic 12F683 12F690 and Pickit2

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

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