Archive

Posts Tagged ‘average value’

How to read smoothly an average value from a jumpy or erratic input sensor.

June 15, 2013 Leave a comment

Below, is an Arduino function for reading smoothly an average value from a jumpy or erratic analog input sensor. The function reads repeatedly from an analog input, calculating a running average and returns the value back to the caller.

Read more…

Arduino: Sending measurements from light sensor to Twitter via the Internet.

October 21, 2012 Leave a comment

Arduino & TwitterThis project refers to an Arduino sketch which has the capability to send measurements collected by a light sensor to an account at Twitter to be seen by many through the World Wide Web.

Read more…

Arduino: Device Control (open / close) using a light sensor and a relay.

October 18, 2012 Leave a comment

This project refers to an Arduino sketch which with the help of a relay (electromechanical switch) and a light sensor can drive an external device (e.g. a household lamp, a car alarm, a home air conditioner). More specifically, the Arduino collects samples from a light sensor at a specific rate and calculates the mean of samples for best accuracy. Then, if the average exceeds a threshold limit, it will activate the device via the relay. Also, the opposite happens where, if the average sensor value drops below the limit mentioned, the device is turned off.

Read more…