problem in simulation for power meter

General discussion on mikroC PRO for AVR.
Post Reply
Author
Message
spidermanIIII
Posts: 22
Joined: 16 Apr 2015 20:33

problem in simulation for power meter

#1 Post by spidermanIIII » 04 May 2015 20:24

Hi,I tried to do power meter project by mikroc for avr i debug the problem with no errors but when i try to simulate in proteus the lcd showes nothing i need your help please. the problem measuring the RMS Voltage and current by reading the analog signals from sensors. taking 100 samples of 10 waves sine wave
its frequency is 50Hz so i use delay in for loop in reed function in program to cover 100 samples (1/50=0.02)
0.02*10=0.2
0.2/100=2000 usec //delay value
i attaced the program , simulation and the wattmeter.pdf which show the technique for calculating the RMS value (note the pdf is for PIC but i took the idea of program and built it for avr)
please i need your help
Attachments
power_meter.rar
(1.15 MiB) Downloaded 144 times

Post Reply

Return to “mikroC PRO for AVR General”