[{"data":1,"prerenderedAt":217},["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\u002Fpi-hacking-1-my-intro-to-the-world-of-electronics":21,"surround-\u002F2013\u002Fpi-hacking-1-my-intro-to-the-world-of-electronics":204,"i-lucide:arrow-left":213,"i-lucide:arrow-right":215},{"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":184,"comments":185,"date":186,"description":187,"excerpt":185,"extension":188,"image":57,"meta":189,"navigation":20,"path":190,"readingTime":191,"seo":192,"stem":193,"subtitle":194,"tags":195,"wordCount":202,"__hash__":203},"posts\u002F2013\u002Fpi-hacking-1-my-intro-to-the-world-of-electronics.md","Pi Hacking #1",{"type":25,"value":26,"toc":175},"minimark",[27,37,44,52,58,63,86,96,101,113,126,132,136,144,150,154,160,168,172],[28,29,30,31,36],"p",{},"A box of ",[32,33,35],"a",{"href":34},"http:\u002F\u002Fraspberrypi.org","Raspberry Pi","-s arrived to my workplace near the end of December 2012. They were small and cute and I was hooked.",[28,38,39],{},[40,41],"img",{"alt":42,"src":43},"Raspberry Pi arrives at work","\u002Fcontent\u002F2013\u002F01\u002Fpi\u002F1.jpg",[28,45,46,47,51],{},"An order for a personal instance of the Pi was sent shortly after, along with a wishlist of basic electronic play-things from ",[32,48,50],{"href":49},"http:\u002F\u002Fadafruit.com","Adafruit Industries",". Total cost - around 100€ (shipping + components + Pi). I had never handled hardware before and my knowledge of physics sucks, but the Pi and Adafruit ready-to-use components and tutorials have brought the entry-barrier really low. I though I could manage.",[28,53,54],{},[40,55],{"alt":56,"src":57},"Order of components","\u002Fcontent\u002F2013\u002F01\u002Fpi\u002F2.jpg",[59,60,62],"h2",{"id":61},"learning-to-soldier","Learning to soldier",[28,64,65,66,70,71,75,76,80,81,85],{},"The ",[32,67,69],{"href":68},"http:\u002F\u002Fadafruit.com\u002Fproducts\u002F914","Adafruit Pi Cobbler Breakout Kit"," ",[32,72,74],{"href":73},"http:\u002F\u002Flearn.adafruit.com\u002Fadafruit-pi-cobbler-kit\u002Foverview","needed soldiering"," - and I didn't have the tools nor the knowledge. The",[32,77,79],{"href":78},"http:\u002F\u002Frobot.itcollege.ee\u002F"," robotics club"," of ",[32,82,84],{"href":83},"http:\u002F\u002Fitcollege.ee","The Estonian Information Technology College"," was willing to help. My buddy Mikk taught me soldiering and under two hours I had an assembled cobbler (and a 7-digit LCD display backback) - yay!",[28,87,88,92],{},[40,89],{"alt":90,"src":91},"Pi cobbler","\u002Fcontent\u002F2013\u002F01\u002Fpi\u002Fsoldiered-cobbler.jpg",[40,93],{"alt":94,"src":95},"Double checking connections","\u002Fcontent\u002F2013\u002F01\u002Fpi\u002Fchecking-the-board.jpg",[59,97,100],{"style":98,"id":99},"clear: both;","switching-led-s-on-and-off","Switching LED-s on and off",[28,102,103,104,108,109,112],{},"The nicest thing about the Raspberry Pi is that it's just Linux. You can run Python and nano and ",[105,106,107],"em",{},"cat"," ",[105,110,111],{},"\u002Fetc\u002Fcrontab"," on it. The GPIO and its library make programmatic control easy.",[28,114,115,116,120,121,125],{},"My first Pi project was to light LED-s from Python. I followed Adafruit tutorial: \"",[32,117,119],{"href":118},"http:\u002F\u002Flearn.adafruit.com\u002Fraspberry-pi-e-mail-notifier-using-leds\u002Fpython-script","Raspberry Pi E-mail Notifier Using LEDs","\", but changed the script to just blink red\u002Fgreen LED-s. ",[32,122,124],{"href":123},"https:\u002F\u002Fgist.github.com\u002F4627503","The script"," is run via cron once every ten minutes and the LED-s blink on and off.",[28,127,128],{},[40,129],{"alt":130,"src":131},"Pi with LEDs","\u002Fcontent\u002F2013\u002F01\u002Fpi\u002Fpi-with-two-leds.jpg",[59,133,135],{"id":134},"fun-with-7-segment-4-digit-lcd-s","Fun with 7-segment, 4-digit LCD-s",[28,137,138,139,143],{},"Next tutorial: ",[32,140,142],{"href":141},"http:\u002F\u002Flearn.adafruit.com\u002Fmatrix-7-segment-led-backpack-with-the-raspberry-pi\u002Foverview","Matrix and 7-Segment LED Backpack with the Raspberry Pi"," taught how to connect a the wonderful 4-digit, 7-segment display to the Raspberry Pi. Some tinkering with the software, quick connection via the breadboard cables and voila - we have a working clock demo.",[28,145,146],{},[40,147],{"alt":148,"src":149},"Clock demo","\u002Fcontent\u002F2013\u002F01\u002Fpi\u002Fclock-demo.jpg",[59,151,153],{"id":152},"the-webide","The WebIDE",[28,155,156],{},[40,157],{"alt":158,"src":159},"WebIDE","\u002Fcontent\u002F2013\u002F01\u002Fpi\u002Fpi-webide.png",[28,161,162,163,167],{},"The guys at Adafruit have a ",[32,164,166],{"href":165},"http:\u002F\u002Flearn.adafruit.com\u002Fdebugging-with-the-raspberry-pi-webide","web-based IDE"," for the Pi. Haven't tried it out yet, but this should make prototyping even easier.",[59,169,171],{"id":170},"summary","Summary",[28,173,174],{},"The Raspberry Pi is a wonderful tool for learning. I managed to build my first simple project in three hours, having never done any robotics or hardware programming before. As for the future: I'd like to make something to help with my day-job. Something involving LED-s, buttons, 7-digit displays and Git\u002FJenkins servers. Read more about it soon-ish.",{"title":176,"searchDepth":177,"depth":177,"links":178},"",2,[179,180,181,182,183],{"id":61,"depth":177,"text":62},{"id":99,"depth":177,"text":100},{"id":134,"depth":177,"text":135},{"id":152,"depth":177,"text":153},{"id":170,"depth":177,"text":171},"Hardware",null,"2013-01-24","A box of Raspberry Pi-s arrived to my workplace near the end of December 2012. They were small and cute and I was hooked.","md",{},"\u002F2013\u002Fpi-hacking-1-my-intro-to-the-world-of-electronics","about 2 minutes",{"title":23,"description":187},"2013\u002Fpi-hacking-1-my-intro-to-the-world-of-electronics","My Intro To The World Of Electronics",[196,197,198,199,200,201],"python","raspberry pi","electronics","breadboard","making","led",394,"mfTodc8HB-x1_bhVayFRYkH25rpmeiyIyPYc_eznSb4",[205,209],{"title":206,"path":207,"stem":208,"children":-1},"On Befriending Acquaintances","\u002F2013\u002Fon-befriending-acquaintances","2013\u002Fon-befriending-acquaintances",{"title":210,"path":211,"stem":212,"children":-1},"Pi Hacking #2","\u002F2013\u002Fpi-hacking-2-noise-level-monitor","2013\u002Fpi-hacking-2-noise-level-monitor",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":214},"\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":216},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M5 12h14m-7-7l7 7l-7 7\"\u002F>",1790886932570]