Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[req]interface dc voltage to pc

Status
Not open for further replies.

mastertushar

Member level 3
Joined
May 5, 2010
Messages
56
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Mumbai, India
Activity points
1,651
hi a want to interface small varying dc voltage to conputer by and port and i want to use it in visual basic to do further action .. my varying voltage say 0 to 5 v or 0 to 10v dc ,,.. can anybody help me for this using any microcon. like pic... thanx in advance
 

ama_trig said:
What you are looking for:
1)Dc Voltage Divider
2)PIC ADC
3)interfacing a PIC to PC


https://www.google.com/search?hl=en...q=ADC+to+PC+using+PIC+microcontroller&spell=1

thanx for helping i want the folling

how to use PIC ADC with source and ckt diagram( 1)PIC ADC)


2)interfacing a PIC to PC

the 1st link you given is right but its too old no links in that thread working... i want only single channel ..

and second link is also nice,, plz help further .. thanx again
 


    mastertushar

    Points: 2
    Helpful Answer Positive Rating
finally i got this project

**broken link removed**


but when i trying to compile the folling program to CCS C compiler it giving error


#include <16F876.h>
#DEVICE ADC=10
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=20000000)
#use rs232 (baud=57600,rcv=PIN_C7, xmit=PIN_C6)

float value;
float temp;
float volt;

void main()
{

//Initialize and Configure ADC

setup_adc_ports( ALL_ANALOG );
setup_adc(ADC_CLOCK_INTERNAL );
set_adc_channel( 0 );

while(1)
{

//1 Sec Delay
delay_ms(1000);

//Read ADC Value
value = read_adc();

//Convert Value into Volts
volt = (value / 1023) * 5;

//Convert Volts into Temperature
temp = volt * 100;

//Send data to PC
printf(“Temperature: %.1f\n\r”,temp);

}

}

plz help
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top