Skip to main content

Posts

Showing posts from October, 2012

PC Based Voltmeter Using C#

Voltmeter C# Arduino, PIC, AVR This program is developed in C# (C sharp). It needs .NET framework 4.0 to work.  For the circuit and other details of the project go to the Link. Click on the image to download the program. PC Based Digital Voltmeter Using PIC 16F877A Code modification of existing project /**********************************************/ /*     http://www.facebook.com/EmbeddedProjects  http://microcontrollerprojects00.blogspot.in/  Author: Vishal K M  uC:16F877A  Compiler: mikroC  Crystal freq: 4MHz                                               */ /**********************************************/ unsigned long temp; unsigned int i; char digit[]="0.000"; void main() { TRISA=0xFF; ADCON0=0x01; ADCON1=0x0E; UART1_Init(9600);               // Initialize UART module at 9600 bps   Delay_ms(100);                  // Wait for UART module to stabilize      UART1_Write_Text(&qu

PC Based Digital Voltmeter Using PIC 16F877A

Voltmeter C# .Net PIC, Arduino, AVR This is a simple voltmeter which measures 0-5V at a precision of 4.8 mV. This is a simple design using inbuilt ADC of PIC 16F877A. PIC 16F877A have 8 channel 10bit ADC.   This is a computer interfaced project. Measured voltage is output in serial interface software in computer. There is a serial interface circuit (MAX232) is necessary for interfacing with computer, which is not included in the circuit. Please check       PIC Serial Communication Tutorial (UART)   for the circuit and more details. Using one of the most popular 8 bit PIC 16f877A, for instance, reading the datasheet , we'll find that the ADC modules (10 bit) are controlled by four different registers. The first two, ADCON0 and ADCON1 , are used to set and start the ADC module. When high level language is used, the programmer doesn't need to care a lot of the register connected to the results because they are normally stored in a variable by a rout