[{"data":1,"prerenderedAt":176},["ShallowReactive",2],{"i-lucide:menu":3,"i-lucide:arrow-up-right":8,"i-lucide:moon":10,"i-lucide:sun":12,"i-lucide:rss":14,"i-simple-icons:github":16,"i-simple-icons:linkedin":18,"post-\u002F2013\u002Fpomodoro-on-a-breadboard":21,"surround-\u002F2013\u002Fpomodoro-on-a-breadboard":163,"i-lucide:arrow-left":172,"i-lucide:arrow-right":174},{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":7},0,24,false,"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 5h16M4 12h16M4 19h16\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":9},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M7 7h10v10M7 17L17 7\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":11},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":13},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"4\"\u002F>\u003Cpath d=\"M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":15},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M4 11a9 9 0 0 1 9 9M4 4a16 16 0 0 1 16 16\"\u002F>\u003Ccircle cx=\"5\" cy=\"19\" r=\"1\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":17},"\u003Cpath fill=\"currentColor\" d=\"M12 .297c-6.63 0-12 5.373-12 12c0 5.303 3.438 9.8 8.205 11.385c.6.113.82-.258.82-.577c0-.285-.01-1.04-.015-2.04c-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729c1.205.084 1.838 1.236 1.838 1.236c1.07 1.835 2.809 1.305 3.495.998c.108-.776.417-1.305.76-1.605c-2.665-.3-5.466-1.332-5.466-5.93c0-1.31.465-2.38 1.235-3.22c-.135-.303-.54-1.523.105-3.176c0 0 1.005-.322 3.3 1.23c.96-.267 1.98-.399 3-.405c1.02.006 2.04.138 3 .405c2.28-1.552 3.285-1.23 3.285-1.23c.645 1.653.24 2.873.12 3.176c.765.84 1.23 1.91 1.23 3.22c0 4.61-2.805 5.625-5.475 5.92c.42.36.81 1.096.81 2.22c0 1.606-.015 2.896-.015 3.286c0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":19,"hidden":20},"\u003Cpath fill=\"currentColor\" d=\"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037c-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85c3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.06 2.06 0 0 1-2.063-2.065a2.064 2.064 0 1 1 2.063 2.065m1.782 13.019H3.555V9h3.564zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0z\"\u002F>",true,{"id":22,"title":23,"body":24,"category":128,"comments":129,"date":141,"description":142,"excerpt":143,"extension":144,"image":119,"meta":145,"navigation":20,"path":146,"readingTime":147,"seo":148,"stem":149,"subtitle":143,"tags":150,"wordCount":161,"__hash__":162},"posts\u002F2013\u002Fpomodoro-on-a-breadboard.md","Pomodoro On A Breadboard",{"type":25,"value":26,"toc":120},"minimark",[27,37,42,70,74,77,81,94,98,113],[28,29,30,31,36],"p",{},"This is the project that taught me how to read physical switches from the Raspberry Pi. The idea is simple: a ",[32,33,35],"a",{"href":34},"http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FPomodoro_Technique","Pomodoro clock"," that can be used to track work\u002Frest time.",[38,39,41],"h2",{"id":40},"components","Components",[43,44,45,49,52,55,61,64,67],"ul",{},[46,47,48],"li",{},"A START\u002FPAUSE switch",[46,50,51],{},"A RESET switch",[46,53,54],{},"Four 5mm dimmed LEDs for tracking completed Pomodoro-s",[46,56,57],{},[32,58,60],{"href":59},"https:\u002F\u002Fwww.adafruit.com\u002Fproducts\u002F880","Adafruit 4-digit 7-segment display backpack",[46,62,63],{},"4 x 300R resistors for the LEDs",[46,65,66],{},"2x 1k and 2x 10k resistors for the switches",[46,68,69],{},"Jumpers, breadboard, Pi",[38,71,73],{"id":72},"usage","Usage",[28,75,76],{},"Press the START button to begin a new Pomodoro. The display lights up and starts counting towards the 25 minute mark. Once there, the system enters STANDBY mode and lights the first LED to indicate the completed Pomodoro. Press START after the break to begin again. On the fifth Pomodoro the system is reset and you should take a longer break.",[38,78,80],{"id":79},"code","Code",[28,82,83,84,88,89,93],{},"The Python script is ",[32,85,87],{"href":86},"https:\u002F\u002Fgist.github.com\u002Fanroots\u002F4988673","on GitHub",". The circuit diagram (my first one, mind you) is available ",[32,90,92],{"href":91},"https:\u002F\u002Fwww.circuitlab.com\u002Fcircuit\u002Ffr26sz\u002Fpomodoro-circuit\u002F","on CircuitLab",".",[38,95,97],{"id":96},"advanced-stuff","Advanced stuff",[28,99,100,101,105,106,112],{},"Connect this to ",[32,102,104],{"href":103},"https:\u002F\u002Fwww.toggl.com","Toggl"," ",[32,107,111],{"href":108,"rel":109},"https:\u002F\u002Fgithub.com\u002Ftoggl\u002Ftoggl_api_docs",[110],"nofollow","API"," to record your Pomodoros.",[28,114,115],{},[116,117],"img",{"alt":118,"src":119},"Pomodoro on a breadboard","\u002Fcontent\u002F2013\u002F02\u002Fpomodoro-breadboard.jpg",{"title":121,"searchDepth":122,"depth":122,"links":123},"",2,[124,125,126,127],{"id":40,"depth":122,"text":41},{"id":72,"depth":122,"text":73},{"id":79,"depth":122,"text":80},{"id":96,"depth":122,"text":97},"Hardware",[130,135],{"id":131,"author":132,"author_url":121,"date":133,"content":134},1417,"Aleksandr","2013-03-04 09:58:16 +0200","Very Cool! But I guess you have a typo in a toggl web site address ;-)",{"id":136,"author":137,"author_url":138,"date":139,"content":140},1418,"David","http:\u002F\u002Fsqroot.eu","2013-03-04 10:02:17 +0200","Indeed! How embarrassing... Is fixed now.","2013-02-19","This is the project that taught me how to read physical switches from the Raspberry Pi. The idea is simple: a Pomodoro clock that can be used to track work\u002Frest time.",null,"md",{},"\u002F2013\u002Fpomodoro-on-a-breadboard","less than 1 minute",{"title":23,"description":142},"2013\u002Fpomodoro-on-a-breadboard",[151,152,153,154,155,156,157,158,159,160],"breadboard","led","raspberry","pi","pomodoro","hardware","lcd","button","toggl","time tracking",173,"jt8i7icSOMfli-7prMbf-r5AHsE7JxT4UgMsYQ7IKtA",[164,168],{"title":165,"path":166,"stem":167,"children":-1},"On Customers Who Submit Bug Reports","\u002F2013\u002Fon-customers-who-submit-bug-reports","2013\u002Fon-customers-who-submit-bug-reports",{"title":169,"path":170,"stem":171,"children":-1},"Non-Functional Things Matter","\u002F2013\u002Fnon-functional-things-matter","2013\u002Fnon-functional-things-matter",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":173},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m12 19l-7-7l7-7m7 7H5\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":175},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M5 12h14m-7-7l7 7l-7 7\"\u002F>",1790886932465]