<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Gili Yankovitch on Medium]]></title>
        <description><![CDATA[Stories by Gili Yankovitch on Medium]]></description>
        <link>https://medium.com/@giliya?source=rss-da0092ad24d5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*e7Dihrt8aBgIjgWBizoqKQ.jpeg</url>
            <title>Stories by Gili Yankovitch on Medium</title>
            <link>https://medium.com/@giliya?source=rss-da0092ad24d5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 20:59:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@giliya/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[PSA: There’s No SCK on CH32V003 SOP-16!]]></title>
            <link>https://medium.com/@giliya/psa-theres-no-sck-on-ch32v003-sop-16-8cfcb633f5b3?source=rss-da0092ad24d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/8cfcb633f5b3</guid>
            <category><![CDATA[arduino]]></category>
            <category><![CDATA[risc-v]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ch32v003]]></category>
            <category><![CDATA[embedded]]></category>
            <dc:creator><![CDATA[Gili Yankovitch]]></dc:creator>
            <pubDate>Sat, 20 Apr 2024 23:27:14 GMT</pubDate>
            <atom:updated>2024-04-21T00:07:39.837Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2JAt463HB4vrmHTcxtj_9Q.png" /></figure><p>There. I had to say it. The short story is this: If you need SPI and want to use the SOP-16 package of the CH32V003 0.1$ RISC-V chip, well, think again. This is a short story of how I almost lost it.</p><h4>They couldn’t have made a mistake, right?!</h4><p>I got me a nice TSSOP20 package of the CH32V003, but because I am lazy and just wanted to try out this awesome <a href="https://github.com/tvlad1234/linux-ch32v003">linux-on-a-microcontroller project</a>, I only made a respin of the original project and didn’t bother to ask for a stencil. Who needs one anyway?! Let’s solder everything manually!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O1-l9AJY4dJUFr2MgXoEFw.png" /><figcaption>I was SO lazy I made the USB part part of the PCB</figcaption></figure><p>It turns out it’s a pain in the ass to solder such small pins. And 20 of them! I also don’t need SO MANY pins. I managed well with 8 for my <a href="https://medium.com/@giliya/id-rather-be-shiny-c33492550b08">paws project</a> so I bet the 16-pins variant is good enough for my next paws iteration (coming soon).</p><p>Quieting my impulse-purchase voice, I started doing the sensible thing and reading up the <a href="https://akizukidenshi.com/goodsaffix/CH32V003.pdf">datasheet</a> to figure things out before I buy it. I started reading up the datasheet but noticed something strange. The MOSI and MISO pins are there, but… where’s the clock signal pin?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pDcEo0D8uDH135z2YxrhRw.png" /></figure><p>Furthermore, scrolling down the datasheet, it seems the pin just… doesn’t exist on this variant…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*HDSTUW8lQF0G2YWqKHDiyQ.png" /><figcaption>Alternative functions for pins</figcaption></figure><p>And it is not remappable to ANY OTHER PORT-C PIN!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LmG6aXT6gYbLTFIt0hGiGg.png" /><figcaption>(Un)Remapping pins</figcaption></figure><h4>Community to the Rescue!</h4><p>Baffled, I turned to the internet: Google didn’t help, ChatGPT blurted out nonesense. As a last resort, I turned to the hackaday community for help, maybe I am missing something?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*w9mtz3rfMEdAFN7hgq_FwQ.png" /></figure><p>Fortuately, the awesome community stepped to the rescue of my sanity. Apparently, yes. The chip is indeed missing the SCK pin for the hardware SPI to actually work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/1*pT10VbhcHGjJv_ragA68aw.png" /><figcaption>The power of a community</figcaption></figure><p>As I have found absolutely no information about this on the internet, I felt the need to put the word out there. So, beware ye maker!</p><p>As for me, well, finding weird bugs in weird places is my MO so… Here’s to my first bug-on-a-chip. Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8cfcb633f5b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[It’s the Final Button]]></title>
            <link>https://medium.com/@giliya/its-the-final-button-692ac0e18780?source=rss-da0092ad24d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/692ac0e18780</guid>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[makers]]></category>
            <category><![CDATA[embedded]]></category>
            <category><![CDATA[keyboard]]></category>
            <dc:creator><![CDATA[Gili Yankovitch]]></dc:creator>
            <pubDate>Sat, 06 May 2023 21:26:36 GMT</pubDate>
            <atom:updated>2023-05-06T21:26:36.999Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AC5RIVb7eMLUhfTAeJ5k6g.png" /></figure><p>Throughout history, great artists always had their distinct artistic periods and series: Claude Monet&#39;s water-lilies, Vincent van Gogh’s sunflower series, Pablo Picasso with his blue period and many more. Recently, I’ve found myself drawn to making projects with buttons: <a href="https://medium.com/@giliya/id-rather-be-shiny-c33492550b08">Modular key modules</a>, <a href="https://github.com/gili-yankovitch/tinypad">Macro pad for embedded workshop</a> and now, the magnum opus, the final project of the keypad series — One button to rule them all, one button to find them. One button to bring them all, and with the RGB bind them.</p><h4>Not broken? Don’t fix it.</h4><p>The issue is this: There are so may programs and so many functions they can perform. You might have a group of buttons for Photoshop, some for Outlook, some for Gaming, but ultimately <strong>they are static</strong>. And at this day and age, you must have something that is context-aware.</p><p>There are plenty of macro pads out there… In all shapes and sizes. There are even <a href="https://medium.com/@giliya/id-rather-be-shiny-c33492550b08">some that are modular</a>. At the end of the day, they all are the same. Therefore the goal is clear: create a macro pad that consists of a single button (with RGB) that is context-aware and will replace them all.</p><figure><img alt="The TinyPad project. It’s really cool and awesome. But it can do only three things…" src="https://cdn-images-1.medium.com/max/1024/1*Ba7r-4DTLNlmivV5MpTWnQ.jpeg" /><figcaption>The TinyPad project. It’s really cool and awesome. But it can do only three things…</figcaption></figure><p>I remember it pretty well when in 2011 Razer have announced that their next Razer Blade laptop is going to have additional keys which can be mapped to special functionality depending on the game currently running. Then, there’s the StreamDeck with small LCDs on it and various other Screen-on-a-key projects like the <a href="https://www.artlebedev.com/optimus/">Optimus Keyboard</a>, <a href="https://fluxkeyboard.com/">Flux Keyboard</a>, <a href="https://ko-fi.com/polykb">thpoll’s polykb</a> which are all amazing.</p><p>Scouring the internet to find something similar, I’ve found a few options but they were WAY too expensive and would ruin the fun of hacking it on my own. However, for those who are interested, there are a few options of LCD-mounted-buttons which are mostly produced by a company named NKK. Be warned, those can cost upwards of 50$ apiece.</p><figure><img alt="NKK SMARTDISPLAY IS15BBFP4RGB" src="https://cdn-images-1.medium.com/max/240/0*ow_V5IBP3jyP6FBI" /><figcaption>NKK SMARTDISPLAY IS15BBFP4RGB</figcaption></figure><h4>I can show you the world</h4><p>It seems there is a magic land for electronics and hardware which is so affordable, it is a crime not to use it. It is called AliExpress. There, anything is possible.</p><p>I’ve set my sight on a very specific product that did not seem real at first, but proved to be the focal point for this project: a 0.42&quot; monochrome display. It costs 1$ per screen. You’ve read it right. ONE US DOLLAR. There are tons of miracles like this one.</p><p>However, prototyping components with non-standard connectors is a completely different thing. In this case, you will have a hard time as these ones such as the 0.42&quot; screen come with 16-pins connector with 0.65 pitch. I have failed to find an off-the-shelf PCB with such a connector just to plug it to a breadboard to test the screen. Therefore, I resorted to manually soldering hair-thin wires to these 16 pins. <a href="https://www.reddit.com/r/diyelectronics/comments/yhad6a/tiniest_solder_work_ive_ever_done_prototyping_can/">And it worked</a>!</p><figure><img alt="0.42&quot; OLED Single-color display with 16 pins hand-soldered with banana for scale" src="https://cdn-images-1.medium.com/max/1024/1*OEcvtb0XbjBl0ddf1xj0tg.jpeg" /><figcaption>0.42&quot; OLED Single-color display with 16 pins hand-soldered. Banana for scale</figcaption></figure><p>The problem with such unique SMD components is they oftentimes lack footprints. This happened to me several times already, mainly around USB-C components (which can reach <a href="https://www.mouser.co.il/ProductDetail/Amphenol-FCI/10137064-00021LF?qs=aXgFgf7IVOBXNo3QR2H2UQ%3D%3D">prices of up to 2.5$ each on mouser</a>, although cheaper options are available, but never in stock). You’re usually left with pixelated schematics with rough measurements. All-in-all, creating the footprints manually is not the worst experience, but you need to pray to every god known to man the final PCB will match the component. It’s usually… fine.</p><h4>The Final Product</h4><p>From there, creating the final PCB wasn’t hard. In contrast to my previous projects, where I used an ATTiny85 with VUSB Bit-banged USB protocol (<a href="https://github.com/gili-yankovitch/tinypad">TinyPad</a>, <a href="https://github.com/gili-yankovitch/attiny85-sample">ATTiny85USB sample</a>), I’ve decided to use a bit more complex controller — the <a href="https://ww1.microchip.com/downloads/en/devicedoc/atmel-7766-8-bit-avr-atmega16u4-32u4_datasheet.pdf">ATmega32u4</a> with an external 16MHz crystal, which is an 8-bit micro controller usually used with the Arduino <a href="https://www.sparkfun.com/products/12640">Pro Micro</a>. Using this controller proved much easier than I initially expected, soldering and programming it via the ICSP port was a breeze. Finally, I’ve created an adapter PCB for the OLED screen to support the non-standard 0.65mm pitch and connect all the appropriate pins to VCC and GND.</p><p>Zip everything up, send it to JLCPCB and one short trip to Hong Kong later, I have all the components ready at hand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Dy5_n4tRWdR_rrJCmxOJA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*DPrVR1qz1yiPKXIEamGeEQ.png" /><figcaption>Basic Hardware Schematic for the 32u4 with a USB port, an ICSP port, a button and a WS2812 LED</figcaption></figure><p>Back home, I sat down to solder everything together. After figuring out I’ve used the wrong footprint on the OLED adapter for the ribbon cable and after soldering the 32u4 sideways, my next attempt was more fruitful.</p><h4>Components Quality</h4><p>Much to my surprise, I’ve discovered at this point that I was shipped two different types of the same OLED screen. One with a correct brightness and one that you need to squint as hard as you can to make out what is displayed on the screen. Your mileage may vary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b0oIH7tUh8n9PMmwgytL_A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*rAT6ckVHauErR1PItJ9fkQ.png" /><figcaption>On the left is the dimmed display while on the right is the properly-working one</figcaption></figure><p>To tackle this, I’ve tested all the screens I’ve ordered and figured out which ones were defective and which ones were working. This took a lot of testing with <strong>a lot</strong> of hand soldering.</p><p>Once I’ve nailed down the working batch of screens, I soldered everything together and started writing the code.</p><h4>Software</h4><p>When all the components were soldered in place, I used the ICSP port to flash the Arduino bootloader to the device. This way, all subsequent software flashes can be done using the USB instead of the proprietary ICSP connector.</p><figure><img alt="Nyan" src="https://cdn-images-1.medium.com/max/600/1*8_JzrCPg4hUGs9Opol3FDg.gif" /><figcaption>Nyan</figcaption></figure><p>The software is pretty straightforward. On the PC side, there is a python script constantly monitoring the top-most window and sending the data to the controller on every change.</p><p>To do that, a brief adventure through MSDN would bring you down to a combo of a few Win32API functions that does the job pretty well. Using Python’s win32api libraries, this snippet will give you not only the process that belongs to the window, but also its title for fine-grain filtering.</p><pre>def getCurrentWindow():<br>    # Get the currently foreground window<br>    activeWindow = GetForegroundWindow()<br><br>    # Get the TID, PID of the window<br>    tid, pid = GetWindowThreadProcessId(activeWindow)<br><br>    # Get the process handle<br>    proc = OpenProcess(PROCESS_QUERY_INFORMATION, False, pid)<br><br>    # Get the process image name<br>    fullpath = GetModuleFileNameEx(proc, 0)<br><br>    # Grab the window title<br>    title = GetWindowText(activeWindow)<br><br>    # Don&#39;t forget to close tha handle to prevent resource leakage<br>    CloseHandle(proc)<br><br>    return {&quot;proc&quot;: path.basename(fullpath),<br>            &quot;title&quot;: title}</pre><p>On the controller side, the main challenge was synchronizing the PC and device through some protocol over USB. This protocol needed to carry both the image to be drawn on the OLED as well as the key combination to activate on every press.</p><p>Eventually, the easiest form of data communication between the PC and the device turned out to be the regular serial-over-USB protocol. Hey, if the <a href="https://flipperzero.miraheze.org/wiki/Command-Line">Flipper Zero uses it</a>, why not.</p><p>Because serial communication is rather slow and error prone, some large-data transactions, such as the screen images, needed to be sent in chunks. Splitting the data to 64-bytes chunks solved any synchronization issues.</p><p>From a usability standpoint, using the SSD1306 library was easy enough to configure and all is left is to tie it all up and constantly listen on the pulled-up digital pin 12 (PD6 on the 32u4 datasheet) the detect button presses. And voila!</p><p><a href="https://github.com/gili-yankovitch/onebtn">You can check all the sources, BOM and schematics on my GitHub page</a>.</p><h4>Check it out in-action</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FNwwlG5Kwtbs%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DNwwlG5Kwtbs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FNwwlG5Kwtbs%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b59d25270dc039cc99ddaff6c6350093/href">https://medium.com/media/b59d25270dc039cc99ddaff6c6350093/href</a></iframe><h3>Links</h3><p>OneBtn — <a href="https://github.com/gili-yankovitch/onebtn">https://github.com/gili-yankovitch/onebtn</a></p><p>Twitter — <a href="https://twitter.com/GiliYankovitch">@GiliYankovitch</a></p><p>LinkedIn — <a href="https://www.linkedin.com/in/yankovitchgil/">@YankovitchGil</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=692ac0e18780" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I’d Rather Be Shiny]]></title>
            <link>https://medium.com/@giliya/id-rather-be-shiny-c33492550b08?source=rss-da0092ad24d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/c33492550b08</guid>
            <category><![CDATA[hardware]]></category>
            <category><![CDATA[mechanical-keyboards]]></category>
            <category><![CDATA[cad]]></category>
            <category><![CDATA[embedded-systems]]></category>
            <category><![CDATA[pcb-design]]></category>
            <dc:creator><![CDATA[Gili Yankovitch]]></dc:creator>
            <pubDate>Thu, 21 Jul 2022 21:38:17 GMT</pubDate>
            <atom:updated>2022-07-21T21:38:17.462Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xUqN9J3r0E1N-ChlbHLE6w.jpeg" /></figure><h4>TL;DR — This is how I created a fully customizable, solder-free, open source hardware and software macro-pad from scratch. Links down below.</h4><p>I have played World of Warcraft since I was roughly 15 years old. Imagine a teenage me, playing my then-high-end gaming PC in my parents’ house, going on adventures across Azeroth, diving deep into its dungeons to slay legendary dragons for loot. For that, I used to slam my keyboard with infinite combinations just to get that exact strike at the right time to beat the monster. But every time I finished a battle exhausted, HP bar almost depleted, I wished I had some programmable extra buttons that would one-click all of my combos instead of breaking my fingers.</p><p>Fast forward 17 years, I still play WoW. Albeit less frequently, trying my luck with adventures from time to time. But even today, after so many years and a LOT of playtime, I still wish for something extra to help my combos. The difference is that today, I have much greater tech skills. Sure, I can always buy a premade keypad off Amazon, but where’s the fun in that?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q2APuaS1hIi5NrPwYuU5DA.jpeg" /><figcaption>This is Tinnuil. My Blood-Elf Monk. She needs more macros.</figcaption></figure><h3>Where to Start</h3><p>I wanted a new project that tackled everything I have taught myself in the past two years: Embedded Software, CAD, Electronics, PCB design, and on top of that I wanted it to be open-source. Bonus points if it actually teaches me something new. Therefore, I have set the goal: I’m going to create the most bad-ass, super-configurable, multi-function macro-pad! And it must be solder-free. And both physically and digitally fully customizable (OK enough requirements).</p><p>Mechanically, the point of this project was to create a macro-pad that can be built in any form or size, so users can build their device with any number of keys they wish, in any shape they want. Additionally, I wanted the ability to use any kind of mechanical key-switches and for it to be solder-free. Therefore, all components must be snap-fitted or connected through some sort of clipping mechanism.</p><p>As for the software, the macro-pad should be easily configurable through a basic UI that will detect the size and form of the macro-pad automatically and allow the user to choose the colors and functionality of each key individually.</p><h3>Nothing Ever Goes According to Plan</h3><p>I have decided to tackle the software part first, as this is my strong suit. I wanted the macro-pad to connect to the PC via USB as an additional keyboard. For this, I have purchased a few Arduino ProMicro16. The ProMicro uses an <a href="http://cdn.sparkfun.com/datasheets/Dev/Arduino/Boards/ATMega32U4.pdf">ATmega32U4</a> which has USB built-in to the chip and connected to the micro USB of the board. Useful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vzCIsAYpl5ADIlat8jLx5Q.jpeg" /><figcaption>I swear I know what I’m doing.</figcaption></figure><p>To understand the next decision, one must understand how keyboards work: Keyboards are usually constructed as a matrix of keys. To identify which key was pressed, each intersection of a row and a column yields a key index. The keys are soldered on this matrix and by pressing down a key, a circuit is closed between the key’s row and a column and so the specific key is identified. Unfortunately in my case, I cannot know how much keys the macro-pad consists of or how they are connected, therefore it is impossible to use this design.</p><p>To tackle this, I attached a microcontroller to each key. I used an <a href="https://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-2586-AVR-8-bit-Microcontroller-ATtiny25-ATtiny45-ATtiny85_Datasheet.pdf">ATTiny85</a> to control each key switch individually to uniquely identify each one. This creates a “network” of microcontrollers which are connected to each other via I2C lanes. To uniquely identify each key switch, each microcontroller receives a unique ID at boot time. At startup, the Arduino initiates an ID allocation routine and allocates a unique ID to each microcontroller within the “network”.</p><p>To do this, each microcontroller allocates two additional pins on top of the I2C bus: TOKEN_IN pin and TOKEN_OUT pin. This creates a “token-ring” between the Arduino and all the microcontrollers, synchronizing the communication. To start off, the Arduino raises the TOKEN_OUT pin to HIGH, which is in turn connected to the first microcontroller’s TOKEN_IN pin. Whenever the TOKEN_IN line is HIGH, a microcontroller “owns” the I2C bus and it is able to use the currently transmitted ID. Then, it echoes back the ID over the I2C bus and raises its TOKEN_OUT pin to HIGH so the next controller in the chain can receive the next ID.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NBOtJTO2bGC5Lom_-lIq2Q.png" /><figcaption>Pins PB0 and PB2 are used for the I2C bus while PB1 and PB3 are used for the token-ring.</figcaption></figure><h3>Embedded Development is a Rollercoaster</h3><p>In practice, there are a lot of hiccups when working with embedded devices. Just to name a few: setting up the build environment for the ATTiny85 resulted in a broken toolchain. The internal clock was configured wrong, so a <em>delay(1000)</em> sleeps for 2 or more seconds.</p><p>To top this, the I2C bus is quite slow, along with this tiny microcontroller which runs at 16MHz at best, each ID needs to be retransmitted a few times until the ATTiny85 receives the signal and ACKs it.</p><p>More-so, as I2C is a master-initiated protocol. Therefore, for the ID allocation routine, the Arduino is the master. On the other hand, during normal operation, key switches are pressed asynchronously, which would require them all to act as I2C masters. This raises questions such as: how to deal with bus contention, who drives the clock etc.</p><p>To solve this, after setup, the Arduino becomes the I2C slave, while on each key press, the relevant microcontroller becomes an I2C master for a brief time, transmitting its ID back to the Arduino, then goes back to acting as slave. This allows a (mostly) clean data transmission along the I2C network and so only a single entity on the bus acts as I2C master at all times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*owSbZp4D7cv47BHo3AWxtQ.png" /><figcaption>The ATTiny85 code wasn’t long, but it took a very precise dance to nail.</figcaption></figure><h3>Hardware</h3><p>Doing things that have a predictable course is boring. This is why every project must contain something I don’t know how to do. And this project excelled in that department. A lot of questions needed answering right from the get-go: how does a key switch connect to a board solder-free? How do two keys connect to each other? How small can the board be and still accommodate all the components? How do backlit key switches work? Does it require a special key switch? How to fit an LED behind a key switch?</p><p>For the board-to-board connectors, I have settled on connecting all the modules to one another through ribbon cables, which are small, flexible and carry as much lanes as I’d practically want.</p><p>The key switches were a whole other story: apparently there are unique components for that (the L shaped black component in the picture below) that allow solder-free, hot-swappable key caps. As for the LEDs, I used an <a href="https://cdn-shop.adafruit.com/product-files/1138/SK6812+LED+datasheet+.pdf">SK6812</a> which is reverse-soldered. This allowed me to solder it from the back of the PCB and create a small window for it to shine under the key cap. This trick made it flush with the top part of the PCB, directly shining through the key switch.</p><p>As for the PCB, it turns out it is just like those kiddie riddles where you have to connect the dots of two groups without the lines intersecting with each other. When it comes to PCB design, traces carrying different signals should never intersect. As this project has many signals (I2C, LEDs, Token lines and more), I had to draw them again and again to minimize vias to prevent intersections. I think my next software project should be something that does that for me. Any takers?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*SEJ342_-En9HL8JZk2wqmQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6_v5jQlfjEUHl4BUSMo-IA.jpeg" /><figcaption>PCBs soldered and ribbon-connected. Notice that all components are soldered to the bottom of the board.</figcaption></figure><h3>CAD</h3><p>Once the hardware is finalized, ordered and shipped, it is time to create the case that will hold all the modules together. After all, right now they are more fitting as Christmas lights than as a macro-pad.</p><p>For this, I have tried a number of designs. The first ones proved to be too chunky. The keys were positioned so high that it was uncomfortable pressing them. Also, it appears that keyboards are slightly angled by 5–15 degrees. So the completely flat approach was scrapped. On top of that, the ribbon cables mangled one another when two modules were adjacent to each other, sometimes shorting themselves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*1Q3EqovN3Krj3jvbcPBgeg.png" /><figcaption>V0.1 was functional but less ideal.</figcaption></figure><p>Creating an angled design and lowering the module profile fixed a lot of the issues I stumbled upon previously. I have angled the whole design by 5 degrees, remade the locking mechanism that connects the modules to one another and shrunk down the ribbon cable holes for a slimmer design.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Aj5eSY2Au1iUTeU1ohExVw.png" /><figcaption>V0.2 looked much slicker.</figcaption></figure><h3>Oh! There’s an App!</h3><p>As this is certainly not my strong suit, for the desktop app I have turned to my faithful friend Python. The application communicates with the Arduino over a serial connection using a configuration protocol I have designed.</p><p>As for the app itself, I wrote it as a webview application. I hope all the web developers reading this will excuse me for writing this entire app using plain old JavaScript with a bit of jQuery for the dynamic elements. This is certainly not the best looking app, but it definitely works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*7yBqfSEPhM6zXcDCIWxAzg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*zQShGW_noYLBhmxbKKA56A.png" /><figcaption>Gorgeous UI!</figcaption></figure><h3>The Ultimate Showdown</h3><p>After months of back-and-forth designing, coding, testing, redesigning, printing, redesigning, PCB fabricating, redesigning and some more redesigning, I have finally settled down on version 0.2 which I think looks amazing!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wdmUZrSPw1rCLBDh5ReEBQ.jpeg" /><figcaption>The (currently) final product</figcaption></figure><p>It’s been a wild journey, but I have learned so much from it. It had everything: Electronics, PCB design, Networking, CAD, Embedded development and Application development. And on top of it all, my World of Warcraft Blood-Elf Monk can now slay dragons using my own bad-ass, zero-solder, super-configurable, multi-function macro-pad!</p><h3>Links</h3><p>Paws Module — <a href="https://github.com/gili-yankovitch/paws-module">https://github.com/gili-yankovitch/paws-module</a></p><p>Paws Arduino and App — <a href="https://github.com/gili-yankovitch/paws-master">https://github.com/gili-yankovitch/paws-master</a></p><p>Twitter — <a href="https://twitter.com/GiliYankovitch">@GiliYankovitch</a></p><p>LinkedIn — <a href="https://www.linkedin.com/in/yankovitchgil/">@YankovitchGil</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c33492550b08" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Down the Embedded Rabbit Hole: Teaching myself new skills during COVID-19]]></title>
            <link>https://medium.com/@giliya/down-the-embedded-rabbit-hole-teaching-myself-new-skills-during-covid-19-f4e1a5f2691d?source=rss-da0092ad24d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4e1a5f2691d</guid>
            <category><![CDATA[3d-modeling]]></category>
            <category><![CDATA[embedded-systems]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[self-taught]]></category>
            <category><![CDATA[bluetooth]]></category>
            <dc:creator><![CDATA[Gili Yankovitch]]></dc:creator>
            <pubDate>Sat, 27 Jun 2020 14:51:35 GMT</pubDate>
            <atom:updated>2020-06-28T09:32:59.201Z</atom:updated>
            <content:encoded><![CDATA[<h3>TL;DR</h3><p>I wanted to learn new skills while under lock-down at home during the pandemic. My expertise is in embedded security, therefore I turned to an embedded project: I took on the task of creating a hardware Bitcoin crypto-wallet over Bluetooth. And to top it all, pack it nicely in a 3D printed case. Here are the results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iCUenyz7Fn-0XoN8Qpd-3Q.png" /><figcaption>Final 3D CryptoKit case, Artemis RedBoard Nano, ATECC508A</figcaption></figure><p>And here’s the GitHub repo of the code (SoC code and Android App):</p><ul><li><a href="https://github.com/gili-yankovitch/Cryptokit">https://github.com/gili-yankovitch/Cryptokit</a></li><li><a href="https://github.com/gili-yankovitch/CryptoKit-Android">https://github.com/gili-yankovitch/CryptoKit-Android</a></li><li><a href="https://www.thingiverse.com/thing:4501520">https://www.thingiverse.com/thing:4501520</a></li></ul><h3>Embedded is SO Cool</h3><p>In the age where a new front-end framework is all the rage, and rapid development and miraculous web effects are the things the cool kids do, I was (and still am) always fascinated by the quirks of embedded and hardware shticks. I love it when my code interacts with things in the outside world. And I love to tinker with things.</p><p>The idea behind an open-source Bitcoin crypto-wallet came to my mind when visiting 35C3. It was an experience of a lifetime. A conference like I’ve never seen before: all the lights, sounds, workshops, lectures, people. It’s just a must-go adventure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ax9viBbqz788AA2lEFs2_A.jpeg" /><figcaption>35C3 is special, in so many ways.</figcaption></figure><p>One of the things that are the most interesting in CCC is that there is such a large variety of things to do there. A diverse range of experiences, lectures, workshops, CTF competitions and so much more. One of the things that appealed to me most were hardware tags that you could purchase and sit down at a table with soldering irons galore, and just sink yourself in various forms of hardware fun.</p><p>And so I’ve decided: For next year’s CCC, I’ll be running my own workshop: Open-source, DIY Bitcoin crypto-wallet (spoiler: didn’t happen).</p><h3>The Journey</h3><p>I’ve been in the embedded security field for the past 11 years by now, and I’ve seen probably millions of lines of embedded code during that time. However, I have never had an end-to-end device bring-up and OS port assignment and I think it is atrocious. Sure, in theory I know everything there is to know about it, but I’ve never sat down to write those lines of code myself. It was time to change that.</p><p>Fast-forward a year and half from that 35C3 conference, I find myself at home, locked down during the COVID-19 pandemic and in dire need to do something creative so I won’t become mad staying at home all day. At least I’ll be creative at home.</p><p>I was scrolling down new listings under <a href="https://sparkfun.com/">sparkfun.com</a> and came across a cute little piece of hardware called <a href="https://www.sparkfun.com/products/15573">ATECC508A</a>. This chip is a hardware cryptographic accelerator. It implements a TRNG (True Random Numbers Generator), Secure Keys Storage and ECC (Elliptic Curves Cryptography) functionalities. The first thing that came to my mind was how cool (and super nerdy at the same time) will it be to implement something like the <a href="https://play.google.com/store/apps/details?id=com.tendadigital.chwaziApp&amp;hl=en">Chwazi App</a> (the one you can use to decide who goes first in a board game) with the TRNG engine. But then I remembered past me’s promise for an open-source hardware Bitcoin crypto-wallet. All I had to do was order this cutie alongside with what I wanted to be the brains behind this project: The <a href="https://www.sparkfun.com/products/15484">SparkFun Artemis Module</a> based on the Apollo3 chip from AmbiqMicro. I ordered both parts and waited for them to arrive. My plan was to solder them one to the other, but little did I know what was in store for me…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pFAkzHnK57nLSW3i7vAXxw.png" /><figcaption>The Artemis Module, with an LED for scale. These pads are REALLY tiny!</figcaption></figure><p>When the package arrived I was ready to jump straight in to soldering, satisfying my craving since the latest CCC conference. The issue was… The pads on that breakout were so tiny, it’d be impossible to solder wires to them using a regular soldering iron. Luckily, SparkFun has a large variety of larger, much more friendly breakout boards. I browsed for a different one and decided to go with <a href="https://www.sparkfun.com/products/15443">SparkFun RedBoard Artemis Nano</a>. It exposes 16 pins out of the module’s pads, a <a href="https://www.sparkfun.com/qwiic">Qwiic</a> port and a USB-C port (which will star later in our story) for both Serial communication as well as software flashing over UART at boot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wxblWkwdr6rtnDk3XtqK7A.jpeg" /><figcaption>A more solder-friendly breakout board, with the Artemis Module pre-soldered to it.</figcaption></figure><p>Armed (pun intended) with a much-more solder-friendly breakout board and a bunch of <a href="https://www.sparkfun.com/products/15573">ATECC508A</a> boards, I was ready to begin programming.</p><h3>Under the Hood</h3><p>The RedBoard Artemis products line has an AmbiqMicro Apollo3 chip under the metal casing. Apollo3 is based on an ARM Cortex-M4F core with 1MB Flash, and 285KB RAM. Additionally, it has multiple hardware communication channels with 6xSPI buses, 6xI2C buses, 2 UARTs and a built-in BLE radio and antenna. My plan was to utilize these I2C buses to communicate with the crypto module and the BLE to interface with an app on a smartphone.</p><p>Sparkfun’s website lists a few example projects with Arduino libraries support (mostly I2C, SPI and UART) and some BLE examples. But I made myself a promise not to use Arduino’s IDE. As user-friendly as it is, it’s just not… something to work with on a larger project. So I set onto parsing Arduino board files, to build me my own Makefile out of them. It took some time but it’s fairly routine work after figuring out where all the required information is scattered across several text files.</p><p>The initial setup was quite easy: Figure out how the Arduino IDE builds software, which flavor of GCC it uses, which flags and which one of the several linker scripts preexisting under the <a href="https://github.com/sparkfun/Arduino_Apollo3">Artemis Redboard GitHub Repo</a> I should use for my RedBoard Artemis Nano. But all-in-all, it didn’t take more than an hour or two to create a working Makefile which successfully flashes the board and prints “Hello, world!” through the serial console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B9jSujHj_64anxaYcQHM_w.png" /><figcaption>Left: platforms.txt — Arduino configuration file for building with Arduino IDE. Right: My own Makefile</figcaption></figure><p>I was tinkering a bit, trying out some of the libraries to feel comfortable with the environment. But after a few tries, I’ve decided. It’s on. Let’s start using our crypto module.</p><h3>The Little Chip That Could</h3><p>The ATECC508A chip is a tiny hardware crypto accelerator ASIC developed by Microchip. It functions as a security co-processor implementing some cryptographic functions. Its communication channels are either single-wire or I2C. On top of that, it implements a proprietary protocol over its communication channel. This protocol is implemented by a driver that can be found <a href="https://github.com/sparkfun/SparkFun_ATECCX08a_Arduino_Library">here</a>, following its extremely detailed <a href="https://cdn.sparkfun.com/assets/learn_tutorials/1/0/0/3/Microchip_ATECC508A_Datasheet.pdf">datasheet</a>. The protocol is pretty straightforward and implements a very basic TLV (type-length-value) scheme.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*-pzJgkwNSTWfQctXGG5BTg.png" /><figcaption>Application protocol over I2C Bus</figcaption></figure><p>This protocol essentially implements requests to the chip to execute a varied list of functionalities: key generation, key storage, random-numbers generation, ECC signature/verification etc. Each one is extensively detailed in the datasheet with which arguments go where, how long each function takes, which registers should be activated prior to others when writing to its secure storage, and more.</p><p>I took the time to read through the entire driver source and found a small integer overflow under the sendCommand() function that might eventually lead to a buffer overflow over the stack. As this is a library, one cannot assume how this can be used, therefore, better be safe than sorry. So<a href="https://github.com/sparkfun/SparkFun_ATECCX08a_Arduino_Library/pull/3"> I’ve submitted a patch</a> to SparkFun’s repository, and while I’m at it, I refactored the entire driver and implemented the SHA256 functionality.</p><p>While designing the software I was going to write, I’ve decided there might be some parts in my software that require encryption. Unfortunately, this specific ATECC508A does not implement any encryption functionalities. However, its sibling, the <a href="https://www.sparkfun.com/products/15838">ATECC608A</a>, does implement an AES-128 core. Sadly, according to SparkFun, to get the API documentation of how to use it, you must sign an NDA with Microchip.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*yNbbWtkteWZuAMfs3ygg1Q.png" /><figcaption>Excerpt from SparkFun’s ATECC608A product page</figcaption></figure><p>I’ll just say that Microchip has an open-source library called <a href="https://github.com/MicrochipTech/cryptoauthlib">cryptoauthlib</a> that supports both chips. With the above protocol documentation you won’t have a hard time figuring out the API yourself. Well, Anyway… 🤷‍♂️</p><h3>Harald Bluetooth</h3><p>One more avenue I wanted to explore was Bluetooth. I had a brief encounter with it a few years ago when I had to implement an exploit over RFCOMM, which is an RS232 emulation protocol, over Bluetooth. It was easy as pie using it. Simple stream read() and write() functions. I thought it’ll be as easy as that. Unfortunately, this is real life. And in real life, things don’t go as you planned.</p><p>I want to stop here and explain a bit about what BLE (Bluetooth Low Energy) actually is and how it works, so the rest of the story makes much more sense.</p><p>BLE, or Bluetooth-Low-Energy, is a part of the Bluetooth protocol with its own network stack. It can reach up to ~2Mbps with a range of up to 100m. Unlike the regular TCP/IP stack we all know and are used to, BLE implements a complete network stack that eventually lets devices communicate using things called <strong>Attributes</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*h4MpuX8UOh5p8ldY6QSszw.png" /><figcaption>The BLE stack</figcaption></figure><p>Very similar to USB, there’s the L2CAP layer which provisions devices over the network: which devices are currently advertising themselves, what types of devices they are, their names, physical addresses, and more. On top of that, the Attributes layer, which is the one I’ll focus on here, declares the types and fields the application and the device will use to communicate. Specifically, it describes how the host (PC, smartphone) should communicate with the device in terms of fields, field types, lengths, etc. For example: A battery level service might have an ATT layer advertising a single numerical field, indicating the battery level. This data is initially transmitted to a paired host which then knows how to read the application data when it arrives.</p><p>To make things easier, the Bluetooth consortium has created a layer on top of the Attribute protocol called GATT (Generic Attributes Protocol), which defines <a href="https://www.bluetooth.com/specifications/gatt/">generic types of communication attributes</a> for commonly used devices. This list includes things such as health monitors, power consumption, cycling speed, phone alerts, battery level, etc. All these are <strong>profiles</strong> and <strong>services</strong> a BLE device can declare using, and the standard already defines what and how their data should be transmitted. Each one of these GATT profiles has a predefined ID and should be generally identifiable by hosts, as they are generic devices. Here’s a slightly more technical description about <a href="https://epxx.co/artigos/bluetooth_gatt.html">ATT/GATT</a> that makes it very clear.</p><p>Fortunately, BLE is not locked only to those predefined profiles. Each device can implement its own ATT descriptive layer, using ATT primitives. It defines <strong>characteristics</strong> such as the layer’s attributes, which describe the application protocol fields and structure. For my purposes, I wanted to create a bidirectional channel that can transmit general-purpose data, as I would’ve liked to have the freedom of sending and receiving all kinds of data over the communication channel; even encrypt it before sending it over the air. Therefore, I had to create and define my own ATT service and characteristics.</p><p>It took a while, but after some long nights and few trial-and-error sessions, I’ve created my own ATT service called GP (General Purpose). All I had to implement now, is its Rx callback and return my responses over the Tx channel. Easy, right?</p><h3>A Network Lasagna</h3><p>I want to make one thing clear: If there’s one thing I’ve sworn never to do, it’s implementing a network fragmentation layer. This is by far the most horrible way to get your code penetrated. I’m not sure why, but in the past 11 years of me being a security researcher, there was no fragmentation logic that I’ve stumbled upon that didn’t have some horrible vulnerability in it. Somehow, human beings just cannot implement fragmentation without vulnerabilities. Examples are <a href="https://nvd.nist.gov/vuln/detail/CVE-2016-10142">here</a>, <a href="https://nvd.nist.gov/vuln/detail/CVE-2018-5391">here</a> and <a href="https://nvd.nist.gov/vuln/detail/CVE-2020-0610">here</a>. So obviously, life had to challenge me with writing one.</p><p>You see, BLE Attributes have a default MTU of 23 bytes. For my purposes I’d have to transfer data such as ECC public keys with some overhead (encryption, application protocol, etc). ECC public key size (for 256 bit curves) is 64 bytes. This led me to the conclusion that unfortunately, there’s no running away from fragmentation. Off I go to implement one.</p><p>After implementing the fragmentation layer, it’s time to implement the network encryption layer. You see, Bluetooth does support a varied range of encryption layers, depending on how the device is paired with the host. Here’s one of the best articles I’ve read describing <a href="https://duo.com/decipher/understanding-bluetooth-security">Bluetooth security</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*ZrX84Z0_ddMRUp4lzo0Ojg.png" /><figcaption>CryptoKit setup process</figcaption></figure><p>The problem with pairing a device, specifically a device without a screen, is that the much more secure pairing schemes (security level 2+) are impossible to implement as there’s no easy way to implement a secret share (those digits you see on your screen when pairing). These devices usually pair in the “Just Works” scheme. Meaning: Pairing with PIN 0000. Despite the fact that the communication is indeed encrypted, it is encrypted with a well known key. Therefore practically not encrypted.</p><p>I sought a different approach. Since the RedBoard Artemis Nano has a USB-C port used for UART communication, why not use that for initial key sharing process?</p><p>As you can see in the screenshots above, the first thing a user is greeted with, is a screen asking them to plug in CryptoKit (Yes, that’s how I called it) via its USB port to the phone. Once the app detects this connection, it asks the chip for a key which is then passed to the app. This key is now used to communicate securely over Bluetooth, encrypting every message with AES256-CBC.</p><p>The second stage connects the phone to the chip via Bluetooth to generate a new wallet address and send it to the phone. Finally, the user is required to pick a PIN. This PIN must be entered every time the app is opened. It is used to encrypt all sensitive data stored on the phone itself: namely, the communication key between the phone and the device.</p><p>So there you have it. What’s been built here is a general purpose Bluetooth protocol, supporting variable-sized messages of any content, E2E encrypted. I eventually had to add some more networking layers (turning all packet bytes to 7-bits instead of 8 because of a bug), but these are stories for another time.</p><h3>3D Modeling</h3><p>To finalize the project (who am I kidding? There’s still tons of Android logic to write), I’ve decided to challenge my artistic self. I couldn’t leave the project without some casing. Having a 3D printer at home, I’ve decided to put it to use. The issue is that I have zero modeling experience. Luckily, <a href="https://www.tinkercad.com/">tinkercad.com</a> is a super friendly online free modeling software that is really easy to get into. After a short tutorial or two, I started my trial and error process, again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hOSPjCToxm6bNN5Azqgdug.png" /><figcaption>All the test iterations, with several (failed) prints</figcaption></figure><p>Learning a completely new skill from scratch is challenging. Not only is the actual practice challenging, the entire way of thinking is different. Your entire approach to problem solving is different. For example: How do you create a case lid? How does it clip in place? How do you hold a battery in a fixed position? How do you swap a battery? How do you reset the device? These, and so many other questions, are new to my software-based mind.</p><p>Let’s take the issue of power consumption for example: Ie wanted to have this device self-powered. Therefore, I required a power source. I’ve chosen a CR2032 coin-cell battery. I didn’t want to use a generic CR2032 holder as it would have made the entire case much bulkier. Therefore I designed my own enclosure and planned to trap the battery between two wires, where the lid presses down one wire against the positive side of the battery, while the negative side presses down a wire that is held by the case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OM9j7SYG4qNOEGQYbavpVw.png" /><figcaption>Each part of the case has a different purpose. Got to this design after much trial-and-error.</figcaption></figure><p>Unfortunately, I eventually came to the conclusion that my battery holder is not tight enough and the PLA I was using softens after a while which loosens the pressure between the lid and the case, making this battery holder problematic. This what eventually led me to use a Li-Po 95mAh battery.</p><p>Keeping the device alive was another issue altogether. I initially wanted to create a <a href="https://www.youtube.com/watch?v=EqhQmert4Vk">single-button latching power-on mechanism</a>. Researching this, I found that I lack the electronic ingredients to do so (and all local stores were closed at that time) and that it’ll take so much room inside the case that it wasn’t worth it. So I’ve decided that keeping the device always on is an OK task as long as I can have it go into deep sleep after a minute or two of being active. Doing that wasn’t hard, but there should be a way to kick the device out of deep sleep to return to normal functioning again. Luckily, the RedBoard Artemis Nano has a reset button. I initially wanted to make a groove in the case wall close to the reset button. I tried this and printed an example but it was way too small and the design didn’t make much sense. Therefore, I designed a button to go through the entire case and press down on the board reset button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MxjDSFmysQ_pNPzGbJAweA.png" /><figcaption>All the layers of the case’s alpha version. Eventually replaced the CR2032 with a Li-Po battery.</figcaption></figure><p>Eventually, I just had to try and fail every time. I tested so many ideas through a ton of iterations (something like 20 for each part of the case), printing each one for at least an hour for an entire case, just to see that my measurements were wrong and the board doesn’t fit in the case, or the case is too large so it wiggles inside, or something I couldn’t predict beforehand since I have zero experience with CAD design.</p><p>But eventually, after many iterations, I finally got to the final design.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*Uz4HlhQt6skufS5krX4Klg.png" /></figure><h3>Conclusion</h3><p>I think I learned a lot from this process. All the way from honing my embedded skills, to learning a lot about device bring-up, hardware communication, Bluetooth, 3D modeling, and printing. Eventually, I think this project was worth the time it took me to do it. And it’s not like I’m going anywhere, COVID-19 is still here. There’s a lot of work yet to be done when it comes to the Android side, but that’s the easy part.</p><p>You, the reader, are more than welcome to contribute lines of code wherever you deem necessary, or use it as your own Bitcoin wallet (responsibility for your funds is entirely yours :). I hope you enjoyed traveling with me through my journey down the embedded rabbit hole as much as I enjoyed experiencing it for myself.</p><p>Cheers! :-)</p><h3>Thanks</h3><p>Thanks to my partner Jasmine Cohen and to my business partner, Yali Sela, for proofreading, suggesting ideas, highlighting all the boring and missed points, and generally making everything much better.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4e1a5f2691d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>