DIY ESR Meter not working properly - Page 1
Forum section: electronics / projects

author: panoss
author_rank: Frequent Contributor
timestamp: March 03, 2018, 07:57:20 am
content: I 've built the ESR meter publishedhere.The hex is this (fromhere):Code::020000040000FA:100000000A308A00D22A0000FF00030E8301A100FB:100010000A08A0008A010408A2007708A300780853:10002000A4007908A5007A08A6007B08A70083131E:1000300083128B1E1D280B193028220884002308E8:10004000F7002408F8002508F9002608FA00270818:10005000FB0020088A00210E8300FF0E7F0E09009E:100060008A110A129A2B0A108A100A113A3E0318B2:100070008A0A820000340034003400340034003432:1000800000345F3400340034003407340034073463:10009000003414347F3414347F34143424342A3438:1000A0007F342A34123423341334083464346234F1:1000B0003634493455342234503400340534033452:1000C0000034003400341C34223441340034003411:1000D000413422341C340034143408343E3408349F:1000E0001434083408343E340834083400345034AE:1000F0003034003400340834083408340834083408:100100000034603460340034003420341034083457:10011000043402343E345134493445343E340034DE:1001200042347F34403400344234613451344934F1:1001300046342134413445344B343134183414348A:1001400012347F341034273445344534453439343F:100150003C344A344934493430340134713409343C:10016000053403343634493449344934363406349A:100170004934493429341E3400343634363400349A:100180000034003456343634003400340834143427:1001900022344134003414341434143414341434F8:1001A00000344134223414340834023401345134DC:1001B0000934063432344934793441343E347E349F:1001C0001134113411347E347F3449344934493484:1001D00036343E3441344134413422347F34413466:1001E000413422341C347F34493449344934413455:1001F0007F3409340934093401343E3441344934FC:1002000049347A347F340834083408347F34003475:1002100041347F34413400342034403441343F345D:1002200001347F3408341434223441347F34403470:100230004034403440347F3402340C3402347F3450:100240007F340434083410347F343E344134413434:1002500041343E340A148A100A11313E03188A0AC6:1002600082007F3409340934093406343E34413481:10027000513421345E347F340934193429344634FE:1002800046344934493449343134013401347F34FB:10029000013401343F344034403440343F341F345F:1002A0002034403420341F343F3440343834403418:1002B0003F3463341434083414346334073408345A:1002C000703408340734613451344934453443348C:1002D00000347F344134413400340234043408346F:1002E000103420340034413441347F340034043439:1002F0000234013402340434403440344034403455:100300004034003401340234043400342034543492:100310005434543478347F34483444344434383496:100320003834443444344434203438344434443449:1003300048347F3438345434543454341834083402:100340007E340934013402340C3452345234523481:100350003E347F3408340434043478340034443474:100360007D34403400342034403444343D3400344F:100370007F341034283444340034003441347F3422:10038000403400347C3404341834043478347C34FD:100390000834043404347834383444344434443431:1003A00038347C3414341434143408340834143499:1003B000143418347C347C34083404340434083461:1003C0004834543454345434203404343F344434A2:1003D000403420343C344034403420347C341C34A9:1003E0002034403420341C343C34403430344034E5:1003F0003C34443428341034283444340C345034DD:10040000503450343C344434643454344C344434E4:1004100000340834363441340034003400347F343E:10042000003400340034413436340834003410349D:1004300008340834103408347834463441344634AF:1004400078340A108A140A118207FC34FE34FE3410:1004500006340634FE34FE34FC347F34FF34FF347B:10046000C034C034FF34FF347F34003418341C34BB:10047000FE34FE34FE340034003400340034C03422:10048000FF34FF34FF34C03400343C343E343E3457:1004900006348634FE34FE347C34E034F034FC34EC:1004A000FF34CF34C734C134C0341C341E349E34BE:1004B00086348634FE34FE34FC347834F834F9342F:1004C000C134C134FF34FF347E340034F034FE34A0:1004D0007E34FE34FE34FE3400343F343F3437344F:1004E0003034FF34FF34FF343034FE34FE34FE3415:1004F000C634C634C634C63486347134F134F1346B:10050000C034C034FF34FF347F34FC34FE34FE3456:10051000C634C634DE34DE349C347F34FF34FF34DA:10052000C034C034FF34FF347F340634063406341C:100530008634E634FE347E341E348034F034FE34A7:100540003F3407340134003400347C34FE34FE344C:1005500086348634FE34FE347C347E34FF34FF34FB:10056000C134C134FF34FF347E34FC34FE34FE34F5:1005700086348634FE34FE34FC347834F934F9346D:10058000C134C134FF34FF347F340A108A140A1195:100590008207203420342034203420342034203486:1005A00020342034203420342034203420340034CB:1005B0000A108A140A11820720342034203420348F:1005C000203420342034203400340A108A140A11D4:1005D000820747344F344F34443400340A108A14AD:1005E0000A11820743345234493454344934433471:1005F00041344C3400340A148A140A11023E0318A0:100600008A0A8200203420342034203420342034DC:10061000203400340A148A140A11820744346934DD:100620006734693445345334523420344D3465349E:1006300074346534723400340A148A140A1182073F:100640002034623479343A3420347A346534723464:100650003034773431346E346734203400340A1443:100660008A140A11820720342034203461346E3415:100670006434203452346134663466347434203443:10068000203400340A148A140A1182072D342D34C0:100690002D342D342D342D342D342D342D342D3452:1006A0002D342D342D342D3400340A148A140A11BB:1006B0008207533468346F347234743420346334B2:1006C00069347234633475346934743400340A1410:1006D0008A140A1182072034703472346F34623401:1006E0006534733420346E346F3477342E342034D0:1006F00000340A148A140A118207433441344C34FA:100700004934423452344134543449344E344734F9:1007100000340A148A140A11820750346C34653488:10072000613473346534203477346134693474341B:100730002E34003464308100D2080319AC2B013010:10074000D306FC30D400D3080319A82B5414A92BCA:10075000D41454088700B02BFC30D4005408870010:100760000B118A110A121D285830840083130008C7:100770000319C72B0630F800F701F70BBD2BF80B58:10078000BC2B7B30F700F70BC32B800BBA2B00344C:100790000830EA00EA080319DA2B061269088039E2:1007A000031DD42B0611D52B061506160310E90DD3:1007B000EA03CA2B0034861186106808E900C823B2:1007C00086140034660807394038E700E800DB2368:1007D00065087F398038E700E800DB2300348615A0:1007E00086106508E900C82386140034861586142F:1007F00006100A30D800B42306142130E800DB23A9:10080000C230E800DB231330E800DB232030E800AF:10081000DB230930E800DB23E501E601E2230130B8:10082000AD00F830AC00AC08031D192CAD0803195D:10083000202CE501EF232C080319AD03AC03132C86:100840000830E800DB230C30E800DB238A150A12AD:10085000162BF701F801630803106418F707F70C6B:10086000F80CE418F707F70CF80C6419F707F70C05:10087000F80CE419F707F70CF80C641AF707F70CF3:10088000F80CE41AF707F70CF80C641BF707F70CE1:10089000F80CE41BF707F70CF80C00346008A9000B:1008A00029081F3C0318892C29087F3C031C892C2C:1008B000A8012808043C031C872C29084F3C031C72:1008C000702C2908E03EE200E3000530E400292412:1008D0007808AA0028082A073320F800AB00822CE9:1008E00029084F3C0318822C2908B03EE200E3009F:1008F0000530E40029247808AA0028082A072A21BC:10090000F800AB002B08E500EF23A80A592CE501FD:10091000EF230034E5015708E600E223D801580828:10092000C522D80AF700E0004E240E305802031DFD:100930008F2C0034D7018A240130D7008A2402305A:10094000D7008A240330D7008A240430D7008A24B1:100950000530D7008A240034D701D801D9015908BD:100960003F3C031CC52C2930F700F70BB52C0000C9:100970001F151F19B92C83161E088312D7071E08CE:1009800003181E0FD807D90AAF2C5708F8005808CB:10099000F90000348E30F7005808F8005708F900C5:1009A000FA01F808031DDE2C7908F800F901083077:1009B000F702F808031DDE2CF701E62C0310F81BE4:1009C000E52CF90DF80DF703DE2CF8130034803018:1009D0008318E406E901EA016008E8006408E80613:1009E0005F080319D72DE700F70063080319E02D0E:1009F000E70203197C2D031C3A2D6408ED00ED1766:100A00006508EC006608EB00EA010310ED0CEC0C45:100A1000EB0CEA0CE70B042DE81F112D6914F42DE3:100A2000691067106916623084008313092E6912F9:100A3000E81B242D671C2F2DED0CEC0CEB0CEA0CA5:100A4000F70A0319EF2D2F2DED1B322D0310EA0DA0:100A5000EB0DEC0DED0DF7030319EF2D242D6917A8:100A60009C2D69136008E800E81F382DED17E82D6C:100A7000ED13E82D6308E700F7005F08E702600860:100A8000ED00ED176108EC006208EB00EA010310CD:100A9000ED0CEC0CEB0CEA0CE70B462DE81F532D8C:100AA000E914F42DE9106710E91666308400831309:100AB000092EE912E81B662D671C712DED0CEC0C5C:100AC000EB0CEA0CF70A0319EF2D712DED1B742DB9:100AD0000310EA0DEB0DEC0DED0DF7030319EF2DEF:100AE000662DE9179C2DE9136408E800E81F7A2DAC:100AF000ED17E82DED13E82D6408ED00ED176508FE:100B0000EC006608EB00E81F892DED136915F42D44:100B10006911EA016710623084008313092EE81B13:100B2000B22D6008E800671C9C2DED0CEC0CEB0C62:100B3000EA0CF70A0319EF2DEA1FAD2DEB0A031D8E:100B4000AD2DEC0A031DAD2DED0A031DAD2DED0CF1:100B5000EC0CEB0CF70A0319EF2D691B312DE91B87:100B6000732DD12D8030ED06ED1FBA2DF42D6408C4:100B7000E800C72D6008E800ED08031DC72DEC084C:100B8000031DC72DEB08031DC72DF701E82DED1B35:100B9000D12D0310EA0DEB0DEC0DED0DF70BC72D6C:100BA000EF2DE81FD52DED17E82DED13E82D630887:100BB000F7006408ED006508EC006608EB00E82D1E:100BC0005F08F7006008ED006108EC006208EB00C8:100BD0006D08F8006C08F9006B08FA00272EF70181:100BE000F801F901FA01272EEA01EB09EC09ED09F8:100BF000EA09EA0A031D022EEB0A031D022EEC0A83:100C00000319ED0A6918102DE918522D6919882D5C:100C1000B72D0008EB07031C132EEC0A031D132E3F:100C2000ED0A0319671484030008EC07031C1B2E4C:100C3000ED0A0319671484030008801F803AED074A:100C400003186714691A172DE91A592D8F2D0034CE:100C50005B080319ED2EE7005F080319ED2EE7028C:100C6000031C372E7F30E7070318ED2E3D2E813011:100C7000E702031CED2E0319ED2E6708F700F801BB:100C8000F901FA01E6015C08E500E5175D08E400FA:100C90005E08E3001930E7006208E3020318602EE3:100CA0000130E4020318602EE5020318602EE6020C:100CB0000318602EE60AE50AE40A6208E307922EAA:100CC0006108E40203187B2E0130E50203187B2E35:100CD000E60203187B2EE60AE50A6108E4076208CB:100CE000E307031C922EE40A031D922EE50A031D5E:100CF000922EE60A922E60088038E5020318912EA3:100D00000130E6020318912EE60A60088038E507F4:100D10006108E407031C6F2EE50A031D6F2EE60A27:100D20006F2E7A14E70B952EA02E0310E30DE40D21:100D3000E50DE60D0310FA0DF90DF80DE80D4C2E3A:100D4000681CA82E0310F80CF90CFA0CE80CAB2E5A:100D5000F7030319ED2EE81BD42E0310E30DE40D69:100D6000E50DE60D6208E3020318C02E0130E4022F:100D70000318C02EE5020318C02EE602031CE32E62:100D80006108E4020318CB2E0130E5020318CB2ED4:100D9000E602031CE32E60088038E5020318D42E17:100DA0000130E602031CE32EFA0A031DE32EF90AC2:100DB000031DE32EF80A031DE32EF70A0319ED2E97:100DC000F80CF90CFA0C5C08E7006008E706E71F6E:100DD000EB2EF817F12EF813F12EF701F801F901B7:100DE000FA0100346008E7006408E706E71FFD2EFB:100DF00003110310E01B0314302F6008E7006308A1:100E0000E8005F08E80203190B2FE71F302F0308E3:100E1000013A8300302F6408E8006008E8020319F3:100E2000172FE71F302F0308013A8300302F650882:100E3000E8006108E8020319232FE71F302F030899:100E4000013A8300302F6608E8006208E8020319BF:100E50002F2FE71F302F0308013A8300302F031094:100E6000003463080319A12FEB0067080319A12FB1:100E7000EB070318422F7F30EB02031CA12F03194D:100E8000A12F462F8130EB070318A12F6B08F70025:100E9000F801F901FA016408EF00EF176508EE00A8:100EA0006608ED001830EB00EC016D1C6F2F6A082E:100EB000FA07031C612FF90A031D612FF80A0319B1:100EC000EC176908F907031C682FF80A0319EC17D7:100ED0006808E500E5176508F8070318EC17EC0D3E:100EE000F80CF90CFA0CEF0CEE0CED0C0310EB0BFC:100EF000542F0130F7070318A12FF81B862FEF0D91:100F0000FA0DF90DF80DF7030319A12FEF1F972F15:100F1000FA0A031D972FF90A031D972FF80A031DDC:100F2000972FF80CF90CFA0CF70A0319A12F640893:100F3000EC006808EC06EC1F9F2FF817A52FF8139C:100F4000A52FF701F801F901FA0100348E30F700FE:100F50005F08F7026008F9006108F800F917F70860:100F60000319BD2F0310F908031DB92FF808031941:100F7000BD2FF90CF80CF70BB22FE01FC42FF809A6:100F8000F909F80A0319F90A0034F801F901F7011F:100F9000FA016208031DCF2F61080319E92F1030F1:100FA000E3000310DF0DE00DF70DFA0D62087A0281:100FB000031DDC2F61087702031CE52F6108F7028F:100FC000031CFA036208FA020314F80DF90DE30B8F:040FD000D12F0034E9:10100000E201E1014630E0008530DF004508E600FE:101010004408E5004308E4004208E3008A11F22690:101020008A1503181528031D1C280930CE00CF008F:10103000D0000130D10053294508E2004408E10006:101040004308E0004208DF00E601E501E401E301B6:101050008A11F2268A15031C3228CE01CF01D00155:10106000D10153294508E2004408E1004308E000AB:101070004208DF00E601E5012030E4008230E300B1:101080008A11F2268A15031CCC2883104508E20039:101090004408E1004308E0004208DF000A30E600AF:1010A000D730E5002330E4007730E3008A11E724ED:1010B0008A157708DF007808E0007908E1007A08EF:1010C000E200E6006108E5006008E4005F08E30074:1010D000EA01E9014830E8008530E7008A1131274C:1010E0008A157A08DE007908DD007808DC007708C8:1010F000DB005E08E2005D08E1005C08E0005B08E0:10110000DF008A11A6278A157908DA007808D90045:101110005A08E0005908DF00E2010A30E1008A11B4:10112000C5278A157708D0005008D9020030031C63:101130000130DA025A08E0005908DF00E2010A3003:10114000E1008A11C5278A157908DA007808D900E4:101150005A08E0005908DF00E2010A30E1008A1174:10116000C5278A157708CF004F08D9020030031C25:101170000130DA025A08E0005908DF00E2010A30C3:10118000E1008A11C5278A157908DA007808D900A4:101190005908CE00D101532983104508E2004408C4:1011A000E1004308E0004208DF00CD30E600CC302B:1011B000E5004C30E4007A30E3008A11E7248A1518:1011C0007708DF007808E0007908E1007A08E2009B:1011D000E6006108E5006008E4005F08E300EA015A:1011E000E9012030E8008230E7008A1131278A15B2:1011F0007A08DE007908DD007808DC007708DB007B:101200005E08E2005D08E1005C08E0005B08DF00CA:101210008A11A6278A157908DA007808D9005A08B1:10122000E0005908DF00E2010A30E1008A11C52719:101230008A157708D0005008D9020030031C01300D:10124000DA025A08E0005908DF00E2010A30E10042:101250008A11C5278A157908DA007808D9005A0852:10126000E0005908DF00E2010A30E1008A11C527D9:101270008A157708CF004F08D9020030031C0130CF:10128000DA025A08E0005908DF00E2010A30E10002:101290008A11C5278A157908DA007808D900590813:1012A000CE000130D100D7015708013C031C74293E:1012B00003305707FF3EDF001430E5005F08E6000B:1012C0008A11E2238A15DF015F088A11FB228A1541:1012D000DF0AF700E0008A114E248A1507305F020A:1012E000031D6429D70A54291430D800D7015708A0:1012F000023C031C082A4E30570784008313000861:10130000DF000330E0005808E1005F08E200E00879:1013100003198D296008053C031CD22961084A3C49:10132000031CD2296208093C031CD2290130600247:10133000E4006108E5006408E6008A11E2238A15EA:10134000E3016308073C031CB529620EF700F03087:10135000F705770863078A1121228A15E400E50062:101360008A11EF238A15E30AA1296108E5006008C4:10137000E6008A11E2238A150830E30063080F3C77:10138000031CD229620EF700F030F70577086307D7:101390008A1121228A15E400E5008A11EF238A15BB:1013A000E30ABE290E30D80751085702031D062A4A:1013B0000330D8025808D80ADF00E5000330E60001:1013C0008A11E2238A15E030E5008A11EF238A159D:1013D0005808D80ADF00E5000330E6008A11E2234E:1013E0008A15E030E5008A11EF238A155808D80ADB:1013F000DF00E5000330E6008A11E2238A15E030C1:10140000E5008A11EF238A150430D807D70A772917:101410008A150A12CF2C1230E5000530E6008A1139:10142000E2238A15D70157088A11D8228A15D70ACC:10143000F700E0008A114E248A1508305702031D78:10144000132A4508E2004408E1004308E00042088E:10145000DF006630E600E5000630E4007F30E300A0:101460008A11F2268A15031C4F2A1E30E50005302A:10147000E6008A11E2238A15D70157088A11E5226E:101480008A15D70AF700E0008A114E248A15043025:101490005702031D3D2A0130D200D501CF2A45084D:1014A000E2004408E1004308E0004208DF009A300F:1014B000E6009930E5002130E4008130E3008A1134:1014C000F2268A15031C7D2A1E30E5000530E60051:1014D0008A11E2238A15D70157088A11E5228A1555:1014E000D70AF700E0008A114E248A15043057020B:1014F000031D6C2AD201D501CF2A4508E200440819:10150000E1004308E0004208DF00CD30E600CC30C7:10151000E5007030E4008230E3008A11F2268A157B:10152000031CB12A5508013C031CAC2A1230E5000B:101530000530E6008A11E2238A15D70157088A117F:10154000EE228A15D70AF700E0008A114E248A1588:1015500008305702031D9E2AD201D50A0330D50553:10156000CF2A5508013C031CCB2A2130E500053069:10157000E6008A11E2238A154230E0008A114E24E7:101580008A154130E0008A114E248A154430E0006B:101590008A114E248A15D201D50A0330D5058A1541:1015A0000A12D02C840183131F30830583161F1465:1015B0009F141F159F1187308312CA002B30CB0058:1015C0004030CC00CD01D201D301D401D501831626:1015D000811700308600FF308312860000308316AA:1015E00087008312D40154088700093083168500D0:1015F0008312850183161F149F101F159F118312DC:101600001F139F1783169F1783121F140030F800B3:101610001F08C73978049F0083160108C0390138B4:1016200081006430831281008A11F62B8A15033001:10163000E500E6018A11E2238A15D70157088A11CD:101640000A238A15D70AF700E0008A114E248A156A:101650000D305702031D1E2BE5010130E6008A11F3:10166000E2238A15D70157088A111C238A15D70A45:10167000F700E0008A114E248A150E305702031D30:10168000332BE5010230E6008A11E2238A15D701E7:1016900057088A112F238A15D70AF700E0008A110C:1016A0004E248A150E305702031D482BE5010330E6:1016B000E6008A11E2238A15D70157088A114223CE:1016C0008A15D70AF700E0008A114E248A150E30D9:1016D0005702031D5D2B0330E5000430E6008A113C:1016E000E2238A15D70157088A1155238A15D70A8C:1016F000F700E0008A114E248A150D305702031DB1:10170000732B0330E5000530E6008A11E2238A15C9:10171000D70157088A1167238A15D70AF700E00016:101720008A114E248A150D305702031D892B14305F:10173000D700FA30D8008A11B4238A15D70B992B19:101740008A119A248A150330E500E6018A11E22302:101750008A15D70157088A110A238A15D70AF70074:10176000E0008A114E248A150D305702031DAA2B62:101770000930E5000230E6008A11E2238A15D7011C:1017800057088A1179238A15D70AF700E0008A11D1:101790004E248A150B305702031DC02B0630E5007E:1017A0000430E6008A11E2238A15D70157088A110E:1017B00089238A15D70AF700E0008A114E248A157A:1017C0000C305702031DD62B8B16C0308B0407112B:1017D0000C309700053095000030F8000438920076:1017E0000A30831692000C308312D700FA30D800EA:1017F0008A11B4238A15D70BF62BC901C801C7017A:10180000C601D60156087F3C031C3B2C8A11AC2430:101810008A157908FA007808D7007908D8008A1163:10182000CA248A15D8010408D7005810831B5814FD:1018300083104908E2004808E1004708E000460834:10184000DF007A08E6007908E5007808E400770808:10185000E3008A11E7248A15570884008313581877:1018600083177A08C9007908C8007808C700770884:10187000C600D60A022C4908DE004808DD004708E9:10188000DC004608DB009A30E2009930E100593074:10189000E0008130DF008A1128268A157708D700FA:1018A0007808D8007908D9007A08DA00DE007908CB:1018B000DD007808DC007708DB00E201E101E001EF:1018C0008630DF008A1128268A157A08CD0079082B:1018D000CC007808CB007708CA008A119A248A15B0:1018E0000330E500E6018A11E2238A15D701570883:1018F0008A110A238A15D70AF700E0008A114E24BC:101900008A150D305702031D772C8A11AC248A15D5:101910007908D8007808D7008A11CA248A157A086D:10192000C9007908C8007808C7007708C6004908C8:10193000DE004808DD004708DC004608DB004D08F3:10194000E2004C08E1004B08E0004A08DF008A1181:1019500028268A157708D7007808D8007908D90092:101960007A08DA0083147A08E2007908E10078083E:10197000E0007708DF009A30E6009930E500593042:10198000E4008130E3008A11E7248A157A08C50053:101990007908C4007808C3007708C20000280B2A21:0E19A000C830D8008A11B4238A15852C630044:02400E003A3F37:00000001FF;PIC16F876;CRC=F0D6 CREATED="23-Jun-09 07:20"But I haven't managed to make it work properly.It starts normally, displays the message 'please short circuit probes now' (I short the probes), then 'calibrating', calibration ends and I disconnect probes from each other.So with no resistor or capacitor between probes, probes on the air, it displays 1.23 (ohms I suppose) .Isn't it too little when nothing is connected between probes?I was expecting something like infinite resistance or at least a high value.CHANGES I 'VE MADE:For Q3, instead of IRLML2402TR I have used anFDS6680:RDS(ON) = 0.010@ VGS = 10 VRDS(ON) = 0.015@ VGS = 4.5 VFor Cx I have used a plain electrolytic capacitor.What have I done wrong?Can you help me?Has anyone else, except of me, built this circuit?

author: panoss
author_rank: Frequent Contributor
timestamp: March 12, 2018, 12:05:24 pm
content: I found the source codehere.But now my problem is I can't identify which C is this so as to use the proper compiler at Proteus.I tried to build it with XC8 compiler but it returned me an error code 2 : "can't open include file "16F876.h": No such file or directory"(at line with this code: '#include <16F876.h>')Micro C for Pic (of Mikroelektronika) I think does not use commands like '#include <16F876.h>'.So which C could it be? Which compiler should I use at Proteus?CCS for PIC maybe?EDIT: it must be CCS.