Richiep

Member Since: May 1, 2011

Country: United States

  • Product SEN-10167 | last year

    Anyone have any luck getting this to run with a Raspberry Pi? If so please share you code and schematic.

    Thx Rich

  • Product SEN-00245 | about a year ago

    I’m running a couple of these from a Raspberry Pi. One of them is right on a breadboard, the other is on a 15ft wire lead. When I place the two sensors next to each other indoors they read within 0.1 degree Fahrenheit, Awesome! When I run the wire lead outside the accuracy goes down substantially as much as 30 degrees. The outdoor accuracy is almost perfect at night but when the sun comes out I get the wide range of error. Are these things light sensitive? Where is the noise coming from?

    Note that I’m using a LaCrosse thermometer, which work great, as my reference.

    Thanks Rich

  • Product PRT-09918 | about 2 years ago

    Ugh, I designed my project around these and now they’re out of production :(

  • Product SEN-08630 | about 2 years ago

    How are you installing these things in the real world? I’ve been sticking them on walls with thumb tack pins. Would it be safe to use 2 sided tape?

    What are best practices for this sort of thing?

    Thanks Rich

  • Product COM-11020 | about 2 years ago

    Yes, I’m interested in the connectors too!

  • Product DEV-07914 | about 2 years ago

    Yeah I agree the adafruit version offers more possibilities. And yes, much love to Spark Fun!

  • Product SEN-08630 | about 2 years ago

    WARNING - As others have stated in this thread the data sheet is wrong wiring has changed.

    Red - Alarm Brown - Ground Black - 12V

    It’s cool if all your sensors or wired one way or the other but I have a dozen sensors with the two configurations mixed together.

  • Product SEN-08630 | about 2 years ago

    OK, I found this sketch that that uses digitalRead instead of analogRead that works. And it’s more appropriate for my application.

    http://bildr.org/2011/06/pir_arduino/

    Not sure why my analogRead isn’t working above.

  • Product SEN-08630 | about 2 years ago

    Ok, I’ve successfully used these in other projects and they’ve worked great. I just ordered a bunch of them and when I hook them up in my new projects they’re not working. I’m using the exact same sketch I used in my other projects but I cannot get them to work.

    Here’s what I’ve got

    • Red to 12v using VIN
    • Brown to ground
    • Black with 10K pullup resistor to 5V and to alarm Arduino analog pin 0

    You can see my wiring here example

    This is exactly how I have this set up in my previous functional application and what is described on this page.

    When I open the serial monitor I get repeating 1023 that does not change at all.

    I’ve tried this on several Arduino boards without luck.

    I’m using Arduino IDE build 1.0.1; I used an older build of the IDE on my previous project version 0022. Seems like this shouldn’t be an issue.

    Note that I have tried to get this to work on all the analog ports on several Arduino boards.

    Here is a copy of my sketch.

    // example for the PIR motion sensor SE-10
    
    int timer = 3000;
    int alarmPin = 0;
    int alarmValue = 0;
    int ledPin = 13;
    
    void setup () {
    Serial.begin (9600);
    pinMode(ledPin, OUTPUT);  
    pinMode(alarmPin, INPUT);
    delay (2000); // it takes the sensor 2 seconds to scan the area around it before it can detect infrared presence. 
    }
    
    void loop (){
    alarmValue = analogRead(alarmPin);
    
    if (alarmValue > 1){
    digitalWrite(ledPin, HIGH);
    delay(timer);
    digitalWrite(ledPin, LOW);
    }
    
    Serial.println (alarmValue);
    
    delay (10);
    
    }
    

    Please help!

    Thx Rich

  • Product COM-10280 | about 2 years ago

    Awesome! Worked exactly as you described.

    Thanks Rich

No public wish lists :(