tag:blogger.com,1999:blog-6338993703407602171.post5150899185829664611..comments2024-03-28T00:52:40.857-07:00Comments on Tahmid's blog: Zero crossing detection with PIC16F877ATahmidhttp://www.blogger.com/profile/09117804893438710050noreply@blogger.comBlogger67125tag:blogger.com,1999:blog-6338993703407602171.post-56845855594897286992018-09-24T06:15:01.922-07:002018-09-24T06:15:01.922-07:00Hi Tahmid,
I want to count the number of zero cro...Hi Tahmid,<br /><br />I want to count the number of zero crossings let's say 100. on reaching the 100 ZC's I want the program to do something else like connecting the load to normal supply voltage. How can I get out of the continuous loop.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-45940053388892621122018-05-25T05:06:17.702-07:002018-05-25T05:06:17.702-07:00Hi tahmid I'm from Pakistan..Really love you b...Hi tahmid I'm from Pakistan..Really love you blog.. Dear I need help in urgent basis. I have some problems in designing smps. Can you leave the reminder message on my emial Yasir.shahzad@kics.edu.pk or give me your email so that i may contact you.. Dear i will keep you in my mind all of my life, thanksYasir Shahzadhttp://themastermind.pknoreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-17977089916986192282017-11-14T20:00:38.780-08:002017-11-14T20:00:38.780-08:00Can you please suggest me value and power rating f...Can you please suggest me value and power rating for R1 and R2 with 4n35 on 240VAC?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-91599580869212095782017-04-20T22:37:19.285-07:002017-04-20T22:37:19.285-07:00Hi.... Tahmid, I want to use PIC12F615 instead PIC...Hi.... Tahmid, I want to use PIC12F615 instead PIC16F877A. Because, we just wanted two I/O line and one interrupt pin for the whole system. I think it is more suitable to use the controller with less number of pins. Can you just help me to write the code for PIC12F615 for same circuit as it has nor PORTB or PORTD inside.<br /><br />My email ID is tushar.mehta.23@gmail.comAnonymoushttps://www.blogger.com/profile/05450098864604175135noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-30469628685699574432017-02-25T17:05:51.251-08:002017-02-25T17:05:51.251-08:00Hey Tahmid,
Its too awesome explanation for a ama...Hey Tahmid,<br /><br />Its too awesome explanation for a amateur like me. I am currently working on the zcd feature of p12f1612, we can reduce the external components and the efforts to detect zc with the help of this. The understanding of the concept was very essential since I was unable to figure out the approach. Thanks buddy this was really helpful.<br />Will post the code shortly once I am done.Anonymoushttps://www.blogger.com/profile/01140915541524314661noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-64552073221523371432017-02-25T11:34:04.761-08:002017-02-25T11:34:04.761-08:00can you help to make same code for pic12f1612?can you help to make same code for pic12f1612?Anonymoushttps://www.blogger.com/profile/05421837131686294809noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-87251180155678612222017-01-21T17:28:12.665-08:002017-01-21T17:28:12.665-08:00I have something similar for my project but I have...I have something similar for my project but I have some troubles trying to use 2 interrupts to detect 2 zero crossing signals at the ports RB0,RB1 (PIC18F4550) from a 2phase source. maybe you can helpe. thanks<br /><br />here is my code in MikroBasic<br /><br />program cross<br /><br />dim period as byte<br />dim alpha as byte<br />dim i, j as byte<br />'const angles as byte[6]=(10,45,90,120,150,170)' 180 min voltage 0 max voltage<br />sub procedure interrupt<br />period=(alpha*8.33)/180<br /> if (INTCON.INT0IF=1) then<br /> Vdelay_ms(period) 'shoot positive cycle<br /> for j=0 to 19<br /> portd.7=1<br /> delay_us(5)<br /> portd.7=0<br /> delay_us(5)<br /> next j<br /> Vdelay_ms(8.33) 'shoot negative cycle<br /> for j=0 to 19<br /> portd.7=1<br /> delay_us(5)<br /> portd.7=0<br /> delay_us(5)<br /> next j<br /> INTCON.INT0IF=0 'clean external interrupts<br /> else<br /> if (INTCON3.INT1IF=1) then<br /> Vdelay_ms(period) 'shoot positive cycle<br /> for j=0 to 19<br /> portd.6=1<br /> delay_us(5)<br /> portd.6=0<br /> delay_us(5)<br /> next j<br /> Vdelay_ms(8.33) 'shoot negative cycle<br /> for j=0 to 19<br /> portd.6=1<br /> delay_us(5)<br /> portd.6=0<br /> delay_us(5)<br /> next j<br /> INTCON3.INT1IF=0 'clean external interrupts<br /> end if<br /> end if<br /><br />end sub<br />main:<br />ADCON0.ADON=0<br />ADCON1=0X0F<br />trisd.7=0 'alpha output phase 1<br />trisd.6=0 'alpha output phase 2<br />trisb.0=1 'zero crossing phase 1<br />trisb.1=1 ''zero crossing phase 2<br /><br />portb=0<br />portd=0<br /><br />INTCON.GIE=1 'Enable global interrupts<br />INTCON.INT0IE=1 'Enable external interrupts RB0<br />INTCON.INT0IF=0<br />INTCON2.INTEDG0=0 'Interrupt on falling edge RB0<br />INTCON3.INT1IE=1 'Enable external interrupts RB1<br />INTCON3.INT1IF=0<br />INTCON2.INTEDG1=0 'Interrupt on falling edge RB1<br />while(1)<br />alpha=140 'Shooting angle<br />wend<br />end.Anonymoushttps://www.blogger.com/profile/11932241076510999291noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-2107351685899845692017-01-02T04:39:11.244-08:002017-01-02T04:39:11.244-08:00I tried to replace the 4N33 optocoupler by a 4N25 ...I tried to replace the 4N33 optocoupler by a 4N25 one and It's working fine now<br /><br />Anonymoushttps://www.blogger.com/profile/16357667276293665518noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-67119151571552796712016-12-28T22:58:23.076-08:002016-12-28T22:58:23.076-08:00Need HELP
I used the 4N33 optocoupler and the resi...Need HELP<br />I used the 4N33 optocoupler and the resistors R1 & R2 of 23k (each of them are two 47k 1/2 Watt mounted in parallel). Proteus simulation shows everything seems to work fine exactely like what you did but after having made the PCB, there is no zero crossing pulse on the output of the optocoupler.<br /><br />I've checked everything (circuit, components, program, ...) several times and I found that everything is OK. <br />Do you have any idea of what could be wrong that I probably missed?<br /><br />Best regards Anonymoushttps://www.blogger.com/profile/16357667276293665518noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-77558016065231028072016-10-30T21:20:24.655-07:002016-10-30T21:20:24.655-07:00GOOd work sirGOOd work sirAnonymoushttps://www.blogger.com/profile/12393144676422005409noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-15264566984224667332016-09-01T05:09:05.423-07:002016-09-01T05:09:05.423-07:00sir may i know what simulation software you use on...sir may i know what simulation software you use on this project, can you simulate pic program on this software?<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-89740199514865405202016-05-31T10:04:13.651-07:002016-05-31T10:04:13.651-07:00I built a simiar circuit using AVR micro,4n25,MOC3...I built a simiar circuit using AVR micro,4n25,MOC3021,BTA16 and the fan speed is controlled in 5 different steps(namely-0,1,2,3,4).In 0,the micro is switching off the MOC3021 so the output is 0.Also in '4',the output of the micro is continuously giving '1',so that the MOC3021 stays on and the fan rotates in full speed.The speed control is done in 1,2 & 3.The speed control works perfectly on pure sine wave AC.But whenever electricity goes off and Inverter power takes place,the speed control malfunctions(Either the fan stops or it generates great hum and rotates very slowly).I saw with a DSO that the inverter is giving square wave output.My question is,is this normal for the circuit to malfunction in square wave(zero cross is happening in square wave also so why is it malfunctioning??)or I am missing something??There is also external snubber attached using 39R and .01uF.Any help is appreciated....Please reply soon.Anonymoushttps://www.blogger.com/profile/17970057827688605845noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-40719708275966980802016-04-20T23:11:18.261-07:002016-04-20T23:11:18.261-07:00 reply me by email :mohankrishnaejjagiri@gmail.com... reply me by email :mohankrishnaejjagiri@gmail.com<br />Anonymoushttps://www.blogger.com/profile/08928640083943750385noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-32074526590533138742016-04-01T14:02:51.814-07:002016-04-01T14:02:51.814-07:00as there is a problem with this source code for do...as there is a problem with this source code for downloading it.there fore please help me for providing me the source code with mplab software version.<br />thanksAnonymoushttps://www.blogger.com/profile/03199188879159945425noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-86868151611285107052016-04-01T14:00:21.936-07:002016-04-01T14:00:21.936-07:00can any one share the source file of this?can any one share the source file of this?Anonymoushttps://www.blogger.com/profile/03199188879159945425noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-68657467597436669112016-03-05T07:41:02.730-08:002016-03-05T07:41:02.730-08:00hi tahmid
i want to use zero crossing detector for...hi tahmid<br />i want to use zero crossing detector for triggering scr. i am using potentiometer adc but i didn't succeed.please communicate with me.Anonymoushttps://www.blogger.com/profile/14917433229951622504noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-46142147915309131692015-12-25T08:52:05.130-08:002015-12-25T08:52:05.130-08:00Tahmid brother please help me,i wanted take projec...Tahmid brother please help me,i wanted take project on your inverter ckt in my final year project. I am worked around your blog over one month. but i did n't find out the schematic circuit diagram diagram. so please kind to the link (or) file to gmail account named sairampaidissetty@gmail.com. or at least reply me as soon as possible. i am witting for replyAnonymoushttps://www.blogger.com/profile/16852256856600144818noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-74688534146832202322015-12-21T00:23:49.960-08:002015-12-21T00:23:49.960-08:00Hi Tahmid
i would like to upload the source file b...Hi Tahmid<br />i would like to upload the source file but i cant.<br />Samrat's Bloghttps://www.blogger.com/profile/05067949752416857915noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-85745996806745326252015-12-09T01:44:24.076-08:002015-12-09T01:44:24.076-08:00Hi Tahmid,
I found your blog very useful for my p...Hi Tahmid,<br /><br />I found your blog very useful for my project. I used the zero crosspoint to fire the triac to drive an ac induction motor. WE are 60 Hz which means we have 60 cylces per second. My concern is I want to fire the triac on for the first 4cyle and then off for the next 1cyle then On again for the next 4cyles and off for the next one cyle ......and continue this process. which means Im going to chop that 60Hz (60 cyle). how are we going to do that? because unlike your program above its output is choping every cycle. this on and off must be done during the Zero crossing to avoid a noise in the power line, that's why using a delay is not applicable because of the timing of the ON and Off. ON and off must be done during zero crossing.kennethnoreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-50435372582148631892015-10-01T05:59:39.971-07:002015-10-01T05:59:39.971-07:00Hi Tehmid
I tried the circuit as you have shown u...Hi Tehmid<br /><br />I tried the circuit as you have shown using 8051 controller and triggring BTA12 using moc3021 and speed is also getting reduced. But I am facing one problem. My fan is flickering (giving jerks). I tried a lot my changing the time of triggering and duration between triggering and zcd but unable to solve this problem. Please suggest me what to do ??Anonymoushttps://www.blogger.com/profile/04634321647162721605noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-84536404872478774172015-08-25T04:37:53.753-07:002015-08-25T04:37:53.753-07:00Hi Tamid Nice post can u pls send ur mail id to my...Hi Tamid Nice post can u pls send ur mail id to my mail id samathasan1@gmail.com currently i am working on ZCD .Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-76749929575988946802015-07-31T09:13:40.346-07:002015-07-31T09:13:40.346-07:00How can the same be done using 18F4550? What will ...How can the same be done using 18F4550? What will be the required changes? My project concerns with the triggering of MOSFETs.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-26073498117287824212015-06-30T11:25:21.721-07:002015-06-30T11:25:21.721-07:00Hi Tahmid
Thanks for your reply. Can you also sug...Hi Tahmid<br /><br />Thanks for your reply. Can you also suggest me the values of R1 & R2 ?? Actually I am a mechanical Engg. and don't know much about electronics. <br /><br />Thanks & Regards<br />RahulAnonymoushttps://www.blogger.com/profile/04634321647162721605noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-44388243047685398292015-06-27T13:06:03.153-07:002015-06-27T13:06:03.153-07:00A standard optocoupler like the 4N35 should be goo...A standard optocoupler like the 4N35 should be good. When choosing an optocoupler consider the effect of the CTR.Tahmidhttps://www.blogger.com/profile/09117804893438710050noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-84793493066074057752015-06-27T05:48:53.118-07:002015-06-27T05:48:53.118-07:00Hi tehmid
Brother can you please tell me which op...Hi tehmid<br /><br />Brother can you please tell me which optocoupler should I use ??<br /><br />Regards<br />Rahul<br />rahulahuja.eng @gmail.comAnonymoushttps://www.blogger.com/profile/04634321647162721605noreply@blogger.com