Skip to content

Monthly Archives: August 2011

  • Compact Flash based serial (RS232) data logger powered by PIC18F458

    Compact Flash based serial (RS232) data logger powered by PIC18F458

    Summary This is a complete project with following features: Serial Data (received by built-in RS232 port of the PIC18F) logging with receive date/time Compact Flash data storage Last record display […]

      ,
  • Interfacing DS1788X / DS1288X RTC with PIC18F uC

    Interfacing DS1788X / DS1288X RTC with PIC18F uC

    This is an example program to interface Maxim DS1788X series RTC to a PIC18F microcontroller. The DS17287, DS17487, and DS17887 integrate a quartz crystal and lithium energy source into a 24-pin encapsulated DIP package. The same code may be used to interface Older DS1288X series RTCs with little or no modifications.

    Continue reading

      ,
  • SHT75 Humidity and Temperature Sensor with PIC18F uC

    SHT75 Humidity and Temperature Sensor with PIC18F uC

    SHT75 from Sensiron is a fully calibrated (calibration constants are programmed individually to each sensor) digital output sensor. It has a I2C like (not compatible with I2C) interface. The sensors are really accurate. I have noticed three sensors close to each other giving an output only deviating by 0.1C of each other.

    The attached source code is derived from an application note provided by Sensiron for interfacing SHT7X sensors to 8051 microcontrollers. Please note this code has temperature/humidity conversion coefficients for older (prior to V4) SHT75 sensors. If you use a newer V4 sensor update the conversion coefficients. The code was written for a PIC18F4580 IC and was compiled with HI-TECH PIC18 compiler.

    Continue reading

      ,
  • Interrupt Driven 8-Digit Rotary Encoder Counter

    This example C code can be used to implement a completely interrupt driven rotary encoder counter (incremental type)  using PIC16FXXX microcontrollers built-in timers and counters. This code was written in 2005 for a simple factory automation project I did. The code is written for HI-TECH PIC16 compilers. The microcontroller used was PIC16F877A. Note: This program supports only uni-directional counting. The encoder output should is connected to TMR1 module’s input pin (PORTC1).

    Continue reading

      ,
  • Experiments with Oscillator Design

    Experiments with Oscillator Design

    The following content is from a very old report of a practical assignment I had to do when I was in my 2nd undergraduate year. It can contain a lot of errors. But here it is copied because information in this report might be helpful to students who just start learning about practical oscillator circuits in Electronics subjects.

    This report has some figures/text directly taken from IC manufacturer datasheets and also from application notes provided with these ICs.

    All the simulations were done using Electronics Workbench V5

    Introduction

    In the following experiments I implemented various oscillators and observed their characteristics. My focus was basically on sine wave generation techniques with TL084 QUAD OP-AMP IC and square wave generation using popular 555 IC.

    Continue reading

     
  • Lenovo Z370 Dead Display

    Just after 3 weeks of use my brand new Lenovo Ideapad Z370 with Intel core i5-2410 with 8GB of Ram started giving me display problems and blue screens. This happened several […]

      ,