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.

ADC PIC MIKROBASIC VOLTAGE EXTRACTRATION FROM CLAMPMETER

Status
Not open for further replies.

heina

Junior Member level 3
Joined
Dec 21, 2009
Messages
25
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Philippines
Activity points
1,471
hi everyone. We're using a clampmeter in our project. We sort of extracted the part of the clampmeter where whenever its current measurement goes high, the voltage (in mV) in that particular area also goes high. We used PIC16F877a's adc in order to get it's value and be able to compute the energy and display it on LCD . However, when we were trying out the the circuit, the output ADC value read (in 10 bit binary) is not steady. I mean, it displays a value, like 2036 for example and then drops to 0 but the input voltage is steady in 2.36 mV for example.

uhm, any ideas why the adc returns to 0 when constant voltage is supplied as input?
uhm, any suggestions if we need some refining ic or something because we just connected the 2 pins from the clampmeter to the a0 port of the PIC directly.
pls help.

many thanks,
heina

here is my code:
Code:
'other declarations for the lcd and other stuff

Dim AD_Total as Word
Dim dummyCh as String[4]

TRISA = %111111   
ADCON1 = %10001111


While (b=TRUE)
    
     AD_Total = ADC_read(0)
    
   
      Delay_us(100)



     WordToStr(AD_Total, dummyCh)




     LCD_Out(4, 1, dummyCh)


     Delay_us(50)


  wend
 

erm..pls help me ..:-( any ideas would be very helpful.. :-(
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top