Basic understanding of microcontroller interrupts

Earlier I’ve made a mistake by referring this tutorial to older AVR family microcontrollers like Atmega8/16/32/64/128. But AVR is being changed constantly with various new tweaks and updates like enhanced pin control or different register names. Since now tutorial will be based on Atmega328 microcontroller which is popular in Arduino boards. So you’ll be able to test all code examples on Arduino as it can serve as general purpose AVR test board with no problem. Understanding Interrupts Probably you won’t be able to find a microcontroller without interrupt capability. These are essential attributes of any modern microcontroller or processor. They may seem confusing and tricky at first glance, but during the time you will find out that normal MCU operation is impossible without interrupts. Interrupts can be easily compared to … Continue reading

Wake up with sun anywhere you are

Direct sunlight is perfect for waking up in the morning. But it happens that there is no sun or simply your bedroom is in western side of the house. Then there is the only way – start cheating with sun simulator. It is based on ATTiny13 microcontroller which takes care of dimming the 150W halogen lamp. Alarm clock can be set to reach its maximum intensity from 2 minutes up to 8 hours. Microcontroller takes alarm signals from regular digital radio alarm clock so no need to do additional time tracking. I agree it looks a bit dangerous to have halogen lamp near pillow, but it is worth to risk for a bit of sun.

The Outstanding Arduino Strobe Algae Bioreactor

We all knew that Arduino is definitely a very special electronic device, as you can do many incredible electronic projects with a simple arduino! Well, if you’re looking for a home décor, but you don’t want to spend huge money out from your wallet, maybe this fantastic Arduino Strobe Algae Bioreactor is your ideal choice. Why? Believe it or not, the Arduino Strobe Algae Bioreactor is only cost you about $60 and less than three hours to accomplish it! Honestly, you don’t need to be an expert to build this project, as it only require basic power tools. For your information, algae has been recognized as one of the most potential environmental friendly powers, where many researchers have been involved in the algae experiment to cultivate the unknown parts of … Continue reading

Der Kapellmeister – Direct Musical Performance through Only Visible Gestures

Have you ever thought that is it possible to direct musical performance by only moving your hands in the air without even get in touch with the musical instrument? Well, it might be sounded crazy, but believe it or not, you can really do it with Der Kapellmeister! For your information, the project is implemented with a glove. Then, it resembles with a conducting baton that has the ability to analyze visible gestures and interprets them into musical elements. Der Kapellmeister is a very simple device that can be used to test a user’s ability in basic conducting, by using a real conducting baton. Let’s take an example. When a user performs a gesture, the device is automatically display the tempo, time signature and beat number on the LCD screen. … Continue reading

How to Interface a Microcontroller with a PS/2 Keyboard

In most of the case, it’s highly important when you’re moving from basic microcontroller programming to advanced microcontroller programming, especially if you wants to interrupt the code. Technically, interrupts are pieces of code that much likes functions. The interrupts are executed automatically when outside events occur. People always used the interrupts to react to all sorts of outside inputs; including pin changes that driven by outside devices. By using the interrupts, it enables the users to give the code an ability to react to events as they happen. In this case, we don’t have to wait for the code to get to a place where it can handle an event. For your information, the project uses interrupts to interface a PS/2 keyboard with the USB NerdKit. To be honest, the … Continue reading