// API callback
rpthumbnt({"version":"1.0","encoding":"UTF-8","feed":{"xmlns":"http://www.w3.org/2005/Atom","xmlns$openSearch":"http://a9.com/-/spec/opensearchrss/1.0/","xmlns$blogger":"http://schemas.google.com/blogger/2008","xmlns$georss":"http://www.georss.org/georss","xmlns$gd":"http://schemas.google.com/g/2005","xmlns$thr":"http://purl.org/syndication/thread/1.0","id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472"},"updated":{"$t":"2024-07-04T14:42:20.019+05:30"},"category":[{"term":"PIC"},{"term":"16F"},{"term":"Audio"},{"term":"Basic"},{"term":"SSD"},{"term":"Indicator"},{"term":"Clock"},{"term":"LED"},{"term":"LCD"},{"term":"I2C"},{"term":"18F"},{"term":"Counter"},{"term":"Sensor"},{"term":"USB"},{"term":"12F"},{"term":"Matrix"},{"term":"Tools"},{"term":"Apps"},{"term":"DS1307"},{"term":"Programmer"},{"term":"Timer"},{"term":"Tuner"},{"term":"Uart"},{"term":"LDR"},{"term":"Remote"},{"term":"SPI"},{"term":"Security"},{"term":"DS1302"},{"term":"DS323x"},{"term":"Decoder"},{"term":"Logic"},{"term":"PCF8583"}],"title":{"type":"text","$t":"Scorpionz - Electronic Circuits and Microcontroller Projects"},"subtitle":{"type":"html","$t":""},"link":[{"rel":"http://schemas.google.com/g/2005#feed","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/posts\/default"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default?alt=json-in-script\u0026orderby=published"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/"},{"rel":"hub","href":"http://pubsubhubbub.appspot.com/"},{"rel":"next","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default?alt=json-in-script\u0026start-index=26\u0026max-results=25\u0026orderby=published"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/04276791138418315268"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"28","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhOi2xKRvoV6gXKWi71KMKmEIRnpUCIKqooPVvYUWrT3XVz-dq56xLd_XdqhlDm93ymdLdRr_Y1tlZVnEiI63IqdHSIir_OVOWfXUvlAOQYI6s6Q_0RjB2Q1bTb0y2T_g\/s113\/19_scorpionsecondary.jpg"}}],"generator":{"version":"7.00","uri":"http://www.blogger.com","$t":"Blogger"},"openSearch$totalResults":{"$t":"51"},"openSearch$startIndex":{"$t":"1"},"openSearch$itemsPerPage":{"$t":"25"},"entry":[{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-4305931222798994858"},"published":{"$t":"2020-11-01T14:05:00.221+05:30"},"updated":{"$t":"2022-01-09T19:27:31.657+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"16F"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Audio"},{"scheme":"http://www.blogger.com/atom/ns#","term":"I2C"},{"scheme":"http://www.blogger.com/atom/ns#","term":"PIC"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Tuner"},{"scheme":"http://www.blogger.com/atom/ns#","term":"USB"}],"title":{"type":"text","$t":"AN7223 LM7001 PLL FM Stereo Tuner, JQ8400 USB MP3, Bluetooth Audio Player - 16F690"},"content":{"type":"html","$t":"\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Ctbody\u003E\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEh3LigyGY9NGCqalQV1gtgbhcYmZFqdf1tlBKPLaKf1NhE5YNEEJ9DUipuZdSFC1Ir19RC549E9OrVjzu5EjvmYjk2ax8HD3OIvpsKxuhJQFta1HTPwEHe9Cq0amsQLk-AbkP2xzqmVHcKc\/s403\/usb_fm.jpg\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"FM USB MP3 Player\" border=\"0\" data-original-height=\"236\" data-original-width=\"403\" height=\"187\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEh3LigyGY9NGCqalQV1gtgbhcYmZFqdf1tlBKPLaKf1NhE5YNEEJ9DUipuZdSFC1Ir19RC549E9OrVjzu5EjvmYjk2ax8HD3OIvpsKxuhJQFta1HTPwEHe9Cq0amsQLk-AbkP2xzqmVHcKc\/w320-h187\/usb_fm.jpg\" title=\"FM USB MP3 Player\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EAudio Player\u003Cbr \/\u003E\u003C\/td\u003E\u003C\/tr\u003E\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\nThis is my new project, 3 in 1 audio player that design for my amplifier.  It built in FM radio, USB player and Bluetooth module. Also include a simple mixer with op-amp. \n\u003Cbr \/\u003E\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Ctbody\u003E\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjtdqnOb4jypEz-UoG5V5kTVZ07Y0dd07Dg-dUmz1FIAq1fVKmip6epG-tHPwHFDPU2yU0I-uD14M_sApSo-sRhFLmQgmDoSJ4_3yaoIKVgMAhfB01lwawlHMpPzop3wMWesYdB2meF7FF8\/s1800\/Bottom+PCB%257E1.jpg\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Bottom PCB\" border=\"0\" data-original-height=\"1800\" data-original-width=\"1350\" height=\"320\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjtdqnOb4jypEz-UoG5V5kTVZ07Y0dd07Dg-dUmz1FIAq1fVKmip6epG-tHPwHFDPU2yU0I-uD14M_sApSo-sRhFLmQgmDoSJ4_3yaoIKVgMAhfB01lwawlHMpPzop3wMWesYdB2meF7FF8\/w240-h320\/Bottom+PCB%257E1.jpg\" title=\"Bottom PCB\" width=\"240\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EBottom PCB\u003C\/td\u003E\u003C\/tr\u003E\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Ctbody\u003E\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEg9BX5lDpV6U8Gt8Tc2r7VNhtKDtOox40h6hunX_v40YS_ooyAQXj21OsMnvp7KncQhyphenhyphenKrsoYlYsYq_z2F3MiYmgEDwm6IuzohLnwi9wUVAsLrxI7SbgxfpleRbKMrUfZZpyNqaKm3RErPv\/s2048\/Top+PCB%257E1.jpg\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Top PCB\" border=\"0\" data-original-height=\"1536\" data-original-width=\"2048\" height=\"240\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEg9BX5lDpV6U8Gt8Tc2r7VNhtKDtOox40h6hunX_v40YS_ooyAQXj21OsMnvp7KncQhyphenhyphenKrsoYlYsYq_z2F3MiYmgEDwm6IuzohLnwi9wUVAsLrxI7SbgxfpleRbKMrUfZZpyNqaKm3RErPv\/w320-h240\/Top+PCB%257E1.jpg\" title=\"Top PCB\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ETop PCB\u003C\/td\u003E\u003C\/tr\u003E\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Ctbody\u003E\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiw01FFvkRF5xGLRnHb9W5DK_cp5wuc51kgzfZA3U86_uYl3UieW4latJ4bN03qFqSSZlC5hCxhvqJpk-w0QpVXZZtzUJDc1rGmIHkgFBb8_Y24h2aJmRWgf5YK_i2JxeWZos3Ymb7ZL2ce\/s2048\/Side+View.jpg\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Side View\" border=\"0\" data-original-height=\"1536\" data-original-width=\"2048\" height=\"240\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiw01FFvkRF5xGLRnHb9W5DK_cp5wuc51kgzfZA3U86_uYl3UieW4latJ4bN03qFqSSZlC5hCxhvqJpk-w0QpVXZZtzUJDc1rGmIHkgFBb8_Y24h2aJmRWgf5YK_i2JxeWZos3Ymb7ZL2ce\/w320-h240\/Side+View.jpg\" title=\"Side View\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ESide View\u003C\/td\u003E\u003C\/tr\u003E\u003C\/tbody\u003E\u003C\/table\u003E\u003Cbr \/\u003E\nFor tuner section I used AN7223 and TA7343 and for PLL here I used LM7001 low cost IC. JQ8400 used for USB function and it controlled by a PIC16F690 microcontroller.  U can use any Bluetooth audio module for this. I used MH-M18 Bluetooth module for this. \n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgpg0jnB7J9xrR9RSB5ZIcAgj-bZwBtpSs60BQ9ghMAhIcwKVzDzhEc-DY6nMwHzhyFMDbIbXzUKlvz9ElAsPBcIOzK9s_WaZNVE-G9-wker6r5819WuH4ic4q_jNk-TbZaNAHhKlUXoB9S\/s781\/jq8400+module+pin.jpg\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"JQ8400 Module\" border=\"0\" data-original-height=\"646\" data-original-width=\"781\" height=\"264\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgpg0jnB7J9xrR9RSB5ZIcAgj-bZwBtpSs60BQ9ghMAhIcwKVzDzhEc-DY6nMwHzhyFMDbIbXzUKlvz9ElAsPBcIOzK9s_WaZNVE-G9-wker6r5819WuH4ic4q_jNk-TbZaNAHhKlUXoB9S\/w320-h264\/jq8400+module+pin.jpg\" title=\"JQ8400 Module\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EJQ8400 Module\u003Cbr \/\u003E\u003C\/td\u003E\u003C\/tr\u003E\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEh57wOj4cHBh8JSKT4MAyLJbdZ7-gNKIkT3oEYVSmWTY841rycIDP-3kPq1KZRJ0sddUpwIHegHePQ24tP7ahTylAp4sKWsr5Fv2J8Q8HE-IiAVyeeMMisXwj9Fkf7WtSrt_XGomKZAHGh-\/s617\/-2016744598-1167099602.jpg\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Bluetooth Module\" border=\"0\" data-original-height=\"472\" data-original-width=\"617\" height=\"245\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEh57wOj4cHBh8JSKT4MAyLJbdZ7-gNKIkT3oEYVSmWTY841rycIDP-3kPq1KZRJ0sddUpwIHegHePQ24tP7ahTylAp4sKWsr5Fv2J8Q8HE-IiAVyeeMMisXwj9Fkf7WtSrt_XGomKZAHGh-\/w320-h245\/-2016744598-1167099602.jpg\" title=\"Bluetooth Module\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EBluetooth Module\u003C\/td\u003E\u003C\/tr\u003E\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nPlease read my previous post for detailed information about \u003Ca href=\"https:\/\/scopionz.blogspot.com\/2015\/06\/pll-synthesized-fm-receiver-pic16f88.html\" rel=\"nofollow\" target=\"_blank\"\u003EPLL FM tuner\u003C\/a\u003E and \u003Ca href=\"https:\/\/scopionz.blogspot.com\/2020\/08\/jq8400-mp3-voice-module-microe-c-code.html\" rel=\"nofollow\" target=\"_blank\"\u003Ejq8400\u003C\/a\u003E. I wrote a small sample program for control this unit and u can modify it according to your need. Don’t use relay. Just connect I2C directly to R37 \u0026amp; R39.\n\u003Cbr \/\u003E\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Ctbody\u003E\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiGfPPHu3DeBZFHXMMp7mV2Ke2aaEoe9SFrpP3yraZNEhpr1dcY5jEcOqfxms5Vnw_HuKQ3Shu45-we5nNg9n3BJi2RcpnXl7SL9shCli6AP3E7iIBB-qROIldfm4W9FRnGMggfO-xf1IOe\/s1890\/audio+player.jpg\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Control Circuit\" border=\"0\" data-original-height=\"1482\" data-original-width=\"1890\" height=\"251\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiGfPPHu3DeBZFHXMMp7mV2Ke2aaEoe9SFrpP3yraZNEhpr1dcY5jEcOqfxms5Vnw_HuKQ3Shu45-we5nNg9n3BJi2RcpnXl7SL9shCli6AP3E7iIBB-qROIldfm4W9FRnGMggfO-xf1IOe\/w320-h251\/audio+player.jpg\" title=\"Control Circuit\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EControl Circuit\u003C\/td\u003E\u003C\/tr\u003E\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Ch4 style=\"text-align: left;\"\u003E\n\u003Cu\u003EUsage of usb command\u003C\/u\u003E\n\u003C\/h4\u003E\n\u003Cmyquote\u003E\/\/ --------- commands -----------------\nWrite_Df(0x06,0,0); \/\/ mp3 next\nWrite_Df(0x05,0,0); \/\/ mp3 prev\nWrite_Df(0x02,0,0); \/\/ mp3 play\nWrite_Df(0x03,0,0); \/\/ mp3 pause\nWrite_Df(0x04,0,0); \/\/ mp3 stop\nWrite_Df(0x21,0,0); \/\/ mp3 random\nWrite_Df(0xA3,0,5); \/\/ mp3 ff 5s\nWrite_Df(0xA2,0,5); \/\/ mp3 fr 5s\nwrite_Df(0x87,Cur_Tr\u0026gt;\u0026gt;8,Cur_Tr); \/\/ mp3 track play (max 9999)\u003C\/myquote\u003E\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nMikro c source code for Control circuit, source code for PLL FM, Hex file for jq8400 controller and PCB file and circuit are in download section. Hope you like it.\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: left;\"\u003E\u003C\/div\u003E\u003Ch3 class=\"trigger\"\u003E\u003Cimg src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgxDYxsPjCPOIsq77ilBw8lKRDWctzAbaIPazTlYLMwhDgTgtbwcGhkO5JDarvYd2Ra839oMtgLr1arP5yMVsKSeUqWhvRQ5Ddk4AVdzL98jzXYipeCxGQum_JwHIoKeey_ZiC25JJgZEE\/s1600\/DOWNLOAD.png\" \/\u003E\u003C\/h3\u003E\u003Cdiv class=\"toggle_container\"\u003E\u003Cdiv class=\"block\"\u003E\n\u003Cblockquote class=\"tr_bq\"\u003E\n\u003Cdiv style=\"text-align: center;\"\u003E\u003Ca href=\"http:\/\/tiny.cc\/PLL_FM_demo\" target=\"_blank\"\u003E\u003Cspan style=\"font-size: large;\"\u003EPLL FM Code\u003C\/span\u003E\u003C\/a\u003E\u003C\/div\u003E\n\u003Cdiv style=\"text-align: center;\"\u003E\u003Ca href=\"http:\/\/tiny.cc\/Audio_sample\" target=\"_blank\"\u003E\u003Cspan style=\"font-size: large;\"\u003EController Code\u003C\/span\u003E\u003C\/a\u003E\u003C\/div\u003E\n\u003Cdiv style=\"text-align: center;\"\u003E\u003Ca href=\"http:\/\/tiny.cc\/amp_df_hex\" target=\"_blank\"\u003E\u003Cspan style=\"font-size: large;\"\u003EJQ8400 Controller HEX\u003C\/span\u003E\u003C\/a\u003E\u003C\/div\u003E\n\u003Cdiv style=\"text-align: center;\"\u003E\u003Ca href=\"http:\/\/tiny.cc\/audio_ply_pcb\" target=\"_blank\"\u003E\u003Cspan style=\"font-size: large;\"\u003EPCB And Sch File\u003C\/span\u003E\u003C\/a\u003E\u003C\/div\u003E\n\u003C\/blockquote\u003E\u003C\/div\u003E\u003C\/div\u003E\u003Cbr \/\u003E"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/4305931222798994858\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2020\/11\/an7223-lm7001-pll-fm-stereo-tuner.html#comment-form","title":"0 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/4305931222798994858"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/4305931222798994858"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2020\/11\/an7223-lm7001-pll-fm-stereo-tuner.html","title":"AN7223 LM7001 PLL FM Stereo Tuner, JQ8400 USB MP3, Bluetooth Audio Player - 16F690"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/16788868236927971222"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"30","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjd4FUk8kZ81qA5RH-8TE_fE-lTn418FZvTVTpV4dMcuL2J5XFvkMZI3ZRhvLp-6_wGzPKh7UWWA09Xjk3NLUeJ31fOe7wglNXt0CZ1qvAr95_wj5WzoIVV7K7-u5K2EbA\/s220\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEh3LigyGY9NGCqalQV1gtgbhcYmZFqdf1tlBKPLaKf1NhE5YNEEJ9DUipuZdSFC1Ir19RC549E9OrVjzu5EjvmYjk2ax8HD3OIvpsKxuhJQFta1HTPwEHe9Cq0amsQLk-AbkP2xzqmVHcKc\/s72-w320-h187-c\/usb_fm.jpg","height":"72","width":"72"},"thr$total":{"$t":"0"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-32110019653302513"},"published":{"$t":"2020-08-06T20:45:00.003+05:30"},"updated":{"$t":"2020-11-01T14:09:32.034+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"Audio"},{"scheme":"http://www.blogger.com/atom/ns#","term":"PIC"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Uart"},{"scheme":"http://www.blogger.com/atom/ns#","term":"USB"}],"title":{"type":"text","$t":"JQ8400 MP3 Voice Module Microe C code"},"content":{"type":"html","$t":"Previously I wrote a post about well-known voice module of \u003Ca href=\"https:\/\/scopionz.blogspot.com\/2019\/02\/uart-controlled-df-player-mikroc-code.html\" rel=\"nofollow\" target=\"_blank\"\u003EDFPlayer Mini\u003C\/a\u003E. Today I would like to write a post of advance chip, JQ8400. The main advantages of this chip are;\n\u003Cbr \/\u003E\u003Cul style=\"text-align: left;\"\u003E\u003Cli\u003EInquiry of the file name\n\u003C\/li\u003E\u003Cli\u003EInquiry of duration of the current audio\u003C\/li\u003E\u003Cli\u003EInquiry of playback duration \u003C\/li\u003E\u003Cli\u003EFast backward\n\u003C\/li\u003E\u003Cli\u003EFast forward, etc.\n\u003C\/li\u003E\u003C\/ul\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Ctbody\u003E\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEg5uVA1h12iVI3ycCUH9LsLsCM8Q-ARne2rS3Zz5yjbIjXQf26A1zvyLKkZ0SDpi2bcVjnXqpZxbNf83It8fDweD5z9KPQ_54srqGbfjbCLO953lLFf4wUI2pbYDl1zS8_oreTSHhwj4Qos\/s690\/jq8400+module.jpg\" style=\"display: block; margin-left: auto; margin-right: auto; padding: 1em 0px;\"\u003E\u003Cimg alt=\"jq8400 module\" border=\"0\" data-original-height=\"470\" data-original-width=\"690\" height=\"178\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEg5uVA1h12iVI3ycCUH9LsLsCM8Q-ARne2rS3Zz5yjbIjXQf26A1zvyLKkZ0SDpi2bcVjnXqpZxbNf83It8fDweD5z9KPQ_54srqGbfjbCLO953lLFf4wUI2pbYDl1zS8_oreTSHhwj4Qos\/w262-h178\/jq8400+module.jpg\" title=\"Jq8400 module\" width=\"262\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EJq8400 Module\u003Cbr \/\u003E\u003C\/td\u003E\u003C\/tr\u003E\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\nJQ8400 module is a SOC solution that combines a 16bit MCU with an ADSP specialized in audio decoding. By using hardware decoding method, it ensures system stability, quality of sound, and small footprint matching requirements of embedded applications. For the flexibility of R\u0026amp;D, control commands can be sent via one-line mode or RS232 serial communication.\u003Cbr \/\u003E\nIt adopts full duplex serial communication protocol: Baud rate 9600, 8-bit data, no parity and 1 stop bit.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ch4 style=\"text-align: left;\"\u003E\n\u003Cu\u003EMessage Format\u003C\/u\u003E\n\u003C\/h4\u003E\nStarting Code + Command Code + Data Length + Data 1 – Data n + Checksum\n\u003Cbr \/\u003E\n\u003Cul style=\"text-align: left;\"\u003E\u003Cli\u003E\nStarting Code:  fixed as “AA” (in hex) \n\u003C\/li\u003E\u003Cli\u003ECommand Code:  01 – 26 (in hex) \n\u003C\/li\u003E\u003Cli\u003EData Length:  respective data bytes in commands; length=1 stands for command only, no data.\u003C\/li\u003E\u003Cli\u003EChecksum:  The low byte of the sum of all the bytes before the checksum byte.\n\u003C\/li\u003E\u003Cli\u003EData format: high 8-bit first, low 8-bit second.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003C\/li\u003E\u003C\/ul\u003E\u003Ch4 style=\"text-align: left;\"\u003E\n\u003Cu\u003ECommunication Mechanism\u003C\/u\u003E\u003C\/h4\u003E\nDefault power-on state is idle and listening for commands from MCU as a guest\nThe module will not initiate communication and a MCU must take initiative.\nThe TTL level of the serial port is 3.3V. Use a 1K ohm resistor if connecting with a 5V MCU.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Ctbody\u003E\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiMqndA_9B1jDou2cl4gfngPCO6DwcCeaq87zkcyq6HY5WLdT2hL3M7qOSNZGjOmxHS4vfGHQKD0-K6kpfAnvXXALnuqBl4HcQhZIxHTe00MbrOLbjVIv_mU_BhaHh010FMDol1BigS0ZQd\/s781\/jq8400+module+pin.jpg\" style=\"display: block; margin-left: auto; margin-right: auto; padding: 1em 0px;\"\u003E\u003Cimg alt=\"jq8400 module pin\" border=\"0\" data-original-height=\"646\" data-original-width=\"781\" height=\"270\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiMqndA_9B1jDou2cl4gfngPCO6DwcCeaq87zkcyq6HY5WLdT2hL3M7qOSNZGjOmxHS4vfGHQKD0-K6kpfAnvXXALnuqBl4HcQhZIxHTe00MbrOLbjVIv_mU_BhaHh010FMDol1BigS0ZQd\/w328-h270\/jq8400+module+pin.jpg\" title=\"jq8400 module pin\" width=\"328\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EJq8400 Module Pin Details\u003Cbr \/\u003E\u003C\/td\u003E\u003C\/tr\u003E\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Ch4 style=\"text-align: left;\"\u003E\n\u003Cu\u003ECode\u003C\/u\u003E\u003C\/h4\u003E\n\u003Cmyquote\u003E\nunsigned short df_wr[] = {0xAA,0,0,0,0,0};\n\u003Cbr \/\u003E\nvoid write_jq_cmd(char cmd, char data_h, char data_l, char len) \/\/jq cmd data\n{\n\u0026nbsp; char m;\n\u003Cbr \/\u003E\n\u0026nbsp; Delay_ms(200);\n\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; df_wr[1]= cmd;\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; df_wr[2]= len;\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; df_wr[3]= data_h;\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; df_wr[4]= data_l;\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; df_wr[5]= data_h + data_l + len + df_wr[1] + 0xAA;\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;for (m=0; m\u0026lt;6; m++) {\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; Delay_ms(1);\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; if(len==0 \u0026amp;\u0026amp; m==3) m=5; \/\/(AA 02 00 AC) skip data_h data_l\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; if(len==1 \u0026amp;\u0026amp; m==3) m=4; \/\/(AA 18 01 03 C6) skip data_h\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; UART1_Write(df_wr[m]);\u0026nbsp; \/\/aa, cmd, len, dh, dl, sm\n\u0026nbsp;\u0026nbsp; }\n\u0026nbsp;\u0026nbsp; Delay_ms(10);\n}\u003C\/myquote\u003E\n\u003Cbr \/\u003E\n\u003Ch4 style=\"text-align: left;\"\u003E\n\u003Cu\u003EUsage\u003C\/u\u003E\u003C\/h4\u003E\n\u003Cmyquote\u003E\nwrite_jq_cmd(0x02, 0,0, 0); \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\/\/Play\nwrite_jq_cmd(0x03, 0,0, 0); \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\/\/Pause\nwrite_jq_cmd(0x13, 0,27, 1); \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\/\/Set volume to 27\nwrite_jq_cmd(0x07, 0x00,0xF4, 2); \/\/Play 244th track\nwrite_jq_cmd(0x07, 0x01,0xF4, 2); \/\/Play 500th track\nwrite_jq_cmd(0x23, 0x00,0x0A, 2); \/\/FF 10 seconds\u003C\/myquote\u003E\n\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: left;\"\u003E\u003C\/div\u003E\u003Ch3 class=\"trigger\"\u003E\u003Cimg src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgxDYxsPjCPOIsq77ilBw8lKRDWctzAbaIPazTlYLMwhDgTgtbwcGhkO5JDarvYd2Ra839oMtgLr1arP5yMVsKSeUqWhvRQ5Ddk4AVdzL98jzXYipeCxGQum_JwHIoKeey_ZiC25JJgZEE\/s1600\/DOWNLOAD.png\" \/\u003E\u003C\/h3\u003E\u003Cdiv class=\"toggle_container\"\u003E\u003Cdiv class=\"block\"\u003E\u003Cblockquote class=\"tr_bq\"\u003E\u003Cdiv style=\"text-align: center;\"\u003E\u003Ca href=\"http:\/\/tiny.cc\/jq8400_data\" target=\"_blank\"\u003E\u003Cspan style=\"font-size: large;\"\u003EDatasheet\u003C\/span\u003E\u003C\/a\u003E\u003C\/div\u003E\u003C\/blockquote\u003E\u003C\/div\u003E\u003C\/div\u003E\u003Cbr \/\u003E"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/32110019653302513\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2020\/08\/jq8400-mp3-voice-module-microe-c-code.html#comment-form","title":"1 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/32110019653302513"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/32110019653302513"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2020\/08\/jq8400-mp3-voice-module-microe-c-code.html","title":"JQ8400 MP3 Voice Module Microe C code"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/16788868236927971222"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"30","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjd4FUk8kZ81qA5RH-8TE_fE-lTn418FZvTVTpV4dMcuL2J5XFvkMZI3ZRhvLp-6_wGzPKh7UWWA09Xjk3NLUeJ31fOe7wglNXt0CZ1qvAr95_wj5WzoIVV7K7-u5K2EbA\/s220\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEg5uVA1h12iVI3ycCUH9LsLsCM8Q-ARne2rS3Zz5yjbIjXQf26A1zvyLKkZ0SDpi2bcVjnXqpZxbNf83It8fDweD5z9KPQ_54srqGbfjbCLO953lLFf4wUI2pbYDl1zS8_oreTSHhwj4Qos\/s72-w262-h178-c\/jq8400+module.jpg","height":"72","width":"72"},"thr$total":{"$t":"1"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-169065397911560430"},"published":{"$t":"2020-05-05T20:36:00.000+05:30"},"updated":{"$t":"2020-05-05T20:47:20.527+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"18F"},{"scheme":"http://www.blogger.com/atom/ns#","term":"PIC"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Programmer"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Tools"},{"scheme":"http://www.blogger.com/atom/ns#","term":"USB"}],"title":{"type":"text","$t":"OProg - Open Source USB Programmer - 18F2550"},"content":{"type":"html","$t":"Recently I found a programmer from internet. This programmer is completely free and open source. It used few components and working well. I make some changes to it. You can find the original one from  \u003Ca href=\"http:\/\/openprog.altervista.org\/OP_eng.html\" target=\"_blank\"\u003Ehere\u003C\/a\u003E.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhT-oEYgaxWviiPoIa0R_IwdNY217s628MQpSPocMNDZzbStWL_aOS49APKmnJyyYPm1vntiYVdOL3I9B9t97JkgVcjPbn32yqc1USaI9J9wQcQIlyqNI-xE2oChXuShUVMM_MFXVi6cwRB\/s1600\/OPROG.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"OPROG Prototype\" border=\"0\" data-original-height=\"1133\" data-original-width=\"1600\" height=\"226\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhT-oEYgaxWviiPoIa0R_IwdNY217s628MQpSPocMNDZzbStWL_aOS49APKmnJyyYPm1vntiYVdOL3I9B9t97JkgVcjPbn32yqc1USaI9J9wQcQIlyqNI-xE2oChXuShUVMM_MFXVi6cwRB\/s320\/OPROG.jpg\" title=\"OPROG Prototype\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EPrototype\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\u003Cbr \/\u003E\nAdvantages of this programmer are;\u003Cbr \/\u003E\n\u003Cul\u003E\u003Cli\u003ECompletely free and Open Source (including firmware)\u003C\/li\u003E\n\u003Cli\u003EPrograms PIC, dsPIC, ATMEL, EEPROM (I2C, SPI, MicroWire, OneWire, UNIO) \u003C\/li\u003E\n\u003Cli\u003ECan work as ICD debugger\u003C\/li\u003E\n\u003Cli\u003EUSB 2.0 Full Speed interface\u003C\/li\u003E\n\u003Cli\u003ESelf-powered\u003C\/li\u003E\n\u003Cli\u003EDoesn't need drivers\u003C\/li\u003E\n\u003Cli\u003EHardware generated timings for maximum speed and reliability (writes an 18F2550 in 15s)\u003C\/li\u003E\n\u003Cli\u003EOpen source control programs for Linux and Windows\u003C\/li\u003E\n\u003C\/ul\u003E\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhZx6pxDSUyi7ophWlRjXlTjcz-LVnD9G2tABJzX6KZOBq0hrIPLqm_fGYe_FrEUcHOjXIvWrQtu2KxK-lvgMm4FHRsTxoj_spRp5CYeOA-gP_eWOKm4nh61BRXcLdXb0dd9zd-e_5JhaA-\/s1600\/OPROG+sch.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"OPROG diagram\" border=\"0\" data-original-height=\"1132\" data-original-width=\"1600\" height=\"226\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhZx6pxDSUyi7ophWlRjXlTjcz-LVnD9G2tABJzX6KZOBq0hrIPLqm_fGYe_FrEUcHOjXIvWrQtu2KxK-lvgMm4FHRsTxoj_spRp5CYeOA-gP_eWOKm4nh61BRXcLdXb0dd9zd-e_5JhaA-\/s320\/OPROG+sch.jpg\" title=\"OPROG schematic\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ESchematic\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\u003Cbr \/\u003E\nMain controller is PIC18F2550, and Supply directly get from PC USB port. HEX, PCB, Schematic and PC software can download from below. And  for latest updates and full description please follow the Open Programmer site.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: left;\"\u003E\u003C\/div\u003E\u003Ch3 class=\"trigger\"\u003E\u003Cimg src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgxDYxsPjCPOIsq77ilBw8lKRDWctzAbaIPazTlYLMwhDgTgtbwcGhkO5JDarvYd2Ra839oMtgLr1arP5yMVsKSeUqWhvRQ5Ddk4AVdzL98jzXYipeCxGQum_JwHIoKeey_ZiC25JJgZEE\/s1600\/DOWNLOAD.png\" \/\u003E\u003C\/h3\u003E\u003Cdiv class=\"toggle_container\"\u003E\u003Cdiv class=\"block\"\u003E\u003Cblockquote class=\"tr_bq\"\u003E\u003Cdiv style=\"text-align: center;\"\u003E\u003Ca href=\"http:\/\/tiny.cc\/open_prog\" target=\"_blank\"\u003E\u003Cspan style=\"font-size: large;\"\u003ESchematic, PCB, PC-App and Hex\u003C\/span\u003E\u003C\/a\u003E\u003C\/div\u003E\u003C\/blockquote\u003E\u003C\/div\u003E\u003C\/div\u003E\u003Cbr \/\u003E\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/169065397911560430\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2020\/05\/oprog-open-source-usb-programmer-18f2550.html#comment-form","title":"1 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/169065397911560430"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/169065397911560430"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2020\/05\/oprog-open-source-usb-programmer-18f2550.html","title":"OProg - Open Source USB Programmer - 18F2550"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/16788868236927971222"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"30","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjd4FUk8kZ81qA5RH-8TE_fE-lTn418FZvTVTpV4dMcuL2J5XFvkMZI3ZRhvLp-6_wGzPKh7UWWA09Xjk3NLUeJ31fOe7wglNXt0CZ1qvAr95_wj5WzoIVV7K7-u5K2EbA\/s220\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhT-oEYgaxWviiPoIa0R_IwdNY217s628MQpSPocMNDZzbStWL_aOS49APKmnJyyYPm1vntiYVdOL3I9B9t97JkgVcjPbn32yqc1USaI9J9wQcQIlyqNI-xE2oChXuShUVMM_MFXVi6cwRB\/s72-c\/OPROG.jpg","height":"72","width":"72"},"thr$total":{"$t":"1"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-6948529515935856864"},"published":{"$t":"2020-04-19T11:26:00.001+05:30"},"updated":{"$t":"2020-04-19T11:26:09.072+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"16F"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Audio"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Indicator"},{"scheme":"http://www.blogger.com/atom/ns#","term":"LED"},{"scheme":"http://www.blogger.com/atom/ns#","term":"PIC"}],"title":{"type":"text","$t":"7 Band Real Time Audio Spectrum Analyzer Circuit - 16F819 BA3834S"},"content":{"type":"html","$t":"\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/thumbs.gfycat.com\/DifficultAllAphid-small.gif\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"16F819 Audio Spectrum Analyzer\" border=\"0\" data-original-height=\"251\" data-original-width=\"335\" height=\"149\" src=\"https:\/\/thumbs.gfycat.com\/DifficultAllAphid-small.gif\" title=\"16F819 Audio Spectrum Analyzer\" width=\"200\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003E\u003Cspan style=\"font-size: xx-small; text-align: start;\"\u003E16F819 Audio Spectrum Analyzer\u003C\/span\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\u003Cbr \/\u003E\nThis is the new version of my previous \u003Ca href=\"https:\/\/scopionz.blogspot.com\/2014\/10\/real-time-audio-spectrum-analizer.html\" target=\"_blank\"\u003Espectrum analyzer\u003C\/a\u003E. Used PIC16F819 microcontroller and BA3834 Band-pass filter for spectrum analyzer. It has two versions, BA3834S and BA3834F. Here i used BA3834S. BA3834 are 7-band, band-pass filter ICs that use microprocessor time division to produce serial output for spectrum analyzer displays. To minimize the number of attached components required and enable compact and reliable designs, all of the capacitors for the filters are on the chip. So we can build spectrum analyzer easily\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhWH1qfio7ZYxnS7KfSde2xICOqiBVSN6Z0OEH2hYgRcSiqsAzPAQcZwtGdTwncSPH36J-3qKCHY_XtOlW6ndbGcztc4ZXIqOqj1FyXZndjKsWPbp10ZgXvz1EJ3z1iJOx8-vcu7R-3RI3-\/s1600\/16f819+analizer+circuit.JPG\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"16f819 analizer circuit\" border=\"0\" data-original-height=\"352\" data-original-width=\"766\" height=\"183\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhWH1qfio7ZYxnS7KfSde2xICOqiBVSN6Z0OEH2hYgRcSiqsAzPAQcZwtGdTwncSPH36J-3qKCHY_XtOlW6ndbGcztc4ZXIqOqj1FyXZndjKsWPbp10ZgXvz1EJ3z1iJOx8-vcu7R-3RI3-\/s400\/16f819+analizer+circuit.JPG\" title=\"16f819 analizer circuit\" width=\"400\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EAnalizer circuit\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\u003Cbr \/\u003E\nThis circuit included 11 modes (9 patterns, off and random) and it shows which pattern currently running at start-up (S1, S2, etc.). In off mode it shows S0 on display and S+ for random mode. The pattern mode saved to Eeprom to run at next power up. In random mode it changes its pattern in every 3.5 minutes.\u003Cbr \/\u003E\nPCB, Circuit, and hex available in below\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhbCcdd45akEKo7M6mQdepAcMDk7x18ew1k030kXenxYHy4QaJ8IjZTP3cv13cXf3EvoMymDbvKh9SEIAh8ik3lp6N7ylgSzGWHRpHCPrpzweogGa9QRswqEv1v3PPWK3eElZd7NqZ6bM50\/s1600\/16f819+analizer.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"16f819 analizer\" border=\"0\" data-original-height=\"472\" data-original-width=\"1026\" height=\"90\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhbCcdd45akEKo7M6mQdepAcMDk7x18ew1k030kXenxYHy4QaJ8IjZTP3cv13cXf3EvoMymDbvKh9SEIAh8ik3lp6N7ylgSzGWHRpHCPrpzweogGa9QRswqEv1v3PPWK3eElZd7NqZ6bM50\/s200\/16f819+analizer.jpg\" title=\"16f819 analizer\" width=\"200\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEh1jJad2aAx-S55incUDDQG8gI1-tfH525duT1YIMp2mpiib7cVRSUf94NP9YKzhPS19iU-_zB0BoOG0kpy0wr52dEmOxUEwXiRpJBU42wo3kaYJzd86MvU0tFVTqO8F5zIDCVgzIt_T3l_\/s1600\/16f819+analizer+pcb.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"16f819 analizer pcb\" border=\"0\" data-original-height=\"853\" data-original-width=\"1600\" height=\"105\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEh1jJad2aAx-S55incUDDQG8gI1-tfH525duT1YIMp2mpiib7cVRSUf94NP9YKzhPS19iU-_zB0BoOG0kpy0wr52dEmOxUEwXiRpJBU42wo3kaYJzd86MvU0tFVTqO8F5zIDCVgzIt_T3l_\/s200\/16f819+analizer+pcb.jpg\" title=\"16f819 analizer pcb\" width=\"200\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjp9GIJ9UYZ38bSdi21uLodqkpS3WxdDgrxiYJ17W7vJXfRwiSYhmu7WNIjnpW6KFEBnlRXbxm6aKwKny4nQiyaOMtLFM11biv6mrT6btvMzXHLVxDkxxhLR0Gt2HCWrSAbrdS5ikZicazo\/s1600\/16f819+analizer+pcb+b.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"16f819 analizer pcb\" border=\"0\" data-original-height=\"696\" data-original-width=\"1600\" height=\"85\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjp9GIJ9UYZ38bSdi21uLodqkpS3WxdDgrxiYJ17W7vJXfRwiSYhmu7WNIjnpW6KFEBnlRXbxm6aKwKny4nQiyaOMtLFM11biv6mrT6btvMzXHLVxDkxxhLR0Gt2HCWrSAbrdS5ikZicazo\/s200\/16f819+analizer+pcb+b.jpg\" title=\"16f819 analizer pcb\" width=\"200\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: center;\"\u003E\u003Ciframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https:\/\/www.blogger.com\/video.g?token=AD6v5dwGE-YcI9YU-dB9s6dwomKAvg7wteGOGa3Bd9OA7v6P2efWYZTfvAFhqFrKlxfnVtJkn_6BwFXmIpK_YHOtjQ' class='b-hbp-video b-uploaded' frameborder='0'\u003E\u003C\/iframe\u003E\u003C\/div\u003E\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: left;\"\u003E\u003C\/div\u003E\u003Ch3 class=\"trigger\"\u003E\u003Cimg src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgxDYxsPjCPOIsq77ilBw8lKRDWctzAbaIPazTlYLMwhDgTgtbwcGhkO5JDarvYd2Ra839oMtgLr1arP5yMVsKSeUqWhvRQ5Ddk4AVdzL98jzXYipeCxGQum_JwHIoKeey_ZiC25JJgZEE\/s1600\/DOWNLOAD.png\" \/\u003E\u003C\/h3\u003E\u003Cdiv class=\"toggle_container\"\u003E\u003Cdiv class=\"block\"\u003E\u003Cblockquote class=\"tr_bq\"\u003E\u003Cdiv style=\"text-align: center;\"\u003E\u003Ca href=\"http:\/\/tiny.cc\/16f819_anz\" target=\"_blank\"\u003E\u003Cspan style=\"font-size: large;\"\u003ESchematic, PCB and Hex\u003C\/span\u003E\u003C\/a\u003E\u003C\/div\u003E\u003C\/blockquote\u003E\u003C\/div\u003E\u003C\/div\u003E"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/6948529515935856864\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2020\/04\/7-band-real-time-audio-spectrum.html#comment-form","title":"1 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/6948529515935856864"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/6948529515935856864"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2020\/04\/7-band-real-time-audio-spectrum.html","title":"7 Band Real Time Audio Spectrum Analyzer Circuit - 16F819 BA3834S"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/16788868236927971222"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"30","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjd4FUk8kZ81qA5RH-8TE_fE-lTn418FZvTVTpV4dMcuL2J5XFvkMZI3ZRhvLp-6_wGzPKh7UWWA09Xjk3NLUeJ31fOe7wglNXt0CZ1qvAr95_wj5WzoIVV7K7-u5K2EbA\/s220\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhWH1qfio7ZYxnS7KfSde2xICOqiBVSN6Z0OEH2hYgRcSiqsAzPAQcZwtGdTwncSPH36J-3qKCHY_XtOlW6ndbGcztc4ZXIqOqj1FyXZndjKsWPbp10ZgXvz1EJ3z1iJOx8-vcu7R-3RI3-\/s72-c\/16f819+analizer+circuit.JPG","height":"72","width":"72"},"thr$total":{"$t":"1"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-5071799516182466562"},"published":{"$t":"2019-02-02T13:29:00.002+05:30"},"updated":{"$t":"2020-11-01T14:09:19.087+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"16F"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Audio"},{"scheme":"http://www.blogger.com/atom/ns#","term":"PIC"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Uart"},{"scheme":"http://www.blogger.com/atom/ns#","term":"USB"}],"title":{"type":"text","$t":"Uart Controlled DF Player Mikroc Code - 16F628A"},"content":{"type":"html","$t":"\u0026nbsp; The DFPlayer Mini MP3 Player is a small and low cost MP3  module with an simplified output directly to the speaker. The module can  be used as a stand alone module with attached battery, speaker and push  buttons or used in combination with a PIC, Arduino or any other with  RX\/TX capabilities. For this project, I would control the MP3 Player  module with a microcontroller and RS232.\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: left;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhsFcG-KjI8BW2Aru3DxxQLNx4m1TanmlbzwWV9SurXbofbWrp3fbtC6PWV_gBytj1RLUMA3kqG6wtfLZ-b7tz_eP2yH-wy__WTJmB7hHMVf5KkNCyTAQq7Sey7yLY1A-PgsyZ_5GOIYR7t\/s1600\/df_player.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"DF Player\" border=\"0\" data-original-height=\"600\" data-original-width=\"600\" height=\"200\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhsFcG-KjI8BW2Aru3DxxQLNx4m1TanmlbzwWV9SurXbofbWrp3fbtC6PWV_gBytj1RLUMA3kqG6wtfLZ-b7tz_eP2yH-wy__WTJmB7hHMVf5KkNCyTAQq7Sey7yLY1A-PgsyZ_5GOIYR7t\/s200\/df_player.jpg\" title=\"DF Player\" width=\"200\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EDF Player \u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\u003Cbr \/\u003E\n\u0026nbsp; The DF Player module has all the features which a MP3 player should  have. Including advance equalizers, looping and shuffling functions. But  here I will show you how to build a simple player with Play\/Pause,  Next\/Preview and vol Up\/Down functions. Later you can add more features.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhdeuBZBlDr_Sxle1xLouHl_P3x7qvV1v8mhv865Bkp1VKOEl6nI9UbCj_dOZtZ0__uYw1A_yP6dyOXXg_-u23Ppmp_RsQK9lHUY1e90cHQyPTjp9ZjEERuoYw8oj2iCm4CbR63QzVxeVJc\/s1600\/dfplayer-pin.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"DF Player Pin\" border=\"0\" data-original-height=\"316\" data-original-width=\"488\" height=\"207\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhdeuBZBlDr_Sxle1xLouHl_P3x7qvV1v8mhv865Bkp1VKOEl6nI9UbCj_dOZtZ0__uYw1A_yP6dyOXXg_-u23Ppmp_RsQK9lHUY1e90cHQyPTjp9ZjEERuoYw8oj2iCm4CbR63QzVxeVJc\/s320\/dfplayer-pin.jpg\" title=\"DF Player Pin\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EDF Player Pin\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\u003Cdiv class=\"separator\" style=\"clear: both; text-align: center;\"\u003E\u003C\/div\u003E\u003Ch4\u003E\u003Cu\u003ESpecifications:\u003C\/u\u003E\u003C\/h4\u003E\u003Cul\u003E\u003Cli\u003ESupported sampling rates (kHz): 8\/11.025\/12\/16\/22.05\/24\/32\/44.1\/48\u003C\/li\u003E\n\u003Cli\u003E24 -bit DAC output, support for dynamic range 90dB , SNR support 85dB\u003C\/li\u003E\n\u003Cli\u003EFully supports FAT16 , FAT32 file system, maximum support 32G of the TF card, support 32G of U disk, 64M bytes NORFLASH\u003C\/li\u003E\n\u003Cli\u003EA variety of control modes, I\/O control mode, serial mode, AD button control mode \u003C\/li\u003E\n\u003Cli\u003EAudio data sorted by folder, supports up to 100 folders, every folder can hold up to 255 songs\u003C\/li\u003E\n\u003Cli\u003E30 level adjustable volume\u003C\/li\u003E\n\u003Cli\u003E6 -level EQ adjustable\u003C\/li\u003E\n\u003C\/ul\u003E\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhhPqS9T5Qc1yE8EDNHKQSivSzfROcgdvrk2bp4m3tKQo8_2fitk27G9xwCV2UjdH8LLFtRE4MKhnsaag_wU0t-DeyrX7geAwvODt5J3Hj6lmFgbL8amXOKtEJQ2ynHJCpHb7GxZAJj3Qum\/s1600\/MP3-PLAY+-+Layout01.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Stand-alone Circuit\" border=\"0\" data-original-height=\"274\" data-original-width=\"550\" height=\"158\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhhPqS9T5Qc1yE8EDNHKQSivSzfROcgdvrk2bp4m3tKQo8_2fitk27G9xwCV2UjdH8LLFtRE4MKhnsaag_wU0t-DeyrX7geAwvODt5J3Hj6lmFgbL8amXOKtEJQ2ynHJCpHb7GxZAJj3Qum\/s320\/MP3-PLAY+-+Layout01.jpg\" title=\"Stand-alone Circuit\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EStand-alone Circuit\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\u003Ch4\u003E\u003Cu\u003ECircuit:\u003C\/u\u003E\u003C\/h4\u003E\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgKzSCj9PPHWQfGVPdWU6YCHKkoEk4qhlm3BHg02xVQuii9Y2rLIbj1TYAcP41DvWh6sVYyNXw7SEqdEiTGVe18d0VIp8GwdTda1nGYaYU_FfyWSm7DX502sa8QzMqcDzZdUnTJcsF_jvkh\/s1600\/df+player.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"DF Palyer Circuit\" border=\"0\" data-original-height=\"321\" data-original-width=\"476\" height=\"215\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgKzSCj9PPHWQfGVPdWU6YCHKkoEk4qhlm3BHg02xVQuii9Y2rLIbj1TYAcP41DvWh6sVYyNXw7SEqdEiTGVe18d0VIp8GwdTda1nGYaYU_FfyWSm7DX502sa8QzMqcDzZdUnTJcsF_jvkh\/s320\/df+player.jpg\" title=\"DF Palyer Circuit\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EDF Palyer Circuit\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\u003Cbr \/\u003E\nIn this circuit I used PIC16F628A and its configure to run using its internal oscillator. For sending commands to the PIC i used uart terminal that built in with Mikroc and u need a TTL converter module fo that. Rx pin of df player connected to the PIC's Tx and Rx pin of PIC connected to the TTL converter's Tx.\u003Cbr \/\u003E\nRx pin of TTL converter connected to the df player's Tx (optional)\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"float: left; margin-right: 1em; text-align: left;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEitdbHR-uS3fgAUkbL_33ASg0CX8un_O2OnDJD1M8FxhE23UwW3LBUtd2Yc4Bz0_4JJ4Ax3BhpiRx99ezp_AJWuKR39m2zUrCtTx35GhYLEO_b-8KM_t2d5NVsP3_oV16wifb5e8Ageg2G1\/s1600\/Uart+TTL+Module.jpg\" imageanchor=\"1\" style=\"clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Uart TTL Module\" border=\"0\" data-original-height=\"355\" data-original-width=\"562\" height=\"125\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEitdbHR-uS3fgAUkbL_33ASg0CX8un_O2OnDJD1M8FxhE23UwW3LBUtd2Yc4Bz0_4JJ4Ax3BhpiRx99ezp_AJWuKR39m2zUrCtTx35GhYLEO_b-8KM_t2d5NVsP3_oV16wifb5e8Ageg2G1\/s200\/Uart+TTL+Module.jpg\" title=\"Uart TTL Module\" width=\"200\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EUart TTL Module\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEh7GBxQkD_Uq9p8DviSOkb3PAnj2k6yNrwDMZvxd6b7ROUK36ky6LDQEOwM55P2edX9wYCcGsM-yUokBIH5qxiVUlvsoGbr8gQFrXe-D1orS35d_7woUUmeeSIkdZpVAXxDd7ba71XKMXgP\/s1600\/USB+TTL+Module.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"USB TTL Module\" border=\"0\" data-original-height=\"322\" data-original-width=\"414\" height=\"155\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEh7GBxQkD_Uq9p8DviSOkb3PAnj2k6yNrwDMZvxd6b7ROUK36ky6LDQEOwM55P2edX9wYCcGsM-yUokBIH5qxiVUlvsoGbr8gQFrXe-D1orS35d_7woUUmeeSIkdZpVAXxDd7ba71XKMXgP\/s200\/USB+TTL+Module.jpg\" title=\"USB TTL Module\" width=\"200\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EUSB TTL Module\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\u003Cbr \/\u003E\nConnect circuit as above and plug usb or TF card.Then open uart terminal and enter commands as below..\u003Cbr \/\u003E\nr - Play, s - Pause, n - Next, p - Previous, u - Vol+, d - Vol-.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhS6PDNEkOOTnJh37RjrV9sUmHtznWi13QN98ZY2nNANi2fCep8Oz9MFDErzhBYo8VFgekQbls3QR0f-O3m0wbbu3RKwHyNYWJvL5j_27f7ppA7bydkoQ19YgRnaeexmwZ_vHBc4QOG1Hhx\/s1600\/df+palyer+connection.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"df palyer connection\" border=\"0\" data-original-height=\"1005\" data-original-width=\"1600\" height=\"200\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhS6PDNEkOOTnJh37RjrV9sUmHtznWi13QN98ZY2nNANi2fCep8Oz9MFDErzhBYo8VFgekQbls3QR0f-O3m0wbbu3RKwHyNYWJvL5j_27f7ppA7bydkoQ19YgRnaeexmwZ_vHBc4QOG1Hhx\/s320\/df+palyer+connection.jpg\" title=\"df palyer connection\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EDf palyer connection\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEg-RLbXnQPlh8AS4l3mEEshI5sfx6nGsP2R3B3UVLE1hI6MXjWLwHvflQL9nBjJlw0mt3_MRDXasHCC86kY1oYUpo6lV4NiJx3T6Qr-hC4Z4WB8-fAD9Qnj-kHSXOhC36llbx3Yuo9cs2Wl\/s1600\/Df+circuit+in+dot+board.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Circuit in dot board\" border=\"0\" data-original-height=\"768\" data-original-width=\"756\" height=\"320\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEg-RLbXnQPlh8AS4l3mEEshI5sfx6nGsP2R3B3UVLE1hI6MXjWLwHvflQL9nBjJlw0mt3_MRDXasHCC86kY1oYUpo6lV4NiJx3T6Qr-hC4Z4WB8-fAD9Qnj-kHSXOhC36llbx3Yuo9cs2Wl\/s320\/Df+circuit+in+dot+board.jpg\" title=\"Circuit in dot board\" width=\"315\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ECircuit in dot board\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\u003Ch4\u003E\u003Cu\u003ECode:\u003C\/u\u003E\u003C\/h4\u003EThis code was written by using mikroC PRO for PIC v6.\u003Cbr \/\u003E\n\u003Cmyquote class=\"tr_bq\"\u003E\u003Cbr \/\u003E\n\/**************************************************************************\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nDF Player\u003Cbr \/\u003E\nCopyright (C) 2019 Scorpionz\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nThis program is free software: you can redistribute it and\/or modify\u003Cbr \/\u003E\nit under the terms of the GNU General Public License as published by\u003Cbr \/\u003E\nthe Free Software Foundation, either version 3 of the License, or\u003Cbr \/\u003E\n(at your option) any later version.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nThis program is distributed in the hope that it will be useful,\u003Cbr \/\u003E\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\u003Cbr \/\u003E\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\u003Cbr \/\u003E\nGNU General Public License for more details.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nYou should have received a copy of the GNU General Public License\u003Cbr \/\u003E\nalong with this program.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u0026gt;\u0026gt; Email: scorpionzblog@gmail.com\u003Cbr \/\u003E\n\u0026gt;\u0026gt; Blog : scopionz.blogspot.com\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n***************************************************************************\/\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nchar df_rd[10], dump, j, u_data;\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nvoid Write_Df_Data(char cmd, char data_H, char data_L) \/\/------- df data ----\u003Cbr \/\u003E\n{\u003Cbr \/\u003E\n\u0026nbsp; char m = 0;\u003Cbr \/\u003E\n\u0026nbsp; char df_wr[] = {0x7E,0xFF,0x06,0,0,0,0,0xEF};\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; df_wr[3]= cmd;\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; df_wr[5]= data_H;\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; df_wr[6]= data_L;\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp; Delay_ms(100);\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp; for (m=0; m\u0026lt;8; m++) UART1_Write(df_wr[m]);\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp; Delay_ms(300);\u003Cbr \/\u003E\n}\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nvoid interrupt() {\u0026nbsp;\u0026nbsp; \/\/-------- interrupt --------------------------------------\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u0026nbsp;if (PIR1.RCIF) {\u0026nbsp;\u0026nbsp;\u0026nbsp; \/\/------- Usart interrupt ----------\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; PIE1.RCIE = 0;\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; u_data = UART1_Read();\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp; if(u_data==0x7E)\u0026nbsp; {\u0026nbsp;\u0026nbsp;\u0026nbsp; \/\/ check first byte 0x7E\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; for (j=1; j\u0026lt;10; j++) { \/\/ read next 9 bytes 0xFF, 0x06, 0x03, 0x00, 0x00, 0x01, 0xFE, 0xF7, 0xEF\u003Cbr \/\u003E\nNo:\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; if(UART1_Data_Ready()) {\u0026nbsp;\u0026nbsp;\u0026nbsp; \/\/ Check, is data Ready..?\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; df_rd[j] = UART1_Read();\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; }\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; else goto No;\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; }\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; \u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; delay_ms(50);\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; if(UART1_Data_Ready()) dump = UART1_Read(); \/\/remove duplicate data\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; \u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; if(df_rd[9]==0xEF) { \/\/check last byte 0xEF\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; delay_ms(100);\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; if(df_rd[3]==0x3C) Write_Df_Data(0x01,0,0); \/\/play next song\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; for (j=0; j\u0026lt;10; j++) df_rd[j]=0;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; \/\/clear read buffer\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; }\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; }\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; \u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; else { \/\/------ keyboard commands -------------\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; if(u_data=='n') Write_Df_Data(0x01,0,0); \/\/next\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; if(u_data=='p') Write_Df_Data(0x02,0,0); \/\/prev\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; if(u_data=='u') Write_Df_Data(0x04,0,0); \/\/vol+\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; if(u_data=='d') Write_Df_Data(0x05,0,0); \/\/vol-\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; if(u_data=='r') Write_Df_Data(0x0D,0,0); \/\/resume\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; if(u_data=='s') Write_Df_Data(0x0E,0,0); \/\/stop\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; }\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp; PIE1.RCIE =1;\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp; PIR1.RCIF =0;\u003Cbr \/\u003E\n\u0026nbsp; }\u003Cbr \/\u003E\n}\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nvoid main() \u003Cbr \/\u003E\n{\u003Cbr \/\u003E\n\u0026nbsp;PCON.OSCF = 1;\u0026nbsp;\u0026nbsp; \/\/4MHz Internal OSC\u003Cbr \/\u003E\n\u0026nbsp;CMCON\u0026nbsp; |= 0x07;\u0026nbsp; \/\/Disable Comparators\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u0026nbsp;INTCON.GIE=1;\u003Cbr \/\u003E\n\u0026nbsp;INTCON.PEIE=1;\u003Cbr \/\u003E\n\u0026nbsp;PIE1.RCIE=1;\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u0026nbsp;TRISA = 0x00;\u003Cbr \/\u003E\n\u0026nbsp;TRISB = 0xFE;\u0026nbsp; \/\/Tx Rx\u003Cbr \/\u003E\n\u0026nbsp;PORTA = 0;\u003Cbr \/\u003E\n\u0026nbsp;PORTB = 0;\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u0026nbsp;Delay_Ms(3000);\u0026nbsp;\u0026nbsp; \/\/ Df initialization 1.5 ~ 3Sec\u003Cbr \/\u003E\n\u0026nbsp;UART1_Init(9600);\u003Cbr \/\u003E\n}\u003C\/myquote\u003E\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: left;\"\u003E\u003C\/div\u003E\u003Ch3 class=\"trigger\"\u003E\u003Cimg src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgxDYxsPjCPOIsq77ilBw8lKRDWctzAbaIPazTlYLMwhDgTgtbwcGhkO5JDarvYd2Ra839oMtgLr1arP5yMVsKSeUqWhvRQ5Ddk4AVdzL98jzXYipeCxGQum_JwHIoKeey_ZiC25JJgZEE\/s1600\/DOWNLOAD.png\" \/\u003E\u003C\/h3\u003E\u003Cdiv class=\"toggle_container\"\u003E\u003Cdiv class=\"block\"\u003E\u003Cblockquote class=\"tr_bq\"\u003E\u003Cdiv style=\"text-align: center;\"\u003E\u003Ca href=\"http:\/\/tiny.cc\/df_datasheet\" target=\"_blank\"\u003E\u003Cspan style=\"font-size: large;\"\u003EDatasheet\u003C\/span\u003E\u003C\/a\u003E\u003Cbr \/\u003E\n\u003Ca href=\"http:\/\/tiny.cc\/df_code\" target=\"_blank\"\u003E\u003Cspan style=\"font-size: large;\"\u003EDF Player Files\u003C\/span\u003E\u003C\/a\u003E\u003C\/div\u003E\u003C\/blockquote\u003E\u003C\/div\u003E\u003C\/div\u003E"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/5071799516182466562\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2019\/02\/uart-controlled-df-player-mikroc-code.html#comment-form","title":"2 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/5071799516182466562"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/5071799516182466562"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2019\/02\/uart-controlled-df-player-mikroc-code.html","title":"Uart Controlled DF Player Mikroc Code - 16F628A"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/16788868236927971222"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"30","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjd4FUk8kZ81qA5RH-8TE_fE-lTn418FZvTVTpV4dMcuL2J5XFvkMZI3ZRhvLp-6_wGzPKh7UWWA09Xjk3NLUeJ31fOe7wglNXt0CZ1qvAr95_wj5WzoIVV7K7-u5K2EbA\/s220\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhsFcG-KjI8BW2Aru3DxxQLNx4m1TanmlbzwWV9SurXbofbWrp3fbtC6PWV_gBytj1RLUMA3kqG6wtfLZ-b7tz_eP2yH-wy__WTJmB7hHMVf5KkNCyTAQq7Sey7yLY1A-PgsyZ_5GOIYR7t\/s72-c\/df_player.jpg","height":"72","width":"72"},"thr$total":{"$t":"2"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-636630622355488097"},"published":{"$t":"2019-01-02T11:09:00.000+05:30"},"updated":{"$t":"2019-01-02T11:18:35.006+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"12F"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Decoder"},{"scheme":"http://www.blogger.com/atom/ns#","term":"PIC"}],"title":{"type":"text","$t":"Rotary Encoder Decoder Circuit - PIC12F683 Microcontroller"},"content":{"type":"html","$t":"\u0026nbsp;\u0026nbsp;\u0026nbsp;Recently I need a rotary encoder circuit for my amplifier. So I searched the internet and test some circuits and codings I found. But nothing work for me. Some are worked but not accurate. So i decided to build my own.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ch3\u003E\n\u003Cu\u003EWhat Is Rotary Encoder\u003C\/u\u003E\u003C\/h3\u003E\n\u003Ctable cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"clear: right; float: left; margin-bottom: 1em; margin-right: 1em; text-align: left;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjmH47UtrQ7K2FTV00zaiJXfsPJEiiHv_4-D4nK2bKLYbs6fUzkDzoXsgDWMAYCh_cgjR7nlUweJ2QNIRMk_NFHu9y3dMgAAV2zHcRFtmFNmlQBss5OVBqsl_b-Ibx9jtKZqra6K1WB08jc\/s1600\/encoder.png\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Typical Rotary Encoder\" border=\"0\" data-original-height=\"300\" data-original-width=\"171\" height=\"200\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjmH47UtrQ7K2FTV00zaiJXfsPJEiiHv_4-D4nK2bKLYbs6fUzkDzoXsgDWMAYCh_cgjR7nlUweJ2QNIRMk_NFHu9y3dMgAAV2zHcRFtmFNmlQBss5OVBqsl_b-Ibx9jtKZqra6K1WB08jc\/s200\/encoder.png\" title=\"Typical Rotary Encoder\" width=\"112\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ETypical Rotary Encoder\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;A rotary encoder is a special type of switch that converts the motion of the switch (clockwise or counterclockwise) into an output signal that can be used to determine what direction the knob is being rotated. There are many different types of rotary encoders which use different technologies and construction materials, however, today we’ll be looking specifically at quadrature rotary encoders which are the most common for general electronics. They're used in many applications such as the manual volume control or tuning on a car stereo.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;A quadrature rotary encoder is similar to a potentiometer, however, a rotary encoder doesn’t have limiting points in the rotation; it will rotate infinitely in either direction. Quadrature rotary encoders don’t output an absolute, fixed position, but rather have a number of increments per 360 degrees, and each increment consists of digital pulses known as ‘grey code’. Most encoders have detents which give tactile feedback every time they increment, however, you can also get smooth encoders without detents, usually with a higher number of steps per rotation. \u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ch3\u003E\n\u003Cu\u003EHow do They Work?\u003C\/u\u003E \u003C\/h3\u003E\n\u003Ctable cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"float: right; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEj65Ezou0chP6Q6NA79EsBOo7ykVVZYPy8B5rS17XxO9GvXCXLJuRN5GnsBca0WlnJIjR8Pi4ckyMA4MvWXB7oj-R73AQxhMl5BHBeNraOLHpvHXkcMIEB_fZf_g_F84tu5DUksxMwEZp0w\/s1600\/Rotary+Encoder+Quadrature+Output+Table.JPG\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Quadrature Output Table\" border=\"0\" data-original-height=\"283\" data-original-width=\"455\" height=\"198\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEj65Ezou0chP6Q6NA79EsBOo7ykVVZYPy8B5rS17XxO9GvXCXLJuRN5GnsBca0WlnJIjR8Pi4ckyMA4MvWXB7oj-R73AQxhMl5BHBeNraOLHpvHXkcMIEB_fZf_g_F84tu5DUksxMwEZp0w\/s320\/Rotary+Encoder+Quadrature+Output+Table.JPG\" title=\"Quadrature Output Table\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EQuadrature Output Table\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;It has three pins: A, C, and B. C is the common ground for A and B. A and B are the signal pins. When you rotate the knob, A and B come into contact with the common ground pin, in a particular order depending on the direction you are rotating the knob. When each pin comes into contact with the common ground, they produce a signal. These signals are shifted out of phase with each other as one pin connects before the other pin. This is called quadrature encoding. You need to listen to those pins and the way they pulse in order to determine the direction and number of steps.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ch3\u003E\n\u003Cu\u003EThe Circuit\u003C\/u\u003E\u003C\/h3\u003E\n\u0026nbsp;\u0026nbsp; In my circuit I used PIC12F683 microcontroller. It configured to run using its internal oscillater at 8Mhz and internal pull up enable for GP1. And used few components. 0.47uf capacitor used to avoid noices making by rotary encoder. GP0 indicate rotation and GP4 and 5 indicate direction.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEj5AHvkfLQctQd0s-OOEMdwj1thg7vIHKMD6406nANq_6y1DGomfkz_lYYlLcTG2x0KLPMPnjICVTLEkfp8Um1iqPyTUZuzQ5zQB3iXM5WjfjoMUzt3dhjNCnp54H_LXmY6BQzcRJpRPlL5\/s1600\/Rotary+encoder.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Rotary Encoder Circuit\" border=\"0\" data-original-height=\"575\" data-original-width=\"1013\" height=\"226\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEj5AHvkfLQctQd0s-OOEMdwj1thg7vIHKMD6406nANq_6y1DGomfkz_lYYlLcTG2x0KLPMPnjICVTLEkfp8Um1iqPyTUZuzQ5zQB3iXM5WjfjoMUzt3dhjNCnp54H_LXmY6BQzcRJpRPlL5\/s400\/Rotary+encoder.jpg\" title=\"Rotary Encoder Circuit\" width=\"400\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ERotary Encoder Circuit\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Ch3\u003E\n\u003Cu\u003EThe Coding\u003C\/u\u003E\u003C\/h3\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;The code was written by using Mikroc Pro for pic.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cmyquote class=\"tr_bq\"\u003E\/**************************************************************************\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nRotary Encoder\u003Cbr \/\u003E\nCopyright (C) 2019 Scorpionz\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nThis program is free software: you can redistribute it and\/or modify\u003Cbr \/\u003E\nit under the terms of the GNU General Public License as published by\u003Cbr \/\u003E\nthe Free Software Foundation, either version 3 of the License, or\u003Cbr \/\u003E\n(at your option) any later version.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nThis program is distributed in the hope that it will be useful,\u003Cbr \/\u003E\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\u003Cbr \/\u003E\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\u003Cbr \/\u003E\nGNU General Public License for more details.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nYou should have received a copy of the GNU General Public License\u003Cbr \/\u003E\nalong with this program.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u0026gt;\u0026gt; Email: scorpionzblog@gmail.com\u003Cbr \/\u003E\n\u0026gt;\u0026gt; Blog : scopionz.blogspot.com\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n***************************************************************************\/\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n#define SW\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; GPIO.F1\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nvoid Interrupt()\u003Cbr \/\u003E\n{\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nINTCON.GIE = 0;\u0026nbsp;\u0026nbsp; \/\/Disable Global Interupt\u003Cbr \/\u003E\n\u0026nbsp; if(INTCON.INTF)\u0026nbsp; \/\/RB0\/INT External Interrupt Flag bit is set\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp; {\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; if(SW) GPIO.F4=1;\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; else\u0026nbsp;\u0026nbsp; GPIO.F5=1;\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; GPIO.F0=1;\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; delay_ms(100);\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp; GPIO\u0026nbsp;\u0026nbsp; = 0;\u003Cbr \/\u003E\n\u0026nbsp;\u0026nbsp;\u0026nbsp; }\u003Cbr \/\u003E\nINTCON.INTF = 0; \/\/Clear RB0\/INT External Interrupt Flag bit\u003Cbr \/\u003E\nINTCON.GIE = 1;\u0026nbsp; \/\/Enable Global Interrupt\u003Cbr \/\u003E\n}\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nvoid main()\u003Cbr \/\u003E\n{\u003Cbr \/\u003E\nOSCCON = 0x75;\u003Cbr \/\u003E\nADCON0 = 0x00;\u003Cbr \/\u003E\nCMCON0 = 0x07; \/\/ Disable Comparators\u003Cbr \/\u003E\nCMCON1 = 0x00;\u003Cbr \/\u003E\nANSEL\u0026nbsp; = 0x00;\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nINTCON.GIE = 1; \/\/ Global Interrupt Enable\u003Cbr \/\u003E\nINTCON.INTE = 1; \/\/ RB0\/INT External Interrupt Enable bit\u003Cbr \/\u003E\nOPTION_REG = 0b00111111; \/\/ wpu \u0026amp; int fall\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nTRISIO = 0b00000110;\u003Cbr \/\u003E\nWPU = 0b00000010;\u003Cbr \/\u003E\nGPIO\u0026nbsp;\u0026nbsp; = 0b00000001;\u003Cbr \/\u003E\ndelay_ms(500);\u003Cbr \/\u003E\nGPIO\u0026nbsp;\u0026nbsp; = 0;\u003Cbr \/\u003E\n}\u003C\/myquote\u003E \u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: left;\"\u003E\n\u003C\/div\u003E\n\u003Ch3 class=\"trigger\"\u003E\n\u003Cimg src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgxDYxsPjCPOIsq77ilBw8lKRDWctzAbaIPazTlYLMwhDgTgtbwcGhkO5JDarvYd2Ra839oMtgLr1arP5yMVsKSeUqWhvRQ5Ddk4AVdzL98jzXYipeCxGQum_JwHIoKeey_ZiC25JJgZEE\/s1600\/DOWNLOAD.png\" \/\u003E\u003C\/h3\u003E\n\u003Cdiv class=\"toggle_container\"\u003E\n\u003Cdiv class=\"block\"\u003E\n\u003Cblockquote class=\"tr_bq\"\u003E\n\u003Cdiv style=\"text-align: center;\"\u003E\n\u003Ca href=\"http:\/\/tiny.cc\/rotary683\" target=\"_blank\"\u003E\u003Cspan style=\"font-size: large;\"\u003ERotary Encoder Decoder\u003C\/span\u003E\u003C\/a\u003E\u003C\/div\u003E\n\u003C\/blockquote\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/636630622355488097\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2019\/01\/rotary-encoder-decoder-circuit.html#comment-form","title":"0 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/636630622355488097"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/636630622355488097"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2019\/01\/rotary-encoder-decoder-circuit.html","title":"Rotary Encoder Decoder Circuit - PIC12F683 Microcontroller"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/16788868236927971222"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"30","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjd4FUk8kZ81qA5RH-8TE_fE-lTn418FZvTVTpV4dMcuL2J5XFvkMZI3ZRhvLp-6_wGzPKh7UWWA09Xjk3NLUeJ31fOe7wglNXt0CZ1qvAr95_wj5WzoIVV7K7-u5K2EbA\/s220\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjmH47UtrQ7K2FTV00zaiJXfsPJEiiHv_4-D4nK2bKLYbs6fUzkDzoXsgDWMAYCh_cgjR7nlUweJ2QNIRMk_NFHu9y3dMgAAV2zHcRFtmFNmlQBss5OVBqsl_b-Ibx9jtKZqra6K1WB08jc\/s72-c\/encoder.png","height":"72","width":"72"},"thr$total":{"$t":"0"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-9025807555071597086"},"published":{"$t":"2017-11-04T13:14:00.002+05:30"},"updated":{"$t":"2017-11-13T20:38:09.237+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"16F"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Clock"},{"scheme":"http://www.blogger.com/atom/ns#","term":"DS323x"},{"scheme":"http://www.blogger.com/atom/ns#","term":"I2C"},{"scheme":"http://www.blogger.com/atom/ns#","term":"LCD"},{"scheme":"http://www.blogger.com/atom/ns#","term":"PIC"}],"title":{"type":"text","$t":"DS3231 RTC Clock mikro C Demo Code - 16F648A"},"content":{"type":"html","$t":"\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEh8x8KCZ4mBYlO9Y-vb26A18pMmp9z13Agbyf0g2zKzG1uL6b_ALcG4ZW_eR8zTcL-8PtaVz3ghyphenhyphenEkjyMANdlxgK3IYG2DX8SbASy8nv8f0oZitlpMv4Ta7zwMdT1CaNrQe6BfS7chY4ttP\/s1600\/lcd+clock.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"LCD Clock\" border=\"0\" data-original-height=\"138\" data-original-width=\"366\" height=\"120\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEh8x8KCZ4mBYlO9Y-vb26A18pMmp9z13Agbyf0g2zKzG1uL6b_ALcG4ZW_eR8zTcL-8PtaVz3ghyphenhyphenEkjyMANdlxgK3IYG2DX8SbASy8nv8f0oZitlpMv4Ta7zwMdT1CaNrQe6BfS7chY4ttP\/s320\/lcd+clock.jpg\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ELCD Clock\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Ch3\u003E\nIntroduction:\n\u003C\/h3\u003E\nThe DS323x is a low-cost, extremely accurate I²C real-time clock (RTC) with an integrated temperature-compensated crystal oscillator (TCXO) and crystal. The device incorporates a battery input, and maintains accurate timekeeping when main power to the device is interrupted. The integration of the crystal resonator enhances the long-term accuracy of the device as well as reduces the piece-part count in a manufacturing line. The DS323x is available in commercial and industrial temperature ranges, and is offered in a 16-pin, 300-mil SO package.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"float: left; margin-right: 1em; text-align: left;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgTcgVyB27dmb1aKysBENgVkCXCAXqif_F_iyp7INm9dAvxRFyiz9uFsI6dp0Hk2XTOVS-q1q5d77nP9D6tEITLHTPmXqjcADvpj1-ifYIwLU9D-Waeba6VyPUFBP-CD1mxH0NiDD3ZYQBd\/s1600\/ds3231+block.png\" imageanchor=\"1\" style=\"clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"DS3231 Block Diagram\" border=\"0\" data-original-height=\"646\" data-original-width=\"833\" height=\"155\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgTcgVyB27dmb1aKysBENgVkCXCAXqif_F_iyp7INm9dAvxRFyiz9uFsI6dp0Hk2XTOVS-q1q5d77nP9D6tEITLHTPmXqjcADvpj1-ifYIwLU9D-Waeba6VyPUFBP-CD1mxH0NiDD3ZYQBd\/s200\/ds3231+block.png\" title=\"DS3231 Block Diagram\" width=\"200\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EDS3231 Block Diagram\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\nThe RTC maintains seconds, minutes, hours, day, date, month, and year information. The date at the end of the month is automatically adjusted for months with fewer than 31 days, including corrections for leap year. The clock operates in either the 24-hour or 12-hour format with an active-low AM\/PM indicator. Two programmable time-of-day alarms and a programmable square-wave output are provided. Address and data are transferred serially through an I²C bidirectional bus.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nMost RTCs use an external 32kHz timing crystal that is used to keep time with low current draw. And that’s all well and good, but those crystals have slight drift, particularly when the temperature changes (the temperature changes the oscillation frequency very very very slightly but it does add up!) This RTC is in a beefy package because the crystal is inside the chip! And right next to the integrated crystal is a temperature sensor. That sensor compensates for the frequency changes by adding or removing clock ticks so that the timekeeping stays on schedule.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiVeRcyB7tV0fE7OnM5TlHkzso36t-WvdlMu2xyqTNfQhNuoHLyJhFQ4wEd7tXYx2BgGMfJM1V7Ty1mTcMdJSSoOMuZn8x9eibjDGMaGXBqZqD7oP8RLHtn0vAIK0itPuzFC31_Ry_hCyKm\/s1600\/ds3231+module.JPG\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"DS3231 module\" border=\"0\" data-original-height=\"351\" data-original-width=\"561\" height=\"200\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiVeRcyB7tV0fE7OnM5TlHkzso36t-WvdlMu2xyqTNfQhNuoHLyJhFQ4wEd7tXYx2BgGMfJM1V7Ty1mTcMdJSSoOMuZn8x9eibjDGMaGXBqZqD7oP8RLHtn0vAIK0itPuzFC31_Ry_hCyKm\/s320\/ds3231+module.JPG\" title=\"DS3231 module\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EDS3231 module\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\nThis is the finest RTC you can get, and now it in a compact, breadboard-friendly breakout. With a coin cell plugged into the back, you can get years of precision timekeeping, even when main power is lost. Great for data-logging and clocks, or anything where you need to really know the time.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ch3\u003E\nThe Circuit:\n\u003C\/h3\u003E\nThe circuit is very simple. It used PIC16F648A Pic micro, 16x2 LCD and DS3231 RTC module. The PIC used it's internal oscillator and run at 4MHz. Proteus and Hex file can download from the bottom of the page.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhV2Sx2H_tf-lIC2XOTWaef0M1iO2SPTTBaSYY_fpqu-426y36H6vMRXaXufd3M6L4W_nW-WNMA5eFgM6behPIzttwEg7Z1oOhq7V58BMsF_hgpeI1dvOYdVoJZvII-_7ULblI1_ZApI6Vp\/s1600\/ds3131.BMP.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"DS323x RTC Clock Circuit\" border=\"0\" data-original-height=\"780\" data-original-width=\"1433\" height=\"217\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhV2Sx2H_tf-lIC2XOTWaef0M1iO2SPTTBaSYY_fpqu-426y36H6vMRXaXufd3M6L4W_nW-WNMA5eFgM6behPIzttwEg7Z1oOhq7V58BMsF_hgpeI1dvOYdVoJZvII-_7ULblI1_ZApI6Vp\/s400\/ds3131.BMP.jpg\" title=\"DS323x RTC Clock Circuit\" width=\"400\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EDS323x RTC Clock Circuit\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ch3\u003E\nMikroC PRO Source Code:\n\u003C\/h3\u003E\n\u003Cmyquote\u003E\/**************************************************************************\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nDS323x RTC Clock Demo\u003Cbr \/\u003E\nCopyright (C) 2017 Scorpionz\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nThis program is free software: you can redistribute it and\/or modify\u003Cbr \/\u003E\nit under the terms of the GNU General Public License as published by\u003Cbr \/\u003E\nthe Free Software Foundation, either version 3 of the License, or\u003Cbr \/\u003E\n(at your option) any later version.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nThis program is distributed in the hope that it will be useful,\u003Cbr \/\u003E\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\u003Cbr \/\u003E\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\u003Cbr \/\u003E\nGNU General Public License for more details.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nYou should have received a copy of the GNU General Public License\u003Cbr \/\u003E\nalong with this program.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u0026gt;\u0026gt; Email: scorpionzblog@gmail.com\u003Cbr \/\u003E\n\u0026gt;\u0026gt; Blog : scopionz.blogspot.com\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n***************************************************************************\/\u003Cbr \/\u003E\n\u003Cbr \/\u003E\u003Cbr \/\u003E\n\/\/ Software I2C connections\u003Cbr \/\u003E\nsbit Soft_I2C_Scl           at RB2_bit;\u003Cbr \/\u003E\nsbit Soft_I2C_Sda           at RB1_bit;\u003Cbr \/\u003E\nsbit Soft_I2C_Scl_Direction at TRISB2_bit;\u003Cbr \/\u003E\nsbit Soft_I2C_Sda_Direction at TRISB1_bit;\u003Cbr \/\u003E\n\/\/ End Software I2C connections\u003Cbr \/\u003E\u003Cbr \/\u003E\n\n\/\/ LCD module connections\u003Cbr \/\u003E\nsbit LCD_RS at RB0_bit;\u003Cbr \/\u003E\nsbit LCD_EN at RB3_bit;\u003Cbr \/\u003E\nsbit LCD_D4 at RB4_bit;\u003Cbr \/\u003E\nsbit LCD_D5 at RB5_bit;\u003Cbr \/\u003E\nsbit LCD_D6 at RB6_bit;\u003Cbr \/\u003E\nsbit LCD_D7 at RB7_bit;\u003Cbr \/\u003E\u003Cbr \/\u003E\n\nsbit LCD_RS_Direction at TRISB0_bit;\u003Cbr \/\u003E\nsbit LCD_EN_Direction at TRISB3_bit;\u003Cbr \/\u003E\nsbit LCD_D4_Direction at TRISB4_bit;\u003Cbr \/\u003E\nsbit LCD_D5_Direction at TRISB5_bit;\u003Cbr \/\u003E\nsbit LCD_D6_Direction at TRISB6_bit;\u003Cbr \/\u003E\nsbit LCD_D7_Direction at TRISB7_bit;\u003Cbr \/\u003E\n\/\/ End LCD module connections\u003Cbr \/\u003E\u003Cbr \/\u003E\n\nchar seconds, minutes, hours, day, date, month, year, tem_l, tem_h; \/\/ Global variables\u003Cbr \/\u003E\u003Cbr \/\u003E\n\n\/\/--------------------- Reads time and date information from RTC (DS3231)\u003Cbr \/\u003E\nvoid Read_Time()\u003Cbr \/\u003E \n{\u003Cbr \/\u003E\n  Soft_I2C_Start();               \/\/ Issue start signal\u003Cbr \/\u003E\n  Soft_I2C_Write(0xD0);           \/\/ Address DS3231, see DS3231 datasheet\u003Cbr \/\u003E\n  Soft_I2C_Write(0);              \/\/ Start from address 0\u003Cbr \/\u003E\n  Soft_I2C_Start();               \/\/ Issue repeated start signal\u003Cbr \/\u003E\n  Soft_I2C_Write(0xD1);           \/\/ Address DS3231 for reading R\/W=1\u003Cbr \/\u003E\u003Cbr \/\u003E\n\n  seconds = Bcd2Dec(Soft_I2C_Read(1));     \/\/ Read seconds byte\u003Cbr \/\u003E\n  minutes = Bcd2Dec(Soft_I2C_Read(1));     \/\/ Read minutes byte\u003Cbr \/\u003E\n  hours = Bcd2Dec(Soft_I2C_Read(1));       \/\/ Read hours byte\u003Cbr \/\u003E\n  day = Bcd2Dec(Soft_I2C_Read(1));         \/\/ Read day byte\u003Cbr \/\u003E\n  date = Bcd2Dec(Soft_I2C_Read(1));        \/\/ Read date byte\u003Cbr \/\u003E\n  month = Bcd2Dec(Soft_I2C_Read(1));       \/\/ Read month byte\u003Cbr \/\u003E\n  year = Bcd2Dec(Soft_I2C_Read(1));        \/\/ Read year byte\u003Cbr \/\u003E\u003Cbr \/\u003E\n  \n  Bcd2Dec(Soft_I2C_Read(1));  \/\/ Alarm\u003Cbr \/\u003E\n  Bcd2Dec(Soft_I2C_Read(1));\u003Cbr \/\u003E\n  Bcd2Dec(Soft_I2C_Read(1));\u003Cbr \/\u003E\n  Bcd2Dec(Soft_I2C_Read(1));\u003Cbr \/\u003E\n  Bcd2Dec(Soft_I2C_Read(1));\u003Cbr \/\u003E\n  Bcd2Dec(Soft_I2C_Read(1));\u003Cbr \/\u003E\n  Bcd2Dec(Soft_I2C_Read(1));\u003Cbr \/\u003E\u003Cbr \/\u003E\n  \n  Bcd2Dec(Soft_I2C_Read(1));  \/\/ Data\u003Cbr \/\u003E\n  Bcd2Dec(Soft_I2C_Read(1));\u003Cbr \/\u003E\u003Cbr \/\u003E\n  \n  Bcd2Dec(Soft_I2C_Read(1));\u003Cbr \/\u003E\u003Cbr \/\u003E\n  \n  tem_h = Bcd2Dec(Soft_I2C_Read(1));  \/\/ Temp\u003Cbr \/\u003E\n  tem_l = Bcd2Dec(Soft_I2C_Read(0));\u003Cbr \/\u003E\u003Cbr \/\u003E\n  \n  Soft_I2C_Stop();                    \/\/ Issue stop signal\u003Cbr \/\u003E\n}\u003Cbr \/\u003E\u003Cbr \/\u003E\n\nvoid write_data(char address, char w_data)\u003Cbr \/\u003E\n{\u003Cbr \/\u003E\n  Soft_I2C_Start();           \/\/ issue I2C start signal\u003Cbr \/\u003E\n  Soft_I2C_Write(0xD0);       \/\/ send byte via I2C (device address + W)\u003Cbr \/\u003E\n  Soft_I2C_Write(address);    \/\/ send byte (address of DS3231 location)\u003Cbr \/\u003E\n  Soft_I2C_Write(w_data);     \/\/ send data (data to be written)\u003Cbr \/\u003E\n  Soft_I2C_Stop();            \/\/ issue I2C stop signal\u003Cbr \/\u003E\n  delay_ms(50);\u003Cbr \/\u003E\n}\u003Cbr \/\u003E\u003Cbr \/\u003E\n\n\/\/-------------------- Output values to LCD\u003Cbr \/\u003E\nvoid Display_Time()\u003Cbr \/\u003E \n{\u003Cbr \/\u003E\n   Lcd_Chr(2, 7, (hours \/ 10)   + 48);\u003Cbr \/\u003E\n   Lcd_Chr(2, 8, (hours % 10)   + 48);\u003Cbr \/\u003E\n   Lcd_Chr(2,10, (minutes \/ 10) + 48);\u003Cbr \/\u003E\n   Lcd_Chr(2,11, (minutes % 10) + 48);\u003Cbr \/\u003E\n   Lcd_Chr(2,13, (seconds \/ 10) + 48);\u003Cbr \/\u003E\n   Lcd_Chr(2,14, (seconds % 10) + 48);\u003Cbr \/\u003E\u003Cbr \/\u003E\n   \n   Lcd_Chr(2,16, (day % 10) + 48); \/\/ day\u003Cbr \/\u003E\n}\u003Cbr \/\u003E\u003Cbr \/\u003E\n\nvoid Display_Date()\u003Cbr \/\u003E \n{\u003Cbr \/\u003E\n   Lcd_Out(1,1,\"Date: \");   \/\/ Prepare and output static text on LCD\u003Cbr \/\u003E\n   Lcd_Chr(1,9,'-');\u003Cbr \/\u003E\n   Lcd_Chr(1,12,'-');\u003Cbr \/\u003E\n   Lcd_Out(1,13,\"20\");      \/\/ start from year 2000\u003Cbr \/\u003E\u003Cbr \/\u003E\n\n   Lcd_Chr(1, 7, (date \/ 10)   + 48);\u003Cbr \/\u003E\n   Lcd_Chr(1, 8, (date % 10)   + 48);\u003Cbr \/\u003E\n   Lcd_Chr(1,10, (month \/ 10) + 48);\u003Cbr \/\u003E\n   Lcd_Chr(1,11, (month % 10) + 48);\u003Cbr \/\u003E\n   Lcd_Chr(1,15, (year \/ 10) + 48);\u003Cbr \/\u003E\n   Lcd_Chr(1,16, (year % 10) + 48);\u003Cbr \/\u003E\n}\u003Cbr \/\u003E\n\nvoid Display_Temp()\u003Cbr \/\u003E\n{\u003Cbr \/\u003E\n   Lcd_Out(1, 1,\"Temp: +\");\u003Cbr \/\u003E\n   Lcd_Out(1,13,\"ßC  \");\u003Cbr \/\u003E\n   Lcd_Chr(1,10,'.');\u003Cbr \/\u003E\u003Cbr \/\u003E\n   \n   tem_l=tem_l*25;\u003Cbr \/\u003E\u003Cbr \/\u003E\n   \n   Lcd_Chr(1, 8, ((tem_h \u0026amp; 127) \/ 10) + 48);\u003Cbr \/\u003E\n   Lcd_Chr(1, 9, ((tem_h \u0026amp; 127) % 10) + 48);\u003Cbr \/\u003E\n   Lcd_Chr(1, 11, (tem_l \/ 10) + 48);\u003Cbr \/\u003E\n   Lcd_Chr(1, 12, (tem_l % 10) + 48);\u003Cbr \/\u003E\u003Cbr \/\u003E\n   \n   if(tem_h \u0026amp; 128) Lcd_Chr(1, 7, '-');\u003Cbr \/\u003E\n}\u003Cbr \/\u003E\u003Cbr \/\u003E\n\n\/\/------------------ Performs project\u003Cbr \/\u003E\nvoid Init_Main()\u003Cbr \/\u003E\n{\u003Cbr \/\u003E\n  PCON.OSCF = 1;             \/\/4MHz\u003Cbr \/\u003E\n  CMCON  |= 0x07;            \/\/ Disable Comparators      CMCON  |= 7;\u003Cbr \/\u003E\n  OPTION_REG = 0;\u003Cbr \/\u003E\u003Cbr \/\u003E\n\n  Soft_I2C_Init();           \/\/ Initialize Soft I2C communication\u003Cbr \/\u003E\n  Lcd_Init();                \/\/ Initialize LCD\u003Cbr \/\u003E\n  Lcd_Cmd(_LCD_CLEAR);       \/\/ Clear LCD display\u003Cbr \/\u003E\n  Lcd_Cmd(_LCD_CURSOR_OFF);  \/\/ Turn cursor off\u003Cbr \/\u003E\u003Cbr \/\u003E\n\n  Lcd_Out(1,3,\".:Scorpionz:.\");\u003Cbr \/\u003E\n  Delay_ms(500);\u003Cbr \/\u003E\n  Lcd_Out(2,1,\"Ds3231 RTC Clock\");\u003Cbr \/\u003E\n  Delay_ms(1500);\u003Cbr \/\u003E\n  Lcd_Cmd(_LCD_CLEAR);\u003Cbr \/\u003E\n  Lcd_Out(2,1,\"Time: \");\u003Cbr \/\u003E\n  Lcd_Chr(2,9,':');\u003Cbr \/\u003E\n  Lcd_Chr(2,12,':');\u003Cbr \/\u003E\u003Cbr \/\u003E\n\n write_data(14,0x40); \/\/SQWE output at 1 Hz\u003Cbr \/\u003E\n}\u003Cbr \/\u003E\u003Cbr \/\u003E\n\n\/\/----------------- Main procedure\u003Cbr \/\u003E\nvoid main() {\u003Cbr \/\u003E\n  Delay_ms(500);\u003Cbr \/\u003E\u003Cbr \/\u003E\n\n  Init_Main();               \/\/ Perform initialization\u003Cbr \/\u003E\u003Cbr \/\u003E\n\n  while (1) {                \/\/ Endless loop\u003Cbr \/\u003E\n    Read_Time();             \/\/ Read time from RTC(DS3231)\u003Cbr \/\u003E\n    Display_Time();          \/\/ Prepare and display on LCD\u003Cbr \/\u003E\n    Display_Date();\n    Delay_ms(450);\u003Cbr \/\u003E\n    Display_Temp();\u003Cbr \/\u003E\n    Delay_ms(450);\u003Cbr \/\u003E\n  }\u003Cbr \/\u003E\n}\u003C\/myquote\u003E\n\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: left;\"\u003E\n\u003C\/div\u003E\n\u003Ch3 class=\"trigger\"\u003E\n\u003Cimg src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgxDYxsPjCPOIsq77ilBw8lKRDWctzAbaIPazTlYLMwhDgTgtbwcGhkO5JDarvYd2Ra839oMtgLr1arP5yMVsKSeUqWhvRQ5Ddk4AVdzL98jzXYipeCxGQum_JwHIoKeey_ZiC25JJgZEE\/s1600\/DOWNLOAD.png\" \/\u003E\u003C\/h3\u003E\n\u003Cdiv class=\"toggle_container\"\u003E\n\u003Cdiv class=\"block\"\u003E\n\u003Cblockquote class=\"tr_bq\"\u003E\n\u003Cdiv style=\"text-align: center;\"\u003E\n\u003Ca href=\"http:\/\/tiny.cc\/Ds323x_demo\" target=\"_blank\"\u003E\u003Cspan style=\"font-size: large;\"\u003EDS323x RTC Clock Demo Code\u003C\/span\u003E\u003C\/a\u003E\n\n\u003C\/div\u003E\n\u003C\/blockquote\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/9025807555071597086\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2017\/11\/ds3231-rtc-clock-demo-code-16f648a.html#comment-form","title":"0 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/9025807555071597086"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/9025807555071597086"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2017\/11\/ds3231-rtc-clock-demo-code-16f648a.html","title":"DS3231 RTC Clock mikro C Demo Code - 16F648A"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/16788868236927971222"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"30","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjd4FUk8kZ81qA5RH-8TE_fE-lTn418FZvTVTpV4dMcuL2J5XFvkMZI3ZRhvLp-6_wGzPKh7UWWA09Xjk3NLUeJ31fOe7wglNXt0CZ1qvAr95_wj5WzoIVV7K7-u5K2EbA\/s220\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEh8x8KCZ4mBYlO9Y-vb26A18pMmp9z13Agbyf0g2zKzG1uL6b_ALcG4ZW_eR8zTcL-8PtaVz3ghyphenhyphenEkjyMANdlxgK3IYG2DX8SbASy8nv8f0oZitlpMv4Ta7zwMdT1CaNrQe6BfS7chY4ttP\/s72-c\/lcd+clock.jpg","height":"72","width":"72"},"thr$total":{"$t":"0"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-6771437801035742999"},"published":{"$t":"2015-12-26T13:12:00.001+05:30"},"updated":{"$t":"2020-11-04T13:31:24.431+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"16F"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Counter"},{"scheme":"http://www.blogger.com/atom/ns#","term":"PIC"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Timer"}],"title":{"type":"text","$t":"Multi Stage Simple Programmable Timer Circuit - 16F628A"},"content":{"type":"html","$t":"\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiBVgAiU_lR9E_RpfH_gy5K_Rq980fRdVLSvjHEJ89-TCBY72xQJ3x1LDq20smNo1gMKRbm1vU9pKhxSl4ClpaOAOl62GMxvvnaQeWy00bwAqrq2K_ShISRO07lo_ImFwJU2Pi25uJPN81e\/s1600\/programmable-digital-timer-switch-actuators-2_2.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"255 Stages Simple Programmable Timer Circuit\" border=\"0\" height=\"314\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiBVgAiU_lR9E_RpfH_gy5K_Rq980fRdVLSvjHEJ89-TCBY72xQJ3x1LDq20smNo1gMKRbm1vU9pKhxSl4ClpaOAOl62GMxvvnaQeWy00bwAqrq2K_ShISRO07lo_ImFwJU2Pi25uJPN81e\/s320\/programmable-digital-timer-switch-actuators-2_2.jpg\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\nElectronic delay timers are devices which are able to count and produce different time delay intervals as per the external settings. The elapsing of the set time is mostly indicated through an audible alarm to alert the user. Timers play an important role in our everyday life, whether it’s your cell phone, wall clock, TV\/DVD sets, computers they are present everywhere.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nUsually an ordinary electronic timer is able to produce single-shot delay intervals and setting up its initializing point becomes inaccessible. The present simple programmable timer circuit design eliminates this drawback.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEg0R3v4lGILcJIQCA3UV53fQmsQLbHtl9qPq3OdM94LfCpz239A2_AUfk2oF-eCzcDnjfOifmBrWGOECn_b38PpOKMvVJaIpaF-_DLXJR0RtKUnLX5auwmxXvqytpvDJr-qh_DUQyj0TLqi\/s1600\/sprg_sw.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Simple Programmable Timer Circuit - 16F628\" border=\"0\" height=\"285\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEg0R3v4lGILcJIQCA3UV53fQmsQLbHtl9qPq3OdM94LfCpz239A2_AUfk2oF-eCzcDnjfOifmBrWGOECn_b38PpOKMvVJaIpaF-_DLXJR0RtKUnLX5auwmxXvqytpvDJr-qh_DUQyj0TLqi\/s400\/sprg_sw.jpg\" title=\"\" width=\"400\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ESimple Programmable Timer Circuit\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\nThis is a one of the simple circuit of programmable timer circuit. The time range of this timer is 1 second to 255 hours. The delay time can be change by dip switches. The whole circuit of programmable timer is build using cheap \u003Ci\u003EPIC16F628A\u003C\/i\u003E microcontroller and few passive components.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ch3\u003E\n\u003Cu\u003ECircuit Operation\u003C\/u\u003E\u003C\/h3\u003E\nAfter power applied, the \u003Ci\u003ESTART\u003C\/i\u003E led will turn on and you need to configure the delay time, timer mode and repeat mode. The delay time of this circuit can change by using dip switches. Those dip switches are represent 8-bit binary number and that number use to set delay time. When the delay time over, \u003Ci\u003ERLY ON\u003C\/i\u003E led will turn on.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nEg:\u003Cbr \/\u003E\nIf you need to set delay time to 150 then, dip switch configuration is 10010110 (RB0-RB7).\u003Cbr \/\u003E\n1 = Off and 0 = On\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nWhen you pressed the \u003Ci\u003ESTART\u003C\/i\u003E button, \u003Ci\u003ESTART\u003C\/i\u003E led will begin to blink and you can observe timer status by that.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ch4\u003E\n\u003Cu\u003ETime Mode\u003C\/u\u003E\u003C\/h4\u003E\nThis circuit can operate in 3 different time modes (Seconds, Minutes and Hours).  Those modes can select from \u003Ci\u003EMODE\u003C\/i\u003E buttons.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Col\u003E\n\u003Cli\u003EIf both \u003Ci\u003EPORTA.F6\u003C\/i\u003E and \u003Ci\u003EPORTA.F7\u003C\/i\u003E are low or high, then circuit is running in seconds’ mode (0 – 255 seconds)\u003C\/li\u003E\n\u003Cli\u003EIf \u003Ci\u003EPORTA.F6\u003C\/i\u003E high and \u003Ci\u003EPORTA.F7\u003C\/i\u003E low, then the circuit is running in minutes’ mode (0 – 255 minutes)\u003C\/li\u003E\n\u003Cli\u003EIf \u003Ci\u003EPORTA.F6\u003C\/i\u003E low and \u003Ci\u003EPORTA.F7\u003C\/i\u003E high, then the circuit is running in hours’ mode (0 – 255 hour)\n\u003C\/li\u003E\n\u003C\/ol\u003E\n\u003Cbr \/\u003E\n\u003Ch4\u003E\n\u003Cu\u003ERepeat Mode\u003C\/u\u003E\u003C\/h4\u003E\nIf \u003Ci\u003EPORTA.F1\u003C\/i\u003E is low then repeat mode will turn on. The circuit running continuously and \u003Ci\u003ERLY ON\u003C\/i\u003E led will turn on and off repeatedly.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nTo control heavy load, remove \u003Ci\u003ERLY ON\u003C\/i\u003E led and connect 5v relay through NPN transistor. Then connect you device across the relay. Supply voltage for this circuit is 5v and use voltage regulator ic such as \u003Ci\u003ELM7805\u003C\/i\u003E, if you use voltage above that. \n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: left;\"\u003E\n\u003C\/div\u003E\n\u003Ch3 class=\"trigger\"\u003E\n\u003Cimg src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgxDYxsPjCPOIsq77ilBw8lKRDWctzAbaIPazTlYLMwhDgTgtbwcGhkO5JDarvYd2Ra839oMtgLr1arP5yMVsKSeUqWhvRQ5Ddk4AVdzL98jzXYipeCxGQum_JwHIoKeey_ZiC25JJgZEE\/s1600\/DOWNLOAD.png\" \/\u003E\u003C\/h3\u003E\n\u003Cdiv class=\"toggle_container\"\u003E\n\u003Cdiv class=\"block\"\u003E\n\u003Cblockquote class=\"tr_bq\"\u003E\n\u003Cdiv style=\"text-align: center;\"\u003E\n\u003Ca href=\"http:\/\/tiny.cc\/prg_sw_hex\" target=\"_blank\"\u003E\u003Cspan style=\"font-size: large;\"\u003ESimple Programmable Timer\u003C\/span\u003E\u003C\/a\u003E\n\u003Cbr \/\u003E\n\u003Ca href=\"http:\/\/tiny.cc\/prg_sw_src\" target=\"_blank\"\u003E\u003Cspan style=\"font-size:large;\"\u003EMikroC Code\u003C\/span\u003E\u003C\/a\u003E\n\n\u003C\/div\u003E\n\u003C\/blockquote\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/6771437801035742999\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/12\/multi-stage-simple-programmable-timer.html#comment-form","title":"0 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/6771437801035742999"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/6771437801035742999"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/12\/multi-stage-simple-programmable-timer.html","title":"Multi Stage Simple Programmable Timer Circuit - 16F628A"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/16788868236927971222"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"30","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjd4FUk8kZ81qA5RH-8TE_fE-lTn418FZvTVTpV4dMcuL2J5XFvkMZI3ZRhvLp-6_wGzPKh7UWWA09Xjk3NLUeJ31fOe7wglNXt0CZ1qvAr95_wj5WzoIVV7K7-u5K2EbA\/s220\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiBVgAiU_lR9E_RpfH_gy5K_Rq980fRdVLSvjHEJ89-TCBY72xQJ3x1LDq20smNo1gMKRbm1vU9pKhxSl4ClpaOAOl62GMxvvnaQeWy00bwAqrq2K_ShISRO07lo_ImFwJU2Pi25uJPN81e\/s72-c\/programmable-digital-timer-switch-actuators-2_2.jpg","height":"72","width":"72"},"thr$total":{"$t":"0"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-5126635709769782403"},"published":{"$t":"2015-11-26T18:58:00.001+05:30"},"updated":{"$t":"2020-11-04T13:28:17.220+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"16F"},{"scheme":"http://www.blogger.com/atom/ns#","term":"PIC"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Tools"}],"title":{"type":"text","$t":"Simple and Accurate LC Meter Circuit - 16F690"},"content":{"type":"html","$t":"\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEj2oeJLTfqKk1L3lcb_PiXUBv5_NaLwJ7Ao76d9pWLWGOwo1-FqtzU8xHw8B40nsKohYYzr-zj71bIXMRVvV7XPrfM6UcsB8ZwcrQgWX9OEN6dCqug9OgCcXqbZ8ui_EpsPDDd0Hg-5rzk1\/s1600\/lc_meter.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Simple and Accurate LC Meter - 16F690\" border=\"0\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEj2oeJLTfqKk1L3lcb_PiXUBv5_NaLwJ7Ao76d9pWLWGOwo1-FqtzU8xHw8B40nsKohYYzr-zj71bIXMRVvV7XPrfM6UcsB8ZwcrQgWX9OEN6dCqug9OgCcXqbZ8ui_EpsPDDd0Hg-5rzk1\/s1600\/lc_meter.jpg\" title=\"\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EDigital LC Meter\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\nA LCR meter [Inductance (L), Capacitance (C), and Resistance (R)] is a piece of electronic test equipment used to measure the inductance, capacitance and, resistance of a component. Inductance is the property of an electrical circuit causing voltage to be generated proportional to the rate of change in current in a circuit. In Electronics, capacitance is the ability of a body to hold an electrical charge. Capacitance is also a measure of the amount of electrical energy stored (or separated) for a given electric potential. The electrical resistance of an electrical element measures its opposition to the passage of an electric current. The meter reads L, C and R directly with no human calculation required.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nRecently I found this LC meter project on internet and I was looking for that kind of project. Therefore, I build. Amazing it is work! Also the accuracy of this LC meter is great and it is very easy to build. So that, I post it here, because I think it is useful to you. You can visit original post from using this link: \u003Ca href=\"http:\/\/www.hobbielektronika.hu\/cikkek\/lcm3_alkatresz_mero_muszer_-_kit_lehetoseg.html\" target=\"_blank\"\u003ELMC3\u003C\/a\u003E\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nThe data below were determined based on theoretical calculations, the scale and the display automatically change.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" border=\"2\" cellpadding=\"3\" cellspacing=\"0\"\u003E\n\u003Ctbody\u003E\n\u003Ctr\u003E\n            \u003Ctd\u003E\u003C\/td\u003E\n            \u003Ctd\u003EMin\u003C\/td\u003E\n            \u003Ctd\u003EMax\u003C\/td\u003E\n            \u003Ctd\u003EResolution\u003C\/td\u003E\n            \u003Ctd\u003EAccuracy\u003C\/td\u003E\n        \u003C\/tr\u003E\n\u003Ctr\u003E\n            \u003Ctd\u003ENon Polar Condenser\u003C\/td\u003E\n            \u003Ctd\u003E1pF\u003C\/td\u003E\n            \u003Ctd\u003E1nF\u003C\/td\u003E\n            \u003Ctd\u003E0.1pF\u003C\/td\u003E\n            \u003Ctd\u003E1%\u003C\/td\u003E\n        \u003C\/tr\u003E\n\u003Ctr\u003E\n            \u003Ctd\u003E\u003Cbr \/\u003E\u003C\/td\u003E\n            \u003Ctd\u003E1nF\u003C\/td\u003E\n            \u003Ctd\u003E100nF\u003C\/td\u003E\n            \u003Ctd\u003E1pF\u0026nbsp;\u003C\/td\u003E\n            \u003Ctd\u003E1%\u003C\/td\u003E\n        \u003C\/tr\u003E\n\u003Ctr\u003E\n            \u003Ctd\u003E\u003Cbr \/\u003E\u003C\/td\u003E\n            \u003Ctd\u003E100nF\u003C\/td\u003E\n            \u003Ctd\u003E1uF\u0026nbsp;\u003C\/td\u003E\n            \u003Ctd\u003E1nF\u003C\/td\u003E\n            \u003Ctd\u003E2.5%\u003C\/td\u003E\n        \u003C\/tr\u003E\n\u003Ctr\u003E\n            \u003Ctd\u003EElectrolytic Capacitor\u003C\/td\u003E\n            \u003Ctd\u003E100nF\u003C\/td\u003E\n            \u003Ctd\u003E100,000uF\u003C\/td\u003E\n            \u003Ctd\u003E1nF\u003C\/td\u003E\n            \u003Ctd\u003E5%\u003C\/td\u003E\n        \u003C\/tr\u003E\n\u003Ctr\u003E\n            \u003Ctd\u003EInductor\u003C\/td\u003E\n            \u003Ctd\u003E10nH\u003C\/td\u003E\n            \u003Ctd\u003E20H\u003C\/td\u003E\n            \u003Ctd\u003E10nH\u003C\/td\u003E\n            \u003Ctd\u003E5%\u003C\/td\u003E\n        \u003C\/tr\u003E\n\u003Ctr\u003E\n            \u003Ctd\u003EResistance\u003C\/td\u003E\n            \u003Ctd\u003E1mΩ\u003C\/td\u003E\n            \u003Ctd\u003E0.5Ω\u003C\/td\u003E\n            \u003Ctd\u003E1mΩ\u003C\/td\u003E\n            \u003Ctd\u003E5%\u0026nbsp;\u003C\/td\u003E\n        \u003C\/tr\u003E\n\u003Ctr\u003E\n            \u003Ctd\u003EInductance\u003C\/td\u003E\n            \u003Ctd\u003E0.5Ω\u003C\/td\u003E\n            \u003Ctd\u003E30Ω\u003C\/td\u003E\n            \u003Ctd\u003E10mΩ\u003C\/td\u003E\n            \u003Ctd\u003E10%\u003C\/td\u003E\n        \u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cdiv style=\"text-align: center;\"\u003E\nSpecifications of the LC Meter\n\u003C\/div\u003E\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjvmRGKSh5SH0q-jAFUfwSoG3YrxpHzBPixrLf44U3_eN1cVWR5F5GR2KjhVy0CiVFHuBW4ZRmu_48Kr7vBpDixN7p7wUV1q8KZHmwKN8q1zU1kmm73EWQNQhX041GYqLseIlIJvUh7UpSU\/s1600\/lc_meter_sch.JPG\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Simple and Accurate LC Meter Circuit\" border=\"0\" height=\"258\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjvmRGKSh5SH0q-jAFUfwSoG3YrxpHzBPixrLf44U3_eN1cVWR5F5GR2KjhVy0CiVFHuBW4ZRmu_48Kr7vBpDixN7p7wUV1q8KZHmwKN8q1zU1kmm73EWQNQhX041GYqLseIlIJvUh7UpSU\/s400\/lc_meter_sch.JPG\" title=\"\" width=\"400\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ELC Meter Diagram\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cb\u003ELC Switch:\n\u003C\/b\u003E\u003Cbr \/\u003E\nThe purpose of this is, switch between inductance and capacitance mode. When you turn on the LC meter, you should set it to C mode.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cb\u003ECalibration Switch:\n\u003C\/b\u003E\u003Cbr \/\u003E\nYou can calibrate LC meter by pressing this. See Calibration for more details.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ch3\u003E\n\u003Cu\u003ELC Meter Calibration\u003C\/u\u003E\u003C\/h3\u003E\nYou have 3 modes to calibrate. When the process is\ncompleted, calibrated values are saving to the microcontroller’s internal\nEEPROM, so of course they are available after the re-start. \n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cb\u003E\u003Cu\u003EC Calibration\u003C\/u\u003E\u003C\/b\u003E\u003Cbr \/\u003E\n\u003Col\u003E\n\u003Cli\u003ESwitch on\u003C\/li\u003E\n\u003Cli\u003ESwitch \u003Ci\u003E\u003Cb\u003EL\/C\u003C\/b\u003E\u003C\/i\u003E switch to \u003Ci\u003E\u003Cb\u003EC\u003C\/b\u003E\u003C\/i\u003E position\u003C\/li\u003E\n\u003Cli\u003ELeave the test probes freely. Do not even touch it\u003C\/li\u003E\n\u003Cli\u003EPress and hold the \u003Ci\u003E\u003Cb\u003ECALIB\u003C\/b\u003E\u003C\/i\u003E button until the message \u003Ci\u003E\u003Cb\u003ESwitch to meas\u003C\/b\u003E\u003C\/i\u003E. Then release the button\u003C\/li\u003E\n\u003Cli\u003EWait for the appearance of \u003Ci\u003E\u003Cb\u003E0.00 pF\u003C\/b\u003E\u003C\/i\u003E\u003C\/li\u003E\n\u003C\/ol\u003E\n\u003Cb\u003E\u003Cu\u003EL Calibration\u003C\/u\u003E\u003C\/b\u003E\u003Cbr \/\u003E\n\u003Col\u003E\n\u003Cli\u003ESwitch on\u003C\/li\u003E\n\u003Cli\u003ESwitch to the \u003Ci\u003E\u003Cb\u003EL\u003C\/b\u003E\u003C\/i\u003E position\u003C\/li\u003E\n\u003Cli\u003EConnect \u003Ci\u003E\u003Cb\u003EL\/C\u003C\/b\u003E\u003C\/i\u003E probe and \u003Ci\u003E\u003Cb\u003EGND\u003C\/b\u003E\u003C\/i\u003E probe together\u003C\/li\u003E\n\u003Cli\u003EPress and hold the \u003Ci\u003E\u003Cb\u003ECALIB\u003C\/b\u003E\u003C\/i\u003E button until the message \u003Ci\u003E\u003Cb\u003ESwitch to meas\u003C\/b\u003E\u003C\/i\u003E. Then release the button\u003C\/li\u003E\n\u003Cli\u003EWait for the appearance of \u003Ci\u003E\u003Cb\u003E0.00 uH\u003C\/b\u003E\u003C\/i\u003E\u003C\/li\u003E\n\u003C\/ol\u003E\n\u003Cb\u003E\u003Cu\u003EESR Calibration\u003C\/u\u003E\u003C\/b\u003E\u003Cbr \/\u003E\n\u003Col\u003E\n\u003Cli\u003ESwitch on\u003C\/li\u003E\n\u003Cli\u003ESwitch to the \u003Ci\u003E\u003Cb\u003EC\u003C\/b\u003E\u003C\/i\u003E position\u003C\/li\u003E\n\u003Cli\u003EConnect \u003Ci\u003E\u003Cb\u003ELE\u003C\/b\u003E\u003C\/i\u003E probe and \u003Ci\u003E\u003Cb\u003EGND\u003C\/b\u003E\u003C\/i\u003E probe together\u003C\/li\u003E\n\u003Cli\u003EPress and hold the \u003Ci\u003E\u003Cb\u003ECALIB\u003C\/b\u003E\u003C\/i\u003E button until the message \u003Ci\u003E\u003Cb\u003ESwitch to meas\u003C\/b\u003E\u003C\/i\u003E. Then release the button\u003C\/li\u003E\n\u003Cli\u003ENote the value shown on the screen\u003C\/li\u003E\n\u003C\/ol\u003E\n\u003Cb\u003E\u003Cu\u003ECalibration Values\u003C\/u\u003E\u003C\/b\u003E\u003Cbr \/\u003E\n\u003Cul\u003E\n\u003Cli\u003EF0 = 499.9k\u003C\/li\u003E\n\u003Cli\u003EFcal = 355.9k\u003C\/li\u003E\n\u003C\/ul\u003E\n\u003Cul\u003E\n\u003Cli\u003ERe = 180Ω\u003C\/li\u003E\n\u003C\/ul\u003E\n\u003Cul\u003E\n\u003Cli\u003EUesr0 = 58.3mV\u003C\/li\u003E\n\u003Cli\u003EFesr = 83.6k\u003C\/li\u003E\n\u003Cli\u003ERx = 0mΩ [-5mΩ to 5mΩ]\n\u003C\/li\u003E\n\u003C\/ul\u003E\n\u003Cbr \/\u003E\n\u003Ch3\u003E\n\u003Cu\u003ECritical Components\u003C\/u\u003E\u003C\/h3\u003E\nAll the below resistors are 1%.\n\u003Cbr \/\u003E\n(In my circuit, I used normal resistors and those are measured using digital multimeter)\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cul\u003E\n\u003Cli\u003E47Ω - R11\u003C\/li\u003E\n\u003Cli\u003E47kΩ - R8\u003C\/li\u003E\n\u003Cli\u003E100kΩ - R3-R5\u003C\/li\u003E\n\u003C\/ul\u003E\n\u003Cul\u003E\n\u003Cli\u003E1nF - C8, C11 (Polypropylene or Polyester)\u003C\/li\u003E\n\u003Cli\u003E33nF - C10 (Polypropylene 275V AC)\u003C\/li\u003E\n\u003Cli\u003E10uF - C7, C9 (Tantalum)\u003C\/li\u003E\n\u003C\/ul\u003E\n\u003Cul\u003E\n\u003Cli\u003E100uH - L1 (Low-loss DC resistance of 0.3-0.4Ω)\u003C\/li\u003E\n\u003C\/ul\u003E\n\u003Cbr \/\u003E\n\u003Ch3\u003E\n\u003Cu\u003ETesting\u003C\/u\u003E\n\u003C\/h3\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiHKR2xvQ_EmSo4CAPt44dX2i0J3LkvlmE-xdt22k5RgFwGo6BQrGvBq2F9NBwhYH3eVJ8rPcpxJoa445ipL6iFygZk3nwsed5bNameJlQqWasOQPXAC-1_LXtQ4TwJ1JoTjXgRuxCfWKFk\/s1600\/LCM3_C.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Simple and Accurate LC Meter Circuit - 16F690 test c\" border=\"0\" height=\"268\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiHKR2xvQ_EmSo4CAPt44dX2i0J3LkvlmE-xdt22k5RgFwGo6BQrGvBq2F9NBwhYH3eVJ8rPcpxJoa445ipL6iFygZk3nwsed5bNameJlQqWasOQPXAC-1_LXtQ4TwJ1JoTjXgRuxCfWKFk\/s320\/LCM3_C.jpg\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003Echeck 22pF ceramic capacitor\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEj1B8z8hurhbK_T3qxD7ragz0XlqWiPqTri5pKxptc2mptrevECM5G30sRoMjA-sfuSgBeget8ywshMr95XuVPU3jboRmF-2P7lKXdsH44dypAEaiukN9DBxUjBdZX8v3qkT5ycp7j-rfPd\/s1600\/LCM3_E.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Simple and Accurate LC Meter Circuit - 16F690 test e\" border=\"0\" height=\"276\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEj1B8z8hurhbK_T3qxD7ragz0XlqWiPqTri5pKxptc2mptrevECM5G30sRoMjA-sfuSgBeget8ywshMr95XuVPU3jboRmF-2P7lKXdsH44dypAEaiukN9DBxUjBdZX8v3qkT5ycp7j-rfPd\/s320\/LCM3_E.jpg\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003Echeck 100uF electrolytic capacitor\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjSIKEhzGw0gags4b5jk1xZhp-VmkAsWmMym1VbZJV2P7RM7XMICdjXhKyK3RdcsnhNi9aYT4q2StxQgwFWpwnK6DhgwvMgKJKmOKC-CdnjW8xGNk4VahdXKeQBjId2nh7pOgmCnBMjR3J7\/s1600\/LCM3_L.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Simple and Accurate LC Meter Circuit - 16F690 test l\" border=\"0\" height=\"267\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjSIKEhzGw0gags4b5jk1xZhp-VmkAsWmMym1VbZJV2P7RM7XMICdjXhKyK3RdcsnhNi9aYT4q2StxQgwFWpwnK6DhgwvMgKJKmOKC-CdnjW8xGNk4VahdXKeQBjId2nh7pOgmCnBMjR3J7\/s320\/LCM3_L.jpg\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003Echeck 100uH inductor\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\nI was unable to find a reed relay, so I put 5v ordinary relay temporarily. In addition, my PCB designed for the \u003Ci\u003E\u003Cb\u003ETL2285\u003C\/b\u003E\u003C\/i\u003E switches. But, I bought \u003Ci\u003E\u003Cb\u003ETL2230\u003C\/b\u003E\u003C\/i\u003E by mistake :)\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nIf the back-light brightness is low, you can increase back-light brightness by decreasing the value of the resistor R2 to 470Ω - 1k. You can change display contrast by adjusting 10k preset.\u003Cbr \/\u003E\nFor PCB, Schematic and hex file, click download button.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cspan style=\"color: red;\"\u003E\u003Cspan style=\"font-size: large;\"\u003EYou need to discharge capacitors properly before measuring.\u003C\/span\u003E\n\u003C\/span\u003E\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: left;\"\u003E\n\u003C\/div\u003E\n\u003Ch3 class=\"trigger\"\u003E\n\u003Cimg src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgxDYxsPjCPOIsq77ilBw8lKRDWctzAbaIPazTlYLMwhDgTgtbwcGhkO5JDarvYd2Ra839oMtgLr1arP5yMVsKSeUqWhvRQ5Ddk4AVdzL98jzXYipeCxGQum_JwHIoKeey_ZiC25JJgZEE\/s1600\/DOWNLOAD.png\" \/\u003E\u003C\/h3\u003E\n\u003Cdiv class=\"toggle_container\"\u003E\n\u003Cdiv class=\"block\"\u003E\n\u003Cblockquote class=\"tr_bq\"\u003E\n\u003Cdiv style=\"text-align: center;\"\u003E\n\u003Ca href=\"http:\/\/tiny.cc\/lcm3v135\" target=\"_blank\"\u003E\u003Cspan style=\"font-size: large;\"\u003ELC Meter\u003C\/span\u003E\u003C\/a\u003E\n\u003C\/div\u003E\n\u003C\/blockquote\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/5126635709769782403\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/11\/simple-and-accurate-lc-meter-circuit.html#comment-form","title":"18 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/5126635709769782403"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/5126635709769782403"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/11\/simple-and-accurate-lc-meter-circuit.html","title":"Simple and Accurate LC Meter Circuit - 16F690"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/16788868236927971222"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"30","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjd4FUk8kZ81qA5RH-8TE_fE-lTn418FZvTVTpV4dMcuL2J5XFvkMZI3ZRhvLp-6_wGzPKh7UWWA09Xjk3NLUeJ31fOe7wglNXt0CZ1qvAr95_wj5WzoIVV7K7-u5K2EbA\/s220\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEj2oeJLTfqKk1L3lcb_PiXUBv5_NaLwJ7Ao76d9pWLWGOwo1-FqtzU8xHw8B40nsKohYYzr-zj71bIXMRVvV7XPrfM6UcsB8ZwcrQgWX9OEN6dCqug9OgCcXqbZ8ui_EpsPDDd0Hg-5rzk1\/s72-c\/lc_meter.jpg","height":"72","width":"72"},"thr$total":{"$t":"18"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-7655739249916600466"},"published":{"$t":"2015-11-23T11:17:00.002+05:30"},"updated":{"$t":"2015-11-26T13:50:49.604+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"Basic"},{"scheme":"http://www.blogger.com/atom/ns#","term":"PIC"}],"title":{"type":"text","$t":"MikroC Programming Guide"},"content":{"type":"html","$t":"\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjoI-jrqnbt5iWp0joGf0CMT9N9eg8IVS-Z4mmoyL7Qt-CeVxxniE5q4f8gXLhUIxbeHby9pa2JTlrAFeEwf8XNUoQV77JwkkW6CoSEP-d4I5j2AeY7EC9ri_45wfLh14yEmjdQXclAGnXo\/s1600\/rd2kit_big.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"PIC Microcontrollers - Programming in C\" border=\"0\" height=\"174\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjoI-jrqnbt5iWp0joGf0CMT9N9eg8IVS-Z4mmoyL7Qt-CeVxxniE5q4f8gXLhUIxbeHby9pa2JTlrAFeEwf8XNUoQV77JwkkW6CoSEP-d4I5j2AeY7EC9ri_45wfLh14yEmjdQXclAGnXo\/s320\/rd2kit_big.jpg\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EMicrocontroller Programmer\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Ci\u003EThe purpose of this post is to provide basic information that one needs to know in order to be able to use microcontrollers successfully in practice. This post, therefore, doesn’t contain any super interesting program or device schematic with amazing solutions. Instead, the following examples are better proof that program writing is neither a privilege nor a talent issue, but the ability of simply putting puzzle pieces together using directives. Rest assured that design and development of devices mainly consists of the ‘test-correct-repeat’ work. Of course, the more you are in it, the more complicated it gets since the puzzle pieces are put together by both children and first-class architects.\n\u003C\/i\u003E\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ci\u003ECopyright © 1998–2012. MikroElektronika. All rights reserved. All trade and\/or services marks mentioned are the property of their respective owners.\u003C\/i\u003E\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ch3 id=\"c4v0\"\u003E\n\u003Cu\u003E4.0 TABLE OF CONTENTS\u003C\/u\u003E\u003C\/h3\u003E\n\u003Cul\u003E\n\u003Cli\u003E\u003Ca href=\"http:\/\/scopionz.blogspot.com\/p\/programming-in-c.html#c4v1\" rel=\"nofollow\" target=\"_blank\"\u003E4.1 BASIC CONNECTING\u003C\/a\u003E\u003C\/li\u003E\n\u003Cli\u003E\u003Ca href=\"http:\/\/scopionz.blogspot.com\/p\/programming-in-c.html#c4v2\" rel=\"nofollow\" target=\"_blank\"\u003E4.2 ADDITIONAL COMPONENTS\u003C\/a\u003E\u003C\/li\u003E\n\u003Cli\u003E\u003Ca href=\"http:\/\/scopionz.blogspot.com\/p\/programming-in-c.html#c4v3\" rel=\"nofollow\" target=\"_blank\"\u003E4.3 EXAMPLE 1 - Writing header, configuring I\/O pins, using delay function and switch operator\u003C\/a\u003E\u003C\/li\u003E\n\u003Cli\u003E\u003Ca href=\"http:\/\/scopionz.blogspot.com\/p\/programming-in-c.html#c4v4\" rel=\"nofollow\" target=\"_blank\"\u003E4.4 EXAMPLE 2 - Using assembly instructions and internal oscillator LFINTOSC\u003C\/a\u003E\u003C\/li\u003E\n\u003Cli\u003E\u003Ca href=\"http:\/\/scopionz.blogspot.com\/p\/programming-in-c.html#c4v5\" rel=\"nofollow\" target=\"_blank\"\u003E4.5 EXAMPLE 3 - TMR0 as a counter, declaring new variables, enumerated constants, using relay \u003C\/a\u003E\u003C\/li\u003E\n\u003Cli\u003E\u003Ca href=\"http:\/\/scopionz.blogspot.com\/p\/programming-in-c.html#c4v6\" rel=\"nofollow\" target=\"_blank\"\u003E4.6 EXAMPLE 4 - Using timers TMR0, TMR1 and TMR2. Using interrupts, declaring new function\u003C\/a\u003E\u003C\/li\u003E\n\u003Cli\u003E\u003Ca href=\"http:\/\/scopionz.blogspot.com\/p\/programming-in-c.html#c4v7\" rel=\"nofollow\" target=\"_blank\"\u003E4.7 EXAMPLE 5 - Using watch-dog timer\u003C\/a\u003E\u003C\/li\u003E\n\u003Cli\u003E\u003Ca href=\"http:\/\/scopionz.blogspot.com\/p\/programming-in-c.html#c4v8\" rel=\"nofollow\" target=\"_blank\"\u003E4.8 EXAMPLE 6 - Module CCP1 as PWM signal generator\u003C\/a\u003E\u003C\/li\u003E\n\u003Cli\u003E\u003Ca href=\"http:\/\/scopionz.blogspot.com\/p\/programming-in-c.html#c4v9\" rel=\"nofollow\" target=\"_blank\"\u003E4.9 EXAMPLE 7 - Using A\/D converter\u003C\/a\u003E\u003C\/li\u003E\n\u003Cli\u003E\u003Ca href=\"http:\/\/scopionz.blogspot.com\/p\/programming-in-c.html#c4v10\" rel=\"nofollow\" target=\"_blank\"\u003E4.10 EXAMPLE 8 - Using EEPROM Memory\u003C\/a\u003E\u003C\/li\u003E\n\u003Cli\u003E\u003Ca href=\"http:\/\/scopionz.blogspot.com\/p\/programming-in-c.html#c4v11\" rel=\"nofollow\" target=\"_blank\"\u003E4.11 EXAMPLE 9 - Two-digit LED counter, multiplexing\u003C\/a\u003E\u003C\/li\u003E\n\u003Cli\u003E\u003Ca href=\"http:\/\/scopionz.blogspot.com\/p\/programming-in-c.html#c4v12\" rel=\"nofollow\" target=\"_blank\"\u003E4.12 EXAMPLE 10 - Using LCD display\u003C\/a\u003E\u003C\/li\u003E\n\u003Cli\u003E\u003Ca href=\"http:\/\/scopionz.blogspot.com\/p\/programming-in-c.html#c4v13\" rel=\"nofollow\" target=\"_blank\"\u003E4.13 EXAMPLE 11 - RS232 serial communication\u003C\/a\u003E\u003C\/li\u003E\n\u003Cli\u003E\u003Ca href=\"http:\/\/scopionz.blogspot.com\/p\/programming-in-c.html#c4v14\" rel=\"nofollow\" target=\"_blank\"\u003E4.14 EXAMPLE 12 - Temperature measurement using DS1820 sensor. Use of 1-wire protocol\u003C\/a\u003E\u003C\/li\u003E\n\u003Cli\u003E\u003Ca href=\"http:\/\/scopionz.blogspot.com\/p\/programming-in-c.html#c4v15\" rel=\"nofollow\" target=\"_blank\"\u003E4.15 EXAMPLE 13 - Sound generation, sound library\u003C\/a\u003E\u003C\/li\u003E\n\u003Cli\u003E\u003Ca href=\"http:\/\/scopionz.blogspot.com\/p\/programming-in-c.html#c4v16\" rel=\"nofollow\" target=\"_blank\"\u003E4.16 EXAMPLE 14 - Using graphic LCD display\u003C\/a\u003E\u003C\/li\u003E\n\u003Cli\u003E\u003Ca href=\"http:\/\/scopionz.blogspot.com\/p\/programming-in-c.html#c4v17\" rel=\"nofollow\" target=\"_blank\"\u003E4.17 EXAMPLE 15 - Using touch panel\u003C\/a\u003E\u003C\/li\u003E\n\u003C\/ul\u003E\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/7655739249916600466\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/11\/microcontrollers-programming-guide.html#comment-form","title":"0 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/7655739249916600466"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/7655739249916600466"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/11\/microcontrollers-programming-guide.html","title":"MikroC Programming Guide"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/16788868236927971222"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"30","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjd4FUk8kZ81qA5RH-8TE_fE-lTn418FZvTVTpV4dMcuL2J5XFvkMZI3ZRhvLp-6_wGzPKh7UWWA09Xjk3NLUeJ31fOe7wglNXt0CZ1qvAr95_wj5WzoIVV7K7-u5K2EbA\/s220\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjoI-jrqnbt5iWp0joGf0CMT9N9eg8IVS-Z4mmoyL7Qt-CeVxxniE5q4f8gXLhUIxbeHby9pa2JTlrAFeEwf8XNUoQV77JwkkW6CoSEP-d4I5j2AeY7EC9ri_45wfLh14yEmjdQXclAGnXo\/s72-c\/rd2kit_big.jpg","height":"72","width":"72"},"thr$total":{"$t":"0"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-7249981651615478837"},"published":{"$t":"2015-11-18T11:45:00.002+05:30"},"updated":{"$t":"2020-11-04T13:23:47.361+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"16F"},{"scheme":"http://www.blogger.com/atom/ns#","term":"PIC"},{"scheme":"http://www.blogger.com/atom/ns#","term":"SSD"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Timer"}],"title":{"type":"text","$t":"Programmable Digital Seven Segment Timer Circuit - 16F628"},"content":{"type":"html","$t":"\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjMJcY1yKG3JIaOyw2lzxJGStRYhA1_32GYL4nbdYGTsZBKYO-6L7tLQairD6fOCxscWsJz-BX5-UDltaUGJ2021TpvTW508zAH1EjhUh80QGtMNCvG4MKRCjs3Bd072ZXmecO3hQRYmjgS\/s1600\/Digital+Timer.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Programmable Digital Timer Circuit\" border=\"0\" height=\"320\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjMJcY1yKG3JIaOyw2lzxJGStRYhA1_32GYL4nbdYGTsZBKYO-6L7tLQairD6fOCxscWsJz-BX5-UDltaUGJ2021TpvTW508zAH1EjhUh80QGtMNCvG4MKRCjs3Bd072ZXmecO3hQRYmjgS\/s320\/Digital+Timer.jpg\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ESeven Segment Timer\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\u003Cbr \/\u003E\nA timer is a specialized type of clock for measuring time intervals. By function, timers can be categorized to two main types. Those are Counts upwards and counts downward.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nTimers originally designed to fulfill a need in industry for a means of keeping time on certain devices. Originally, these timers were mechanical devices and used clockwork mechanisms as a means of keeping a regular time. The invention of two electromechanical timer designs allowed for more precise time measurement. The first uses the principle of heat expansion to increase the temperature of a metal finger made of two different metals with differing rates of thermal expansion. As electric current flows through the metal, it begins to heat and one side expands more quickly than the other does, which in turn, moves the electrical contact away from an electrical switch contact. The second uses a small AC motor, which turns at a predetermined rate due to the application of an alternating current. \n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nFinally, digital timers invented. Digital logic circuits are now so cheap that it has become a better investment to buy a digital timer than a mechanical or electromechanical timer. Individual timers implemented with single chip circuits.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nThis is a very simple adjustable digital timer circuit based on the PIC16F628A microcontroller and it can be programmed to schedule the on and off operation of an electrical appliance. This timer consists of three parts: power supply, control circuit and display. Working voltage of the circuit is 5v - 12v. It depends on the relay voltage. If you use 5v relay then you can omitted the LM7805 regulator IC and apply 5v directly. Otherwise, you have to use regulator IC and apply suitable voltage according to the relay voltage. The schematic is very simple and accurate of the circuit is very good. PIC use its internal oscillator.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjeVgu3JPuxVgotZaT1lMtTuquYHqkrIx7i0jH5IojQG3HS6jzAC6QQViv1XYVtDa2atpsodvHq0X85Kf8G683_dVvca61cOF0lsVwAEXgMziDGTk8xJwDw9ZOFGVubmEy4EcM7z6UEfKdL\/s1600\/4dg_tmr.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Programmable Digital SSD Timer Circuit - PIC16F628A\" border=\"0\" height=\"297\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjeVgu3JPuxVgotZaT1lMtTuquYHqkrIx7i0jH5IojQG3HS6jzAC6QQViv1XYVtDa2atpsodvHq0X85Kf8G683_dVvca61cOF0lsVwAEXgMziDGTk8xJwDw9ZOFGVubmEy4EcM7z6UEfKdL\/s400\/4dg_tmr.jpg\" title=\"\" width=\"400\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EProgrammable Digital Timer Schematic\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\u003Cbr \/\u003E\nThere are two versions of hex file are available. Those are \"4dg_tmr_min.hex\" and \"4dg_tmr_hr.hex\". The first file for the minute timer. It display minutes and seconds. Adjustable time is 1 second to 60 minutes. Other hex file for hourly timer and its adjustable time is 1 minute to 24 hours. This will display hours and minutes on the seven segments.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ch3\u003E\n\u003Cspan style=\"font-weight: normal;\"\u003E\u003Cu\u003EConfiguration\u003C\/u\u003E\u003C\/span\u003E\u003C\/h3\u003E\nIf the time runs too fast or too slow, you can able to adjust the speed by changing the value of Eeprom address 0. Default value is 44 (0x2c). Typical value is 59 (0x3B). Maximum is 255 (0xFF). In repeat mode delay time before restart the timer, determine by value of Eeprom address 3. Default value is 10 (0x0A). Maximum is 255 (0xFF). See below picture for more details.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjyqyh2b3euoShPbRqj_3t7iZ6Ckxa5U8o7Fp62PUkgQ7nqnKPdHPl7MOy6_3_cmkMH8vPY9UEiFQO0A2Hy9cIFcv6E8AorZik0RyZB13hj9WST_vjZbfWvIaw9G1sNStuER9vmy3v-9Yw8\/s1600\/4dg_tmr_config.JPG\" imageanchor=\"1\" style=\"margin-left: 1em; margin-right: 1em;\"\u003E\u003Cimg alt=\"Programmable Digital Timer Circuit configuration\" border=\"0\" height=\"218\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjyqyh2b3euoShPbRqj_3t7iZ6Ckxa5U8o7Fp62PUkgQ7nqnKPdHPl7MOy6_3_cmkMH8vPY9UEiFQO0A2Hy9cIFcv6E8AorZik0RyZB13hj9WST_vjZbfWvIaw9G1sNStuER9vmy3v-9Yw8\/s320\/4dg_tmr_config.JPG\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EEeprom Configuration\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Ch3\u003E\n\u003Cu\u003E\u003Cspan style=\"font-weight: normal;\"\u003EOperation of the timer\n\u003C\/span\u003E\u003C\/u\u003E\u003C\/h3\u003E\nThis circuit uses 5 push buttons to control the their functions.\u003Cbr \/\u003E\n\u003Cul\u003E\n\u003Cli\u003ESTART\/PAUSE: When the timer is on, the device is in pause condition even the switch was in closed position. Pressing this button, you can switch between the start and pause timer.\u003C\/li\u003E\n\u003Cli\u003EFOR\/BACKWARD: This allows you to select counter mode. Either upwards or count down.\u003C\/li\u003E\n\u003Cli\u003EREPEAT: When the timer reaches 00:00, it starts again from previous value you set.\u003C\/li\u003E\n\u003Cli\u003ELEFT\/RIGHT: This allows you to change values on display. The selected digit is incremented by pressing those buttons and values on the display are stored to the Eeprom.\n\u003C\/li\u003E\n\u003C\/ul\u003E\n\u003Cbr \/\u003E\nNow connect device you want to operate, through the relay. Set the desired time using left and right buttons and press start. When the timer reaches 00:00, relay will activate.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: left;\"\u003E\n\u003C\/div\u003E\n\u003Ch3 class=\"trigger\"\u003E\n\u003Cimg src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgxDYxsPjCPOIsq77ilBw8lKRDWctzAbaIPazTlYLMwhDgTgtbwcGhkO5JDarvYd2Ra839oMtgLr1arP5yMVsKSeUqWhvRQ5Ddk4AVdzL98jzXYipeCxGQum_JwHIoKeey_ZiC25JJgZEE\/s1600\/DOWNLOAD.png\" \/\u003E\u003C\/h3\u003E\n\u003Cdiv class=\"toggle_container\"\u003E\n\u003Cdiv class=\"block\"\u003E\n\u003Cblockquote class=\"tr_bq\"\u003E\n\u003Cdiv style=\"text-align: center;\"\u003E\n\n\u003Ca href=\"http:\/\/tiny.cc\/4ssd_prg_tmr\" target=\"_blank\"\u003E\u003Cspan style=\"font-size:large;\"\u003EProgrammable Digital Timer\u003C\/span\u003E\u003C\/a\u003E\u003Cbr \/\u003E\n\n\u003C\/div\u003E\n\u003C\/blockquote\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/7249981651615478837\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/11\/programmable-digital-ssd-timer-circuit.html#comment-form","title":"46 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/7249981651615478837"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/7249981651615478837"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/11\/programmable-digital-ssd-timer-circuit.html","title":"Programmable Digital Seven Segment Timer Circuit - 16F628"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/16788868236927971222"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"30","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjd4FUk8kZ81qA5RH-8TE_fE-lTn418FZvTVTpV4dMcuL2J5XFvkMZI3ZRhvLp-6_wGzPKh7UWWA09Xjk3NLUeJ31fOe7wglNXt0CZ1qvAr95_wj5WzoIVV7K7-u5K2EbA\/s220\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjMJcY1yKG3JIaOyw2lzxJGStRYhA1_32GYL4nbdYGTsZBKYO-6L7tLQairD6fOCxscWsJz-BX5-UDltaUGJ2021TpvTW508zAH1EjhUh80QGtMNCvG4MKRCjs3Bd072ZXmecO3hQRYmjgS\/s72-c\/Digital+Timer.jpg","height":"72","width":"72"},"thr$total":{"$t":"46"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-5309160057817373689"},"published":{"$t":"2015-11-08T09:26:00.001+05:30"},"updated":{"$t":"2020-11-04T13:20:22.783+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"16F"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Counter"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Indicator"},{"scheme":"http://www.blogger.com/atom/ns#","term":"LCD"},{"scheme":"http://www.blogger.com/atom/ns#","term":"PIC"}],"title":{"type":"text","$t":"Digital LCD Speedometer and Odometer Circuit - 16F628"},"content":{"type":"html","$t":"\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjwR_G4AjJSCBC4BqGGTHmyMWg_PKleMenyxHPqLaCIJ-4mKcby2QSRf-6r6wnlnHKawnqE0C74Kkb0K08u8GxX-GJHG9U1DYa-lt2BIw1iVpCv5HABixE_qT6rYissgrIGM4C7YXREhMFH\/s1600\/speedo-odometer.jpg\" imageanchor=\"1\" style=\"margin-left: 1em; margin-right: 1em;\"\u003E\u003Cimg alt=\"speedo odometer\" border=\"0\" height=\"180\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjwR_G4AjJSCBC4BqGGTHmyMWg_PKleMenyxHPqLaCIJ-4mKcby2QSRf-6r6wnlnHKawnqE0C74Kkb0K08u8GxX-GJHG9U1DYa-lt2BIw1iVpCv5HABixE_qT6rYissgrIGM4C7YXREhMFH\/s320\/speedo-odometer.jpg\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ESpeedometer\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nIn my previous post, I explained how to build a simple speedometer circuit using a micro-controller and seven segments. Read it from \u003Ca href=\"http:\/\/scopionz.blogspot.com\/2015\/11\/digital-seven-segment-speedometer.html\" target=\"_blank\"\u003Ehere\u003C\/a\u003E.  This is a further development of that circuit. This circuit indicates both speed and distance.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nA speedometer or a speed meter is an instrument that measures and displays the instantaneous speed of a vehicle. An odometer or odograph is an instrument that indicates distance traveled by a vehicle.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiEoalVwmf025TrZKhs4hL3HELgYPx3B1TPdgPwXMIEsdB-FuXwRKaXyHQWeHJqttVXOomHZBDYJdXF3hJXulm43Q_k4yJo_ChwUNZogqXA4bWwkC0Ym2ug13-xJqGkyv-mdEPYkWpZIX-k\/s1600\/speedo-odometer-circuit.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"speedo odometer circuit\" border=\"0\" height=\"232\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiEoalVwmf025TrZKhs4hL3HELgYPx3B1TPdgPwXMIEsdB-FuXwRKaXyHQWeHJqttVXOomHZBDYJdXF3hJXulm43Q_k4yJo_ChwUNZogqXA4bWwkC0Ym2ug13-xJqGkyv-mdEPYkWpZIX-k\/s400\/speedo-odometer-circuit.jpg\" title=\"\" width=\"400\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ESpeedometer + Odometer Circuit\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nFor this circuit I used PIC16F628A micro-controller and 16x2 LCD.  You can able to see speed in first line and distance in second line on the LCD. Distance will update every 100 meters and speed updates every one second. Value of distance writes to Eeprom in every 1 km. I also added a button to this circuit. The purpose is, reset the distance to zero.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nSame as the Speedometer Circuit, micro-controller count the signals received to RA4 pin and then calculate speed and distance, then display information on LCD. 8 MHz resonator is use to generate clock signals. However, you can always use crystal for it and make sure to add 22pf ceramic capacitors if you use crystal oscillator.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nMeasure the radius of the wheel and enter it to Eeprom address 0x00. Default value for radius is 30cm (0x1E). I used two magnets to operate reed switch. Please refer my previous post for more details and circuit connection. \n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nMaximum speed is 999 kmh \u003Cbr \/\u003E\nMaximum distance is 9999 km\u003Cbr \/\u003E\nSupply voltage is 5v\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: left;\"\u003E\n\u003C\/div\u003E\n\u003Ch3 class=\"trigger\"\u003E\n\u003Cimg src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgxDYxsPjCPOIsq77ilBw8lKRDWctzAbaIPazTlYLMwhDgTgtbwcGhkO5JDarvYd2Ra839oMtgLr1arP5yMVsKSeUqWhvRQ5Ddk4AVdzL98jzXYipeCxGQum_JwHIoKeey_ZiC25JJgZEE\/s1600\/DOWNLOAD.png\" \/\u003E\u003C\/h3\u003E\n\u003Cdiv class=\"toggle_container\"\u003E\n\u003Cdiv class=\"block\"\u003E\n\u003Cblockquote class=\"tr_bq\"\u003E\n\u003Cdiv style=\"text-align: center;\"\u003E\n\n\u003Ca href=\"http:\/\/tiny.cc\/spd_lcd\" target=\"_blank\"\u003E\u003Cspan style=\"font-size:large;\"\u003ESpeedo + Odometer\u003C\/span\u003E\u003C\/a\u003E\u003Cbr \/\u003E\n\n\u003C\/div\u003E\n\u003C\/blockquote\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/5309160057817373689\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/11\/digital-lcd-speedometer-odometer.html#comment-form","title":"3 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/5309160057817373689"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/5309160057817373689"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/11\/digital-lcd-speedometer-odometer.html","title":"Digital LCD Speedometer and Odometer Circuit - 16F628"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/16788868236927971222"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"30","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjd4FUk8kZ81qA5RH-8TE_fE-lTn418FZvTVTpV4dMcuL2J5XFvkMZI3ZRhvLp-6_wGzPKh7UWWA09Xjk3NLUeJ31fOe7wglNXt0CZ1qvAr95_wj5WzoIVV7K7-u5K2EbA\/s220\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjwR_G4AjJSCBC4BqGGTHmyMWg_PKleMenyxHPqLaCIJ-4mKcby2QSRf-6r6wnlnHKawnqE0C74Kkb0K08u8GxX-GJHG9U1DYa-lt2BIw1iVpCv5HABixE_qT6rYissgrIGM4C7YXREhMFH\/s72-c\/speedo-odometer.jpg","height":"72","width":"72"},"thr$total":{"$t":"3"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-3860319318685053850"},"published":{"$t":"2015-11-06T20:25:00.003+05:30"},"updated":{"$t":"2020-11-04T13:17:02.386+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"16F"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Counter"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Indicator"},{"scheme":"http://www.blogger.com/atom/ns#","term":"PIC"},{"scheme":"http://www.blogger.com/atom/ns#","term":"SSD"}],"title":{"type":"text","$t":"Digital Seven Segment Speedometer Circuit - 16F628"},"content":{"type":"html","$t":"\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjLNFmJOBHDIvoeK7NZ-2RN24ePQsQYXiKHA_RmbvcW1QZKC3MiM36VNEbHwKFl9czvklUEvZxjwaeHtqURFYefDiIZnWwjHXcOnT4pVGaVhlYCuo8OmgQXgG1D3hjkOUTYMqLK543NL_VA\/s1600\/speedometer1.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"speedometer1\" border=\"0\" height=\"180\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjLNFmJOBHDIvoeK7NZ-2RN24ePQsQYXiKHA_RmbvcW1QZKC3MiM36VNEbHwKFl9czvklUEvZxjwaeHtqURFYefDiIZnWwjHXcOnT4pVGaVhlYCuo8OmgQXgG1D3hjkOUTYMqLK543NL_VA\/s320\/speedometer1.jpg\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ESpeedometer\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Ch3\u003E\n\u003Cu\u003EHow Electronic Speedometers Work\u003C\/u\u003E\n\u003C\/h3\u003E\nIn Electronic speedometer, small magnets attached to the vehicle's rotating drive shaft sweep past tiny magnetic sensors (either reed switches or Hall-effect sensors) positioned nearby. Each time the magnets pass the sensors, they generate a brief pulse of electric current. An electronic circuit counts how quickly the pulses arrive and converts this into a speed, displayed electronically on the display. Since the circuit is measuring the number of wheel rotations, it can also keep a count of how far you have traveled, doubling-up as an odometer (distance-measuring meter). Electronic speedometers can also display speeds with analog pointers and dials, just like traditional eddy-current speedos: in that case, the electronic circuit drives a highly controllable electric motor (called a stepper motor) that rotates the pointer through an appropriate angle. Electronic speedometers are more reliable and compact than mechanical ones and the motion sensors can be any distance from the display that shows you your speed, making them suitable for any kind of vehicle!\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: center;\"\u003E\n\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiha-FeUh7e4GyDse94UuS2LRV6jpHnGW550F-dtVUSgs4LwioVk9yrfNwSY0SDz74bBkn4p3zTQv38BZ_k0eCBqxnHu-B3bKannT76VHTXPkxyooRktsW7Gap9btxr_n7Th90UO51dtJ8R\/s1600\/ele_speedometor.png\" imageanchor=\"1\" style=\"clear: left; float: left; margin-bottom: 1em; margin-right: 1em;\"\u003E\u003Cimg alt=\"electronic speedometer\" border=\"0\" height=\"240\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiha-FeUh7e4GyDse94UuS2LRV6jpHnGW550F-dtVUSgs4LwioVk9yrfNwSY0SDz74bBkn4p3zTQv38BZ_k0eCBqxnHu-B3bKannT76VHTXPkxyooRktsW7Gap9btxr_n7Th90UO51dtJ8R\/s320\/ele_speedometor.png\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/div\u003E\n1. A magnet connected to one of the wheels rotates at high speed.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n2. Every time it makes one complete revolution, it passes a magnetic sensor and the field from the magnet triggers the sensor.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n3. A circuit translates them into your instantaneous speed and distance traveled.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n4. A digital display displaying the speed and distance.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nHere I will show you how to build simple yet accurate digital speedometer circuit using just a single IC, seven segments and a few external passive components. The design can be used for all vehicles for indicating their speeds.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhuv1bH4qiKkG4GTvNcQDPpOGzuGxnWCPB7GTsCqFVRwOOHbvizWUllAgb8TTfl7To2pMiK3b37dnkRewC4kWWXYNuEiuWqPOLWUfHvU5TdZtTcinmrF6svW7SBhbHbvXkDZnJSa3wIvqTr\/s1600\/speedo_meter_1_sch.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"ssd speedometer circuit\" border=\"0\" height=\"238\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhuv1bH4qiKkG4GTvNcQDPpOGzuGxnWCPB7GTsCqFVRwOOHbvizWUllAgb8TTfl7To2pMiK3b37dnkRewC4kWWXYNuEiuWqPOLWUfHvU5TdZtTcinmrF6svW7SBhbHbvXkDZnJSa3wIvqTr\/s320\/speedo_meter_1_sch.jpg\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ESpeedometer Circuit\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\nThe main component of this circuit is PIC16F628A. It count signals receive to RA4, then calculate speed and display it on seven segment. A Reed switch used to sense the speed. If the brightness of seven segments is too much, add 220 – 330 Ohms resistors between PORTB and the display.  There are two version of hex files are available. In v1 micro-controller use its internal oscillator and v2 used external 4MHz oscillator.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nMeasure the radius of the wheel and enter it to Eeprom address 0x00. Default value for radius is 30cm (0x1E). You can change update interval by changing the value of Eeprom address 0x01. Default value is 20 (0x14). To increase the sensitivity in this circuit I used two magnets.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhhi7pwfIM6xXuhJp1VgkAkmfSan456INu_7WMitdWzxrWlszRwKAExoiFarDSFzz_Q3IvGoj6ImUY1DmeHRjIeEBpHY_v7NeakoT0ySv95if-XyNgtRsAhVTHCHw3dDvspLDvOSpuOeVEZ\/s1600\/spd+eeprom.JPG\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"speedometer eeprom settings\" border=\"0\" height=\"199\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhhi7pwfIM6xXuhJp1VgkAkmfSan456INu_7WMitdWzxrWlszRwKAExoiFarDSFzz_Q3IvGoj6ImUY1DmeHRjIeEBpHY_v7NeakoT0ySv95if-XyNgtRsAhVTHCHw3dDvspLDvOSpuOeVEZ\/s320\/spd+eeprom.JPG\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EEeprom Settings\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nMaximum Speed is 999 Kmh\u003Cbr \/\u003E\nMaximum Radius is 255 cm\u003Cbr \/\u003E\nSupply voltage is 5v\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgS4zlb4ld8z_1yNCDm7HZ8D8h447g_ndIwIwO8j3oB3oajG7AHfSGLAU3JDoINBNxcs5a3an1BPX-tsOVDxfwqnI_F3li3NS_0YC8prUOGrSArTUbXDg8VaGJ4jT61ua4JJv2oygVZih5k\/s1600\/speedo_connection.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"speedometer connection\" border=\"0\" height=\"190\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgS4zlb4ld8z_1yNCDm7HZ8D8h447g_ndIwIwO8j3oB3oajG7AHfSGLAU3JDoINBNxcs5a3an1BPX-tsOVDxfwqnI_F3li3NS_0YC8prUOGrSArTUbXDg8VaGJ4jT61ua4JJv2oygVZih5k\/s320\/speedo_connection.jpg\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ECircuit Connection\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: left;\"\u003E\n\u003C\/div\u003E\n\u003Ch3 class=\"trigger\"\u003E\n\u003Cimg src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgxDYxsPjCPOIsq77ilBw8lKRDWctzAbaIPazTlYLMwhDgTgtbwcGhkO5JDarvYd2Ra839oMtgLr1arP5yMVsKSeUqWhvRQ5Ddk4AVdzL98jzXYipeCxGQum_JwHIoKeey_ZiC25JJgZEE\/s1600\/DOWNLOAD.png\" \/\u003E\u003C\/h3\u003E\n\u003Cdiv class=\"toggle_container\"\u003E\n\u003Cdiv class=\"block\"\u003E\n\u003Cblockquote class=\"tr_bq\"\u003E\n\u003Cdiv style=\"text-align: center;\"\u003E\n  \n\u003Ca href=\"http:\/\/tiny.cc\/spd_ssd\" target=\"_blank\"\u003E\u003Cspan style=\"font-size:large;\"\u003ESSD Speedometer\u003C\/span\u003E\u003C\/a\u003E\u003Cbr \/\u003E\n\n\u003C\/div\u003E\n\u003C\/blockquote\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/3860319318685053850\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/11\/digital-seven-segment-speedometer.html#comment-form","title":"1 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/3860319318685053850"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/3860319318685053850"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/11\/digital-seven-segment-speedometer.html","title":"Digital Seven Segment Speedometer Circuit - 16F628"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/16788868236927971222"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"30","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjd4FUk8kZ81qA5RH-8TE_fE-lTn418FZvTVTpV4dMcuL2J5XFvkMZI3ZRhvLp-6_wGzPKh7UWWA09Xjk3NLUeJ31fOe7wglNXt0CZ1qvAr95_wj5WzoIVV7K7-u5K2EbA\/s220\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjLNFmJOBHDIvoeK7NZ-2RN24ePQsQYXiKHA_RmbvcW1QZKC3MiM36VNEbHwKFl9czvklUEvZxjwaeHtqURFYefDiIZnWwjHXcOnT4pVGaVhlYCuo8OmgQXgG1D3hjkOUTYMqLK543NL_VA\/s72-c\/speedometer1.jpg","height":"72","width":"72"},"thr$total":{"$t":"1"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-3189112151617146146"},"published":{"$t":"2015-11-05T12:11:00.000+05:30"},"updated":{"$t":"2015-11-05T12:25:52.028+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"Basic"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Indicator"},{"scheme":"http://www.blogger.com/atom/ns#","term":"LED"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Sensor"}],"title":{"type":"text","$t":"Simple LED Light Meter Circuit - LB1403"},"content":{"type":"html","$t":"\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjH4Fre96xLM0_ZzTC-uG57-weErkPxTC2rdFQNSFCB7AIx4F1x_gua6zxpOyb_yF06uHo3EDB_SVSzUD5rl4D5TTAa0aONWqIXSxie6oSu9eCmsJ9XVFaTTm8hEzghnfsyyHQigY9Tjvd4\/s1600\/Light-Meter.png\" imageanchor=\"1\" style=\"margin-left: 1em; margin-right: 1em;\"\u003E\u003Cimg alt=\"Light Meter\" border=\"0\" height=\"320\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjH4Fre96xLM0_ZzTC-uG57-weErkPxTC2rdFQNSFCB7AIx4F1x_gua6zxpOyb_yF06uHo3EDB_SVSzUD5rl4D5TTAa0aONWqIXSxie6oSu9eCmsJ9XVFaTTm8hEzghnfsyyHQigY9Tjvd4\/s320\/Light-Meter.png\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003E\u003Cbr \/\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\nA light meter is a device having a light sensor at one end and a window at the other end which displays the reading that indicates the current light conditions. Light meters are often used in the fields of cinematography, photography and also in test cricket in order to determine the optimum light level for a scene.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nUsing LB1403 IC and LDR, we can able to build a cheap light meter. LEDs are used to observe the current light conditions and variable resistor is used for adjust the sensitivity. If the LEDs are too bright, change R1 value (220 - 470 ohms). Supply voltage is 6 - 12V.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgYcXKme_UgzyBlfpcoNTqKtqq19VEDie4aUcZn-2W9prrAyxZbBFDOE1D43H9RATIFcAwBnpvWekvmdrNqn9OHxfLd24GGkWhfV6kE6Af2jhLJzAGvVfHbb8sUfe-q2-hss5vIVtI7Frsj\/s1600\/Light_Meter_+sch.JPG\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Simple LED Light Meter Circuit - LB1403\" border=\"0\" height=\"280\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgYcXKme_UgzyBlfpcoNTqKtqq19VEDie4aUcZn-2W9prrAyxZbBFDOE1D43H9RATIFcAwBnpvWekvmdrNqn9OHxfLd24GGkWhfV6kE6Af2jhLJzAGvVfHbb8sUfe-q2-hss5vIVtI7Frsj\/s400\/Light_Meter_+sch.JPG\" title=\"\" width=\"400\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ELight Meter Schematic\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/3189112151617146146\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/11\/simple-led-light-meter-circuit-lb1403.html#comment-form","title":"0 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/3189112151617146146"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/3189112151617146146"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/11\/simple-led-light-meter-circuit-lb1403.html","title":"Simple LED Light Meter Circuit - LB1403"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/16788868236927971222"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"30","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjd4FUk8kZ81qA5RH-8TE_fE-lTn418FZvTVTpV4dMcuL2J5XFvkMZI3ZRhvLp-6_wGzPKh7UWWA09Xjk3NLUeJ31fOe7wglNXt0CZ1qvAr95_wj5WzoIVV7K7-u5K2EbA\/s220\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjH4Fre96xLM0_ZzTC-uG57-weErkPxTC2rdFQNSFCB7AIx4F1x_gua6zxpOyb_yF06uHo3EDB_SVSzUD5rl4D5TTAa0aONWqIXSxie6oSu9eCmsJ9XVFaTTm8hEzghnfsyyHQigY9Tjvd4\/s72-c\/Light-Meter.png","height":"72","width":"72"},"thr$total":{"$t":"0"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-7352195168523674199"},"published":{"$t":"2015-11-04T12:20:00.002+05:30"},"updated":{"$t":"2015-11-29T09:57:19.551+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"Basic"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Sensor"}],"title":{"type":"text","$t":"Simple Automatic Brightness Control Circuit "},"content":{"type":"html","$t":"\u003Cdiv class=\"separator\" style=\"clear: both; text-align: center;\"\u003E\n\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgJq3enDqTbjgTvRNjewzESKXKZEMSziI9OX1iemUcARRv0rouqTL388woh3Wx3NyeQ2K8DBe9nAZnOZWs7Z3tA2j-s1MOiYkiqaBpcnLxeU5FgJkXf1gYvkczb2IgvXHs-FMsjZMOnTSbl\/s1600\/automatic-brightness.png\" imageanchor=\"1\" style=\"margin-left: 1em; margin-right: 1em;\"\u003E\u003Cimg alt=\"Automatic Brightness Control\" border=\"0\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgJq3enDqTbjgTvRNjewzESKXKZEMSziI9OX1iemUcARRv0rouqTL388woh3Wx3NyeQ2K8DBe9nAZnOZWs7Z3tA2j-s1MOiYkiqaBpcnLxeU5FgJkXf1gYvkczb2IgvXHs-FMsjZMOnTSbl\/s1600\/automatic-brightness.png\" title=\"\" \/\u003E\u003C\/a\u003E\u003C\/div\u003E\n\u003Cbr \/\u003E\nAutomatic Brightness Control is the automatic adjustment of the exposure factors such as mA and V. ABC is used to keep the brightness of the display or bulb at a constant level. It involves the adjustment of the V and mA automatically depending on the part of the anatomy being examined. This can be achieved using a LDR, for instance, which monitors the ambient light and change its resistance this resistance changing use to adjust the V, the mA (or both) accordingly.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhcAJ2_87vZj4X-lY6cFvJEf62QiCLCJDEv-IW6ng6YOauQ1fRhKQYKpRQQMIctwoZiOzY6daEgtY3SoGuVniYBku2ylFYu0HHJDIgLsLgdiGByAVk3dI99GLQ1HhkupmNb6Ocb-k43g3Ej\/s1600\/ABL.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Automatic Brightness Control Circuit\" border=\"0\" height=\"243\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhcAJ2_87vZj4X-lY6cFvJEf62QiCLCJDEv-IW6ng6YOauQ1fRhKQYKpRQQMIctwoZiOzY6daEgtY3SoGuVniYBku2ylFYu0HHJDIgLsLgdiGByAVk3dI99GLQ1HhkupmNb6Ocb-k43g3Ej\/s400\/ABL.jpg\" title=\"\" width=\"400\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EAutomatic Brightness Control Circuit \u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\nThis simple auto brightness adjusting circuit composed with a LDR. The LDR connected with the Base pin of the PNP transistor. By the LDR feature that its resistance changes with the ambient light, the voltage of Base change. When the ambient light is bright, the resistance of LDR is low, and the voltage of Base is reducing and the ambient light is low, the resistance of LDR is high, and the voltage of Base is rising. Then the output voltage of transistor is changing. The variable resistor is use to adjust the sensitivity of circuit. Supply voltage for this circuit is 12v.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ch3\u003E\n\u003Cu\u003ELight Dependent Resistors (LDR)\u003C\/u\u003E\u003C\/h3\u003E\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: center;\"\u003E\n\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhEA48UOSMYEUkTUPTTFAz7eQRDVXNdpdl3PWgu-L3osIzGQOtzJ9O52Fzx1YIA98dxR9rle1FNypgZ6IPw_wHcuS0OkkvErzkNvGhiG3Rtq6PW7p_xq3IwzpMWy87LQiDXw9yzPtUsn9Ju\/s1600\/LDR.gif\" imageanchor=\"1\" style=\"clear: left; float: left; margin-bottom: 1em; margin-right: 1em;\"\u003E\u003Cimg alt=\"Light Dependent Resistor\" border=\"0\" height=\"136\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhEA48UOSMYEUkTUPTTFAz7eQRDVXNdpdl3PWgu-L3osIzGQOtzJ9O52Fzx1YIA98dxR9rle1FNypgZ6IPw_wHcuS0OkkvErzkNvGhiG3Rtq6PW7p_xq3IwzpMWy87LQiDXw9yzPtUsn9Ju\/s200\/LDR.gif\" title=\"\" width=\"200\" \/\u003E\u003C\/a\u003E\u003C\/div\u003E\nA Light Dependent Resistor (LDR) is a resistor that changes in value according to the light falling on it. An LDR commonly has a high resistance in the dark, and a low resistance in the light.\n\n\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: left;\"\u003E\n\u003C\/div\u003E\n\u003Ch3 class=\"trigger\"\u003E\n\u003Cimg src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgxDYxsPjCPOIsq77ilBw8lKRDWctzAbaIPazTlYLMwhDgTgtbwcGhkO5JDarvYd2Ra839oMtgLr1arP5yMVsKSeUqWhvRQ5Ddk4AVdzL98jzXYipeCxGQum_JwHIoKeey_ZiC25JJgZEE\/s1600\/DOWNLOAD.png\" \/\u003E\u003C\/h3\u003E\n\u003Cdiv class=\"toggle_container\"\u003E\n\u003Cdiv class=\"block\"\u003E\n\u003Cblockquote class=\"tr_bq\"\u003E\n\u003Cdiv style=\"text-align: center;\"\u003E\n\u003Ca href=\"http:\/\/tiny.cc\/simple_abl\"\u003E\u003Cspan style=\"font-size: large;\"\u003EABC Circuit \u003C\/span\u003E\u003C\/a\u003E\n\n\u003C\/div\u003E\n\u003C\/blockquote\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/7352195168523674199\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/11\/automatic-brightness-control-circuit.html#comment-form","title":"0 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/7352195168523674199"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/7352195168523674199"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/11\/automatic-brightness-control-circuit.html","title":"Simple Automatic Brightness Control Circuit "}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/16788868236927971222"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"30","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjd4FUk8kZ81qA5RH-8TE_fE-lTn418FZvTVTpV4dMcuL2J5XFvkMZI3ZRhvLp-6_wGzPKh7UWWA09Xjk3NLUeJ31fOe7wglNXt0CZ1qvAr95_wj5WzoIVV7K7-u5K2EbA\/s220\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgJq3enDqTbjgTvRNjewzESKXKZEMSziI9OX1iemUcARRv0rouqTL388woh3Wx3NyeQ2K8DBe9nAZnOZWs7Z3tA2j-s1MOiYkiqaBpcnLxeU5FgJkXf1gYvkczb2IgvXHs-FMsjZMOnTSbl\/s72-c\/automatic-brightness.png","height":"72","width":"72"},"thr$total":{"$t":"0"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-8223132352676243024"},"published":{"$t":"2015-09-20T15:06:00.005+05:30"},"updated":{"$t":"2020-11-04T13:12:25.828+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"12F"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Indicator"},{"scheme":"http://www.blogger.com/atom/ns#","term":"PIC"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Security"}],"title":{"type":"text","$t":"Simple Power Guard Circuit - 12F683"},"content":{"type":"html","$t":"\u003Cspan style=\"color: red;\"\u003E\u003Cu\u003E\u003Cspan style=\"font-size: large;\"\u003EUpdate\u003C\/span\u003E\u003C\/u\u003E\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"color: yellow;\"\u003E2015-10-05 Wrong circuit diagram - Fixed\n\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEj0-hS25bEJrOaC5YPfDjneRTLT2czekYQCjKJBoH_gcpF2hcRtkKUrcBGuoCw_QVVNZEdK9BUn0Hx1eMeSLPc1FhpYHQq0993x9qpcVjd_wgPe6fEXugeWkievgebbyF9G9fLaQshIif7S\/s1600\/power_g.webp\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Power Guard\" border=\"0\" height=\"320\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEj0-hS25bEJrOaC5YPfDjneRTLT2czekYQCjKJBoH_gcpF2hcRtkKUrcBGuoCw_QVVNZEdK9BUn0Hx1eMeSLPc1FhpYHQq0993x9qpcVjd_wgPe6fEXugeWkievgebbyF9G9fLaQshIif7S\/s320\/power_g.webp\" title=\"Power Guard\" width=\"164\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EPower Guard\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\nThis is a very simple and accurate power guard circuit. This circuit is useful to guard the electronic or electrical devices from mains transients and spikes. Very high spikes can develop at power on due to sparking in the switch and more serious effects occur when power resumes after a power failure due to high magnetic field in the distribution transformer. This will damage your device permanently.  To avoid such damages we can use this circuit.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nThis circuit used cheap PIC12F683 micro-controller. It controls all the functions of power guard. After power is applied, the green LED starts to blink. This circuit gives a time delay before giving power to the device. Default value is 30 seconds. However, you can change this value. See configuration for more details. After this delay, Green LED turns on permanently. Then Relay activates and connects power to the device.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nWhen the power is abnormal Yellow or Red LED turns on and relay will turn off to protect our device. The Green LED will start to flash again and after delay time it check power status and turn relay on if the voltage is good. Yellow LED indicates low voltage and Red LED indicate high voltage. If all the LEDs are turn on, that indicates firmware error and pleases re-programmed micro-controller.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgqgdMFaFFq2wxJFUiKAPmytUnGNkDBLp54wW58QGIVYYnJ413X9kYX1HOXdQr8eccRECUpXQweC6HTUxTPHCwrgc-U00YjUXRDzkxdENpfXxN6ZHtfe6mhoP7ByMbI2miEqiJjzKXcyC0j\/s1600\/simple_pg%257E1.jpg\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Simple Power Guard Circuit Diagram\" border=\"0\" height=\"224\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgqgdMFaFFq2wxJFUiKAPmytUnGNkDBLp54wW58QGIVYYnJ413X9kYX1HOXdQr8eccRECUpXQweC6HTUxTPHCwrgc-U00YjUXRDzkxdENpfXxN6ZHtfe6mhoP7ByMbI2miEqiJjzKXcyC0j\/s320\/simple_pg%257E1.jpg\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ECircuit Diagram v2\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: center;\"\u003E\n\u003C\/div\u003E\n\u003Cbr \/\u003E\n\u003Ch3\u003E\n\u003Cspan style=\"font-weight: normal;\"\u003E\u003Cu\u003EConfiguration and Calibration\u003C\/u\u003E\u0026nbsp;\u003C\/span\u003E\u003C\/h3\u003E\nFor this circuit I used 12v step down transformer. Its output use to sense the power condition. Before using, you need to calibrate this circuit for working correctly. In my project, I choose 240v as normal, 260v as high and 200v as low voltage.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nConnect multimeter to GP0 and check voltage. if it exceed 5v immediately turn off power and check the component and connections. (Typical value is 3 - 3.5v)\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nV = [Tp\/12] x [(Vdd\/1023) x Eeprom val x 4]\u003Cbr \/\u003E\nTp = primary voltage\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n200 = [240\/12] x [(5\/1023) x Eeprom val x 4]\u003Cbr \/\u003E\n260 = [240\/12] x [(5\/1023) x Eeprom val x 4]\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nEeprom value for low condition (200v) = 511 (1FF hex)\u003Cbr \/\u003E\nGP0 voltage = (2v4)\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nEeprom value for high condition (260v) = 664 (298 hex)\u003Cbr \/\u003E\nGP0 voltage = (3v3)\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nWrite those values to Eeprom.\u003Cbr \/\u003E\nV high = Eeprom (0)*256 + Eeprom (1) - (0x02 and 0x98)\u003Cbr \/\u003E\nV low = Eeprom (2)*256 + Eeprom (3) - (0x01 and 0xFF)\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhGW3s8QNPjQXRsQi4J3lCkUlIumhzfzlUdDBSI68uqbpNzFyIB_NUKGI8-OyiFupBjak2P2EoPPMMQ2uDLnkY9AyuI_Pw_t-2fPvgrl7YV7ufNHpZc4fDOtVtG1KEvQODFLMjqSYaiYeh3\/s1600\/pg_eep.JPG\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Simple Power Guard Eeprom settings\" border=\"0\" height=\"211\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhGW3s8QNPjQXRsQi4J3lCkUlIumhzfzlUdDBSI68uqbpNzFyIB_NUKGI8-OyiFupBjak2P2EoPPMMQ2uDLnkY9AyuI_Pw_t-2fPvgrl7YV7ufNHpZc4fDOtVtG1KEvQODFLMjqSYaiYeh3\/s320\/pg_eep.JPG\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EEeprom settings\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\nTo change\u0026nbsp; delay time simply changes the value of Eeprom address 4 (Default 0x3C)\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nDelay time in seconds = value of Eeprom address \/ 2\u003Cbr \/\u003E\n0 \u0026lt; value of Eeprom address \u0026lt; 255 (0 \u0026lt; Delay time in seconds \u0026lt; 127)\u003Cbr \/\u003E\nMinimum delay time is 0 seconds and maximum delay time is 2 minutes.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nNot for the commercial purpose.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cmyquote\u003E\/***************************************************************************\n\n    Simple Power Guard\n    Copyright (C) 2014 Praneeth Kanishka\n\n    This program is free software: you can redistribute it and\/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see http:\/\/www.gnu.org\/licenses\n\n    \u003E\u003E Email: scorpionzblog@gmail.com\n    \u003E\u003E Web  : http:\/\/scopionz.blogspot.com\n\n***************************************************************************\/\n\n#define  L_H  GPIO.F1\n#define  L_L  GPIO.F2\n#define  L_K  GPIO.F4\n#define  RLY  GPIO.F5\n\nchar idx, del=1, v_d, error;\nint sense, v_h, v_l;\n\nvoid main()\n{\nOSCCON = 0x70; \/\/ 8Mhz\nADCON0 = 0x00;\nCMCON0 = 0x07; \/\/ Disable Comparators\nCMCON1 = 0x00;\nANSEL  = 0x01;\nTRISIO = 0b00000001;\nOPTION_REG = 0;\nWPU=0;\n\nDelay_ms(10);\nGPIO   = 0;\n\nv_h = Eeprom_Read(1) + Eeprom_Read(0)*256;\nv_l = Eeprom_Read(3) + Eeprom_Read(2)*256;\nv_d = Eeprom_Read(4);\nerror = Eeprom_Read(5);\nif(error\u003E101) error=0;\nEeprom_Write(5, error+1);\nDelay_ms(10);\n\n\/\/v_h = 664;\n\/\/v_l = 511;\n\/\/v_d = 10;\n\/\/error = 100;\n\nwhile(1) {\n\nif(error\u003E99) {\nRLY=0; L_K=1; L_H=1; L_L=1;\nwhile(1);\n}\n\n\nif(del) {\nfor(idx=0; idx\u0026lt;v_d; idx++) { \/\/60 = 30sec\nL_K=~L_K;\nDelay_ms(500);\n }\ndel=0;\n}\n\nsense=Adc_Read(0);\n\n     if(sense\u003Ev_h) {RLY=0; L_K=0; L_H=1; del=1;}\nelse if(sense\u0026lt;v_l) {RLY=0; L_K=0; L_L=1; del=1;}\nelse               {RLY=1; L_K=1; L_H=0; L_L=0;}\n\nDelay_ms(500);\n}\n}\u003C\/myquote\u003E\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: left;\"\u003E\n\u003C\/div\u003E\n\u003Ch3 class=\"trigger\"\u003E\n\u003Cimg src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgxDYxsPjCPOIsq77ilBw8lKRDWctzAbaIPazTlYLMwhDgTgtbwcGhkO5JDarvYd2Ra839oMtgLr1arP5yMVsKSeUqWhvRQ5Ddk4AVdzL98jzXYipeCxGQum_JwHIoKeey_ZiC25JJgZEE\/s1600\/DOWNLOAD.png\" \/\u003E\u003C\/h3\u003E\n\u003Cdiv class=\"toggle_container\"\u003E\n\u003Cdiv class=\"block\"\u003E\n\u003Cblockquote class=\"tr_bq\"\u003E\n\u003Cdiv style=\"text-align: center;\"\u003E\n\n\u003Ca href=\"http:\/\/tiny.cc\/simpg\" target=\"_blank\"\u003E\u003Cspan style=\"font-size:large;\"\u003ESimple Power Guard\u003C\/span\u003E\u003C\/a\u003E\u003Cbr \/\u003E\n  \n\u003C\/div\u003E\n\u003C\/blockquote\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/8223132352676243024\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/09\/simple-power-guard-using-12f683.html#comment-form","title":"7 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/8223132352676243024"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/8223132352676243024"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/09\/simple-power-guard-using-12f683.html","title":"Simple Power Guard Circuit - 12F683"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/16788868236927971222"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"30","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjd4FUk8kZ81qA5RH-8TE_fE-lTn418FZvTVTpV4dMcuL2J5XFvkMZI3ZRhvLp-6_wGzPKh7UWWA09Xjk3NLUeJ31fOe7wglNXt0CZ1qvAr95_wj5WzoIVV7K7-u5K2EbA\/s220\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEj0-hS25bEJrOaC5YPfDjneRTLT2czekYQCjKJBoH_gcpF2hcRtkKUrcBGuoCw_QVVNZEdK9BUn0Hx1eMeSLPc1FhpYHQq0993x9qpcVjd_wgPe6fEXugeWkievgebbyF9G9fLaQshIif7S\/s72-c\/power_g.webp","height":"72","width":"72"},"thr$total":{"$t":"7"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-2035129445665220815"},"published":{"$t":"2015-06-15T19:41:00.001+05:30"},"updated":{"$t":"2020-11-04T13:10:03.162+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"16F"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Audio"},{"scheme":"http://www.blogger.com/atom/ns#","term":"I2C"},{"scheme":"http://www.blogger.com/atom/ns#","term":"LCD"},{"scheme":"http://www.blogger.com/atom/ns#","term":"PIC"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Tuner"}],"title":{"type":"text","$t":"I2C FM Receiver Circuit with LCD - 16F88 BK1080"},"content":{"type":"html","$t":"\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEi3Lya_ti31qvI5P0J8yrMRCP3VuoFjsxNCL3Q8R2lHHXugSvUpTHAQj4wGWcisagEh9XKgqNZ3g8ecI8uHJyeuL-ZYfokHi7Nlswy_SFuGizo9w0Qfch3n6GhZRRdUMJtwBbZBkOzjJRGc\/s1600\/sony-xdr-f1hd-1.gif\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Digital FM Receiver\" border=\"0\" height=\"240\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEi3Lya_ti31qvI5P0J8yrMRCP3VuoFjsxNCL3Q8R2lHHXugSvUpTHAQj4wGWcisagEh9XKgqNZ3g8ecI8uHJyeuL-ZYfokHi7Nlswy_SFuGizo9w0Qfch3n6GhZRRdUMJtwBbZBkOzjJRGc\/s320\/sony-xdr-f1hd-1.gif\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EDigital FM Receiver\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nThis is a simple stereo FM radio receiver circuit that can scan with 87.5 MHz and 108 MHz seamlessly between 100 kHz step and it use BK1080 as a receiver IC.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nMain components of this receiver are a PIC16F88 micro-controller, 16x2 LCD and BK1080 FM receiver chip. This system is design to work with 5V DC power supply. User interface of this system consist with 6 push buttons and a 16×2 character LCD module. All the functions of this receiver can control by this buttons and necessary information displayed on the LCD. \n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ch4\u003E\n\u003Cu\u003E\u003Cspan style=\"font-weight: normal;\"\u003E\u003Cspan style=\"font-size: large;\"\u003ESpecifications of this receiver\u003C\/span\u003E\u003C\/span\u003E\u003C\/u\u003E\u003C\/h4\u003E\n\u003Cul\u003E\n\u003Cli\u003EEasy to build\u003C\/li\u003E\n\u003Cli\u003EStandby mode\u003C\/li\u003E\n\u003Cli\u003EAutomatic gain control\u003C\/li\u003E\n\u003Cli\u003EAutomatic frequency control\u003C\/li\u003E\n\u003Cli\u003EAutomatic noise suppression\u003C\/li\u003E\n\u003Cli\u003EPreset memory stations up to 250 (default 20)\u003C\/li\u003E\n\u003C\/ul\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEizxOFVmuMKmyBMdMCOwqKORFBmE9RSia4YoM7KUjbm6XKlSGX4RphJ3tHG4FfPKFpAcQxIArAYkftEbbz6fC5XBRnhDG-aa8dYsCbS6_f1Naemv5_OPVZcgS_yhVLtPurGHGqcUjm_OV-l\/s1600\/fm_bk.JPG\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Schematic of BK1080 I2C FM Receiver\" border=\"0\" height=\"241\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEizxOFVmuMKmyBMdMCOwqKORFBmE9RSia4YoM7KUjbm6XKlSGX4RphJ3tHG4FfPKFpAcQxIArAYkftEbbz6fC5XBRnhDG-aa8dYsCbS6_f1Naemv5_OPVZcgS_yhVLtPurGHGqcUjm_OV-l\/s320\/fm_bk.JPG\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ESchematic of BK1080\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Ch4\u003E\n\u003Cu\u003E\u003Cspan style=\"font-weight: normal;\"\u003E\u003Cspan style=\"font-size: large;\"\u003EBK1080\u003C\/span\u003E\u003C\/span\u003E\u003C\/u\u003E\u003C\/h4\u003E\nThe BK1080 FM receiver employs a low-IF architecture, mixed signal image rejection and all digital demodulation technology. The stations scan of BK1080 searches radio stations based on both the channel RSSI estimation and signal quality assessment, increases the number of receivable stations while avoids false stops. BK1080 enables FM radio reception with low power, small board space and minimum number of external components. All functions controlled through an I2C serial interface. See datasheet for more details.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nNumbers of memory locations are determine by the value of Eeprom 1 (default value 0x14).\u003Cbr \/\u003E\nYou can connect an earphone directly with BK1080’s output. However, do not connect speakers directly with IC. I recommended you to use amplifier if you wish to get more sound. In addition, be carefully when soldering BK1080. Because this IC more sensitive to electrostatic. Use DC soldering Iron to solder this IC or unplug your iron when solder. Micro-controller runs using its internal oscillator. RA0 and RA1 are configuring as SCL and SDA. RA2 is not connected. RA6 pin can directly connect with background light of LCD display. As well as it is also can used for the controlling another device like mute pin of power amp. \n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cu\u003E\u003Cspan style=\"font-size: large;\"\u003ESelecting the station:\u003C\/span\u003E\u003C\/u\u003E\u003Cbr \/\u003E\nWhen we are in the power on mode, on the screen we can see \"Frq:107.5 Ch:12\" - tuned frequency of the station and then the number of the cell where the recorded frequency of the station. Pressing ‘CH_UP’ and ‘CH_DN’ we can move the recorded stations. Pressing ‘FR_UP’ and ‘FR_DN’ we can change the frequency. ‘STORE’ stored the current frequency to the current station and ‘PWR’ used to toggle standby mode and power on mode\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nFirmware of this system was written by using MikroC for PIC and schematic, hex and Proteus files are available for download.\n\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: left;\"\u003E\n\u003C\/div\u003E\n\u003Ch3 class=\"trigger\"\u003E\n\u003Cimg src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgxDYxsPjCPOIsq77ilBw8lKRDWctzAbaIPazTlYLMwhDgTgtbwcGhkO5JDarvYd2Ra839oMtgLr1arP5yMVsKSeUqWhvRQ5Ddk4AVdzL98jzXYipeCxGQum_JwHIoKeey_ZiC25JJgZEE\/s1600\/DOWNLOAD.png\" \/\u003E\u003C\/h3\u003E\n\u003Cdiv class=\"toggle_container\"\u003E\n\u003Cdiv class=\"block\"\u003E\n\u003Cblockquote class=\"tr_bq\"\u003E\n\u003Cdiv style=\"text-align: center;\"\u003E\n\n\u003Ca href=\"http:\/\/tiny.cc\/2a7fzx\" target=\"_blank\"\u003E\u003Cspan style=\"font-size:large;\"\u003EBK1080 FM Receiver\u003C\/span\u003E\u003C\/a\u003E\u003Cbr \/\u003E\n\n\u003C\/div\u003E\n\u003C\/blockquote\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/2035129445665220815\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/06\/i2c-fm-receiver-pic16f88-bk1080.html#comment-form","title":"7 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/2035129445665220815"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/2035129445665220815"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/06\/i2c-fm-receiver-pic16f88-bk1080.html","title":"I2C FM Receiver Circuit with LCD - 16F88 BK1080"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/16788868236927971222"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"30","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjd4FUk8kZ81qA5RH-8TE_fE-lTn418FZvTVTpV4dMcuL2J5XFvkMZI3ZRhvLp-6_wGzPKh7UWWA09Xjk3NLUeJ31fOe7wglNXt0CZ1qvAr95_wj5WzoIVV7K7-u5K2EbA\/s220\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEi3Lya_ti31qvI5P0J8yrMRCP3VuoFjsxNCL3Q8R2lHHXugSvUpTHAQj4wGWcisagEh9XKgqNZ3g8ecI8uHJyeuL-ZYfokHi7Nlswy_SFuGizo9w0Qfch3n6GhZRRdUMJtwBbZBkOzjJRGc\/s72-c\/sony-xdr-f1hd-1.gif","height":"72","width":"72"},"thr$total":{"$t":"7"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-3060962896777755691"},"published":{"$t":"2015-06-13T17:20:00.002+05:30"},"updated":{"$t":"2020-11-04T13:07:07.700+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"16F"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Audio"},{"scheme":"http://www.blogger.com/atom/ns#","term":"LCD"},{"scheme":"http://www.blogger.com/atom/ns#","term":"PIC"},{"scheme":"http://www.blogger.com/atom/ns#","term":"SPI"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Tuner"}],"title":{"type":"text","$t":"PLL Synthesized FM Receiver Circuit with LCD - 16F88 LM7001"},"content":{"type":"html","$t":"\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjuEcbsgjLnOy3sPI0LjJ7gd2Mjtj_v3yvbLCTSVWycDgRBlvLjaaB2uGf_t129XzMnWSadQ08lQUUN1jE5vY42l7oDt3sy14qvw45DoLzbw6niuSNV6gHsLWB1lt23JLh4sqJdAamOJ8LA\/s1600\/tunerbox.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"FM Tuner\" border=\"0\" height=\"205\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjuEcbsgjLnOy3sPI0LjJ7gd2Mjtj_v3yvbLCTSVWycDgRBlvLjaaB2uGf_t129XzMnWSadQ08lQUUN1jE5vY42l7oDt3sy14qvw45DoLzbw6niuSNV6gHsLWB1lt23JLh4sqJdAamOJ8LA\/s320\/tunerbox.jpg\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EFM Tuner\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\nThis is high quality stereo digital PLL synthesized FM radio receiver circuit that can scan with 76 MHz and 108 MHz seamlessly between 100 kHz step, although the sensitivity is high.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nMain components of this receiver are a PIC16F88 micro-controller, 16x2 LCD, LM7001 PLL Frequency Synthesizer, AN7223 IF Amp, TA7343 MPX and a FM Tuner. This system is design to work with 12V DC power supply and the LM7805 and 7808 regulators used to manage power requirements to the above-mentioned components.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nUser interface of this system consist with 6 push buttons and a 16×2 character LCD module. All the functions of this receiver can control by this buttons and necessary information displayed on the LCD.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ch4\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cu\u003E\u003Cspan style=\"font-weight: normal;\"\u003ESpecifications of this receiver\u003C\/span\u003E\u003C\/u\u003E\u003C\/span\u003E\u003C\/h4\u003E\n\u003Cul\u003E\n\u003Cli\u003EHigh sensitivity\u003C\/li\u003E\n\u003Cli\u003EStandby mode\u003C\/li\u003E\n\u003Cli\u003EPreset memory stations up to 250 (default 20)\u003C\/li\u003E\n\u003Cli\u003E3-user selectable frequency ranges (default 87.5-108)\u003C\/li\u003E\n\u003C\/ul\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiR0niw_O9FjC0qNxzGaSi39VgtYiC-yQC6XdxaRdjQpupwKJgQDodER4P-EQjvo1Q7qBRXYBE8uGJeYwjwUwp0BIDg3mSdJ_H2PfUgdYtUr4Aulz3NN7h7SUKF6sBnm4zJlGg3k7o7zziC\/s1600\/fm_pll.JPG\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Schematic of PLL and Power circuit\" border=\"0\" height=\"151\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiR0niw_O9FjC0qNxzGaSi39VgtYiC-yQC6XdxaRdjQpupwKJgQDodER4P-EQjvo1Q7qBRXYBE8uGJeYwjwUwp0BIDg3mSdJ_H2PfUgdYtUr4Aulz3NN7h7SUKF6sBnm4zJlGg3k7o7zziC\/s400\/fm_pll.JPG\" title=\"\" width=\"400\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ESchematic of PLL and Power circuit\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhIcU4Bk95uOztwTxISKtuRFr-nJD0uPWBQDEw01GUvEZEsC63_YbgqlJEXMfB_6ayDB_XzUQG-7oo7pENgQAp5G3dHpBa0ZYesDxTl-qbUypGsAlKpJYctwX6hj3WmN8wummktFn3v3bfV\/s1600\/fm_up.JPG\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Schematic of micro-controller and user interrface\" border=\"0\" height=\"242\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhIcU4Bk95uOztwTxISKtuRFr-nJD0uPWBQDEw01GUvEZEsC63_YbgqlJEXMfB_6ayDB_XzUQG-7oo7pENgQAp5G3dHpBa0ZYesDxTl-qbUypGsAlKpJYctwX6hj3WmN8wummktFn3v3bfV\/s400\/fm_up.JPG\" title=\"\" width=\"400\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ESchematic of micro-controller and user interrface\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Ch4\u003E\n\u003Cu\u003E\u003Cspan style=\"font-weight: normal;\"\u003E\u003Cspan style=\"font-size: large;\"\u003ELM7001\u003C\/span\u003E\u003C\/span\u003E\u003C\/u\u003E\u003C\/h4\u003E\nThe LM7001 is a PLL frequency synthesizer LSIs for tuners, making it possible to make up high performance AM\/FM tuners easily. These LSIs are software compatible with the LM7000, but do not include an IF calculation circuit. The FM VCO circuit includes a high-speed programmable divider that can divide directly seven reference frequencies.  Serial input circuit for data input (using the CE, CL, and DATA pins)\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ch4\u003E\n\u003Cu\u003E\u003Cspan style=\"font-size: large;\"\u003E\u003Cspan style=\"font-weight: normal;\"\u003ETuner\u0026nbsp; \u003C\/span\u003E\u003C\/span\u003E\u003C\/u\u003E\u003C\/h4\u003E\nAnticipating the objection that these tuners do not find, I assure you that if you do not be lazy and go through the repair shops where repair radio. In addition, you can get this tuner from old audio system and car set.  There are 3 types.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhXrrfQuj859GF2BwEXHMAFYMF8WAoOE34sIP4bgS85y8aihv0gMNA4laT3d0Ft7L93LnSxmm4ogvHZsOOeNqBC6t4o2JlZpCJMqkaC7SoxPTv0b9yim-9qwy9fWeIobsXPrpUerP8kCRcA\/s1600\/fm_tuner.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Types of tuner\" border=\"0\" height=\"281\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhXrrfQuj859GF2BwEXHMAFYMF8WAoOE34sIP4bgS85y8aihv0gMNA4laT3d0Ft7L93LnSxmm4ogvHZsOOeNqBC6t4o2JlZpCJMqkaC7SoxPTv0b9yim-9qwy9fWeIobsXPrpUerP8kCRcA\/s320\/fm_tuner.jpg\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ETypes of tuner\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Col\u003E\n\u003Cli\u003EFM Front End only (you need to build IF Amp, MPX circuit)\u003C\/li\u003E\n\u003Cli\u003EFM Front End with IF (you need to build MPX)\u003C\/li\u003E\n\u003Cli\u003EFM Front End IF and MPX\u003C\/li\u003E\n\u003C\/ol\u003E\n\u003Cbr \/\u003E\n\u003Ch4\u003E\n\u003Cu\u003E\u003Cspan style=\"font-weight: normal;\"\u003E\u003Cspan style=\"font-size: large;\"\u003EIF Amp and MPX\u003C\/span\u003E\u003C\/span\u003E\u003C\/u\u003E\u003C\/h4\u003E\nFor IF amp I used AN7223 because it need few external parts and it has high sensitivity and stability. If you cannot find FM quad coil then you can use 2pin 10.7MHZ ceramic resonator for that (see datasheet for more details). However, it is possible to use another IC for this as AN7220, TA7640 and KA2297 etc.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nFor MPX decoder here I used TA7343. This IC decode mono signal to stereo. This is an optional part. If you wish to work with mono, then omit this part and connect amplifier input with ‘AF’.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgyP5I2dWMYZES9dx_rhEOVKyFN_XqgUWyfuvIQ7nsPEtC6BdSVXXS91DArhmQ_R-och0mBr4bJltX93QOqf-5HcJGK8cP6irmlMLyzL28JAz9eBSjrg_MnrU8dD-RN1OC6QyuA10aGVu1r\/s1600\/fm_if.JPG\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"IF and MPX circuit\" border=\"0\" height=\"157\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgyP5I2dWMYZES9dx_rhEOVKyFN_XqgUWyfuvIQ7nsPEtC6BdSVXXS91DArhmQ_R-och0mBr4bJltX93QOqf-5HcJGK8cP6irmlMLyzL28JAz9eBSjrg_MnrU8dD-RN1OC6QyuA10aGVu1r\/s400\/fm_if.JPG\" title=\"\" width=\"400\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EIF and MPX circuit\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiyiLZBLOvmgL2zO558581Lk_O8oU2ku51Idlr2rMWkkwGHjw2MW0UC5lD31nG6NbzUlsemII4FU4CvbEmbtmGLcgop_zqAivczdNd2WM670LMTt90Pa1n3TsFdsPDpSuW_AluivC2Rpy8F\/s1600\/SNC00014%257E1.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Complete circuit pcb\" border=\"0\" height=\"193\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiyiLZBLOvmgL2zO558581Lk_O8oU2ku51Idlr2rMWkkwGHjw2MW0UC5lD31nG6NbzUlsemII4FU4CvbEmbtmGLcgop_zqAivczdNd2WM670LMTt90Pa1n3TsFdsPDpSuW_AluivC2Rpy8F\/s200\/SNC00014%257E1.jpg\" title=\"\" width=\"200\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EComplete circuit\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Ch4\u003E\n\u003Cu\u003E\u003Cspan style=\"font-weight: normal;\"\u003E\u003Cspan style=\"font-size: large;\"\u003EOperation\n\u003C\/span\u003E\u003C\/span\u003E\u003C\/u\u003E\u003C\/h4\u003E\nNumbers of memory locations are determine by the value of Eeprom 1 (default value 0x14) and frequency range is determine by the value of Eeprom 2 (default value 0x00).\u003Cbr \/\u003E\n\u003Cul\u003E\n\u003Cli\u003EIf value is 1 then range is 76-108MHz\u003C\/li\u003E\n\u003Cli\u003EIf value is 2 then range is 76-90MHz\u003C\/li\u003E\n\u003Cli\u003EElse, range is 87.5-108 MHz\u003C\/li\u003E\n\u003C\/ul\u003E\n\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cu\u003E\u003Cspan style=\"font-family: \u0026quot;arial\u0026quot; , \u0026quot;helvetica\u0026quot; , sans-serif;\"\u003ESelecting the station:\u003C\/span\u003E\u003C\/u\u003E\u003C\/span\u003E\u003Cbr \/\u003E\nWhen we are in the power on mode, on the screen we can see \"Frq:106.5  Ch:15\" - tuned frequency of the station and then the number of the cell where the recorded frequency of the station. Pressing ‘CH_UP’ and ‘CH_DN’ we can move the recorded stations.  Pressing ‘FR_UP’ and ‘FR_DN’ we can change the frequency. ‘STORE’ stored the current frequency to the current station and ‘PWR’ used to toggle standby mode and power on mode\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nMicro-controller runs using its internal oscillator. RA6 pin can directly connect with background light of LCD display. As well as it is also can used for the controlling another device like mute pin of power amp. For VCC (tuning voltage) you can use up-to 12v. \u003Cbr \/\u003E\n\u003Cbr \/\u003E\nFirmware of this system was written by using MikroC for PIC and schematic, hex and Proteus files are available for download.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: left;\"\u003E\n\u003C\/div\u003E\n\u003Ch3 class=\"trigger\"\u003E\n\u003Cimg src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgxDYxsPjCPOIsq77ilBw8lKRDWctzAbaIPazTlYLMwhDgTgtbwcGhkO5JDarvYd2Ra839oMtgLr1arP5yMVsKSeUqWhvRQ5Ddk4AVdzL98jzXYipeCxGQum_JwHIoKeey_ZiC25JJgZEE\/s1600\/DOWNLOAD.png\" \/\u003E\u003C\/h3\u003E\n\u003Cdiv class=\"toggle_container\"\u003E\n\u003Cdiv class=\"block\"\u003E\n\u003Cblockquote class=\"tr_bq\"\u003E\n\u003Cdiv style=\"text-align: center;\"\u003E\n\n\u003Ca href=\"http:\/\/tiny.cc\/5ylczx\" target=\"_blank\"\u003E\u003Cspan style=\"font-size:large;\"\u003EPLL Tuner\u003C\/span\u003E\u003C\/a\u003E\n  \n\u003C\/div\u003E\n\u003C\/blockquote\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/3060962896777755691\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/06\/pll-synthesized-fm-receiver-pic16f88.html#comment-form","title":"80 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/3060962896777755691"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/3060962896777755691"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/06\/pll-synthesized-fm-receiver-pic16f88.html","title":"PLL Synthesized FM Receiver Circuit with LCD - 16F88 LM7001"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/16788868236927971222"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"30","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjd4FUk8kZ81qA5RH-8TE_fE-lTn418FZvTVTpV4dMcuL2J5XFvkMZI3ZRhvLp-6_wGzPKh7UWWA09Xjk3NLUeJ31fOe7wglNXt0CZ1qvAr95_wj5WzoIVV7K7-u5K2EbA\/s220\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjuEcbsgjLnOy3sPI0LjJ7gd2Mjtj_v3yvbLCTSVWycDgRBlvLjaaB2uGf_t129XzMnWSadQ08lQUUN1jE5vY42l7oDt3sy14qvw45DoLzbw6niuSNV6gHsLWB1lt23JLh4sqJdAamOJ8LA\/s72-c\/tunerbox.jpg","height":"72","width":"72"},"thr$total":{"$t":"80"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-548542410908567284"},"published":{"$t":"2015-05-30T15:16:00.003+05:30"},"updated":{"$t":"2020-11-04T11:28:26.337+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"Audio"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Basic"}],"title":{"type":"text","$t":"Stereo Bass Booster Circuit with Simple Mixer"},"content":{"type":"html","$t":"\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhAnMBAKHNQ66Zw13TUbtEh1n8z3cfdv1PVcaEybeVqPoG2MSFIlznSv-IE_bxh7Nk5O0NOtkdJLjeUG6PgaJm6Gty2zB0N0E3jG_ZjzaaZvw1Yrk3f4rI4r0594u2m9tdMPjeyGINq657t\/s1600\/xbass.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Bass Booster\" border=\"0\" height=\"111\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhAnMBAKHNQ66Zw13TUbtEh1n8z3cfdv1PVcaEybeVqPoG2MSFIlznSv-IE_bxh7Nk5O0NOtkdJLjeUG6PgaJm6Gty2zB0N0E3jG_ZjzaaZvw1Yrk3f4rI4r0594u2m9tdMPjeyGINq657t\/s200\/xbass.jpg\" title=\"\" width=\"200\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EBass Booster\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\nA Bass Booster is an audio device, which amplifies the low frequencies (bass) within the audio spectrum. This operates in a similar manner to an audio equalizer. General-purpose equalizers are often not effective at boosting very low frequencies, and therefore many electronics enthusiasts make their own circuit to achieve this purpose. Using following circuit you can boost frequencies below 60Hz.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhI4c8SYl27xfWcgonXi7BHuQDLB0_I2e_avnuxCX_vYQXVQxAdm0klVqVoUIxeu9BmX4Nhi2MSTDkuPnK4HHoezlL3EjNRTzcumMd8JuNRg4vjGm53hXzjoAT5p_w2r7-MOp9YxonmTiBI\/s1600\/bb_sch.JPG\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Stereo Bass Booster circuit\" border=\"0\" height=\"209\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhI4c8SYl27xfWcgonXi7BHuQDLB0_I2e_avnuxCX_vYQXVQxAdm0klVqVoUIxeu9BmX4Nhi2MSTDkuPnK4HHoezlL3EjNRTzcumMd8JuNRg4vjGm53hXzjoAT5p_w2r7-MOp9YxonmTiBI\/s320\/bb_sch.JPG\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ESchematic\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\nThis circuit is an active circuit and used TL074, which include separate four op-amps. Alternatively, you can use any general-purpose op amp such as LM324, TL084, etc. This circuit is not only a bass booster it also include a simple mixer circuit. U1A and U1D are act as mixer, U1B and U1C for the base boosting. I design this circuit for electronic switching. Therefor I used two transistors for it. To enable bass boost connect ‘ubb’ to positive supply. You can use normal switch for it. In addition, it is possible to enable bass boost by applying voltage signal to ‘ubb’, which come from a micro-controller or any other source. This circuit can operate in either single supply or dual power supply.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cspan style=\"font-size: small;\"\u003E\u003Cu\u003EFor single power supply\u003C\/u\u003E\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cul\u003E\n\u003Cli\u003EOmit C20 and C21.\u003C\/li\u003E\n\u003Cli\u003EConnect positive supply to VDD and Ground (0v) to GND or VAA.\u003C\/li\u003E\n\u003Cli\u003EMax Supply voltage is 12v.\u003C\/li\u003E\n\u003C\/ul\u003E\n\u003Cbr \/\u003E\n\u003Cu\u003EFor dual power supply\u003C\/u\u003E\u003Cbr \/\u003E\n\u003Cul\u003E\n\u003Cli\u003ERemove J3 (jumper), C15, R19 and R20.\u003C\/li\u003E\n\u003Cli\u003EAdd jumper (0 Ohms) for R20 it.\u003C\/li\u003E\n\u003Cli\u003EConnect positive supply to VDD, negative for VAA and Ground (0v) to GND.\u003C\/li\u003E\n\u003Cli\u003EMax Supply voltage is +\/-12v.\u003C\/li\u003E\n\u003C\/ul\u003E\n\u003Cbr \/\u003E\nPlease ignore the U2, R21, C16, C18 and P1. Those are not necessary for the operation of this circuit. These parts are optional because that this circuit and PCB were designed for my personal project.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nNow connect output of this circuit with amplifier input and give your input to the mixer side. This circuit is ideal for high quality sound. If you want that unique clean high-bass sound then this circuit can provide it.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nSchematic and PCB files were added to the download and you can download from it below.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: left;\"\u003E\n\u003C\/div\u003E\n\u003Ch3 class=\"trigger\"\u003E\n\u003Cimg src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgxDYxsPjCPOIsq77ilBw8lKRDWctzAbaIPazTlYLMwhDgTgtbwcGhkO5JDarvYd2Ra839oMtgLr1arP5yMVsKSeUqWhvRQ5Ddk4AVdzL98jzXYipeCxGQum_JwHIoKeey_ZiC25JJgZEE\/s1600\/DOWNLOAD.png\" \/\u003E\u003C\/h3\u003E\n\u003Cdiv class=\"toggle_container\"\u003E\n\u003Cdiv class=\"block\"\u003E\n\u003Cblockquote class=\"tr_bq\"\u003E\n\u003Cdiv style=\"text-align: center;\"\u003E\n\n\u003Ca href=\"https:\/\/tiny.cc\/Bass_boost\" target=\"_blank\"\u003E\u003Cspan style=\"font-size:large;\"\u003EX-Bass Sch \u0026 PCB\u003C\/span\u003E\u003C\/a\u003E\u003Cbr \/\u003E\n\n\u003C\/div\u003E\n\u003C\/blockquote\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/548542410908567284\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/05\/stereo-bass-booster-with-simple-mixer.html#comment-form","title":"0 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/548542410908567284"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/548542410908567284"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/05\/stereo-bass-booster-with-simple-mixer.html","title":"Stereo Bass Booster Circuit with Simple Mixer"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/16788868236927971222"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"30","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjd4FUk8kZ81qA5RH-8TE_fE-lTn418FZvTVTpV4dMcuL2J5XFvkMZI3ZRhvLp-6_wGzPKh7UWWA09Xjk3NLUeJ31fOe7wglNXt0CZ1qvAr95_wj5WzoIVV7K7-u5K2EbA\/s220\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhAnMBAKHNQ66Zw13TUbtEh1n8z3cfdv1PVcaEybeVqPoG2MSFIlznSv-IE_bxh7Nk5O0NOtkdJLjeUG6PgaJm6Gty2zB0N0E3jG_ZjzaaZvw1Yrk3f4rI4r0594u2m9tdMPjeyGINq657t\/s72-c\/xbass.jpg","height":"72","width":"72"},"thr$total":{"$t":"0"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-8700023046445617625"},"published":{"$t":"2015-05-28T15:22:00.002+05:30"},"updated":{"$t":"2020-11-04T11:17:45.251+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"16F"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Apps"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Audio"},{"scheme":"http://www.blogger.com/atom/ns#","term":"I2C"},{"scheme":"http://www.blogger.com/atom/ns#","term":"PIC"}],"title":{"type":"text","$t":"10 Band I2C Graphic Equalizer Circuit - 16F628 TEA6360"},"content":{"type":"html","$t":"\u003Cspan style=\"color: red; font-size: large;\"\u003EUpdated:\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cul\u003E\n\u003Cspan style=\"color: yellow;\"\u003E\n\u003Cli\u003E2016-08-17 - Added small application for calculate frequencies and parts.\u003C\/li\u003E\n\u003C\/span\u003E\n\u003C\/ul\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiypSFvCjKejo9Wko_Uvy6TyBu4lLbiTCYBhxmf4kH7PL9JTZyo8S4GxBRONRom9C1TZaiGJ4o9IKOYc6ncQBxhgCk_-WHPChuIonhmjcMy2pdHohyphenhyphenYSTScasW7s1rIBrYnSOsbtjRJevw_\/s1600\/Graphic_EQ1.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"10 Band Equalizer\" border=\"0\" height=\"165\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiypSFvCjKejo9Wko_Uvy6TyBu4lLbiTCYBhxmf4kH7PL9JTZyo8S4GxBRONRom9C1TZaiGJ4o9IKOYc6ncQBxhgCk_-WHPChuIonhmjcMy2pdHohyphenhyphenYSTScasW7s1rIBrYnSOsbtjRJevw_\/s320\/Graphic_EQ1.jpg\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003E10 Band Equalizer\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\nA graphic equalizer is a high-fidelity audio control that allows the user to see graphically and control individually a number of different frequency bands in a stereophonic system. A typical graphic equalizer consists of several audio filter\/amplifiers, each centered at a specific frequency in the audio range. Most graphic equalizers have two identical sets of filter\/amplifiers, one for each channel in a stereophonic system.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nThe gain controls in most graphic equalizers are slide potentiometers that are adjusted by moving a controller up or down. Gain is increased by sliding the upwards. The slide potentiometers for each channel are placed side-by-side, with the lowest-frequency unit at the left and the highest-frequency unit at the right. In this way, the positions of the buttons appear to follow a graphical curve that represents the gain as a function of frequency for each channel.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nBy using following circuit you can build a 10 band stereo graphic equalizer that can be controlled via I2C system. For this circuit I used two of TEA6360 ICs. Each IC contains two serial five bands equalizer blocks. Therefore, we need two ICs for 10 bands. We can reduce the size of circuit because all the function can be drive via i2C. So that, we do not need connect potentiometers to control the gain of frequency bands like an ordinary equalizer. In addition, we can reduce cost and complexity of circuit using this IC.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgkumRX-IajEX14_1FnBjBaXLPriyKhKnq7q_a-ioze2qnnQWp-UhR9jeyRk7tm5II5ONRxxciksAH9GeSHoirf82TWIRx2lyT1FwdT_juzJfVVsrshjtSMN1_mwcDH8JnGcdsdRcZETxnn\/s1600\/TEA6360_sch.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"10 Band Equalizer circuit\" border=\"0\" height=\"277\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgkumRX-IajEX14_1FnBjBaXLPriyKhKnq7q_a-ioze2qnnQWp-UhR9jeyRk7tm5II5ONRxxciksAH9GeSHoirf82TWIRx2lyT1FwdT_juzJfVVsrshjtSMN1_mwcDH8JnGcdsdRcZETxnn\/s400\/TEA6360_sch.jpg\" title=\"\" width=\"400\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ESchematic\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjP4x_w7-Q2G3BQU6MIaOL29aZRlveEkvK7X9CJnLFwx9SqlF1jCgTGNBaHrye68TUFOF3bNjrglY1uFljENdrPPtDy34e75qGSfKG2D0oXmq7XbiRBMfxP4yJDcFi-J8m-qAHnMZcfpBw2\/s1600\/SNC00010%257E1.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"10 Band Equalizer pcb\" border=\"0\" height=\"197\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjP4x_w7-Q2G3BQU6MIaOL29aZRlveEkvK7X9CJnLFwx9SqlF1jCgTGNBaHrye68TUFOF3bNjrglY1uFljENdrPPtDy34e75qGSfKG2D0oXmq7XbiRBMfxP4yJDcFi-J8m-qAHnMZcfpBw2\/s320\/SNC00010%257E1.jpg\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ECircuit on PCB\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\nIn my demo code, I used 16F628A micro-controller and single button to set equalizer modes. The modes  are ‘Flat’, ’Rock‘, ’Pop‘, ’Jazz‘ and ’Party’. The status will indicate by five LEDs those connected to PORTA. In addition, selected mode saved to device Eeprom and load to ICs when start up. However, according to your choice you can able to change the code. \n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nFor example if you need to set gain for each frequency manually, then you can add 1 button to each channel and total 10 buttons.\nFor another example, you can add 3 buttons.  One button to raise the gain and other to lower and 3rd one for select desired frequency. \n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nThe center frequency of each bands are 31Hz, 62Hz, 125Hz, 250Hz, 500Hz, 1KHz, 2KHz, 4KHz, 8KHz and 16KHz. the Q (quality) factor is 1 to 1.2 and PCB, full schematic and sample code can be downloading in below. \n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ch4\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cu\u003E\u003Cspan style=\"font-weight: normal;\"\u003EPart List\u003C\/span\u003E\u003C\/u\u003E\u003C\/span\u003E\u003C\/h4\u003E\n\u003Cul\u003E\n\u003Cli\u003EC04, 07, 08, 09 = 0.37uF\u003C\/li\u003E\n\u003Cli\u003EC10, 11, 12, 13 = 0.18uF \u003C\/li\u003E\n\u003Cli\u003EC14, 15, 16, 17 = 0.01uF\u003C\/li\u003E\n\u003Cli\u003EC18, 19, 20, 21 = 0.047uF\u003C\/li\u003E\n\u003Cli\u003EC22, 23, 24, 25 = 0.022uF\u003C\/li\u003E\n\u003Cli\u003EC27, 28, 30, 31 = 0.01uF\u003C\/li\u003E\n\u003Cli\u003EC32, 33, 34, 35 = 0.0052uF\u003C\/li\u003E\n\u003Cli\u003EC36, 37, 38, 39 = 0.0027uF\u003C\/li\u003E\n\u003Cli\u003EC40, 41, 42, 43 = 0.0015uF\u003C\/li\u003E\n\u003Cli\u003EC44, 45, 46, 47 = 720pF \u003C\/li\u003E\n\u003C\/ul\u003E\n\u003Ch4\u003E\n\u003Cspan style=\"font-size: large;\"\u003E\u003Cu\u003E\u003Cspan style=\"font-weight: normal;\"\u003ETEA6360\u003C\/span\u003E\u003C\/u\u003E\u003C\/span\u003E\u003C\/h4\u003E\nThe 5-band stereo equalizer is a 12C-bus controlled tone processor for application in car radio sets, TV sets and music centers. It offers the possibility of sound control as well as equalization of sound pressure behavior of different rooms or loudspeakers, especially in cars.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cu\u003EFEATURES\u003C\/u\u003E\u003Cbr \/\u003E\n\u003Cul\u003E\n\u003Cli\u003EMonolithic integrated 5-band stereo equalizer circuit\u003C\/li\u003E\n\u003Cli\u003EFive filters for each channel\u003C\/li\u003E\n\u003Cli\u003ECenter frequency, bandwidth and maximum boost\/cut defined by external components\u003C\/li\u003E\n\u003Cli\u003EChoice for variable or constant Q-factor via I2C software\u003C\/li\u003E\n\u003Cli\u003EDefeat mode\u003C\/li\u003E\n\u003Cli\u003EAll stages are DC-coupled\u003C\/li\u003E\n\u003Cli\u003EI2C-bus control for all functions\u003C\/li\u003E\n\u003Cli\u003ETwo different module addresses programmable.\u003C\/li\u003E\n\u003C\/ul\u003E\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: left;\"\u003E\n\u003C\/div\u003E\n\u003Ch3 class=\"trigger\"\u003E\n\u003Cimg src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgxDYxsPjCPOIsq77ilBw8lKRDWctzAbaIPazTlYLMwhDgTgtbwcGhkO5JDarvYd2Ra839oMtgLr1arP5yMVsKSeUqWhvRQ5Ddk4AVdzL98jzXYipeCxGQum_JwHIoKeey_ZiC25JJgZEE\/s1600\/DOWNLOAD.png\" \/\u003E\u003C\/h3\u003E\n\u003Cdiv class=\"toggle_container\"\u003E\n\u003Cdiv class=\"block\"\u003E\n\u003Cblockquote class=\"tr_bq\"\u003E\n\u003Cdiv style=\"text-align: center;\"\u003E\n\u003Ca href=\"http:\/\/tiny.cc\/Eq_6360\"\u003E\u003Cspan style=\"font-size: large;\"\u003E10 Band Equalizer\u003C\/span\u003E\u003C\/a\u003E\n\u003Cbr\/\u003E\n\u003Ca href=\"http:\/\/tiny.cc\/Eq_cal_6360\"\u003E\u003Cspan style=\"font-size: large;\"\u003ECalculator App\u003C\/span\u003E\u003C\/a\u003E\n\u003C\/div\u003E\n\u003C\/blockquote\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/8700023046445617625\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/05\/10-band-i2c-graphic-equalizer-tea6360.html#comment-form","title":"26 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/8700023046445617625"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/8700023046445617625"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/05\/10-band-i2c-graphic-equalizer-tea6360.html","title":"10 Band I2C Graphic Equalizer Circuit - 16F628 TEA6360"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/16788868236927971222"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"30","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjd4FUk8kZ81qA5RH-8TE_fE-lTn418FZvTVTpV4dMcuL2J5XFvkMZI3ZRhvLp-6_wGzPKh7UWWA09Xjk3NLUeJ31fOe7wglNXt0CZ1qvAr95_wj5WzoIVV7K7-u5K2EbA\/s220\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiypSFvCjKejo9Wko_Uvy6TyBu4lLbiTCYBhxmf4kH7PL9JTZyo8S4GxBRONRom9C1TZaiGJ4o9IKOYc6ncQBxhgCk_-WHPChuIonhmjcMy2pdHohyphenhyphenYSTScasW7s1rIBrYnSOsbtjRJevw_\/s72-c\/Graphic_EQ1.jpg","height":"72","width":"72"},"thr$total":{"$t":"26"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-9040435762820240216"},"published":{"$t":"2015-04-12T10:16:00.004+05:30"},"updated":{"$t":"2020-11-04T11:14:25.982+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"18F"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Apps"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Matrix"},{"scheme":"http://www.blogger.com/atom/ns#","term":"PIC"},{"scheme":"http://www.blogger.com/atom/ns#","term":"USB"}],"title":{"type":"text","$t":"USB Controlled 8x40 Dot Matrix Moving Display Circuit - 18F2550"},"content":{"type":"html","$t":"\u003Cspan style=\"color: yellow; font-family: \u0026quot;courier new\u0026quot; , \u0026quot;courier\u0026quot; , monospace;\"\u003E2015-04-12\u0026nbsp;Initial release\u003Cbr \/\u003E\n2015-04-16 Wrong Configuration Bits -\u0026nbsp;Fixed\u003C\/span\u003E\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cdiv class=\"MsoNormal\"\u003E\nThis dot matrix moving display message board will be of five, 8x8 dot matrix, which will be able to display 10 different messages and maximum 60 characters of each. You can set messages by using PC application that created by me using visual basic and those messages will show on matrix display. When the circuit is disconnected form PC then default messages displayed on the display.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEirY2kG85gxosaFZ5__wni6Kca44w4BqjZISCFYXmALGjYnnasTHiVPGtyGVSsjnbTWn9tCqceAbeWGKqKa6tNvsffO5wWTz73RvThvYaMmAx-SV84W_rdYTW0sSvbJYnnOLOu4raTavdI\/s1600\/LED_Matrix_Usb.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"USB Controlled 8x40 Dot Matrix Moving Display circuit\" border=\"0\" height=\"238\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEirY2kG85gxosaFZ5__wni6Kca44w4BqjZISCFYXmALGjYnnasTHiVPGtyGVSsjnbTWn9tCqceAbeWGKqKa6tNvsffO5wWTz73RvThvYaMmAx-SV84W_rdYTW0sSvbJYnnOLOu4raTavdI\/s1600\/LED_Matrix_Usb.jpg\" title=\"\" width=\"400\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ECircuit Diagram\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\nPIC18F2550 is the micro-controller and main part of this circuit. This IC used because it has built-in USB transceiver that used to communicate with PC application. PORTB of IC controls the row of Matrices. This PORTB pins then connected to display through the ULN2803 IC, which consists of 8 Darlington arrays. Because micro-controller unable to handle heavy load.  In the diagram, you can see 8 NOT gates. These gates used only simulation in Proteus. Therefore, you should replace with these gates with ULN2803 IC. The columns are driven by the outputs of a 40-bit serial-in-parallel-out arrangement constructed by cascading five 74HC595 ICs. The 74HC595 device is an 8-bit serial-input and parallel\/serial output shift register. The serial output feature allows cascading of multiple 74HC595 devices. The time format of PC must be in English, otherwise time will not display properly on the display. LED is indicated that whether USB cable connected or not and Scrolling speed of circuit can be change by varying the value of VR1.  Supply voltage for this circuit is 5v. \n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nThe PC application and other files can be download from below link.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: left;\"\u003E\n\u003C\/div\u003E\n\u003Ch3 class=\"trigger\"\u003E\n\u003Cimg src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgxDYxsPjCPOIsq77ilBw8lKRDWctzAbaIPazTlYLMwhDgTgtbwcGhkO5JDarvYd2Ra839oMtgLr1arP5yMVsKSeUqWhvRQ5Ddk4AVdzL98jzXYipeCxGQum_JwHIoKeey_ZiC25JJgZEE\/s1600\/DOWNLOAD.png\" \/\u003E\u003C\/h3\u003E\n\u003Cdiv class=\"toggle_container\"\u003E\n\u003Cdiv class=\"block\"\u003E\n\u003Cblockquote class=\"tr_bq\"\u003E\n\u003Cdiv style=\"text-align: center;\"\u003E\n\n\u003Ca href=\"https:\/\/tiny.cc\/usb_mtrx_pc\" target=\"_blank\"\u003E\u003Cspan style=\"font-size:large;\"\u003EPC App\u003C\/span\u003E\u003C\/a\u003E\u003Cbr \/\u003E\n\u003Ca href=\"https:\/\/tiny.cc\/usb_mtrx_hex\" target=\"_blank\"\u003E\u003Cspan style=\"font-size:large;\"\u003EHEX File\u003C\/span\u003E\u003C\/a\u003E\n\n\u003C\/div\u003E\n\u003C\/blockquote\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/9040435762820240216\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/04\/usb-controlled-8x40-dot-matrix-moving.html#comment-form","title":"21 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/9040435762820240216"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/9040435762820240216"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/04\/usb-controlled-8x40-dot-matrix-moving.html","title":"USB Controlled 8x40 Dot Matrix Moving Display Circuit - 18F2550"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/04276791138418315268"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"28","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhOi2xKRvoV6gXKWi71KMKmEIRnpUCIKqooPVvYUWrT3XVz-dq56xLd_XdqhlDm93ymdLdRr_Y1tlZVnEiI63IqdHSIir_OVOWfXUvlAOQYI6s6Q_0RjB2Q1bTb0y2T_g\/s113\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEirY2kG85gxosaFZ5__wni6Kca44w4BqjZISCFYXmALGjYnnasTHiVPGtyGVSsjnbTWn9tCqceAbeWGKqKa6tNvsffO5wWTz73RvThvYaMmAx-SV84W_rdYTW0sSvbJYnnOLOu4raTavdI\/s72-c\/LED_Matrix_Usb.jpg","height":"72","width":"72"},"thr$total":{"$t":"21"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-4881273248300498285"},"published":{"$t":"2015-04-03T09:58:00.007+05:30"},"updated":{"$t":"2020-11-04T11:10:10.042+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"18F"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Apps"},{"scheme":"http://www.blogger.com/atom/ns#","term":"PIC"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Programmer"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Tools"},{"scheme":"http://www.blogger.com/atom/ns#","term":"USB"}],"title":{"type":"text","$t":"USB HID Bootloader Circuit - 18F4550"},"content":{"type":"html","$t":"\u003Ch4\u003E\n\u003Cspan style=\"color: yellow;\"\u003E\u003Cu\u003EUpdate:\u003C\/u\u003E\u003C\/span\u003E\n\u003C\/h4\u003E\n\u003Cspan style=\"color: yellow;\"\u003E28\/11\/2015\n\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cspan style=\"color: yellow;\"\u003EIf you are use \u003Ci\u003E\u003Cb\u003EmikroC PRO\u003C\/b\u003E\u003C\/i\u003E, then tick the \u003Ci\u003E\u003Cb\u003ELong Hex format\u003C\/b\u003E\u003C\/i\u003E in output settings and rename the generated hex file to \u003Ci\u003E\u003Cb\u003Escp.hex\u003C\/b\u003E\u003C\/i\u003E. Finally run \u003Ci\u003E\u003Cb\u003Emod.exe\u003C\/b\u003E\u003C\/i\u003E. It will generate new hex file (\u003Ci\u003E\u003Cb\u003Emod.hex\u003C\/b\u003E\u003C\/i\u003E) and use it with \u003Ci\u003E\u003Cb\u003EPICDEM\u003C\/b\u003E\u003C\/i\u003E software. Otherwise, program may not work correctly.\n\u003C\/span\u003E\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nBoot-loader is a program which helps to program the micro-controller device without using external programmer. It is possible to burn the hex code even if the PC doesn't have a serial port or any other tools.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nRequired tools for Boot-loader are:\u003Cbr \/\u003E\n\u003Cul\u003E\n\u003Cli\u003EUSB cable to connect board to the PC\u003C\/li\u003E\n\u003Cli\u003EA micro controller with already flashed boot loader program\u003C\/li\u003E\n\u003C\/ul\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjgGmIFmjNyUVdfrlaJFN7u9mT7pOiv9WmFYuSaNQL5MrWmaBUgOnmtouounTVVzjnT1fjHzd5w_tePpS8eOWZsrPSlIo2MszVhC_KgyozXMacF8YrZYDwTFS5pkQPPebY8lErp5hXfrrc\/s1600\/4550_hid_boot.jpg\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"USB HID Bootloader circuit\" border=\"0\" height=\"213\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjgGmIFmjNyUVdfrlaJFN7u9mT7pOiv9WmFYuSaNQL5MrWmaBUgOnmtouounTVVzjnT1fjHzd5w_tePpS8eOWZsrPSlIo2MszVhC_KgyozXMacF8YrZYDwTFS5pkQPPebY8lErp5hXfrrc\/s1600\/4550_hid_boot.jpg\" title=\"\" width=\"400\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EBoot-loader circuit\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\nThe boot-loader starts after Power-On or Reset. The boot-loader checks if pin \u003Ci\u003E\u003Cb\u003ERE3\u003C\/b\u003E\u003C\/i\u003E is low or high:\n\u003Cbr \/\u003E\n\u003Cul\u003E\n\u003Cli\u003ERE3 = low (0V) : PIC starts in boot-loader mode\n\u003C\/li\u003E\n\u003Cli\u003ERE0 = high (5V) : PIC starts user application\n\u003C\/li\u003E\n\u003C\/ul\u003E\n\u003Ch3\u003E\n\u003Cu\u003E\u003Cspan style=\"font-size: large;\"\u003E\u003Cspan style=\"font-weight: normal;\"\u003EInstall \u003Cspan style=\"font-size: large;\"\u003EBoot-loader\u003C\/span\u003E program\u003C\/span\u003E\u003C\/span\u003E\u003C\/u\u003E\u003C\/h3\u003E\nFor installing boot-loader program, we need an external programmer. This is a one time process which doesn't need to repeat. Use any programmer like\u003Ci\u003E\u003Cb\u003E JDM\u003C\/b\u003E\u003C\/i\u003E, \u003Ci\u003E\u003Cb\u003EPicKit\u003C\/b\u003E\u003C\/i\u003E, \u003Ci\u003E\u003Cb\u003EICD3\u003C\/b\u003E\u003C\/i\u003E to flash the provided boot-loader program \u003Ci\u003E\u003Cb\u003EUSB HID Bootloader.hex\u003C\/b\u003E\u003C\/i\u003E.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nAfter successfully programming, connect your device to the PC's USB port (if not already connected). Please make sure that the boot-loader entry condition (RE3 = 0) is fulfilled!\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nWindows should detect a new USB device. Now open boot-loader PC software and click connect, browse hex file, begin upload.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nAfter finishing upload, click execute. Device will reset automatically and start your program.\n\u003Cbr \/\u003E\n\u003Ch3 style=\"text-align: left;\"\u003E\n\u003Cu\u003EExample\u003C\/u\u003E\n\u003C\/h3\u003E\n\u003Cmyquote\u003Evoid main();\n\nvoid interrupt() {   \/\/-------- interrupt -----------\n}\n\nvoid interrupt_low() {\n}\n\nvoid Vectors() org 0x800 { \/\/-------- remap ---------\nasm {\n      goto   _main           \/\/0x800\n      nop\n      nop\n      goto   _interrupt      \/\/0x808\n      nop\n      nop\n      nop\n      nop\n      nop\n      nop\n      goto   _interrupt_low  \/\/0x818\n     }\n}\n\n\nvoid main() { \/\/----- Main --------\nOrgAll(0x800);\n\nasm {goto Skip_Vectors}\n      Vectors();\nasm {Skip_Vectors:}\n\n\/*\nYour Code goes here\n*\/\n\n}\u003C\/myquote\u003E\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: left;\"\u003E\n\u003C\/div\u003E\n\u003Ch3 class=\"trigger\"\u003E\n\u003Cimg src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgxDYxsPjCPOIsq77ilBw8lKRDWctzAbaIPazTlYLMwhDgTgtbwcGhkO5JDarvYd2Ra839oMtgLr1arP5yMVsKSeUqWhvRQ5Ddk4AVdzL98jzXYipeCxGQum_JwHIoKeey_ZiC25JJgZEE\/s1600\/DOWNLOAD.png\" \/\u003E\u003C\/h3\u003E\n\u003Cdiv class=\"toggle_container\"\u003E\n\u003Cdiv class=\"block\"\u003E\n\u003Cblockquote class=\"tr_bq\"\u003E\n\u003Cdiv style=\"text-align: center;\"\u003E\n\u003Ca href=\"http:\/\/tiny.cc\/mod_hex\"\u003E\u003Cspan style=\"font-size: large;\"\u003EMod.exe\u003C\/span\u003E\u003C\/a\u003E\n\u003Cbr \/\u003E\n\u003Ca href=\"http:\/\/tiny.cc\/picdem_pc\"\u003E\u003Cspan style=\"font-size: large;\"\u003EPC Software\u003C\/span\u003E\u003C\/a\u003E\n\u003Cbr \/\u003E\n\u003Ca href=\"http:\/\/tiny.cc\/picdem_sch\"\u003E\u003Cspan style=\"font-size: large;\"\u003EFirmware and Schematic\u003C\/span\u003E\u003C\/a\u003E\n\n\u003C\/div\u003E\n\u003C\/blockquote\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/4881273248300498285\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/04\/4550-usb-hid-bootloader.html#comment-form","title":"1 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/4881273248300498285"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/4881273248300498285"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/04\/4550-usb-hid-bootloader.html","title":"USB HID Bootloader Circuit - 18F4550"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/04276791138418315268"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"28","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhOi2xKRvoV6gXKWi71KMKmEIRnpUCIKqooPVvYUWrT3XVz-dq56xLd_XdqhlDm93ymdLdRr_Y1tlZVnEiI63IqdHSIir_OVOWfXUvlAOQYI6s6Q_0RjB2Q1bTb0y2T_g\/s113\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjgGmIFmjNyUVdfrlaJFN7u9mT7pOiv9WmFYuSaNQL5MrWmaBUgOnmtouounTVVzjnT1fjHzd5w_tePpS8eOWZsrPSlIo2MszVhC_KgyozXMacF8YrZYDwTFS5pkQPPebY8lErp5hXfrrc\/s72-c\/4550_hid_boot.jpg","height":"72","width":"72"},"thr$total":{"$t":"1"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-3913933626499572790"},"published":{"$t":"2015-01-17T08:55:00.003+05:30"},"updated":{"$t":"2020-11-04T09:34:40.866+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"18F"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Clock"},{"scheme":"http://www.blogger.com/atom/ns#","term":"DS1307"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Matrix"},{"scheme":"http://www.blogger.com/atom/ns#","term":"PIC"}],"title":{"type":"text","$t":"8x32 LED Matrix Real Time Clock Circuit with Alarm - 18F2550"},"content":{"type":"html","$t":"Most of electronic enthusiasts are very much interest about the LED matrix displays. So if you are one of them this is for you. If you are not familiar with LED matrices at all, please read these two experimental tutorials \u003Ca href=\"http:\/\/embedded-lab.com\/blog\/?p=2478\" target=\"_blank\"\u003EBasics of LED matrix display\u003C\/a\u003E\u0026nbsp;and \u003Ca href=\"http:\/\/embedded-lab.com\/blog\/?p=2661\" target=\"_blank\"\u003Escrolling text message on an LED matrix\u003C\/a\u003E\u0026nbsp;.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiANdR7vwlSMiEHWziCxZd2Pr9mgoqwOkowooVVmLtQ2eFZOniwLzHkQrOxtQlTW1RtFseMv_KvpmSblcfzWYEyJifodKZIBf_-1bdpFuvdKWNl2pevj3JL-AwSEUdXqv7-e9msWj4wh_o\/s1600\/SNC00006.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"8x32 LED Matrix Clock\" border=\"0\" height=\"167\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiANdR7vwlSMiEHWziCxZd2Pr9mgoqwOkowooVVmLtQ2eFZOniwLzHkQrOxtQlTW1RtFseMv_KvpmSblcfzWYEyJifodKZIBf_-1bdpFuvdKWNl2pevj3JL-AwSEUdXqv7-e9msWj4wh_o\/s1600\/SNC00006.jpg\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003ELED Matrix Clock \u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\nLED matrix displays are very popular in these days and most of people are love it but wonder how it can construct. So that I decide to provide this post for you. This project is about constructing a mono-color LED matrix display based real time clock. It can display time, date, and room temperature alarm with chime function. You can control this clock using four switches (Mode, Enter, Up, Down) and can changed the speed of scrolling by RV2.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiFNXoEDCtxxlZHxKHLMCYe_Z7ecnxVEEAxVoWCgl5Oc9N7k558D3_KDNJ4Q3pHkZLkvlNmtrhdDfHgj2rMaVWfCgoMsZb9L-8pklMTsvWb2BQQfRXGkbFIHrAfcrvC8Dm22w2m_IocYLw\/s1600\/SNC00003.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"8x32 LED Matrix Clock circuit\" border=\"0\" height=\"197\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiFNXoEDCtxxlZHxKHLMCYe_Z7ecnxVEEAxVoWCgl5Oc9N7k558D3_KDNJ4Q3pHkZLkvlNmtrhdDfHgj2rMaVWfCgoMsZb9L-8pklMTsvWb2BQQfRXGkbFIHrAfcrvC8Dm22w2m_IocYLw\/s1600\/SNC00003.jpg\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EMatrix Clock \u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\nThe main IC of this project is PIC16F2550 micro controller which controls all the sections, and display the LED matrix with the help of 74HC595 shift registers and DS1307 RTC IC. As amplifier I chose TDA7052 because of low cost and almost no component. But you can choose any amplifier for it. To react function keys you need to press and hold keys and remember to put 100-330 resistors between shift registers and displays if those are too bright.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nThis built in some events and according to it clock change its welcome massage and alarm tone.\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nThe events are;\u003Cbr \/\u003E\n\u003Cul\u003E\n\u003Cli\u003ENew Year – Jan 1 \u0026nbsp;\u003C\/li\u003E\n\u003Cli\u003EVesak \u0026nbsp;- May\u0026nbsp;\u003C\/li\u003E\n\u003Cli\u003EChristmas - Dec 25\u003C\/li\u003E\n\u003Cli\u003EValentine – Feb 14 and\u003C\/li\u003E\n\u003Cli\u003EBirthday - User Define\u003C\/li\u003E\n\u003C\/ul\u003E\n\u003Cbr \/\u003E\nYou can add custom date for birthday by changing the values of Eeprom (1) for day and Eeprom (2) for month. Also used hex value for this. \u003Cbr \/\u003E\nEx: for Jun 25 -\u0026gt; Eeprom (1) = 19 and Eeprom (2) = 06\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: center;\"\u003E\n\u003Ciframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https:\/\/www.blogger.com\/video.g?token=AD6v5dzWrA0uqwqh6NkSdZebACjCKcN_UeVQdYwIKUHr4cqVdGK3veUkRLu4BnVK8iZyDqhdTYdQ4mqhKMJMO_OVYw' class='b-hbp-video b-uploaded' frameborder='0'\u003E\u003C\/iframe\u003E\u003C\/div\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: center;\"\u003E\n\u003Cspan style=\"font-size: 13px;\"\u003ELED Matrix Clock Preview\u003C\/span\u003E\u003C\/div\u003E\n\u003Cbr \/\u003E\nTested and Working!\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: left;\"\u003E\n\u003C\/div\u003E\n\u003Ch3 class=\"trigger\"\u003E\n\u003Cimg src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgxDYxsPjCPOIsq77ilBw8lKRDWctzAbaIPazTlYLMwhDgTgtbwcGhkO5JDarvYd2Ra839oMtgLr1arP5yMVsKSeUqWhvRQ5Ddk4AVdzL98jzXYipeCxGQum_JwHIoKeey_ZiC25JJgZEE\/s1600\/DOWNLOAD.png\" \/\u003E\u003C\/h3\u003E\n\u003Cdiv class=\"toggle_container\"\u003E\n\u003Cdiv class=\"block\"\u003E\n\u003Cblockquote class=\"tr_bq\"\u003E\n\u003Cdiv style=\"text-align: center;\"\u003E\n\n\u003Ca href=\"http:\/\/tiny.cc\/Matrix_Clk\" target=\"_blank\"\u003E\u003Cspan style=\"font-size:large;\"\u003EMatrix Clock\u003C\/span\u003E\u003C\/a\u003E\u003Cbr \/\u003E\n\n\u003C\/div\u003E\n\u003C\/blockquote\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/3913933626499572790\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/01\/8x32-led-matrix-clock.html#comment-form","title":"6 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/3913933626499572790"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/3913933626499572790"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2015\/01\/8x32-led-matrix-clock.html","title":"8x32 LED Matrix Real Time Clock Circuit with Alarm - 18F2550"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/04276791138418315268"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"28","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhOi2xKRvoV6gXKWi71KMKmEIRnpUCIKqooPVvYUWrT3XVz-dq56xLd_XdqhlDm93ymdLdRr_Y1tlZVnEiI63IqdHSIir_OVOWfXUvlAOQYI6s6Q_0RjB2Q1bTb0y2T_g\/s113\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiANdR7vwlSMiEHWziCxZd2Pr9mgoqwOkowooVVmLtQ2eFZOniwLzHkQrOxtQlTW1RtFseMv_KvpmSblcfzWYEyJifodKZIBf_-1bdpFuvdKWNl2pevj3JL-AwSEUdXqv7-e9msWj4wh_o\/s72-c\/SNC00006.jpg","height":"72","width":"72"},"thr$total":{"$t":"6"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-5719078071947687387"},"published":{"$t":"2014-11-13T11:11:00.002+05:30"},"updated":{"$t":"2020-11-04T09:26:49.027+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"16F"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Clock"},{"scheme":"http://www.blogger.com/atom/ns#","term":"DS1302"},{"scheme":"http://www.blogger.com/atom/ns#","term":"LCD"},{"scheme":"http://www.blogger.com/atom/ns#","term":"PIC"},{"scheme":"http://www.blogger.com/atom/ns#","term":"SPI"}],"title":{"type":"text","$t":"DS1302 Real Time LCD Clock Circuit - 16F88"},"content":{"type":"html","$t":"\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjNbffB2LrzXsusyOEJfxhKrWW_TRyZA1l4FermDHEaInFJGdQc2yB4WKMiqZ4k9PD8V0M2WT2XylenY9o5Vg7hTda1fcdl74W7cpm9CP0zXpEyyJVDQPEHFxRpvGqayYHJ6be0qzSO3p8\/s1600\/1302+Clock.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"DS1302 Real Time Clock circuit\" border=\"0\" height=\"196\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjNbffB2LrzXsusyOEJfxhKrWW_TRyZA1l4FermDHEaInFJGdQc2yB4WKMiqZ4k9PD8V0M2WT2XylenY9o5Vg7hTda1fcdl74W7cpm9CP0zXpEyyJVDQPEHFxRpvGqayYHJ6be0qzSO3p8\/s320\/1302+Clock.jpg\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EClock Schematic\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\nThis clock use DS1302 as timekeeping chip and this was my first time I used this IC for my project. It used three wires for communication. It communicates with a microprocessor via a simple serial interface. Three wires are required to communicate with the clock\/RAM: CE, I\/O (data line), and SCLK (serial clock). The real-time clock\/calendar provides seconds, minutes, hours, day, date, month, and year information. The DS1302 will run with a voltage from 2.0V to 5.5V.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nHere I used PIC16F88 micro-controller and 16x2 LCD. No switches were added to edit time and date. To add switches you have to modify the code and it is not difficult. The DS1302 uses an external 32.768kHz crystal. The oscillator circuit does not require any external resistors or capacitors to operate. The accuracy of the clock is dependent upon the accuracy of the crystal and the accuracy of the match between the capacitive load of the oscillator circuit and the capacitive load for which the crystal was trimmed. Please refer datasheet for more information.\n\u003Cbr \/\u003E\n\u003Ch4\u003E\n\u003Cspan style=\"font-weight: normal;\"\u003E\u003Cu\u003E\u003Cspan style=\"font-size: large;\"\u003EDS1302 Features\u003C\/span\u003E\u003C\/u\u003E\u003C\/span\u003E\n\u003C\/h4\u003E\n\u003Cul\u003E\n\u003Cli\u003EReal-Time Clock Counts Seconds, Minutes, Hours, Date of the Month, Month, Day of the Week, and Year with Leap-Year Compensation Valid Up to 2100\u003C\/li\u003E\n\u003Cli\u003E31 x 8 Battery-Backed General-Purpose RAM\u003C\/li\u003E\n\u003Cli\u003ESerial I\/O for Minimum Pin Count\u003C\/li\u003E\n\u003Cli\u003E2.0V to 5.5V Full Operation\u003C\/li\u003E\n\u003Cli\u003EUses Less than 300nA at 2.0V\u003C\/li\u003E\n\u003Cli\u003ESingle-Byte or Multiple-Byte (Burst Mode) Data Transfer for Read or Write of Clock or RAM Data\u003C\/li\u003E\n\u003Cli\u003ESimple 3-Wire Interface\u003C\/li\u003E\n\u003Cli\u003EDS1202 Compatible\u003C\/li\u003E\n\u003C\/ul\u003E\n\u003Cbr \/\u003E\nMikroC used as programming language but you can easily convert it to MikroC Pro. Micro-controller is running by its internal clock at 8MHz.The project files can be download from below with Source files, Proteus and Hex file.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: left;\"\u003E\n\u003C\/div\u003E\n\u003Ch3 class=\"trigger\"\u003E\n\u003Cimg src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgxDYxsPjCPOIsq77ilBw8lKRDWctzAbaIPazTlYLMwhDgTgtbwcGhkO5JDarvYd2Ra839oMtgLr1arP5yMVsKSeUqWhvRQ5Ddk4AVdzL98jzXYipeCxGQum_JwHIoKeey_ZiC25JJgZEE\/s1600\/DOWNLOAD.png\" \/\u003E\u003C\/h3\u003E\n\u003Cdiv class=\"toggle_container\"\u003E\n\u003Cdiv class=\"block\"\u003E\n\u003Cblockquote class=\"tr_bq\"\u003E\n\u003Cdiv style=\"text-align: center;\"\u003E\n\n\u003Ca href=\"https:\/\/tiny.cc\/1302_rtc\" target=\"_blank\"\u003E\u003Cspan style=\"font-size:large;\"\u003EDS1302 Real Time Clock\u003C\/span\u003E\u003C\/a\u003E\n\n\u003C\/div\u003E\n\u003C\/blockquote\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/5719078071947687387\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2014\/11\/ds1302-real-time-clock.html#comment-form","title":"3 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/5719078071947687387"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/5719078071947687387"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2014\/11\/ds1302-real-time-clock.html","title":"DS1302 Real Time LCD Clock Circuit - 16F88"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/04276791138418315268"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"28","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhOi2xKRvoV6gXKWi71KMKmEIRnpUCIKqooPVvYUWrT3XVz-dq56xLd_XdqhlDm93ymdLdRr_Y1tlZVnEiI63IqdHSIir_OVOWfXUvlAOQYI6s6Q_0RjB2Q1bTb0y2T_g\/s113\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjNbffB2LrzXsusyOEJfxhKrWW_TRyZA1l4FermDHEaInFJGdQc2yB4WKMiqZ4k9PD8V0M2WT2XylenY9o5Vg7hTda1fcdl74W7cpm9CP0zXpEyyJVDQPEHFxRpvGqayYHJ6be0qzSO3p8\/s72-c\/1302+Clock.jpg","height":"72","width":"72"},"thr$total":{"$t":"3"}},{"id":{"$t":"tag:blogger.com,1999:blog-6949498717831040472.post-6620763456914089224"},"published":{"$t":"2014-11-11T11:15:00.001+05:30"},"updated":{"$t":"2020-11-04T09:17:22.373+05:30"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"16F"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Clock"},{"scheme":"http://www.blogger.com/atom/ns#","term":"PIC"},{"scheme":"http://www.blogger.com/atom/ns#","term":"SSD"}],"title":{"type":"text","$t":"Seven Segment Simple Digital Clock Circuit - 16F628"},"content":{"type":"html","$t":"\u003Ctable align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tr-caption-container\" style=\"margin-left: auto; margin-right: auto; text-align: center;\"\u003E\u003Ctbody\u003E\n\u003Ctr\u003E\u003Ctd style=\"text-align: center;\"\u003E\u003Ca href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhbP7wtXpHd7omDCq2jMrWhmpzNaWc-bLHrsL-XuLPyWEcFc5lTUFvVFRN4ZMYneV8vO2H_MQkFiwkHbfI8li4i8MMDWr4_PKqLyGYPRm9_y5Uby-MTpAeASDBEa74Wo7N9tNIwDDR_-sQ\/s1600\/Simple_clock.jpg\" imageanchor=\"1\" style=\"margin-left: auto; margin-right: auto;\"\u003E\u003Cimg alt=\"Simple Clock circuit\" border=\"0\" height=\"159\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhbP7wtXpHd7omDCq2jMrWhmpzNaWc-bLHrsL-XuLPyWEcFc5lTUFvVFRN4ZMYneV8vO2H_MQkFiwkHbfI8li4i8MMDWr4_PKqLyGYPRm9_y5Uby-MTpAeASDBEa74Wo7N9tNIwDDR_-sQ\/s320\/Simple_clock.jpg\" title=\"\" width=\"320\" \/\u003E\u003C\/a\u003E\u003C\/td\u003E\u003C\/tr\u003E\n\u003Ctr\u003E\u003Ctd class=\"tr-caption\" style=\"text-align: center;\"\u003EClock Schematic\u003C\/td\u003E\u003C\/tr\u003E\n\u003C\/tbody\u003E\u003C\/table\u003E\n\u003Cbr \/\u003E\nThis is a very simple clock circuit. The only IC used in this circuit was 16F628A pic micro-controller. This IC is very cheap and you can get it from any electronic spare parts shop. Four common cathode seven segment displays used to display time. We cannot get much accurate time using this. However, we can able to get reasonable accurate if we calibrate this circuit correctly. You can calibrate this clock by changing value of ‘Drift’. The ‘Drift’ variable is use to set calibration and it value should be in 0 to 255. In my code, value of ‘Drift’ is 198 and that is not the perfect value for it. You can get 0.5Hz frequency from RB7 if your ‘Drift’ value is correct.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nTotally four buttons are used in this circuit and RESET button is optional. Min and Hour buttons used to update time and Mode button change the display mode. Two display modes are available. At the beginning, it will show hour and minutes on display. You can view seconds by pressing Mode button. Please replace NOT gate with NPN transistors such as BC547 and put 1k-10k resistors for base before connect with micro-controller.\n\u003Cbr \/\u003E\n\u003Cbr \/\u003E\nMikroC used as programming language but you can easily convert it to MikroC pro or any other language. Because the code very simple. Micro-controller is running by its internal clock at 4MHz.The project files can be downloading from below with Source files, Proteus and Hex file.\n\u003Cbr \/\u003E\n\u003Cdiv class=\"separator\" style=\"clear: both; text-align: left;\"\u003E\n\u003C\/div\u003E\n\u003Ch3 class=\"trigger\"\u003E\n\u003Cimg src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgxDYxsPjCPOIsq77ilBw8lKRDWctzAbaIPazTlYLMwhDgTgtbwcGhkO5JDarvYd2Ra839oMtgLr1arP5yMVsKSeUqWhvRQ5Ddk4AVdzL98jzXYipeCxGQum_JwHIoKeey_ZiC25JJgZEE\/s1600\/DOWNLOAD.png\" \/\u003E\u003C\/h3\u003E\n\u003Cdiv class=\"toggle_container\"\u003E\n\u003Cdiv class=\"block\"\u003E\n\u003Cblockquote class=\"tr_bq\"\u003E\n\u003Cdiv style=\"text-align: center;\"\u003E\n\n\u003Ca href=\"https:\/\/tiny.cc\/simple_clock\" target=\"_blank\"\u003E\u003Cspan style=\"font-size:large;\"\u003ESimple Clock\u003C\/span\u003E\u003C\/a\u003E\u003Cbr \/\u003E\n\n\u003C\/div\u003E\n\u003C\/blockquote\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https:\/\/scopionz.blogspot.com\/feeds\/6620763456914089224\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2014\/11\/simple-clock.html#comment-form","title":"0 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/6620763456914089224"},{"rel":"self","type":"application/atom+xml","href":"https:\/\/www.blogger.com\/feeds\/6949498717831040472\/posts\/default\/6620763456914089224"},{"rel":"alternate","type":"text/html","href":"https:\/\/scopionz.blogspot.com\/2014\/11\/simple-clock.html","title":"Seven Segment Simple Digital Clock Circuit - 16F628"}],"author":[{"name":{"$t":"Scorpionz"},"uri":{"$t":"http:\/\/www.blogger.com\/profile\/04276791138418315268"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"28","height":"32","src":"\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhOi2xKRvoV6gXKWi71KMKmEIRnpUCIKqooPVvYUWrT3XVz-dq56xLd_XdqhlDm93ymdLdRr_Y1tlZVnEiI63IqdHSIir_OVOWfXUvlAOQYI6s6Q_0RjB2Q1bTb0y2T_g\/s113\/19_scorpionsecondary.jpg"}}],"media$thumbnail":{"xmlns$media":"http://search.yahoo.com/mrss/","url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhbP7wtXpHd7omDCq2jMrWhmpzNaWc-bLHrsL-XuLPyWEcFc5lTUFvVFRN4ZMYneV8vO2H_MQkFiwkHbfI8li4i8MMDWr4_PKqLyGYPRm9_y5Uby-MTpAeASDBEa74Wo7N9tNIwDDR_-sQ\/s72-c\/Simple_clock.jpg","height":"72","width":"72"},"thr$total":{"$t":"0"}}]}});