AngularJS: Set active item in ng-repeat

When using sliders or any other multi item control to display content, you often see the class .active that indicates which item is currently shown while others wait their turn. This is accomplished by declaring the first items class as active (class=”active”). But how do you declare the active item if you don’t see it […]

Read More

Arduino: Save data to database

While broadcasting data over a dedicated web page on your home network is useful for a home project, fundamentals of an advanced project are to be able to store data you read from your connected sensors. This way you can monitor live data, but are also able to get historic information. It also allows you […]

Read More

Arduino: Light sensor (basics)

In this article I will show you how to measure the amount of light in a room with Arduino and a light sensor. Measuring light is done by a sensor with a photoresistor (photocell). Photoresistor is basically a resistor which resistance depends on the amount of light it absorbs. Lesser the light higher the resistance […]

Read More