<?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[Simprints - Medium]]></title>
        <description><![CDATA[Every Person Counts - Medium]]></description>
        <link>https://medium.com/simprints?source=rss----e1e58de31089---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Simprints - Medium</title>
            <link>https://medium.com/simprints?source=rss----e1e58de31089---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 16:27:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/simprints" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Modularise your Android app with Dynamic Features]]></title>
            <link>https://medium.com/simprints/modularise-your-android-app-with-dynamic-features-abde45b7de59?source=rss----e1e58de31089---4</link>
            <guid isPermaLink="false">https://medium.com/p/abde45b7de59</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[dynamic-feature-module]]></category>
            <category><![CDATA[android-development]]></category>
            <dc:creator><![CDATA[Fabio Tuzza]]></dc:creator>
            <pubDate>Thu, 09 Jan 2020 20:39:55 GMT</pubDate>
            <atom:updated>2020-01-09T21:03:33.258Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*s04o1KHgkfqaNpX6.png" /></figure><p>In the last few years, Google has never passed up a chance to convince developers to shrink their apps. Since the Google Play Store was introduced in 2012, Google has seen a massive increase in app size — the average size in 2019 was ~5x bigger than in 2012.</p><p>One may argue that app size is no longer a major concern with the widespread availability of unlimited mobile data plans and fibre optic broadband, but Google <a href="https://medium.com/googleplaydev/shrinking-apks-growing-installs-5d3fcba23ce2">found</a> a negative correlation between number of downloads and app size:</p><blockquote><em>For every 6 MB increase to an APK’s size, we see a decrease in the install conversion rate of 1%.</em></blockquote><p>This figure starts to make sense when we take into account how fast the Android ecosystem is expanding in developing countries where more than 50% of Android users don’t have access to wifi and fast mobile data plans are still rarely seen.</p><p>To help developers shrink their apps and ultimately offer a better user experience, at Google I/O 2018, the California giant introduced <a href="https://developer.android.com/guide/app-bundle/dynamic-delivery">“Dynamic Delivery”</a>.</p><p>When a user downloads an app using Dynamic Delivery, Google Play is able to deliver only the components that are strictly required to run on that specific device.</p><p>So before delivering an app to a device, Google Play strips out unnecessary languages, layouts for devices other than the one being used, parts compiled for different architectures, and features that are not immediately required.</p><p>With this approach, Dynamic Delivery can drastically reduce the download app size.</p><p>To take advantage of Dynamic Delivery, developers need to upload their apps in the new App Bundle (.aab) format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*sCY-E6Z8DpnTNrOOBgLOSA.gif" /><figcaption>APK delivery vs Dynamic Delivery with App Bundle</figcaption></figure><p>As mentioned above, with Dynamic Delivery Google Play can initially ship only some features of an app and defer the download of others for later. This capability is called Dynamic Features.</p><p>The undownloaded modules are delivered on-demand only when users really need them.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FhttqEshs_Bk&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DhttqEshs_Bk&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2FhttqEshs_Bk%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/ab4319ed1e2196099b5c550fcc2c3724/href">https://medium.com/media/ab4319ed1e2196099b5c550fcc2c3724/href</a></iframe><h3>Why we use dynamic feature modules at Simprints</h3><p>As a not-for-profit tech organisation, we operate in the poorest countries around the world, where we provide an Android app for doctors and health workers to identify people using their fingerprints (read more <a href="https://medium.com/simprints/engineering-culture-at-simprints-86143ecd28d#2c55">here</a>).</p><p>In these countries, a reliable and fast connection is truly hard to find.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*oG9PZ6ris58HdyekNVWHKg.png" /><figcaption>Average Download Speed by country — Speedtest.net</figcaption></figure><p>Simprints simply cannot ask doctors to download a 50 MB app when the clinic’s internet bandwidth is only a few KB/s, especially when vaccine delivery depends on whether our app can be successfully downloaded from the Google Play Store.</p><p>Below are a few examples of communications between the engineers from our office in Cambridge, UK and our project managers in the field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/0*3c2I2UEKOXXO9UOv" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/0*7BAXHrkv5u3YFxrP" /></figure><p>As you can imagine, our engineering team welcomed Dynamic Features with joy and relief. Simply using the bundle format shrank our app from ~25MB to 6MB, which shortens the average download time from ~1h to ~15 minutes.</p><p>Bundles not only help our users and project managers in the field, but also unlock a world of new possibilities for our engineers. For years, we had often brainstormed potential features to improve our app, but always had to balance the benefits with the corresponding increase in APK size.</p><p>So after Google I/O 2018, we decided to start working on some of these features using Dynamic Feature Modules. After one year of working with this new feature, we wanted to share a few of the lessons we learned, particularly in the way they have impacted our approach to project structure, unit tests, and Android tests.</p><h3>Project structure</h3><p>Before diving into how we chose to structure our projects at Simprints, it is important to clarify the difference between dynamic feature modules and library modules. Traditionally library modules are normally used to separate business logic from the rest of the app. Typical structures include having a module for each layer of a <a href="https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html">Clean Architecture</a> or using a module for each data layer. For any structure you may use, the dependency graph would look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/328/1*DUs_0vPa4xCpbvQu7IlfYg.png" /></figure><p>“App” is the main application module, which depends on the two other library modules. These are isolated entities that cannot have any references to App. The main advantage of this structure is that submodules are completely decoupled from the app.</p><p>With dynamic features, the dependency graph looks a bit different:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/0*KnJdCBPTmEma9ggO" /></figure><p>A dynamic feature module is a gradle module that represents a feature that may be unavailable at runtime, so the main App module needs to cope with the potential absence of a Feature module. To enforce this, Google decided to forbid any references in App to the Dynamic Feature module, so the following statement in App would throw a compiling issue:</p><p>import com.greatapp.featuremodule.class</p><p>But a dynamic feature module is not a library to be shared, but instead an intrinsic component (indeed a feature) of the main app. So a dynamic feature module can have references to the main app because if it gets shipped at runtime via the Google Play Store, surely the main app is installed on the device too.</p><p>So the dependency between App and a Dynamic Feature module is reversed compared to the relationship between App and library modules. Thus dynamic feature modules are not isolated in the same way traditional modules are. Keep this concept in mind, as we will return to it later.</p><p>For <a href="https://play.google.com/store/apps/details?id=com.simprints.id&amp;hl=en">SimprintsID</a> (our main app), we decided to borrow the structure of <a href="https://medium.com/androiddevelopers/a-patchwork-plaid-monolith-to-modularized-app-60235d9f212e#9c01">Plaid</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*h7ECb3mHjJITAjp_" /></figure><ul><li>Library modules are included in core</li><li>:app depends on :core</li><li>Dynamic feature modules depend on :app</li></ul><p>App can interact with dynamic feature modules via Intents only:</p><pre>val intent = Intent().setClassName(packageName, it.activityName)<br>intent.putExtra(bundleKey, request.fromDomainToModuleApi())<br>startActivityForResult(this, it.requestCode)</pre><p>One of the implications of dynamic feature modules not being isolated from the main App was that while our code was well-structured, we soon realised it was not scalable for our team. Our initial intention was to create dedicated teams that would develop and maintain feature modules autonomously.</p><p>To achieve this, we needed to avoid dynamic feature code being coupled with the app module. This could quickly lead to frustrating situations where dynamic feature tests fail due to changes in the app module, compiling issues are created by other teams, or where one team roadblocks others.</p><p>So we decided to introduce what we call a “moduleApi” module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/0*KYiPmX-yHgtnzRca" /></figure><p>Moduleapi holds the API specifications for each module.</p><p>The specifications are represented by interfaces. Modules can only use these interfaces to interact with other modules, for all the rest they need to use domain classes.</p><p>In the previous example where App can launch a dynamic feature, we used the following line:</p><pre>intent.putExtra(bundleKey, request.fromDomainToModuleApi())</pre><p>So app handles its business logic with domain classes and only when it’s time to launch the Intent, domain classes are transformed into classes that implements the moduleapi interfaces.</p><p>Correspondingly, the dynamic feature modules need to transform the classes extracted from Intents into domain classes:</p><pre>val iFingerprintRequest: IFingerprintRequest = this.<em>intent</em>.<em>extras</em>?.getParcelable(IFingerprintRequest.BUNDLE_KEY)<br>val fingerprintRequest = FingerprintToDomainRequest.fromFingerprintToDomainRequest(iFingerprintRequest)</pre><p>So dynamic features can only import moduleapi interfaces. Thus, we don’t allow any references in the dynamic feature modules to code in the app module.</p><p>This is a convention that we defined in the Simprints team, but technically it’s still possible to have an illegal import referring to App in dynamic feature modules. To enforce our protocol, we take advantage of the “Dependencies Analysis”, which defines a specific scope for each feature module.</p><h3>Unit tests</h3><p>Once we started working with unit tests, our experience with dynamic features started becoming painful. We can run unit tests in Android Studio, but not from the command line or our CI system.</p><p>In general, it seems that Google introduced the dynamic features a bit too early, when the development tools were not ready for the new change. In line with our thinking, several issues were reported in the Android Studio issues tracker about dynamic features and unit tests:</p><p><a href="https://issuetracker.google.com/issues/132906456">https://issuetracker.google.com/issues/132906456</a></p><p><a href="https://issuetracker.google.com/issues/123441249">https://issuetracker.google.com/issues/123441249</a></p><p>The main issue is that classes imported from the App module are not found in the unit tests for the dynamic features.</p><pre>./gradlew :dynamic_feature1:testDebugUnitTest Getting the following error:<br>15:40:13.225 [DEBUG] com.example.dynamic_feature1.DynamicPresenterTest &gt; testXyz FAILED<br>15:40:13.225 [DEBUG] java.lang.NoClassDefFoundError: com/example/dynamicfeature/AppBase</pre><p>As mentioned above, dynamic feature modules are not the same as library modules, especially when it comes to dependencies. Android Studio likely uses some trick to overcome this difference and run unit tests.</p><p>For us, being able to run unit tests in our CI was a vital requirement, so after struggling for days, we finally found an effective workaround.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*oiSqxxsx7k5PwChpBUEYUg.png" /></figure><p>In java-compiling terms, the “classes.jar” file of the main module was not included at compile time when unit tests are launched, so we simply included it:</p><p>It’s a hacky workaround, but it lets us compile and run our unit tests in our CI!</p><h3>Android tests</h3><p>Android tests are another pain point we encountered. In this case, we had the opposite issue — we could launch Android tests from the command line with `./gradlew fingerprint:cAT`, but were unable to run them from Android Studio. Once again, the Android community was vocal in reporting this bug to Google:</p><p><a href="https://issuetracker.google.com/issues/115569342">https://issuetracker.google.com/issues/115569342</a></p><p><a href="https://issuetracker.google.com/issues/125437348">https://issuetracker.google.com/issues/125437348</a></p><p><a href="https://issuetracker.google.com/issues/133624929">https://issuetracker.google.com/issues/133624929</a></p><p>Android Studio doesn’t recognise a dynamic feature module as a module that can run instrumented tests:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qBXQF2fnM_3q2wj6" /></figure><p>At Simprints, we try to cover as much code as possible with lean and fast unit tests and we use Android tests only for integration tests for UI, backend, and database.</p><p>So for us, not being able to run Android tests in Android Studio was not a big deal as long we could run in our CI. We use BitRise as our CI system and it runs Android tests on Firebase Test Lab (FTL). To run tests on FTL we need to upload 2 files: “App APK or AAB” and “Test APK”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WEN_abh7gDBjGZIO" /></figure><p>Unfortunately, we could not find any official documentation on how to run espresso tests in FTL and although it accepts AAB, we found that bundle support did not work properly. So instead, we built a universal APK using <a href="https://developer.android.com/studio/command-line/bundletool">bundletool</a>.</p><p>Then to build the “Test APK”, we ran:</p><p><em>dynamicFeatureModuleName</em>:assembleDebugAndroidTest</p><p>Uploading the 2 APKs, we were finally able to run tests on FTL:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/0*bRJ2MXzxFWZUrOjD" /></figure><h3>Conclusion</h3><p>As a developer, the experience of working with dynamic features has not been as smooth as we would have liked, where we had to overcome poor documentation, development tools not yet ready for this new Android feature, and relatively low adoption from the Android community.</p><p>However, dynamic features definitely improve the final user experience. They help developers who need to ship features that require large files (such as AI models, 3D models, or game assets), which are becoming more and more common.</p><p>And for Simprints, dynamic features have helped us reduce the constraint of app size and deliver feature improvements that ultimately help us to <a href="https://www.simprints.com/#our-services">deliver vaccines and other public goods to those who need them most</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abde45b7de59" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simprints/modularise-your-android-app-with-dynamic-features-abde45b7de59">Modularise your Android app with Dynamic Features</a> was originally published in <a href="https://medium.com/simprints">Simprints</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[In-Circuit Testing: An Intern’s Guide]]></title>
            <link>https://medium.com/simprints/in-circuit-testing-an-interns-guide-651abb559090?source=rss----e1e58de31089---4</link>
            <guid isPermaLink="false">https://medium.com/p/651abb559090</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[hardware]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[nonprofit]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Archie Atkinson]]></dc:creator>
            <pubDate>Thu, 07 Nov 2019 17:54:07 GMT</pubDate>
            <atom:updated>2020-04-09T11:26:32.109Z</atom:updated>
            <content:encoded><![CDATA[<p>At the start of 2020 Simprints will be shipping 3000 of our new Vero 2.0 fingerprint scanners. This is more scanners than we have shipped since we started four years ago and we hope to ship more later in 2020.</p><p>Our scanners need to be robust enough to function in the often dusty, rugged, last-mile areas where front-line workers use our technology. Should any issue arise with any of the electronic components in the scanner, this could greatly impede the ability of front-line workers to deliver critical services. Replacing faulty scanners after they have been shipped is logistically challenging and cumbersome for our partners to have to deal with. To ensure each product is fully functional before shipping, our current Vero 1.0 scanners are tested at the time of manufacture, but this process is long and convoluted. So we have decided to make a new testing process for Vero 2.0 that will be fast and efficient.</p><p>Before I start I will quickly introduce myself. I am Archie, a Hardware Intern at Simprints. I joined at the start of the summer and was given the task of creating the Vero 2.0 test rig. This article will cover what I have learnt through my three months at Simprints, starting with an introduction into In-Circuit Testing systems, discuss the amount of testing a product needs and finishing with sharing the system we are developing at Simprints.</p><figure><img alt="A purpose build Simprints fingerprint scanner on a desk" src="https://cdn-images-1.medium.com/max/1024/0*K3EQyqN-kXTqyjBL" /><figcaption><em>The Vero 1.0 Fingerprint Scanner</em></figcaption></figure><h3>In-Circuit Testing 101</h3><p>To enable us to test the scanners as quickly as possible, we are using a method called In-Circuit Testing (ICT). If you are not familiar with hardware manufacturing you probably won’t have come across ICT before but don’t despair, this article contains all the basics needed to get caught up. So let’s jump in.</p><p>In-Circuit Testing is a type of testing performed on the circuits of electronic devices before they have been assembled into their final product. Most circuits used in modern electronics are in the form of a Printed Circuit Board (PCB) which just contains all the connections needed for the circuit to work. Once they have been populated with components they are known as a Printed Circuit Board Assembly (PCBA). ICT is always done on PCBAs.</p><figure><img alt="A picture of a printed circuit board populated with different componets" src="https://cdn-images-1.medium.com/max/960/0*JOOV9VnFW-DrJZ4E" /><figcaption><em>An example of a PCBA</em></figcaption></figure><p>The most popular method of carrying out these tests is using a “bed of nails”. A bed of nails is an array of spring-loaded probes called pogo pins. When the Unit Under Test (UUT), which in most cases would be a PCBA, is pushed down on this array, sharp points on the pogo pins make secure connections with dedicated test points on the UUT. This allows for connections to be made quickly as there is no need for a locking mechanism. A further benefit is that no extra hardware is needed on the UUT as a typical test point is just a blob of solder. This saves money and board space on the PCB which is especially important in smaller designs (like ours). These beds of nails are typically built into a larger mechanism called a test fixture that also handles pushing the UUT down onto the bed.</p><figure><img alt="Pogo pins holding up a printed circuit board" src="https://cdn-images-1.medium.com/max/1024/0*DXPeW7nELaHwdNQI" /><figcaption><em>An example of a small bed of nails we made for debugging</em></figcaption></figure><p>The test fixture itself is just the mechanical component of the ICT system, while a separate component comprises the electronics around it. These electronics connect to the pogo pins and allow us to inject signals and power into the UUT while also letting us read signals being produced by the UUT. This allows us to ensure voltages are at the correct level, program microcontrollers, test components and many other operations. By combining a mixture of these operations you can ensure that the UUT is working the way it was intended and program the final production firmware onto the device before it goes to final assembly.</p><p>The final part of any ICT system is the software that runs the tests. This can range in complexity from basic firmware on an 8-bit microcontroller that just blinks an LED to show a device is working to a dedicated PC running multiple test scripts simultaneously and reporting to a server. It all depends on what product you are testing. The next section will talk about how you can decide what is needed for your system.</p><h3>Determining The Scope</h3><p>Before designing any part of an ICT system you need to decide the scope of your test. This can change based on the product and its application. At the lower end of the spectrum, tests will just check that the unit turns on, while at the upper end, they will make sure every trace on the circuit board is connected and that every component is within spec..</p><p>Of course you want to test as much as you can to ensure your product is robust, which is something we believe strongly here at Simprints (something our VP of Engineering talked about in our first blog post <a href="https://medium.com/simprints/engineering-culture-at-simprints-86143ecd28d">here</a>), but there are trade-offs that have to be made. The more tests you want to do the more test points you need, which not only takes up board space, but also increases the complexity of the whole ICT system. There is also a labour cost involved as someone will have to be running the tests which can be the most expensive factor.</p><p>Not all products need to go through the rigor of ICT. For simple consumer products, testing may be more expensive than the product itself. Furthermore with the rise of cheaper and more powerful microcontrollers, self-testing can be a simple cost-effective solution for most. However, some products need to be tested to the extreme to ensure they will work in all contexts — especially if devices such as remote sensing equipment are used in locations where they would be difficult to fix or replace. We are near the middle of the spectrum at Simprints. Our fingerprint scanners are used for long periods of time in hot, humid environments and need to be robust and reliable to ensure that we can help our beneficiaries without any issues. However they don’t need to be bulletproof. If a scanner breaks, it can be replaced quickly and sent back to be refurbished if possible.</p><figure><img alt="A picture of two women, one holding a fingerprint scanner, the other placing their thumb on the scanner window" src="https://cdn-images-1.medium.com/max/800/0*wLkidSYIc6uDAxOb" /><figcaption><em>Patient Zero — The first use of Vero in the field</em></figcaption></figure><h3>Our System</h3><p>When creating our system we first had to choose what to test. We initially wanted to test everything, which would have required us to have two test points for every trace on the circuit board so we could make sure they were all there. However, this idea was short-lived after we calculated we would need over 500 test points, so we decided to cut it back. We went back to the drawing board and decided to focus on testing anything that could be affected by human error, like fitting the wrong resistor, or ordering slightly wrong components. We believe that these are the most likely types of errors to occur as all of the automated processes used to build the PCBA rarely go wrong and such errors would be picked up earlier. In addition to this, we will be testing the basic functionality of each chip on the PCBA as it will add very little overhead to our system. With this approach we ended up with 73 test points in total, the majority of which will be used to ensure that key voltages are where they should be and to enable us to communicate with the microcontrollers on the UUT.</p><p>Designed using the Autodesk Fusion 360, our system has three main components as mentioned above; a Raspberry Pi that acts as a control centre for the whole operation; a testing circuit comprised of an STM32, a battery simulator and some other analog circuitry, and finally a test fixture that contains our bed of nails. The system is controlled by a custom testing framework running on the Pi, written in Python, that runs all the tests, downloads the latest firmware binaries, programs the UUT and uploads the results to a server (We also get Slack notifications!).</p><figure><img alt="A screenshot of slack showing errors due to failed tests" src="https://cdn-images-1.medium.com/max/1024/0*tWBgQ1lXM8IskEuE" /><figcaption><em>Test framework development leads to lots of failed tests</em></figcaption></figure><p>The Raspberry Pi is the manager of the whole system and is connected to everything over a single USB cable. The cable feeds into an FTDI module that allows for three serial connections to be made. One for the STM32 that controls the test circuit, one for the Bluetooth module, and one for the UUTs microcontroller. Tests are run by sending instructions over these serial connections. We are also using the serial connection to upload firmware to the UUT, allowing for us to program temporary test firmware easily, which allows for more inclusive testing. During development of the Raspberry Pi testing framework I learnt a lot about how amazing working in a team can be, as I was able to work with my colleagues who have better Python skills to get the framework off the ground and fill in my gaps in knowledge.</p><figure><img alt="Picture of a Raspberry Pi" src="https://cdn-images-1.medium.com/max/1024/0*Ygf4r2h1xXJYw8pi" /><figcaption><em>Our Raspberry Pi</em></figcaption></figure><p>The test circuit’s STM32 is what we are calling a dumb microcontroller, it doesn’t act on its own and will follow the commands of the Pi to control its peripherals such as a Digital to Analogue Converter (DAC, which allows it to set the battery simulator voltage), Analogue to Digital Converter (ADC, which allows it to read the voltage of the testpoint) and General Purpose Input Out (GPIO, which allows it to control the ICs on the UUT). Commands are also sent from the Raspberry Pi to the UUT to control its peripherals. This helped us reduce the complexity of system and reduce the number of test points. An example of the type of testing that will take place is to make sure none of the power rails of the UUT are connected to the ground rail as that would cause major damage to the UUT, and the ICT system. This test is done by sending a small current through the circuit and measuring the voltages at specific points. If the voltage is low that means we have found a short circuit and the device must be sent to us to allow for further testing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/0*brvo-2taAS-I14zr" /><figcaption><em>Our System Block Diagram</em></figcaption></figure><p>An important feature of the testing circuit is the battery simulator based off of a <a href="http://www.ti.com/lit/an/slva618/slva618.pdf">TI App Note</a>. It’s capable of sourcing the necessary current to power the UUT at the same range of voltages of a lithium polymer battery, while also able to sink current if the device is connected to a charger. By monitoring the current being sunk by the simulator, we are able to ensure the charging circuit is working correctly. This reduces the risk of battery issues that are associated with lithium batteries. This sits on a custom PCBA along with the STM32 microcontroller mentioned above.</p><p>Finally, the test fixture that will hold the bed of nails is a premade system that allowed the UUT to be pushed down onto a bed of nails linearly, as not to damage them, and be locked in place to allow the operator to run the test.Our original plan was to make our own fixture — but then we remembered we are a bunch of software and electronic engineers who don’t know anything about mechanical systems. The decision to outsource the creation of the test fixture was a big one to me as it made me realize that I don’t need to do everything by myself and support from other people is very valuable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/0*gop5XrU66mm72YfR" /><figcaption><em>Our German made test fixture — the lever pushes a plate that presses the UUT into contact with the bed of nails</em></figcaption></figure><h3>Final Words</h3><p>Something you may have noticed is there aren’t any pictures of the whole system due to it still being in development. I am heading back to university to complete my third year as an electronics engineer. However I will be returning to Simprints at the end of the year and will hopefully be able to complete the final work on the test rig and provide a final update.</p><p>Before I finish off I want to share what I have learnt during my time at Simprints as it was my first internship at a company and working with others. One of the biggest things I learnt about is unknown unknowns which is how this three month internship turned into a team wide project for a couple of weeks and will involve me coming back to get it finished. This also shows the wonder of working with a team of great people, everyone was able to do something towards creating the end result. You also find out your biggest weaknesses when working with a team, which for me is planning, but they have your back and will help you improve yourself.</p><p>As an engineering student I learnt a lot about my field from my colleagues that you can’t really find elsewhere and isn’t taught at university. From different industry standards in PCB layout to how to write good clean production code. If any other students are reading this I would recommend internships as an opportunity to learn these skills and for an amazing experience.</p><p>I hope you have learnt something from this article, and hopefully I will be back soon with an update!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=651abb559090" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simprints/in-circuit-testing-an-interns-guide-651abb559090">In-Circuit Testing: An Intern’s Guide</a> was originally published in <a href="https://medium.com/simprints">Simprints</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Engineering Culture at Simprints]]></title>
            <link>https://medium.com/simprints/engineering-culture-at-simprints-86143ecd28d?source=rss----e1e58de31089---4</link>
            <guid isPermaLink="false">https://medium.com/p/86143ecd28d</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[biometrics]]></category>
            <category><![CDATA[culture]]></category>
            <category><![CDATA[uk]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Alex Yang]]></dc:creator>
            <pubDate>Wed, 25 Sep 2019 08:41:09 GMT</pubDate>
            <atom:updated>2019-09-26T11:19:40.397Z</atom:updated>
            <content:encoded><![CDATA[<p>In January 2018, there were 3 engineers at <a href="https://www.simprints.com/">Simprints</a>. Now in September 2019, our engineering team has grown to a headcount of 20. With this growth, our team decided it was time to start an engineering blog to share our learnings, both in solving technical challenges and in other areas such as hiring, organisational design, and agile methodologies.</p><p>As the VP of Engineering, I am often asked by prospective candidates about our engineering culture, so for this first post, I wanted to paint a more detailed picture of what it’s like to work as an engineer at Simprints.</p><h3>What we do</h3><p>First, let me explain what Simprints does:</p><p><em>Our mission is to transform the way the world fights poverty. We build technology to radically increase transparency and effectiveness in global development, making sure that every vaccine, every dollar, every public good reaches the people who need them most.</em></p><p>Working primarily in sub-Saharan Africa and South Asia, we partner with some of the largest NGOs and funders in the world, like the Bill &amp; Melinda Gates Foundation, USAID, and Mercy Corps. We work to help our partners demonstrate proof of impact. Whereas in the past, organisations would only be able to talk with certainty about their inputs, such as how much money they’d spent to solve a specific problem, we instead want to enable them to talk about the outputs. Whether that’s drug delivery in Ethiopia, cash transfers in Nigeria, or maternal services in Bangladesh, we empower our partners so they can say that the millions that were spent resulted in exactly how many individuals treated, beneficiaries given payments, or pregnant women visited by healthcare workers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-oFW7-o9sEh2ndX6" /><figcaption>Our Vero fingerprint scanner and Simprints ID Android app in action</figcaption></figure><p>Simprints’ core product is a biometric fingerprint scanner paired with an Android app. Since we work at the last mile, these are both quite robust. Our scanner is built to be waterproof, dust-proof, and is over 200% more accurate for the worn and scarred fingerprints of individuals who have spent decades labouring with their hands. Our Android app is designed for front-line workers who can go weeks without a reliable internet connection and who may be using a mobile phone for the very first time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*IkslGX4KO5Cm16qPFoDpjw.png" /><figcaption>A data sample from front-line health workers using our technology for a project in Ethiopia</figcaption></figure><p>The precision data we provide enables our partners to maximise the impact of the resources they’re committing. For example, in a recent project in Ethiopia, we noticed that drug delivery was taking place outside of the designated focus area, so we were able to alert the deployment team to correct the issue.</p><p>While we started off small with a few pilot deployments, as our partners developed confidence in our biometric approach, we have scaled up quite quickly. We’re now on track to deliver services to over 8 million beneficiaries by 2022.</p><h3>Our engineering culture</h3><p>There is no universal, perfect work culture, but having one that fits your own values makes a huge difference. Culture includes everything from a team’s values, approach to feedback, and even its sense of humour. Culture is what it <em>feels</em> like to work on a particular team. It’s not easy to explain the culture of an organisation, but having been part of a few teams myself, it helps to have a baseline for comparison. Before joining Simprints, I worked in a variety of roles in US-based organisations that all had very different cultures, including as a data analyst in Google’s San Francisco office, as a partner in a boutique web development agency based in DC, as a digitally nomadic cofounder of an edtech startup, and as a strategy consultant at The Boston Consulting Group’s New York office. With this frame of reference in mind, I’ll highlight three of my observations of the culture at Simprints based on the 10 months since I joined the team.</p><h3>Observation #1: Never stop learning</h3><p>Oh boy, I don’t think I’ve ever learned so much. Continuous learning is embedded in our culture. In fact, continuous learning is one of the core values we look for when we hire engineers. It impacts the way we think — when faced with a problem, one of the first things we do is look to understand how others have approached it. Whether that’s adapting <a href="https://blog.crisp.se/wp-content/uploads/2012/11/SpotifyScaling.pdf">Spotify’s organisational structure</a>, leveraging <a href="https://www.amazon.co.uk/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882">Clean Code</a> principles to set our quality bar for production-ready code, or incorporating Mikey Trafton’s advice on <a href="https://businessofsoftware.org/2014/07/recruiting-a-bad-ass-team-mikey-trafton-bos-2013/">recruiting a bad-ass team</a>, we experiment with best practices from other high-performing teams to determine what works best for us.</p><p>In practice, we encourage learning by providing employees with an Eduprints budget of over £1,500 per year to be used on learning (e.g. buy books, enroll in classes) and wellness (e.g. yoga sessions, dance classes). We also try to stretch the money to squeeze out as much value as we can. For instance, rather than pay the full retail ticket price, I’ve attended three conferences at no cost:</p><p>Once as a volunteer…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*abcBaRjQu86cqNr1" /><figcaption>Samad Arshad and I volunteering at The Lead Developer London</figcaption></figure><p>…another time as a sponsored guest…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uM1AC1qi9OQxLxrn" /><figcaption>Speaking about Simprints at our sponsored booth at CogX</figcaption></figure><p>…and finally as a speaker!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WGvvUD1iW3NtM8Sx" /><figcaption>Elpie Bannister and I about to speak on “Finding and Nurturing Tech Talent” at Business of Software Europe</figcaption></figure><p>Working at a not-for-profit has definitely influenced me to think more creatively about getting things for free.</p><h3>Observation #2: Robust as fudge</h3><p>The conditions in which our technology is used demand a lot from us — sensitive data, poor connectivity, and low digital literacy. In many cases, we can’t afford to take a reactive approach, only dealing with problems when they arise. We have to work proactively to protect the privacy and security of our beneficiaries and ensure our technology will still be effective in the field. This is where one of our company values originated: Robust as Fudge, or RAF for short, captures the idea of completing a task to the best of one’s ability and not merely to check a box.</p><p>Our cloud team is a great example of this, working proactively to ensure our backend will be able to handle the increasing load of our upcoming project pipeline. Recently, they built a load simulator to assess the impact of artificially increasing the intensity of requests hitting our backend. They also implemented a tracing system to break down an individual request and see exactly where bottlenecks were occurring.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VfXgi6o-DgFKN8oP.png" /><figcaption>Sample tracing of a GET request</figcaption></figure><p>Another example of RAF in action is our approach to hiring engineers. Whereas in the past, we relied heavily on CVs as our initial candidate screen, we took the time to study industry best practices and redesigned our entire hiring process, developing a blinded approach with standardised assessments to reduce bias, allowing candidates to shine based on their knowledge and experience rather than the brand name of their employer or the prestige of the university they attended. Not only does this allow us to identify the best candidates more easily, but it has also made candidates happier by shortening our hiring timelines.</p><h3>Observation #3: Collegial atmosphere</h3><p>Fun fact: up until last summer, our office was in a 14th century English castle. Yes, seriously!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qz53QaKFbTl8B_Tv" /><figcaption>Enjoying lunch outside</figcaption></figure><p>While we’ve since moved into a larger, more modern space, Simprints has kept its quirky, fun-loving roots from our days working in the castle. A great example of this is our annual company offsite. This year, 31 of us spent a week living together in a Georgian manor in Wales. On the one hand, team members prepared many sessions beforehand to make the most of the valuable, uninterrupted time together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rkltg_IIZaGUtutE" /><figcaption>In the middle of a strategy session on our economic engine</figcaption></figure><p>On the other hand, we had plenty of free time to play football, have saunas, and have deep conversations in front of the wood-burning fireplace.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8YTu74_bNMlQ-ja7" /><figcaption>Sabina Bodea and me at our competitive best</figcaption></figure><p>Another example of our fun-loving, dynamic team environment is our approach to LEGO Day. Every quarter, we have two LEGO Days where people get to work on any project that interests them. While I chose to help my novelist wife by writing a Ruby script to take any ebook and calculate its word count by chapter, others worked on filming an Office-style mockumentary, building an electronic keyboard, and constructing a battery-powered flying plane. Here’s a video of the plane on a test flight.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1ULQwJSp15w&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F1ULQwJSp15w&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/90eddab1d995b8149e9cc8e4a53a6684/href">https://medium.com/media/90eddab1d995b8149e9cc8e4a53a6684/href</a></iframe><p>Overall, we strike a fine balance by taking our work seriously but rarely ourselves.</p><h3>Join our team!</h3><p>Hopefully, you now have a taste of what it feels like to work at Simprints. We are lucky to have our current diverse and talented team, and are always looking to hire the best. If you’re interested in joining us, you can check out our open roles <a href="https://www.simprints.com/careers">here</a> or reach out to us directly by emailing <a href="/service/mailto:talent@simprints.com">talent@simprints.com</a>. Otherwise, follow our journey on <a href="https://twitter.com/simprints?lang=en">Twitter</a>, <a href="https://www.linkedin.com/company/simprints-technology-ltd/">LinkedIn</a>, <a href="https://en-gb.facebook.com/simprints">Facebook</a>, or <a href="https://www.instagram.com/simprints/">Instagram</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86143ecd28d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simprints/engineering-culture-at-simprints-86143ecd28d">Engineering Culture at Simprints</a> was originally published in <a href="https://medium.com/simprints">Simprints</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>