What is the lowest cost educational computer that can be assembled?

The COVID19 crisis and the ensuing lockdown and physical proximity aspects have closed down primary modes of education which involved kids going to a class room and a teacher leading them on to learning. After the lockdown, privileged communities had not much of a problem shifting to digital technologies simply because of a history of access. This however created a huge divide, because a majority of learning population in India are underprivileged. We have already lost a lot of time in coming to here that we think about access to technology for the underprivilaged, but lets see what we can do from here on.

Thanks to the conversations with the Door Step School, a school-on-wheels NGO that has been doing pioneering work among the slums and low-income housing settlements in Mumbai and Pune, the obvious struck me, we need computers! Low cost and quick. Here are the options we have in front of us:

  • Rescue old computers from companies and homes and remake them with adequate low-resources friendly software based on opensource Linux platforms and pass them off to the NGO. Although Pune is one of the IT hubs of india, a message of this kind on LinkedIn didn’t get much response so far. Maybe because i suck at communication or maybe people i know in my network are not really into IT or that people are frugal and only using what they have so there’s no computer to spare.
  • A smartphone could be used as a very powerful computer. However, it has the advantages and limitations:
    • Advantages:
      • A very powerful computer!
      • All communiations built in – wifi, bluetooth, 4g, etc.
      • Has mic, speaker, camera – all inbuilt – for any kind of online classes.
      • Could be used as a standalone educational device without any external devices. This is the way privileged students currently use as a primary mode of study i guess (no ref here, its an assumption from my student’s pool).
    • Disadvantages:
      • Costly – A decent one could start from 8k onwards. But if using parent’s ones, the amount of time a parent would lend her/his device will be questionable because the parent might need it themselves.
      • Small screen. But that can be augmented by using Chromecast (1st generation for about 700 Rs) or Miracast or AnyCast devices and connected to a HDMI friendly TV or monitor.
      • Lack of keyboard mouse – This can be solved by using bluetooth keyboard and mouse (~1.4k Rs.)
      • Lack of access ports for USB pendrives and such – One can buy some cheap connected of the market.
      • High distractability – A mobile device is usually plugged into various communication services – calls, sms, social media and so on. This makes this device not so much suited for focus requiring educational work, unless a very high level of self discipline is acquired.
  • A dedicated computer using modern low-cost microcomputers such as the Raspberry Pi.

This last option seems very interesting. Looking at availability and cost, the following configuration works fine for me.

ComponentsCost (INR)
Raspberry Pi 3B + case + fan3000
16GB memory card350
Keyboard + mouse (wired)450
Raspberry Pi power supply500
Speaker500
USB camera650
HDMI cable150
Projector mini with speaker*6000
Total for basic computer11600
*The reason i used a project is that it can displace the stuff on a large screen, especially useful if a large class uses this, like in the case of Door Step School. But the display fof such low cost projectors is not that great. On needs to have it on a white wall, with some amount of dimming of ambient light. Being low resolution, text needs to be zoomed to be able to read and write.

One can go lower than above, by replacing Raspberry Pi 3B with Raspberry Pi Zero W, but then its only 1k of saving. Another avenue is to replace the 6k projector with a 4.5k LCD.

Connect it with any wifi network (from a smartphone) and everything is just like a desktop. Raspberry Pi can be loaded with Raspbian OS, a version of Debian OS systems. This comes with the fantastic LibreOffice system of word writer, spreadsheets, powerpoint equivalents. It also comes preloaded with programming tools and Python is just a marvel to learn on this platform. One can also program in C or Java. It has Wolfram mathematical tools. One can also make a small para-legal community radio with it (50m radius range), without additional cost!

But one of the biggest advantages of this RPi platform is the huge huge community around it that can help you immensely. There are plenty of projects and possibilities of using this small computer for any number of modern applications. IoT, communication, interfacing sensors, etc. I personally use it for my SmallDAC series of low cost industrial/scientific controllers. Interesting to note that Raspberry Pi was developed as an aid to school kids in the UK to become digital age friendly. Maybe we can leverage all this goodness for our cause. Here’s some context.

I am in love with the Raspberry Pi and will be happy to help others make this small computer. Currently, I have assembled this kit and am awaiting to demo it in one of Door Step School’s centers. Lets see how suitable it is, or not.

Ventilator venting

This piece is my personal perspective on the COVID19 triggered ventilator-related work among the engineering/scientific community of Pune. I was associated with the College of Engineering, Pune (CoEP) team as a volunteer with the aim of developing low-cost ventilators in collaboration with B.J.Medical College & Sassoon Hospital, Pune.

We started working on ventilators shortly after the national lockdown was declared on the 21st of March 2020. I joined the team as a volunteer having no previous connection with CoEP institution. Our initial ideas about what ventilators were, were shaped by what we saw on websites like YouTube where various designs were posted by many people, hardly of Indian origin (yes, we suck at documentation and we doubly suck at sharing information!). Sadly only a few were actually verified, and this some problem with opensource/openhardware sharing, but that’s another story. To us, an amateur medical devices team glued by a solidarity to make something for the disaster at the door, each idea seemed rational. Some seemed more beautiful and ambitious, others less glamorous. Seasoned design engineers are always better at filtering out fantasy from workable ideas, but it takes many years of hands-on experience to get the ‘seasoned’ tag. We didn’t have that.

Prototype to product – a reflection

It’s pertinent here to reflect on how we think as engineers. It seems we think using only what we know – our vocabulary (not only linguistic, but experiential) determined by our experience and understanding of the past. For example, an economist may only be able to handle any decisions limited by her/his experience and learnings and language. Similarly a tool-room machinist will approach a problem from her/his comfort-zone of past familiarity. We were no different when it came to choosing which designs to begin with. Given our repertoire of tools we in the group had experience with – 3D printers and LASER cutters, lathe, milling, stepper motors, servos etc – we appreciated or rejected ideas. I mean we had a significant comfort-zone bias driving our decisions rather than rational studies and evaluations of what is needed.

However, very few of us had actually made projects which resulted into real products in our pre-COVID day-jobs (academicians, research assistants, managers-made-from-former-engineers and prototype developers we were). This is an important distinction on which it is justified to pause and clarify. What distinguishes a product from a project? When a project begins, the plan is like this:

  1. Understand the physics and math to a practical level. This stage also involves collaborative discussions, YouTube videos cringe viewing, forum discussions and knocking on the doorsteps of ‘experts’ for their blessings and if possible, some insight.
  2. Identify a couple of experiments that we need to do in order to establish our hold on the concept, to prove to ourselves that our ideas are not pure fantasy.
  3. Then we begin with the planned experiments.
  4. Often the case is – most of our ideas are fantasy and fail. But by this time we are in deep shit, too much invested in money, time and pride. So this leads to more than the initially planned number of experiments. Rationally planned experiments give way to juggad, hack-jobs, significant head scratching (+ adding more of white to an already grey zone) and a whole unintended learning curve resulting in enlightened maker(s) who rightfully doubt their engineering credentials. One learns truely the hard-way (my repeated experience).
  5. Somewhere in-between our original concept moves to a functional prototype. This is where things look wonderful and joy is written everywhere.

Most projects, especially academic ones stop here. A lot of school/college projects stop here. Many potential innovators stop here. Most people can only care to think to this point. Functionality is proved, everyone involved is happy what else is needed? Pride and confidence is restored and all that. And so arrives the most tempting time to give up, the most tempting time to jump on to the next concept-to-functional-prototype challenge, where the stakes are too low. I used to be locked in this eternal cycle for many many years before i learnt to look beyond. Now, what’s in there beyond? This part is the real struggle, the real un-glamorous donkey work, but a necessary path to the real stuff. It’s the making of a product. Here’s what a product must be:

  1. It should be functional.
  2. It should be functional for many years to come.
  3. It should be functional without the need of its makers’ constant presence nearby, as it was in pre-product stages.
  4. It should be functional for many kinds of users – even non-expert ones who may manipulate the product beyond its anticipated functional envelope. Meaning it should be really really user-tolerant! (My best example of this is the Hero Honda Splendor bike. Just the most abuse friendly thing i have seen)
  5. It must be of a good design. This is an artistic as well as functional aspect of a product that humans will use. Often the most neglected end of many Indian products. (What is a good design? – i love this designer’s philosophy) .
  6. It should be easy to make, so that manufacturing steps and costs are low and comprehendable to production machinists. This is called design for manufacturing.
  7. Overall its cost must be acceptable to the end user.
  8. If it ever reaches this stage, if this product fails in the field, like all real machines do (good ones less than bad ones), there should be a machine doctor to fix it and give the relationship between the product and its user a just lifetime.
  9. And of course, each product must evolve because there are always feedbacks and failures where the product doesn’t work as intended. Meaning, the above cycle(s) are repeated to transform from a mere prototype to a mature product.

Why all this tangent and how is this relevant to this post? This is only to put in perspective our developments on the ventilator project. Ventilators used in the hospitals are products. Lives depend on them. They must work, day in day out, in all conditions. They are used by doctors all over the world, as diverse as they can be. Nothing must fail within a set time, else lives could be lost. As an engineer, its the first time i am worried to such an extent about my work, so much so that i wish the situation doesn’t arise where any of these amateurish ventilators would be needed. Because we don’t have the robustness and the development man-years that form the foundations of a well-designed mature product. I have heard that usually ventilators undergo severe testing of over 4-5 years before they are approved. From my experience so far as a product developer, reaching functionality takes 5-6 prototypes, and making a product takes many many more. All i am pointing to is this – developing a medical grade product is amazingly complex and a lot of hard work. Being humble is of utmost necessity if we are to do anything serious.

Challenges faced

So whats a ventilator? Ventilators do 1 key job – push in air into the patient’s lungs as if pumping a balloon and let the patient exhale automatically (deflation of a balloon). Why? because some diseases like the COVID19 affect the breathing efficacy of the patient’s lungs, its ability to absorb oxygen into the blood severely decreased resulting in tiredness out of excessive breathing to compensate for lack of O2. This tired lung needs a support system, so a ventilator.

The complication is, that like a balloon our lungs have a safety limit. And a very very sensitive one. Different people, depending on physical body conditions and age have different volumes that can be pumped in. There’s also the peak pressure that must always be respected while doing the pumping, else we’ll damage the lungs significantly! And all the while maintaining the timing of the pumping, else the pumping may be in conflict with the patient’s natural cycle and speed of inhalation/exhalation! Add the complexities of pumping in a restrained manner rather than an explosive manner. The machine should also give the doctors options to set these variables as per the patient. So one has to design 3 parts: A) the action making air pumping part B) The sensing and monitoring part that measures the action taken as well as patient’s response and C) the interface between machine and the doctor.

There are many ways to do the mechanics of the above – using compressors (like the ones you use to fill car tyres with air), using blowers, or using AMBU bags (Bag-Valve-Mask). Most ventilators function on pressureized air and O2 lines, and that’s what serious high-end machine designs are based on, like the design IISER Pune chose to follow. But we chose the humble Ambu bag way, despite that it is the least liked option by doctors and governments because it has its limitations. However, its cheap, easy to make and does not depend on pressurized gas lines only available in modern hospitals. Hence, given the crisis and lack of proper ventilators in many areas of the country and worldwide, this option (first suggested by a student team of the MIT, USA in 2010) became one of the most popular approaches among the amateur ventilator makers all over the world. We were no different.

Along with the technical challenge of getting all of the above working (which we are still struggling with) we had other challenges. Due to the lockdown, getting parts hitherto taken for granted, became a huge bottleneck. Importing electronic components from abroad was out of the way. Lack of city to city courier services eliminated the remaining options. Pune has a few shops – our last bet. So we were left to jugaad off the electronics too (See my post on it).

We’v been working on the ventilators for the past 2-3 months. We have made some 3-4 prototypes, all ambu based. Currently we are able to do all the 3 things – drive the device, sense essential parameters and interface them to the operator. All things work and functional but we are far from a fully functional prototype. The kind doctor at B.J.Medical College will have the final say and from time to time gives valuable feedback on our work.

Criticism

Given the background, i would like to list some criticisms of us as a community that came about on solidarity and clear intention to solve or mitigate COVID19 related problems.

  1. Community
    1. Multiple teams in Pune and India are working on ventilators. However there seems to a secretive air about them. No one discloses the design and the parts within. No one says how rigorously they have tested their designs. No one says where they have failed and the bottlenecks in their design, so that others can learn and do better. No one documents. And certainly no one puts documents on the web for everyone’s access and reaction. This includes me and my group. This is the worst thing we could do as a community, and bypasses all the original reason we got into making this.
    2. When we went to buy parts, parts related to ventilators were bought en-masses by whoever reached the shops first in the initial days. Our team members also harbored this instinct to horde – so that we could have enough suppose we hit upon the jackpot of a successful design. And probably in the process also starve other teams of crucial parts, to get an edge. Why this selfish behavior?
    3. When contacted, repeatedly, people working in other teams didn’t respond back. I can name the team here – the IISER guys! These are tax-payer funded people, we in the CoEP are also tax-payer funded and we don’t talk to each other? Why so much arrogance?
    4. There was no discussion within the development community as to the design and challenges or progress status. There was a Slack group named Open Breath Tech where some discussion was taking place initially. But after IISER Pune’s initial interest and involvement died down, this group kind of became silent. I posted my needs, design of electronic ideas, and services (free and voluntary) on it, but no response. Others offered too.
    5. When some people came to know that we were working on ventilators, many people contacted as wanting to join in the efforts.
      1. Job seekers, freshers straight out of college sending in their CVs.
      2. Idea people – people who thought they had great ideas and could help. One even went so far as to wanting to sign some NDA and stuff even at these times of crisis!
      3. Factory owners who offered to help for production or R&D.
    6. One of the most important problem in getting help from the above interested people was lack of permissions. Even in our group, we volunteers got permission from the B.J.Medical college, but not from the district collector. Yet we somehow got past trusting police officials. Point is, shouldn’t the DM and administration actively help in such efforts by the city engineers?
    7. As developers, we didn’t know what was needed. Luckily in collaboration with B.J.Medical docs, we kept on getting some cues. But why one design over the other, cost of different designs, design specs, etc. were all flying in the air. There was no coordinated effort. We were often relying on info from YouTube about cases and practices in the US and Europe while being totally blank about requirements in our own locality.
    8. Whenever a group made a prototype, they created a huge noise about their ‘success’ (we are also guilty here, see ToI article Expert team creates prototype of low-cost mechanical ventilator in Pune). Media and social media gave much coverage. Technical limitations and challenges were swept under the carpet by the makers as well as the ill-informed ignorant non-homework doing media. All this made this social crisis into a personal competition – men fighting for their ego cup. And here is the relevance of the section above on prototype vs product. It’s relatively super easy to make a functional prototype, but extremely hard to keep at it and make something really useful. After making a proto and making huge fuss about it, the teams have not really updated if they have made other protos. No one knows.
  2. Criticism of the government’s role/actions:
    1. The government added to the noise, by converting it into hackathons and competitions. It could have instead helped in making good specification plans and studies of ventilator requirements in cities, villages, etc. It could have coordinated various groups.
    2. When there is competition of the artificial kind like now in between ventilator makers, there is even less sharing, even less growth and farther we are from developing good machines in the shortest of times. Why do this?
    3. India is a diverse country, and so it can be assumed our ventilator needs could be as diverse across – language, training, cost, service, accessibility barriers. Before jumping into making, some of us should have just studied the landscape of ventilators specific to our country to better inform the developers. There could be different categories of ventilators specified so that we could pick and choose according to our strengths which ones to work on. Who could do this survey?
    4. No forum was available that could make a healthy and regular collaboration between doctors and health staff on one hand and engineers/scientists on the other. We were and are all blind and whimsical as to our designs and choices.
    5. Its obvious – ventilators are glamorous. On the other hand – facemasks – they are not glamorous but easy to make and visible. If visibility could be a driving factor, it does not matter if its difficult or easy to make, they will be made it seems. However, there are many things that are of high impact and absolutely necessary but without the public-frenzy inviting glamour. I guess many people just went for the most glamorous of the projects while other things were not looked into until lately:
      1. Automated spirit/soap dispenser unit for public areas like hospitals, public washrooms, travel depots, etc.
      2. Proper quarantine facilities, how they should be designed keeping in mind long term stay?
      3. Disinfection units for healthcare workers, to avoid the significant jump in hospital wastes.
      4. Breathable PPEs for hot non-AC Indian climate.
      5. Communication design – this was a big big mess!
  3. Criticism of my own group: I have deep respect for my colleagues with whom i was lucky to work and learn, especially the team head Prof. Sandip Anansane who kept it all together and drove to this point through tough times. These are good dedicated men (sadly no women). They have been very open and passionate about this project. Yet, the critical self observes:
    1. Our initial focus was to make a device that will be low cost, easy to manufacture and use materials locally available in large quantities. However, we dropped this most important focus point. The current design is bulky, costly and requires some serious machining facilities.
    2. Our group lacks much expertise. This also implies that progress is extremely slow and dangerous. In the most deepest of engineering challenges, its lonely as there is no scope of discussion or debate. Often there is only 1 person who does bulk of the engineering and calls the shots.
    3. Many times this 1 person dominance leads to whimsical designs, which distracts from the goal. There are not many checks and balances.
    4. Being an engineering college, it misses tools and facilities commonly used in the industry. Tools had to be discovered in one drawer or the other, from one department or the other. Sheet metal bending for cabinet and enclosure making, a fundamental need of any engineering work was not available on the campus. Modern LASER/Plasma metal cutting tools were missing.
    5. Tool dexterity is severely poor in this top engineering school. Example – if one knows machining, he does not know electronics and vice-versa.
    6. And all this despite CoEP being the top engineering institute in Pune and one of the top in Maharashtra with crores of machinery, funding and talent pool available at its disposal. Why is it that we were the only team working in such a large college? Where are the others?
  4. Self-criticism:
    1. My colleagues will complain that i have not been a good team player, often going on with my ideas and concepts and imposing others to follow.
    2. I am guilty of shifting between too many designs and ideas, too quickly without completing previous ones. This may have scared and worried my teammates immensely. And i didn’t quite give convincing reasons why i did so.
    3. If i was leading an aspect of the project, i didn’t really break it up and ask for other’s help and contribution to it so that everyone can be involved and the task can be done faster. This may be kind of an insult to my teammates.
    4. ?…. I am sure there are many more. Probably my teammates can add here.

This concludes my rant.

How Pune breathes its pollution?

So what does pollution data look like when plotted over time? Here’s a heatmap of one of our devices (one at IMD, Shivajinagar) which has the maximum consistency of data.

PM2.5 @ IMD, Shivajinagar, Pune

The darker the region, the more the pollution. Here are some obvious patterns:

  • Mid-December 2019 was a general high pollution period.
  • In the time-band from 6AM to 9AM, there is a general trend of high pollution, consistently throughout the days.
  • Pollution subsides post 12 noon and then rises again after 6PM!
  • In general it can be found that the pollution in the afternoon band is lower than the pollution post midnight.

The last three of the above are the most interesting for analysis. Why should there be a 6AM-9AM high pollution band? Well the easy answer is that this is the time where office going people begin their daily migration to work. Similarly can be said of the post 6PM peak, when people return to their homes from work. However, what about the high pollution levels beyond 9-10PM when the traffic must mostly subside? Infact, its very interesting after mid-night when there is no traffic, the pollution is still high! Similarly, its far more intriguing that in the aftenoon band, the pollution seems to just vanish away, while the traffic is normally high!

I could not get hold of how traffic flows in Pune, a temporal distribution of that could have helped. Sumithra and i were discussing this when the first plots emerged from Sumithra’s work – that there must be a temperature component involved in the pattern we see. So to explore this angle, here’s a ambient temperature temporal plot, generalized from data gathered over the 5 locations we have the Breathe2s in.

Ambient T @ IMD, Shivajinagar, Pune
  1. It seems apparent that when the T is low before 6AM in plot 2, the pollution registers higher in plot 1.
  2. From 6AM-9AM, the traffic adds to the existing ambient pollution and bumps up the pollution levels significantly as seen in plot 1.
  3. Beyond 9AM, although traffic is still higher and more thicker, the temperatures also begin to rise up as seen by the yellows around 9AM-12 noon band.
  4. Thereafter, post 12noon, more heat is added to the atmosphere giving rise to convective currents that must be driving the pollutants higher into the atmosphere and therefore we don’t register it. All this even while pollution is being generated by the traffic.
  5. As the evening sets in, the temperatures decrease and so the pollution reporting increases. There could be 2 ways to look about it:
    1. Do the pollutants that were elevated in altitude by the high temperatures, assuming they were not displaced by winds, come down?
    2. OR the more likely case that the new pollutants released by vehicular traffic during the peak work-to home rush hours begin to accumulate under the denser and cooler atmosphere.

Conclusion – It seems that lower temperatures are worse in terms of pollutant density than higher temperatures.

There are definitely more facets to this data pattern and it seems we have only scratched the surface. it would have been nice to have gotten traffic data to help us understand better what and how much ambient conditions contribute.

Update on ventilators + an Electronics hack for low-cost ventilators

Many people including myself are or were involved in making low-cost ventilators in reaction to the panic need expressed by the leaders during the COVID19 crisis. Most of us began working on the MIT E-Vent model (discussed in 2010 paper here) that uses a bag-valve mask (BVM) normally available with all emergency care professionals, in all countries, as a fundamental piece to begin building the ventilator on. There are many advantages to this approach such as availability, low cost, non interference with medical grade materials issues, and others. Many people made these devices, focusing on the mechanical part and there may be many reviews out there.

I am associated with such a team of engineers at the College of Engineering, Pune, under Prof. Sandeep Anasane of Production Department. In 2 weeks time when i began working with Swapnil, Abhijeet, Kaustubh and Dr. Anasane, we made about 3-4 different designs. Two have lasted the test of time of which i am free to present my model that uses a commonly available Maruti Swift wiper motor, a hall sensor+magnet combination to convert it into a servo, a motor driver and some Arduino Nano to complete it all. Here’s a video.

An initial attempt to make a low cost ventilator.

The other one is developed by the team as a whole where the sharing policy is not very clear so i must refrain from sharing.

However, what struck me as we progressed over making these prototypes is that the electronics part is hugely underestimated. In the 2 weeks time i learnt a significant amount of things about ventilation and its pitfalls such as ventilator induced trauma. The latter part is the common side effect of such devices that assist in such difficult times. I have now realized that all this is not simple. Along with advanced ventilators it is mandatory to have specialists and experienced doctors around to manage that device. In wrong or untrained hands it can kill.

Point being, the idea that amateurs like ourselves could come up with impactful solutions to the ventilator end of the COVID19 problem spectrum seems to me a pure fantasy.

Yet, although i have given up on this end, here is a hack that i discovered that could be still used by optimistic ventilator designers elsewhere.

Electronics for basic flow measurement and respiratory pressure

Often many designs are focusing on the mechanical pressurized air delivery with intermittent strokes that are adjustable as per the attending nurse/doc’s understanding of the situation. What is missing are 2 key realtime feedback mechanisms that in my naive opinion are an absolute must:

  • Air flow measurement to figure out volume of air delivered/breath as well as the rate at which air is pumped.
  • Respiratory pressure measurement that indicates how the patient is experiencing the ventilation.

Both these need pressure sensors. When we began this aspect of the work at CoEP, we could not find the right sensors. In the regular city shops, other city teams working on ventilators had exhausted all the options. We had a few in stock to begin with. There was even not much clarity within the team as to what is the ideal sensor required?

What pressures are we talking about?

  • Respiratory pressure measurement: 0-60 cmH2O = 0-5.88 kPa.
  • Volume flow orifice pressure range – 0-0.3 kPa

What we instead got were these sensors with some key properties in the following table.

Comparison of available pressure sensors

The greens indicate good match, the reds don’t. What i found was that only MPX2010DP was the closest that we could get, atleast on the respiratory range. It was also a ratiometric sensor (so we needn’t worry about excitation voltage fluctuations) as well as temperature compensated! The latter is always good, so MPX10DP is dropped. In fact the MPX2010DP datasheet does mention its use in respiratory diagnostics! All this we discovered (thanks to Swapnil who called the shops to check what they had) after we were stuck with a few samples of MPX2010DP at Rajiv Electronics, the local electronics store. Each MPX2010DP costed about 1200 Rs.

Respiratory pressure measurement could be easy with a differential sensors and as simple as connecting the positive port of MPX2010DP directly to the inhale/exhaling mouth piece on the patient’s mouth, the other end to atmosphere. However we need another piece of critical equipment to measure volume flow rate – an orifice flow sensor. Thanks to Kaustubh’s ingenuinity and research this part was readily available and used in commercial ventilators such as made by GE – the SpiroQuant H flow sensor by Envitech, a Honeywell company.

Spiroquant H Flow Sensor | Maxtec
Common ventilator flow sensor (orrifice)

The way this thing works is there is a thin flexible flap in the middle of this piece that restricts the flow by opening or closing as per flow. This restriction causes a pressure difference between the two ends of the device and this pressure difference can be converted into flow rate through the formula mentioned in SpiroQuant H’s datasheet (link above). Simple!

So whats the problem? All is plain and simple!

As you may have noticed is that the output of these pressure sensors is in milli volts (mV). Also these pressure sensors have a full range of 10 kPa whereas our requirements are on 6kPa for breathing pressure and a whopping 0.3 kPa for the flow measurement! So what we need is an amplifier. Kaustubh worked with the common 3 Op-Amp design but unfortunately could not make it working to satisfactory ends. Another commonly available the excellent ADS1115 was used, but again its gain (max 16x) and resolution (16bits) was not sufficient.

Enter the hack! From my experience in designing ADC boards for the SmallDAC opensource controllers, i knew that these pressure sensors are similar to load cells that use a Wheatstone bridge as their basic sensing element, with resistors flexing or contracting and the difference between the 2 bridge arms basically forming the output voltage linear with the pressure or weight. A common loadcell amplifier is the HX711, amply used by hobbyists anytime a loadcell comes into the equation. It has an inbuilt whopping 128x gain and a 24-bit resolution – perfect for our job. Its unconventional and i could not find any case where a pressure sensor was interfaced with this 100 INR ‘toy’ module. So despite revolt from team members claiming that it wont work i went ahead, while others may have been cursing me that i am distracting from the team’s focus areas and spending time in fancy exploits. I was glad it paid off, else i could have been thrown out!

The hack: Using HX711 to interface MPX2010DP differential pressure sensors.

The circuit is a bit to be noted. These MPX2010DP require a 10V supply to be excited. So i had to create a separate 10V supply (left of the above image) using a 230V-12V PCB mounted SMPS that i could get from Rajiv Electronics (~350 Rs). Then i used a LM317 (i know dropout is 3V, but thats at peak current draw!) to reduce to a clean 10V supply.

The way these bridge sensors work is that their output is centered around half of the supply voltages = 5V. Now HX711 is a 5V device, so the trick i used here is to not connect the 10V supply ground with HX711’s ground and instead only connect the differential output of MPX2010DP to the modules A+ and A- ports. Thus the module is experiencing directly the difference without the 5V bias of the 10V exited pressure sensor. Maybe there are other ways of solving this bias problem, but i must learn more about these kinds of issues.

The output of the module was connected to a regular digital pin of an Arduino Mega board that also handled the motor works and overall controls. This pressure sensing rig was so sensible that even a touch on an ambu bag was recorded as a nice clean peak while the overall noise was pretty low. I must admit that i had to use a lot of capacitors and tricks to get the noise low, but it worked. I used 2 HX711 modules to interface the volumetric measurements (left sensor) and the respiratory measurements.

Hack update

Well, here’s what can be done to make the above better!

Only a single HX711 is used because it has 2 differential ports A and B. A, which as the max possible gain of 128 (equivalent to a span of +/-20mV) can be used to measure the 0.3 kPa max pressure swings of the orifice flow meter as before. However, port B has a gain of only 32x (equivalent to a span of +/- 80mV) which can be used to access the 60cmH2O or 6kPa range required for measuring respiratory pressure. The 24 bits can be enough to distinguish both these measurements to sufficient accuracy.

The other hack has been to use the same 10V supply to also power the HX711. Now we know the HX711 is a 5V device and that the pressure sensors are outputting their differential signals centered around 5V. So what the above circuit does is biases the ground of HX711 w.r.t. the 10V power supply ground using a Rb resistor. The same 10V supply can now be down moded to bring about 5V supply, referenced wrt HX711 ground. Now this part is a bit confusing to me so the values may change or maybe my scheme is wrong? Need to check/think…

The code side could be any that uses the standard HX711 library. Try the simpler ones that do not hide the inner workings, these are much easier to modify!

Happy hacking 🙂

On Breathe2 data confidence

Well, luckily we had one of the Breathe2 devices placed near a government device, called SAFAR, at Maharashtra Institute of Technology (MIT) in Kothrud, Pune sometime in Dec 2019. All thanks to Dinah, Saurav and Kaushik of SCCNHub , an environmental education company and Prof Krishna Warade of MIT-WPU .

We were also lucky to be supplied by data from the government device by the MIT college students. Here’s what the comparison looks like for months Dec2019 and Jan2020.

We have some places where there are huge variations between the 2 datasets and some where there’s good compliance. Here are some reasons i could think of as to the variations:

  • The devices are like 300-400 meters apart. The Safar is on the road, open on all sides, while the Breathe 2 is on a building window with only front side open.
  • SAFAR’s sampling may be very significant so it takes in a lot of air and hence may be more closer to average pollution. Ours is but a small fan that does the sampling.
  • I suspect ambient temperature also plays a role probably: here x-axis is the difference between 2 devices and y is the ambient T. The lower the T the more in agreement these devices are. Higher T = more randomness and variations. As below:

I also compared with RH and P but no conclusive trend could be found with the variation in the datasets. Also since we are averaging over 24h, what we are seeing here is definitely closer to ambient pollution than localized sporadic hotspot emissions (like vehicular traffic). Wind and openness may be playing significant roles. Maybe we should look over all the data rather than the 24h average to see other clues to the variations.

City wide comparison with CPCB data

Locations of Breathe2 devices and CPCB device (left-bottom end of black line).

Central Pollution Control Board has a setup in Kothrud, Pune (details). After endless search to find out where this setup is, i gave up. This device is about 3-4km from Indradhanushya hall, but that’s the closest we’v got. Ideally it would have been nice to setup one of our Breathe2 devices right next to this location. The location as per CPCB website is right on top of a small building on a busy road. But there is no placard, no indications on the building itself whenever i have been there. No one around knows anything remotely related to pollution monitoring device or of any government office anywhere nearby. In all possibility its a fake location, but why should i take such a huge tangent!

The good part is that as compared to SAFAR, the data of whose was extremely hard to get despite it being public funded device, the CPCB has its data easily accessible from its web service. And this data is downloadable in averages of 15 minutes to days and one can download it as back in history as one has the patience. The make the last point because the website’s interface is archaic and not user friendly – just like government websites should be. Anwyays, i could download the data from October 2019 to today 28th April 2020. When plotted against all data from Breathe2 devices, this is what we get.

First thing to notice is that the CPCB records huge spikes of pollution that none of the Breathe2 does. But does it do for the Diwali of 2019 (27th Oct 2019) when all Breathe2s recorded high values?

Diwali across all Breathe2 devices + CPCB’s.

CPCB values are matching ours during Diwali, great! Also note that other times values also match ours very well, although we are kilometers apart! Similar matching can be found in other times too.

October data. Trends seem to match!
Some more confirmation that Breathe2 devices are not too bad.

As seen above, the trends match between the active Breathe2 devices as well as with respect to the CPCB data. However, this was more or less the condition till Dec19-Jan20. Thereafter the CPCB reports much higher values than Breathe2, and as a general trend the gap widens.

Discrepancies increase between general CPCB data and Breathe. Dec-end 2019 data.
Again differing trends. Mid-March 2020 data.
But March-end is great! All within reasonable differences.
And again huge differences! Mid April 2020 data.

So we see in the above plots, at times there is good compliance. On other times the difference is very clear. Here are some possible reasons:

  • Breathe2 sampling is far weaker than those used in government devices. This may lead to that we sample mostly a small dead space around the device. But this will only explain delay in long term trends that would be picked super fast by CPCB and SAFAR types.
  • Breathe2 devices have sampling fans and these may have gone kaput because thats the only thing that really moves in the package. In that case however mid-March should data should have continued to be distant from the remaining devices.
  • This difference might be genuine as these devices are located 4-5km apart. But i dont think this is a good possibility. We have seen similar matches and mis-matches with SAFAR data too in the first plot.
  • One thing is that as temperatures rise, turbulence in the air increases. Winds may also be impacting the sampling. And so may relative humidity. In case of proper devices, all these conditions are recorder and accounted for, atleast T and RH. In our case we’v left it to god.

Impact of ambient conditions on difference between CPCB and Breathe2

Luckily we are measuring temperatures with each Breathe2 device. The CPCB temperatures seem to be missing!!! Anyways, i had a hunch that if temperatures increase, the compliance between different devices separated by distance will keep reducing, because higher temperatures may lead to local convection currents, vastly influencing the dumping / sinking of pollutants in the surrounding atmosphere. And since the thermal energy for convective currents will be highly variable as per local geography and surface characteristics (roads will be hotter, buildings will store heat, trees will not store much and if device is placed in shady zone this might add another effect, etc) it will be harder and harder to compare devices far apart.

So i added a temperature subplot to see the impact –

Colder times = Good agreement

This first plot above says a lot. When temperatures are lower, there is good match between the devices. The colder times also see increased pollution levels, mostly due to inversion layer concepts. The daily difference between higher and lower temperatures is hardly 5 degrees.

Difference begin to appear with hotter conditions.

But as the year progresses towards summer, temperatures being to rise and the daily temperature differences also increase from the previous 5 degC to about 10 deg C. As a consequence we can see the dotted yellow line seperating from the closest Breathe2 device at Indradhanushya Hall (red line).

Vast differences. Not comparable in magnitudes.

Here’s where the magnitudes of CPCB devices very clearly do not match with Indradhanush Hall (red) because the temperatures are now peaking quite a lot! Daily temperature swing is about 15 degrees!

So all this analysis points to a simple observation – more the temperature swings in a day, more uncomparable are distantly placed pressure monitors. Also these devices are not near, atleast 2-3 km away. Normally when they do comparisons between devices in the research papers i have come across, all devices are placed very near each other, mostly on 1 building top away from the streets. And elevated high above the ground to avoid spurious signals. We didn’t have the luxury of either.

However, why should Breathe2 devices consistently record lower pollution levels than CPCB? We have been struggling with this question since the time we got our first readings with SPS30 sensors. I suppose its because as temperatures increase, the SPS30’s assumptions go a bit off. Whereas in case of all reference instruments, they pre-condition air that is sampled so that environmental difference do not affect the readings. We should do that with Breathe3.

  • Sample large volumes of air with bigger fans.
  • Condition the temperature so that SPS30 or any sensor measures an air sample around say 25 +/- 5 degC only.
  • Also since RH affects particulate loading, we need to remove moisture and make dry air as the samples.

So a chiller and post-chiller heater seems to be required. Costs, well lets see.

All these are not very scientific, the reason being we don’t have the bandwidth as well as experimental facilities or experience to make better guesses. Yet i feel we are on good tracks and Breathe3 will make a better public instrument.

Pollution @ COVID19

So, here we are. About a month into a national lockdown. Obviously the pollution levels (some say humans are responsible) have come down.

The data above is averaged over 24 hours for 4 devices placed at different public localities in Pune. We have had various time periods of data, and these differing time periods correspond to installation variations, availability of network, power grid supply issues and occasional switching off of devices by innocent humans walking around. For example, we can see in the above plot that just into the lockdown the Indradhanushya Hall device goes off, because its a government building. They must have shut off the whole building!

It is very interesting to observe that all the stations are having similar highs and lows, implying that the 24H averages really captures the city’s ambient conditions well. In general we can also observe that the overall trend is of lower pollution from the colder beginning of the year approaching summer like conditions now. Maybe the increasing temperatures dump much of the pollutants into upper atmospheres? Don’t know.

Ventilator volunteer

I am volunteering with a team of medical instrument designers at the College of Engineering, Pune (CoEP) to help attempt to address some of the technological requirements of the current COVID-19 crisis. This team, headed by Dr. Sandeep Anasane is in deep collaboration with doctors at B.J. Medical College/ Sasoon Hospital, Pune. I have been extremely lucky to get access to this team and be made comfortable to work with. Because of this, i can work at will at the college and roam about in the city which the city is in lockdown, all thanks to some official permissions the team members have got.

I have come across many others like myself, who wish to contribute technologically in any way, but are at a loss as to how. The problems they are facing:

  • Lack of mobility due to nationwide restrictions to movement.
  • Lack of know-how as to where is the specific need that needs to be helped.

As of the former part, here’s a probably way that can work:

  • Contact a your local good doctor / hospital. 
  • Offer your design and engineering services to their ventilator and other on field needs.
  • If they agree, team-up with them and pursue permission from the government authorities to travel and begin making stuff.
  • Make and test.
  • Share with the world with test results (failure is OK, at least the world will know what design does not work).

Now to the second part, what to do? Its hard to know what is actually needed on the field. The medical staff may be too caughtup to sit and talk to anyone about possible future devices that could help a current crisis situation. They wont have time to convert their experiences into articlately worded challenges that could be spread around. So what comes out and is received by amateurs like me are only the more pressing problems – like the ventilators. This is just because everyone is talk about it, from the political leaders to the media to the local doctors on the field. However, i am sure a lot many problems are to be solved which sadly are not coming up to our notice.

Anyways, thanks to my immense luck ( credit to Mr. Vijay Kumar of Texol Eng., my long time mentor and friend) i could get involved with a team already working on the ventilator problem. So here i will just list what i have understood about the current crisis.

The low cost ventilator challenge

  • Why is it needed? – Simple answer, not enough high grade ventilators available for the current crisis of COVID-19 which causes respiratory difficulties.
  • What’s the role of a ventilator – pump air into the patient in a controlled manner because the patient can’t breath properly on his/her own.
  • So what are the basic features a ventilator has:
    • There’s a bag of air that needs to be pushed into the patient. This is a mechanical requirement, like using a motor or piston.
    • The air that needs to be pushed in needs often to be modified by adding pure oxygen.
    • The pumping action must match breathing requirements of the patient, so there are rules and guidelines of pumping.
  • When the above requirements are converted into an engineered products, the following features will constitute what makes a real basic ventilator :
    • Should be an add-on to existing Bag Valve Mask system.
    • Should be able to control volume of air / breath.
    • Should be able to control breaths per minute.
    • Should be able to control Inhalation:Exhalation time ratio.
    • Should withstand at minimum 3-4 days of failure free operation.
    • Should pass 8 days of continuous testing on artificial test lungs.
  • Additional features could be added :
    • Measure O2% in delivered air.
    • Measure volume flow rate and pressure of delivery.
    • Remotely controllable with wifi.

So thats it, a small note on the requirements of a ventilator. Now the question arises, if one gets all permissions to travel and make ventilators, and has understood the above requirements of the end-device what and how should one begin?

  1. One could begin by reverse engineering existing ventilator designs.
  2. One could use one’s experience to make an engineering jig that could solve the above challenge list.
  3. One could learn new skills and advanced techniques to solve the above problem.
  4. One could just design new ways to solving the above challenge list but leave the testing to others.

The above ways are perfectly fine, and in the normal world all these are used extensively. My point here is that its not a normal world now. We are in a crisis. And the crisis is as follows – we the engineers have learnt our tools very well by investing thousands of manhours into learning and using these. These tools have become our vocabulary with which we think. For example a lathe machinist will probably come up with a very different design as compared to a laser cutter tool engineer, just because one uses what one knows. Similarly, as a product designer i am used to order circuits and modules and parts online. I am also used to visiting the market and augmenting up my library of parts/products/etc in my head. I can consult the internet and there is big chance that i can get those parts discussed in far of places right here in Pune, thanks to online e-commerce websites, money transactions, etc. So like every other person, used to using the tools we all probably know, i realized how useless my ways of product development was at the present situation when none of the mobility, access to workshops, online ordering etc is possible.

Long story short, we need to be resourceful. Rather than beign stuck with our past vocabulary we need to shift all gears and levers into a super learning mode. We need to unlearn, so that there is space for new learning to play out. So here are the new design constraints for this ventilator project:

  1. Reliable: Make it so sure that there wont be a chance that the design fails a trusting patient to death or added breathing complications.
  2. Low cost – so that everyone and anyone can use it.
  3. Mass manufacturable – we need 1000s of these now. But we cant depend on conventional supply chains. These must be locally manufacturable without dependency on imported components, etc.
  4. Manufacturable with minimal skills – because experienced workforce may not be available to make these in mass numbers. Learning to make one should not be difficult.

Design for COVID-19

Review of problems:

  • Social
    • How to deal with isolation?
    • Whats the plan next?
    • Where are the leaders?
    • Where is the nearest COVID-19 test center?
    • How to know what is truth and what’s a rumor?
    • Community
      • How can i contribute to the community by being at home?
      • Who’s caring for the elderly?
      • Who’s caring for the homeless and family-less people?
      • Is there a food-bank where i can contribute?
  • Technical
    • Lack of good reusable face-masks
    • Lack of sufficient protective clothing for healthcare professionals
    • Is there a disinfectant for general home use? Without chemicals?
    • Medical
      • Where is the cure?
      • How can we increase testing? What’s the bottleneck?
      • How can i improve my immunity so that i could be resilient to complications if I get infected?
  • Economy and future
    • How will the economy behave next?
    • How can i work from home and still earn?
    • I am in the manufacturing sector, there cant be ‘work-from’home’option!! What can i do?
    • I am not digital-literate. What can i do to earn?

Focus of Maker Culture class

For completion of course, one needs to note the following:

  • Making hardware is NOT mandatory.
  • Making an online documentation of problems and solutions is mandatory. All evaluations will be based on single blog which contains:
    • CA1 essay as a separate blog post.
    • CA2 blog posts on skills learnt and its story.
    • CA3 blog post.

What is CA3?

Make a blog-post in your regular blog answering the following questions. You can break the following into multiple blog posts. The total marks for CA3 is 20!!!

  • Study a specific problem due to COVID-19 outbreak: (4 marks)
    • Why this problem has appeared?
    • What’s the social angle to its origin and possible solution?
    • What is the impact of the problem?
  • Study existing solutions to the problem: (4 marks)
    • Conventional solutions used before the outbreak.
    • New ideas/innovations in response to the outbreak.
    • Limitations of all these solutions. Example:
      • Not customized for Indian use, or for use in my city.
      • Too costly.
      • Still in research stage, not yet commercialized.
      • Too unreliable for common use.
      • No service in my city.
  • Your personal take on the problem: (8 marks total)
    • Technically, what device you can imagine can solve the problem.
    • What is the nearest existing design that you like and would base your innovative solution on?
    • Your design (5 marks!):
      • Specify the challenges you would like your design to ultimately meet – the ultimate design criteria!
      • Make hand sketch to explain the concept of your design.
      • Make a TinkerCAD model of how the device will look.
      • If your design has electronics in it, describe how the electronics will help.
    • List skills and materials required for your design. Also called the BOM (Bill of Materials).
    • How will you make it? What tools will you use, what skills you will need to learn.
  • Pitch your idea in the form of a ppt presentation (4 marks).
    • Why you want to solve this problem?
    • Who would you like to solve it for?
    • What is the problem with existing machines/ideas?
    • What challenges your design can address?
    • Explain your design briefly?
    • Can you make a plan of making it?

What problems?

  • A reusable germicidal face-mask – with UV treatment of inhaled and exhaled air.
  • A disinfectant box that can UV disinfect any object like clothing, shoes, phone, money, etc.
  • An automatic hand wash unit to be placed in public places.

What next?

We’v been working on the Breathe2 air pollution (PM) devices for more than a year now. The status so far is there are 5 working devices spread over Pune, continuously (almost) pumping Particulate Matter (PM) data online ever 5-10 minutes from the beginning of October 2019. These devices contain a PM sensor, a relative humidity and temperature sensor, a SIM module using 2G network to communicate with the internet and a microcontroller to manage all, all in a plastic housing with a fan inbuilt for continuous air circulation.

As an assessment of that work, one thing is sure – we have built ourselves a reliable platform that has been working almost without hitches so long 🙂 And all things look OK on the surface except we don’t have answers to the following questions:

  1. Do the devices perform as well as reputed but costlier government devices?
  2. What patterns can we observe as to how those spots (where the devices have been operating) behave over the past months?
  3. Are there any inter-connects between the sensors? Can these devices be taken as indicating of how an overall city breathes over time?

Even if we pursue and get some reasonable clarity on the above questions and evaluations, there seems to be a whole Pandora’s box out there to be faced with. Before i move on to keeping on the table Mrs. Pandora’s questions, there were some pertinent questions asked :

What is the vision here? What are we doing? Why we did start? Where do we wish to go? What’s the vested interest inhere? It would be best to clarify as much as possible here.

Origin: Frankly the origin of the idea to get into all this was my desire to get my hands dirty making an instrument. I always dreamed of getting into scientific instruments of some kind so by some chance encounters of news articles and so on and some free time at hand, we got in. We meaning Abhijeet and myself. We were inspired by the work of the data journalism house IndiaSpend (indiaspend.com) and its director Mr. Govindraj Ethiraj. They had pioneered the low-cost air-pollution networked system in Delhi in 2015. The team expanded and changed over time, and i write all this on behalf of the team – Abhijeet, Sumithra and subir (me) with Mayuresh pitching in at times. This is a collaborative effort between distributed individuals, i being nearest to the ground zero and the one holding the pen (or better known now a days as the ‘keyboard’).

Vision: In gist To make a low-cost opensource platform for measuring air pollution in a distributed networked format.

Vested interest: Very important question and that which every technologist must answer! But here i am speaking mostly for myself, my team-mates’ views may overlap or differ from these –

  • Agenda #1 – Have fun making things.
  • Agenda #2 – Have some meaningful fun, i mean who doesn’t want to be of some use to the society?
  • Agenda #3 – Get social credits, i.e. get chance to earn/raise in socially attributed personal-value (Should i have shame for harboring this most dreadful of the weaknesses ?).
  • Agenda #4 – Meet like minded people and work together ! How else would i have the chance to engage with so many interesting and valuable friends, beginning from my teammates ?
  • Some may argue that since air pollution is a new big thing with the new big fad of environmental awareness and sensors coming in cheap/easy = big market and all that, i may be having a hidden agenda / pursuit to make some nice money out of a sorry social crisis. I wish i had the brains to do so. To them i beg that they pray to their gods to gift me some business sense, so that i may at the least save some money, if not make it!

But why (seriously technical Q)? Coming back to the basics, i repeat here what Sumithra and i wrote for a research project proposal:

  • Government sensors are the best but too costly for commoners to buy.
    • Being too costly they are sparsely located.
    • The data they output to the public may not be scientifically analyzable by the public and who wants to get into a government department and fight it out to get tax payer’s rightful access? Not me!
    • Air pollution being highly local phenomena with multiple factors such as wind speed and direction, location of pollution sources in the vicinity or away from the sensor, geography (low/high altitude), weather conditions of wind/rain/humidity..etc etc all affecting in unison, it would be hard to determine how representative of the local region the government devices are. The alternative is to average out in time, but then the outcomes become huge averages that loose out on local day/time patterns!
  • Enter low-cost sensors and especially the idea of making an opensource platform using these sensors. Advantages:
    • Can be deployed in 100s if not in 1000s. Each city could have a regular grid placed sensors to get local trends (High spacial resolution).
    • Due to increased device density, huge 24h averages need not be the limits of data as in the case of sparse government sensors. Fine granularity could be achieved (High temporal resolution).
    • Data can be made available to public in raw and processed form for sections of public – local, state, national and international- to scientifically analyze data for any understanding, without asking for permissions.
    • Since the opensource platform essentially needs to be crowd-funded, people’s participation could get a boost and so could awareness. More, diverse and better device designs and strategies can evolve, overcoming by the by-design narrow interests of the government or private players.
  • But here are some issues with them:
    • They are compromised versions of good instruments. Meaning they use measurement techniques that compromise on measurement quality so as to reduce the costs.
    • There is some resemblance to what proper and best instruments would measure, but there is no guarantee of this.
    • Any scientific measurement instrument requires regular calibrations. That is not affordable for these sensors because of the idea behind using such sensors – keeping costs low.
    • Their inner workings are protected by the manufacturers and one can almost treat them as blackboxes. This could change if the sensor design itself is opensourced.
    • These sensors are meant to function reliably at known conditions specified by the manufacturers, but ambient air conditions continuously change, changing the performance of the sensors. There is no control over this significant aspect of this low-cost sensor domain.

So what should be ideal air pollution monitoring device? In my limited experience here are some notes:

  • An opensource air pollution basic sensor that clearly and transparently exposes the algorithms it uses, the assumptions it makes and the reasons behind these descisions – so that these fundamentals may be improved upon and also that these could help in proper interpretation of data.
  • There are many pollutants – PM2.5, PM10, CO, CO2, NOx, SO2, O3 and VOCs. All must be measured since we all now live in semi-industrial settings where all these are prevalent.
  • There must be some form of comparing the device with standard high quality instruments, atleast in some statistical way. Say out of a batch of 100 opensource devices made, 1 is compared to a standard lab device and the resulting calibration factors are then implemented in all the 100 devices. And this is repeated at least once every year or something like that.
  • The air that is sampled is adequately conditioned to meet consistently a desired temperature and humidity and volume (normal/standard volume), so that all values are comparable between devices and also in time.
  • The data that is sent to the cloud must be retained at all costs for years to come and ensured that its free for anyone to study and quote.

The challenges in creating the above ideal device could be:

  1. The above steps will surely increase the costs of the original simple un-calibrated, un-conditioned devices.
  2. Its development and deployment will take much time, effort and skills leading to more chance of this being a privately funded enterprise’s product than the ideal of a publicly crowd-sourced movement.
  3. Who’s going to do all the calibration and maintenance? Citizen engineers?

But why am i against private companies pursuing the above goals? I am not. I actually feel private companies could do the above job more sincerely and regularly because they would have to stand for it in public scrutiny if not legal scrutiny. But i have the opensource bug in me, so can’t help looking in a biased direction. Anyways, who says opensource based businesses can’t exist? See RedHat and Ubuntu/Canonical?

All the above is fine. But there are many more unanswered questions here:

  • Technical questions:
    • What to do with the data?
    • How to convert data into relevant information?
    • Can pollutant source be located with such a network? Either geographically or even in sub-species. This is called source-apportionment in air-pollution geek-o-logy.
    • Is there a good way to place the sensors or just randomly, and as many as possible? These devices don’t come cheap, so Sumithra proposed to study if there’s an optimal way to strategically place the sensors across a city and also monitor using sensors on criss-crossing city vehicles.
  • Social questions:
    • Relevant to whom? Who would want to get this data anyway? (Thanks Abhijeet for asking and maintaining this question).
    • If we are not doing all this for end-of-day measurement of medical impact of pollution then what’s the point. And how to measure this impact? Is there any way at all thanks to the huge privacy barrier in the medical industry? (Maybe in collaboration with Aditi Dimri’s/Rasika Lokhande’s health monitoring work?)
    • Can this data be used by advocacy groups with pressure government to act? Will the government not question the data’s lack of calibration? (example is the HIRWA group which successfully pressured local administration to act against waste burning using such low cost air monitoring sensor data – news article link)
    • With power comes responsibility, which humans have a shoddy track record of. So here are some potential negative consequence in the hypothetical case when the above air pollution monitoring campaign is successful (Thanks Sumithra for thinking and opening up this topic to further thought) :
      • Suppose large numbers of these sensors are deployed, but only a handful of scientists working on them. What if a scientist turns rogue, and predicts doom or bliss when the actual pollution state of the city is otherwise?
      • Can powerful organizations (government, corporations, etc) in anyway misuse the data to subdue public interest?
      • Suppose a segregated city (race/religion wise) is mapped, can these sensors be misused as propaganda tool to stereotype communities ?

Along with the above, i am sure many more questions/ideas/doubts exist. I was also lucky to be a part of a general ‘open-hour’ discussion which the kind and generous PublicLabs people hosted (Thanks Stevie and team) on how different interested people all over the world think about these low-cost air pollution monitoring movement. It was held on the 2nd of March 2020. I have not had to the time to analyze many of the questions and arguments that came about 1h30m long discussion, but it was great overall! Details in the above link.

So coming back to the earth and asking what should be the immediate plan, here are some pointers –

  • Verify the existing 5 Breathe2 devices to get:
    • Compare with MIT college’s SAFAR dataset and see how they fare.
    • Map patterns over time for all the sensors.
    • Make a small report.
  • Work on Sumithra’s idea :- How to optimally map a city though stationary and mobile low-cost air pollution sensors?
  • Investigate new device platform incorporating more pollutant measurements and input air sample conditioning. (Abhijeet’s help needed here).

The broader Qs need to be dealt with as and when the brains and pockets grow.

#15 Intro to 3D printing

So, didn’t do posts inbetween from #9 till now since i was lazy and it seemed that not much philosophical depths the hand skills training carried out in the previous classes could be written about unless backed by enough photographs and illustrations which would have called for extreme dedication on my part. So a summary rather:

  • In electronics, we began experimenting with LEDs and how to wire them up in the correct way and in the not correct ways. We saw, willing or otherwise how LEDs can be damaged if a resistor is not used. Interestingly we have some LEDs in our stock which has some form of inbuilt circuitry that A) prevents them from blowing up even without a resistor (though it gets hot) B) Red, green and blue colors in single LED in sequence (else it would have been a white LED) and C) The colors switch automatically as if programmed in that way.
  • Next all kids were asked to recreate the first alphabets of their names on a breadboard, learning in the process the breadboard basics. But this was the first time the question was posed: how to connect a bunch of LEDs to one another but lit by a single battery?
    • Series and parallel connections were tried out as experiments and it was concluded that in series connections, there’s a limit as to how many LEDs can be lit up. If connected in series, meaning positive leg of first LED to the positive of a 9V battery and the negative leg connected to the positive leg of another LED, this kind of connection was first tested out. Suppose all LEDs were of red type, each LED drops 1.5V by default. So how many would fit in to cover 9V? So, 1.5V times 6 = 9 that means at the max 6 LEDs could be lit up in series!
    • However, in a parallel connection all positive legs are joined together and connected to a 9V battery via a resistor while all the negative legs are joined together to meet the negative of the battery. Even if each LED drops 1.5V, since its in parallel the 1.5V across all remains the same irrespective of how many LEDs are connected. Its a bit abstract or maybe i am not taking effort to explain well, either ways its better than series connection. This was established experimentally.
  • Next, the kids were asked to construct their alphabets on a zero PCB. This involved learning a bit about the soldering gun, how to join the legs together, put jumpers across when continuous path construction using solder itself as molten wire was not possible, etc. This took some time because this is really a kind of skill. After many faithfully constructed their letters, some lit up, some didnt and it was kind of bitter sweet experience. But due to lack of time we move ahead.
  • The idea of Arduino as a small programmable computer was introduced. Initally the LED on board was played with. Then it was time to connect an external LED and do the blinking and fading examples. The fading code was explained and kids played with the timings. The next test was to use fading on the alphabets kids had made, which worked quiet easily!
  • While the above session dealt with Arduino’s output capability, in another session the idea of analog signals and its measurement was discussed. Due to my own ill-planning i made a huge mess as to how to deliver this sligthly abstract but very important concept across. It was a mess and the kids were bewildered unnecessarily because i asked them to simulate different voltages using voltage dividers and so on with some formulas and stuff. Totally un-called for. I rather could have arranged for some analog sensors like LDRs and stuff to illustrate analog measurements!

Now we come to 3d printing.

The obvious questions that one would ask in general:

  • Why make something in the first place?
  • What are the ways of making things?
  • If we have all the ways of making things then why invent more? What situations make conventional making techniques obsolete or difficult?
  • What is 3d printing and how it works?
  • When did it all began and how is it relevant today?

The above questions in themselves need 1 session or atleast half of it. But we dont have that luxuary as we need to begin on the projects as soon as possible. So i will skip all that and do the following:

  • What is 3D printing?
  • Make a shape on tinkerCAD online.
  • Export it to Cura for slicing
  • See the wonder while it gets printed.

So first to set the context of making, what are the conventional ways?

  • Joining, using existing shapes and getting them together through gluing or welding, etc.
  • Subtractive processes such as sculpting, turning, milling, etc.
  • Additive processes such as brick laying, 3d printing, etc.
  • Moulding and casting, such as all engines, etc.

So we could illustrate 3d printing by an actual look at how the layers are formed line by line. I think that should be enough to replace any words from anyone.

The remaining is plain discovery mode with some assistance and letting things evolve.