Saturday, August 10, 2013

E-Paper from Embedded Artists

Received two 2.7" EPaper displays and an adaptor for pervasive displays.
These are Embedded Artists products and so far tests with an Arduino Uno are promising.

Friday, August 9, 2013

PIR Sensor IO

Datalogging the output from a PIR sensor. The output of the PIR is connected to an Arduino digital input. The PIR output is digital with no PWM for distance. On or Off is as good as it gets.
A separate +12V supply is connected to the PIR as the +5V from the Arduino is not enough for the PIR output to be stable.
PIR hooked into an Arduino via a Protoshield
Data saved to microSD card and charted in Excel

The Arduino code to monitor the PIR and fade in an LED if motion is detected.

int LED = 11;
int sensor = 7;
int n = 0;
int light = 0;

void setup()
{
  pinMode(LED, OUTPUT);
  pinMode(sensor, INPUT);
  digitalWrite(LED, LOW);
  delay(1000);
}

void loop()
{
  int sens = digitalRead(sensor);
  if(sens == LOW)
  {
    for(n=0; n<255; n++)
    {
      analogWrite(LED, n);
      delay(10);
    }
    light = 1;
  }
  if (light == 1)
  {
    if (sens == HIGH)
    {
      for(n=255; n>-1; n--)
      {
        analogWrite(LED, n);
        delay(10);
      }
      light = 0;
    }
  }
}

Tuesday, August 6, 2013

From Midday till Dusk

Light readings taken with the stormTrigger circuit from mid-day until dusk in Songkhla - Thailand.


The graph shows interval (x-axis) and A/D output (y-axis). Readings were taken at 400mS intervals.



Next step is to correlate the readings with actual light level measurements.

Friday, August 2, 2013

soundTrigger first shots

With soundTrigger set to activate the camera at 50 A/D counts above ambient, I got some shots of my lighter striking. They came out not too bad.


From breadboard to protoshield

Tests on both the light and sound circuits on breadboard were promising. They tests did show a great deal of false triggering and I believe this was due to the bad connection nature of breadboards.

I took both circuits and layed them out on protoboard. This allows direct connection to the Arduino.

Tests so far are very promising.
soundTrigger circuit with microphone in the background
stormTrigger V3 layed out and working well