Posts by Ibrar Ayyub:
Interfacing Real Time Clock (RTC) DS1307 with PIC Microcontroller
Posted on: 20 May 2017
DS1307 is a low power serial real time clock with full binary coded decimal (BCD) clock/calendar plus 56 bytes of NV SRAM (Non Volatile Static Random Access Memory). Data and Address are transferred serially through a bidirectional I2C bus. The RTC provides year, month, date, hour, minute and second information. The end date of months is automatically adjusted […]
Aurora 48 – 48 RGB LED Sequencer using PIC24FV16KA304
Posted on: 20 May 2017
Aurora 48 is a compact and thin profile full-color LED sequencer. It’s built entirely with surface mount components, so the profile is nice and clean. Features Capable of individually controlling 48 Full color LEDs. Each LED can be faded in 7 bit per channel – 2,097,152 colors. Gamma corrected brightness curve for very smooth fades. Simple, […]
LCD Module Display 2 line For CSS Compiler
Posted on: 19 May 2017
#include <16F877.h> #device adc=8 #fuses NOWDT,HS, NOPUT, NOPROTECT, BROWNOUT, NOLVP, NOCPD, NOWRT, NODEBUG #use delay(clock=4000000) #include <Lcd_4bit.c> int16 value,value1; void main(){ setup_adc_ports(NO_ANALOGS); setup_adc(ADC_OFF); set_tris_d(0x00); lcd_init(); lcd_row_col(1,0); lcd_putc(“Electrical Power”); delay_ms(20); lcd_row_col(2,0); lcd_putc(“Loei Technical “); delay_ms(5000); lcd_Cls(); while(true){ value = 2568; value1 = 1278; //================================== lcd_row_col(1,0); Lcd_putc(“setpoint=”); hex_bcd(value);lcd_row_col(1,9);sent_Lcd(); //delay_ms(100); //================================== lcd_row_col(2,0); Lcd_putc(“Value=”); hex_bcd(value1);lcd_row_col(2,6);sent_Lcd(); delay_ms(100); } }
Automatic monitor brightness controller
Posted on: 19 May 2017
This is an automatic “monitor brightness controller” based on environmental light conditions. This system use USB port base sensor unit to measure the light level and control monitor brightness accordingly. We design this system to reduce the eye stress by matching the monitor brightness with environmental lighting. The sensor unit of this system is build […]
DC Motor Speed Control using PWM with PIC Microcontroller
Posted on: 19 May 2017
I already posted about Interfacing DC Motor with PIC Microcontroller. In our robotics applications we may have to control the speed of the DC Motor. In this tutorial we will see how to control the speed of a DC Motor using Pulse Width Modulation (PWM). By using PWM we can easily control the average power […]
Seven segment display 4 digit for shift 595 For CSS Compiler
Posted on: 19 May 2017
#include <16F877.h> #device adc=8 #fuses NOWDT,HS, NOPUT, NOPROTECT, BROWNOUT, NOLVP, NOCPD, NOWRT, NODEBUG #use delay(clock=4000000) #include “shift_595.c” void main() { setup_adc_ports(NO_ANALOGS); setup_adc(ADC_OFF); setup_psp(PSP_DISABLED); setup_spi(FALSE); setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); setup_timer_1(T1_DISABLED); setup_timer_2(T2_DISABLED,0,1); set_tris_b(0x00); while(true){ if(SETPOINT++>9999)SETPOINT=0; VALUE =SETPOINT; hex_bcd(VALUE); sent_data(); delay_ms(50); } }
Seven segment _2digit_anode For CSS Compiler
Posted on: 18 May 2017
#include <16F877.h> #device adc=8 #fuses NOWDT,HS, NOPUT, NOPROTECT, BROWNOUT, NOLVP, NOCPD, NOWRT, NODEBUG #use delay(clock=4000000) #define sw_up pin_a0 // SWITCH UP #define sw_down pin_a1 // SWITCH DOWN INT8 COUNT,A,B; int8 num[10] ={ 0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};//common anode //int8 Segment[10] ={ 0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x27,0x7F,0x6F};//common cathode 0 1 2 3 4 5 6 7 8 9 // 0 1 2 3 4 […]
Wearable sensors analyze your sweat
Posted on: 18 May 2017
Sodium. Potassium. Glucose. Lactate. Engineers at the University of California, Berkeley are focusing on measuring these components of sweat in an attempt to open an additional window into an individual’s health and well-being. A new device is able to calibrate the data based on skin temperature and transmit the information wirelessly in real time to […]
Interfacing Stepper Motor with PIC Microcontroller
Posted on: 18 May 2017
Introduction A Stepper Motor is a brushless, synchronous DC electric motor, which divides the full rotation into a number of equal steps. It finds great application in field of microcontrollers such as robotics. Please refer the article Stepper Motor or Step Motor for detailed information about working of stepper motor, types and modes of operation. Unipolar Motor […]
Wye-delta Motor Controll For CSS Compiler
Posted on: 18 May 2017
#include <16F877.h> #device adc=8 #FUSES NOWDT ,XT #use delay(clock=4000000) #define S1 pin_a0 #define S2 pin_a1 #define S3 pin_a2 #define K1 pin_b0 #define K2 pin_b1 #define K3 pin_b2 void main() { setup_adc_ports(NO_ANALOGS); setup_adc(ADC_OFF); set_tris_e(0xff); // input set_tris_b(0x00); // output output_b(0x00); // initial output = 0; while(true) { if(!input(S1)) { output_high(K1); output_high(K2); output_low(K3); delay_ms(5000); while(input(S2)) { output_high(K1); […]