Researchers from Carnegie Mellon
University have created a new programming language that makes energy
harvesting systems more reliable than ever.
The Problem with Harvesting Energy
Everyday objects are becoming increasingly integrated with electronics. So it comes as no surprise that the global demand for energy is increasing. Ever since the industrial revolution, most of the energy we use (be it electrical or mechanical) has primarily come from fossil fuels such as coal, oil, and gas. Other forms of electricity generation, however, are becoming popular, especially renewable sources like solar and wind.One problem faced that electrical generation constantly faces is getting the power to the needed device. This is not an issue for appliances that are plugged into a wall socket (such as washing machines, cookers, etc.), but what about mobile devices? Recent years have seen a massive boom in portable devices that rely on a portable power source such as batteries and small solar cells (commonly found on calculators).
Batteries, however, do not last indefinitely and either need to be replaced or recharged. This can be very inconvenient, especially if you forget to charge your phone overnight or your smoke alarm does that constant dying beeps routine.
Thermoelectric generators can generate electricity from a heat gradient. Image courtesy of michbich [CC BY 3.0]
One solution to portable power is the use of energy harvesting techniques that allow the environment, itself, to be the power source. This could include harvesting energy from sources like thermal energy, background radiation, solar, wind, and even mechanical (think piezoelectrical generation).
The only problem with energy harvesting is the volatile nature of availability, given that there are days that the wind doesn't blow and the sun doesn't shine quite as much. In other words, energy harvesting cannot guarantee that there will always be power and therefore any programs running off of devices attached to these power sources would crash every time there was an intermittent “blackout”. This intermittent behavior, therefore, cannot be used in situations where data loss is unacceptable and reliability is of the utmost importance.
This is where a research team from Carnegie Mellon University has stepped in to make energy harvesting systems more reliable.
Chain: A New Programming Language
The problem with power failure in a computing device is that information stored in volatile storage related to the program is lost (especially in DRAM). Information that is typically lost include all the register states (such as program counter, temporary variables) and any information stored in RAM (such as the program, itself, if it was loaded into RAM via a bootloader or operating systems).There's ongoing research on energy storage aiming to address these issues with intermittent power failure from energy harvesting. But Carnegie Mellon's ECE department is looking into the actual system stack for devices that aim to use harvested energy intermittently. Brandon Lucia and his colleagues in his Abstract Research Group, including PhD student Alexei Colin, have created a programming language called Chain that can overcome these problems using a channel-based memory abstraction.
Firstly, Chain will ask a programmer to define a process where the computer’s memory is processed via a "channel". Chain then ensures that the process is executed correctly even in the event of intermittent power failures, ensuring that the information is preserved.
What makes Chain important in energy harvesting environments is the time needed to restart a Chain program. According to the researchers, it takes virtually no time for a Chain program to restart which is vital in an environment where a secondary power failure could occur at any time.
Currently, the plan is to test Chain in an unforgiving environment that requires reliability above all else. When it comes to testing environments, it's harder to get more unforgiving than space.
The plan is that KickSat, a Kickstarter project that aims to put tiny satellites into space, will carry two computers the size of postage stamps running Chain (along with energy harvesting modules) to determine if the system can function reliably. If this works, Chain could potentially become a monstrously popular computer language, considering that IoT devices could potentially run off energy harvesting modules in the near future.
The Future of Energy Harvesting
Convenient power distribution is a dream that has always given people headaches. While energy harvesting modules sound great, the amount of power generated with current designs is barely enough to get a laptop running.However, there are a great deal number of devices that could truly benefit from environmental energy harvesting such as IoT devices that merely need to wake up every so often to perform a simple task such as sensor reading relaying or instructing a light to turn on. With an increase in internet-enabled devices and a decrease in individual device power consumption, energy harvesting could be the future of power. Combined with Chain, it could be the future of mobile device programming sooner than we thought.
Check out Chain on GitHub here.
Featured image used courtesy of Carnegie Mellon.
No comments:
Post a Comment