tag:blogger.com,1999:blog-6802523224595585339.post2785520067623681539..comments2018-04-17T19:29:08.403-07:00Comments on Embedded Laboratory: AC Voltage Measurement Using PICEmbedded Laboratoryhttps://plus.google.com/104897355110083836693noreply@blogger.comBlogger36125tag:blogger.com,1999:blog-6802523224595585339.post-7424264451732529812018-04-17T12:50:50.923-07:002018-04-17T12:50:50.923-07:00I am so sorry, i just checked the download link an...I am so sorry, i just checked the download link and found that adc header and source files are not there.<br />I am really sorry for the inconvenience caused due to this.<br />I will update it really soon in 24hours.Embedded Laboratoryhttps://www.blogger.com/profile/05822378620597058069noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-7769925980049250642018-04-17T11:21:03.284-07:002018-04-17T11:21:03.284-07:00sir i have sent you mail.Please revert me back.Tha...sir i have sent you mail.Please revert me back.Thank you.Gandham Yaminihttps://www.blogger.com/profile/14657820026320898395noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-13203096690322173472018-04-16T21:45:55.227-07:002018-04-16T21:45:55.227-07:00Hi, can we have this code in MikroC please. and wi...Hi, can we have this code in MikroC please. and with MPLAB IDE does not include ADC.H please help me. the compiler shows the below msg:<br />config.c:8: error: (141) can't open include file "adc.h": No such file or directory<br />main.c:9: error: (141) can't open include file "adc.h": No such file or directoryGhafoor Samadihttps://www.blogger.com/profile/07555439764774290012noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-50156183144063640032018-04-16T19:09:12.035-07:002018-04-16T19:09:12.035-07:00Hi sorry for late reply.
Are you taking about that...Hi sorry for late reply.<br />Are you taking about that hand drawn image of circuit.<br />Can you please more elaborate that what you are trying to achieve with that.<br />Why you choosed thay circuit?<br />Did you run the simulation on this circuit?<br />What exactly problem you are facing?<br /><br />Please provide detailed analysis with me over mail, then only i can think of something.<br />You can mail be, i will reply there.Embedded Laboratoryhttps://www.blogger.com/profile/05822378620597058069noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-91994858646070926122018-04-16T12:45:49.167-07:002018-04-16T12:45:49.167-07:00Sir I have mailed you regarding the issue..can you...Sir I have mailed you regarding the issue..can you please reply me back.Gandham Yaminihttps://www.blogger.com/profile/14657820026320898395noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-85927963572363517742018-04-16T11:48:28.815-07:002018-04-16T11:48:28.815-07:00Sir I have mailed you regarding the issue..can you...Sir I have mailed you regarding the issue..can you please reply me back.Gandham Yaminihttps://www.blogger.com/profile/14657820026320898395noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-22548654985950462712018-04-02T08:13:32.297-07:002018-04-02T08:13:32.297-07:00Can you elaborate your problemCan you elaborate your problemEmbedded Laboratoryhttps://www.blogger.com/profile/05822378620597058069noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-23088199581694500812018-04-02T06:41:58.187-07:002018-04-02T06:41:58.187-07:00sorry for he late reply sir but still i have issue...sorry for he late reply sir but still i have issue with this circuit.<br /><br />Gandham Yaminihttps://www.blogger.com/profile/14657820026320898395noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-25346992283551276622018-02-24T03:23:10.514-08:002018-02-24T03:23:10.514-08:00Please share your circuit diagram then only i will...Please share your circuit diagram then only i will be able to comment.<br />Use Contact Us Page to send me your schematic.Embedded Laboratoryhttps://www.blogger.com/profile/05822378620597058069noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-42454124261680426792018-02-24T03:21:03.330-08:002018-02-24T03:21:03.330-08:00Yes you are right.
But the calculation is not inco...Yes you are right.<br />But the calculation is not incorrect.<br />Square root is taken after.<br />I used 23.84 and after taking square root it is 4.88<br />And you are directly taking that.<br />So both are correct.<br />Please check code, you will see.Embedded Laboratoryhttps://www.blogger.com/profile/05822378620597058069noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-73849916592741835512018-02-24T03:20:31.106-08:002018-02-24T03:20:31.106-08:00Yes you are right.
But the calculation is not inco...Yes you are right.<br />But the calculation is not incorrect.<br />Square root is taken after.<br />I used 23.84 and after taking square root it is 4.88<br />And you are directly taking that.<br />So both are correct.<br />Please check code, you will see.Embedded Laboratoryhttps://www.blogger.com/profile/05822378620597058069noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-72178229928269759672018-02-18T23:52:46.067-08:002018-02-18T23:52:46.067-08:00sir i think there is mathematical error in above,
...sir i think there is mathematical error in above,<br />Vrms = sqrt(625*625/(128*128) * sqrt((ADC1)^2+(ADC2)^2+...+(ADCn)^2)/n), i think sqrt(625*625/(128*128) this would fetch 4.8828125.<br />kindly clear it.Pawan Singhhttps://www.blogger.com/profile/05476903901452366378noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-16255104298863364782018-02-16T07:57:09.434-08:002018-02-16T07:57:09.434-08:00Sir I have done the same project with pic18f23k22 ...Sir I have done the same project with pic18f23k22 and I'm able to get the output.but actually I'm taking input to pic through current coil using opamp which will just act as buffer without any diode..now problem in facing is it is not varied according to answer rating..I mean to say like for 4 amp from coil I'm able to see 4.1 amps in serial terminal of pic..similarly for 6.1amp it is getting 17..for 10amps 38.2 like this.what might be the problem..?Gandham Yaminihttps://www.blogger.com/profile/14657820026320898395noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-39025574780431427872018-02-16T00:05:13.271-08:002018-02-16T00:05:13.271-08:00sir i think,sqrt(625*625/(128*128) * sqrt((ADC1)^2...sir i think,sqrt(625*625/(128*128) * sqrt((ADC1)^2+(ADC2)^2+...+(ADCn)^2)/n, would fetch 625/128 = 4.8828125, but your answer is 23.84 . Kindly explain it<br />Pawan Singhhttps://www.blogger.com/profile/05476903901452366378noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-5122407680048300362018-02-15T23:48:00.166-08:002018-02-15T23:48:00.166-08:00I think there is some mathematical error in below ...I think there is some mathematical error in below text:-<br />Vrms = sqrt( ((625*ADC1/128)^2+(625*ADC2/128)^2+...+(625*ADCn/128)^2)/n)<br />We can do this.<br />Vrms = sqrt(625*625/(128*128) * sqrt((ADC1)^2+(ADC2)^2+...+(ADCn)^2)/n)<br />And Finally<br />Vrms = 23.84 * sqrt((ADC1)^2+(ADC2)^2+...+(ADCn)^2)/n)<br />it should be 4.8828125 not 23.84 because sqrt of 625^2/128^2 will be 625/128=4.8828125<br />Pawan Singhhttps://www.blogger.com/profile/05476903901452366378noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-12430368449656219122018-02-15T05:41:10.998-08:002018-02-15T05:41:10.998-08:00Yes Sure
Formula for Vrms Calculation is Vrms = s...Yes Sure<br /><br />Formula for Vrms Calculation is Vrms = sqrt( (V1^2+V2^2+...+Vn^2)/n)<br />But the values we measure using Micro-controller are digital values.<br />So to convert Digital Value to Voltage, we have to use the following formula:<br />Voltage(mv) = ADC Count * 5000(mv)/1024<br />By Simplifying the above expression we get:<br />Voltage(mv) = ADC Count * 625/128<br />Now, in our Vrms formula, we have to put this value, but we can further simplify the formula by squaring and taking square root.<br />So instead of doing this.<br />Vrms = sqrt( ((625*ADC1/128)^2+(625*ADC2/128)^2+...+(625*ADCn/128)^2)/n)<br />We can do this.<br />Vrms = sqrt(625*625/(128*128) * sqrt((ADC1)^2+(ADC2)^2+...+(ADCn)^2)/n)<br />And Finally<br />Vrms = 23.84 * sqrt((ADC1)^2+(ADC2)^2+...+(ADCn)^2)/n)<br /><br />I hope it is clear now, please reply here, if something is not clear.Embedded Laboratoryhttps://www.blogger.com/profile/05822378620597058069noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-53384469031698910692018-02-15T04:03:57.138-08:002018-02-15T04:03:57.138-08:00Kindly explain the calculation you have given in t...Kindly explain the calculation you have given in the code as:-<br />625*625 = 390625<br />128*128 = 16384<br />625^2 / 128^2 = 23.8414<br />what does these values signifies?<br />help me in it please, i am designing the same project using atmega32.Unknownhttps://www.blogger.com/profile/05476903901452366378noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-63118730132488051872018-01-08T03:53:09.792-08:002018-01-08T03:53:09.792-08:00Complete code is available as download link, use t...Complete code is available as download link, use that project.Embedded Laboratoryhttps://www.blogger.com/profile/05822378620597058069noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-45069840969728899942018-01-08T03:11:43.120-08:002018-01-08T03:11:43.120-08:00Hi, I installed MPLAB but even with MPLAB it didn&...Hi, I installed MPLAB but even with MPLAB it didn't worked if you want I can send you the code and the errors please help me. Ghafoor Samadihttps://www.blogger.com/profile/07555439764774290012noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-48816216900286914972018-01-07T22:59:14.951-08:002018-01-07T22:59:14.951-08:00Yes you can use the same code with some modificati...Yes you can use the same code with some modifications at driver level for adc.Embedded Laboratoryhttps://www.blogger.com/profile/05822378620597058069noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-86282876344380693282018-01-07T20:58:13.397-08:002018-01-07T20:58:13.397-08:00Hi Can I use the code with PIC16F877A?
Hi Can I use the code with PIC16F877A?<br />Ghafoor Samadihttps://www.blogger.com/profile/07555439764774290012noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-60732030582748838492018-01-07T06:57:10.428-08:002018-01-07T06:57:10.428-08:00No it's written for MPLAB XC8 compiler, but yo...No it's written for MPLAB XC8 compiler, but you can port it into mikroC easily.Embedded Laboratoryhttps://www.blogger.com/profile/05822378620597058069noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-29323984395822726312018-01-07T05:36:58.775-08:002018-01-07T05:36:58.775-08:00HI, is this code written in mikroC pro please?HI, is this code written in mikroC pro please?Ghafoor Samadihttps://www.blogger.com/profile/07555439764774290012noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-14842506827156427782018-01-04T05:00:37.025-08:002018-01-04T05:00:37.025-08:00That was just required to run the simulation, in r...That was just required to run the simulation, in real circuit you can skip that and it will work properly.<br />But make sure that this is a non isolated circuit.Embedded Laboratoryhttps://www.blogger.com/profile/05822378620597058069noreply@blogger.comtag:blogger.com,1999:blog-6802523224595585339.post-7907171981125959362017-12-20T08:18:51.558-08:002017-12-20T08:18:51.558-08:00sir, as per your circuit diagram, you connected ph...sir, as per your circuit diagram, you connected phase or neutral with uC's ground through 1Mohm resistor. Is this not affect uC? and did you make this project on real time? (on hardware).. please reply me sir.... thanks in advance.....senthoor rajahttps://www.blogger.com/profile/11449749769842216065noreply@blogger.com