As Internet of Things is quickly becoming a reality, it is intriguing more and more developers as well as prospective users. In a simplistic view, IoT can be seen as a sophisticated network of things. Things that are not just typical computers or mobile phones or machines but the things like door-lock, diapers, watches or anything you believe in to make life smarter and easier. It is excellent combination of multiple technologies to enable better life. The Internet of Things is the collection of objects on the internet or network that humans rely on to make their lives easier.
Spirit levels are ubiquitous in various fields of design and they serve an essential purpose of indicating the levelness of the surface in question. Traditional techniques comprise of an air bubble trapped in a liquid which balances itself in the center when held level; however, it requires a good visual check to determine the readings. If you try to reason out what determines the levelness of a surface, you will soon come to realize that it is the 2D orientation that determines the level, i.e. height is irrelevant, since a crooked surface will still remain crooked even if you raise it up by 1 or 100m. (Assuming of course you raise the entire surface equally). So in order to build a digital prototype we need to sense the orientation of the surface in question, lucky for us we already have a sensor available: the humble accelerometer.
Doing calculations in microcontroller based project is not an uncommon thing. That’s what CPU is for, isn’t it? However, all these calculations done by MCU are pre-written as a part of code – which means these formulae are part of the program written by programmer and cannot be changed or altered for each new calculation, if the situation demands so. What if your system has to solve equations on the fly? What if the user wants to define an equation to be evaluated and MCU has to perform the task based on that? Well, here comes handy a Postfix Notation to solve any type of equations in run-time that too without changing any source code. This method not only helps in solving trivial expressions like 3 + 4 but also can handle anything that involves parenthesis or algebraic operator precedence. We will also build a somewhat basic calculator based on this technique using Atmel’s AVR microcontroller.