Analog to digital 8 bits For CSS Compiler

  #include <16F877.h> #device adc=8 #FUSES NOWDT ,XT #use delay(clock=4000000) #include <Lcd_4bit.c> int8 value; void main() { setup_adc_ports(AN0_AN1_AN3); setup_adc(ADC_CLOCK_DIV_2); setup_psp(PSP_DISABLED); setup_spi(SPI_SS_DISABLED); setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); setup_timer_1(T1_DISABLED); setup_timer_2(T2_DISABLED,0,1); set_adc_channel(0); set_tris_d(0x00); set_tris_A(0xff) ...

Read more

How to make a contact-less digital tachometer using IR-light reflection technique

Tachometer is a device that measures the rotational speed of any shaft or disc. The unit of the measurement is usually revolutions per minute or RPM. The traditional method of measuring RPM of a rotating shaft was based on velocity feedback concept where a dc generator is hooked to the rotating shaft so that the voltage induced across the generator’s terminals is proportional to the speed of the shaft. Toda ...

Read more

Digital clock ds1307 using PIC microcontroller

igital clock using ds1307 and pic16f877a microcontroller is designed in this project. Digital clock using ds1307 displays time and date on LCD. PIC16F877A microcontroller is used to design digital clock. I2C communication protocol is used to read time and date from digital clock ds1307. PIC16F877A microcontroller is interfaced with LCD to display time and date. Digital clock ds107 use I2C serial communicati ...

Read more

Simple Digital Current Meter (DCM) using PIC microcontroller (Schematic + code + Proteus simulation)

This post would provide a working example of how to make a simple Current Meter (DCM) using 16bit PIC microcontroller and a series shunt resistance. We have very precise ammeter current measurement with a 10bit ADC and with a tolerance of ±10mA. You may download code and Proteus Simulation from the download section at the bottom of this post. I am using MPLAB X IDE, C30 Compiler and Proteus Simulation on v8 ...

Read more

High-Accuracy Digital Temperature Sensor STS3x

The STS3x is Sensirion’s newest high-accuracy digital temperature sensor series. The STS3x temperature sensor utilizes the industry-proven CMOSens® technology and wins over users with its increased intelligence, reliability, and improved accuracy specifications. The functionality of Sensirion’s new STS3x temperature sensor includes enhanced signal processing, two distinctive and user-selectable I2C addresse ...

Read more

Digital watt meter using pic microcontroller

In this article, I will discuss how to design digital ac watt meter using pic microcontroller. Lets start with basic introduction of watt meter. What is Watt meter? Watt meter is electrical device which is used to measure real power in AC circuits and total power in DC circuits. You may have used watt meter in electrical labs. Watt meter most frequently used in electrical labs for performing various lab tas ...

Read more

Digital & Binary clock with thermometer & hygrometer

Here we have a clock. It’s not “another clock”. It has digital and binary output. It also has a thermometer and a hygrometer. It’s not “another thermo-hygrometer”. It display’s absolutely humidity (gr/m3) also. Schematic   MCU I build it around Microchip PIC16F917, with internal Oscillator at 4MHz. I also build a serial port programmer, so I can programming it on-line, using the DL4YHF WinPic. Clock I ...

Read more

PIC-based Digital Voltmeter (DVM)

Introduction This project will describe how to make a simple digital voltmeter (DVM) using a PIC16F688 microcontroller. The range of this DVM is 0-20V, but you can easily increase or decrease the range of input voltage as your requirements after you understand the voltage scaling method described in this project. The PIC micro reads the input voltage through one of the 8 analog channels and convert it to a ...

Read more

Simple Digital GPS Speedometer Using PIC16F877A with LCD Display

Speedometer is a speed measuring gauge used to calculate the speed of motor vehicles. They are mainly of two types- electronics and mechanical. Digital speedometer measures the speed and mileage in vehicles. Normally both types work on the principle of electromagnetism, however they have a disadvantage that they cannot be used if there are no wheels on the moving object. Here I am introducing a simple digit ...

Read more

PIC16F877 based controllable digital clock using LCD display (Code+Proteus simulation)

This PIC16F877 microcontroller tutorial answers the question, " How to implement a controllable digital clock using PIC16F877 ? " Using PIC16 simulator (Proteus) you can verify this digital clock code and change it according to your needs. Using three push buttons (As shown in figure below) you can adjust time as you desire. This code is written in C language using MPLAB with HI-TECH C compiler. You can dow ...

Read more
Scroll to top