Jump to content

Search the Community

Showing results for tags 'pir'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 2 results

  1. cde

    Motion Sensing Pantry Light

    A small project. G2211 PIR Sensor 5630 LED strips On/Off button Button Doubles as Test Mode Board half way done. Using a Reg104 DPAK (I'll stick to a TO-220 next time) as the regulator, and MMBT3904 sot-23 transistors on a board of my own design. The base resistors should be on the back, but I didn't have the right value 0805/1206 resistors at the time. Quite proud of my clean, flush mount, perfect fit for the button, led, and sensor. Two tricks. One, I used two pins to provide high to low, and low to high interrupts, instead of swapping the interrupt in code, since I won't always know it's state. It is much simpler like this for me. Two, the status led is only 0.66 mA. 600 microamps. Look how visible it is. Keep that in mind when building your own projects. One issue. I have the PIR sensor directly powered by the 3.2V regulator I am using, bypassing the HT7133 on it. As such the PIR sensor triggers when the leds turn off, likely due to noise/ripple experienced. Next time I'll just power the sensor from the 12V with it's regulator, or I could change the sensor to non-retriggerable mode, or wire the enable pin to the msp430. I just coded a delay that ignores the trigger. The timing of the lights is long enough that it shouldn't be an issue in normal use. main.c common.h
  2. I'm working with the CC3200XL and the Grove starter kit. It contains a PIR sensor. When I try to run the sample, it complains about a missing file. I can't find the file anywhere and don't even understand why Energia is looking for it. But what I need to know is, where can I find the source and header for the file. java.io.FileNotFoundException: C:\Users\Dan\AppData\Local\Temp\build5629486675398969734.tmp\pir_motion_sensor.cpp (The system cannot find the path specified) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at processing.app.preproc.PdePreprocessor.writePrefix(PdePreprocessor.java:142) at processing.app.Sketch.preprocess(Sketch.java:1430) at processing.app.Sketch.preprocess(Sketch.java:1345) at processing.app.Sketch.build(Sketch.java:1624) at processing.app.Sketch.exportApplet(Sketch.java:1655) at processing.app.Sketch.exportApplet(Sketch.java:1641) at processing.app.Editor$DefaultExportHandler.run(Editor.java:2521) at java.lang.Thread.run(Thread.java:619) processing.app.debug.RunnerException: Build folder disappeared or could not be written at processing.app.Sketch.preprocess(Sketch.java:1437) at processing.app.Sketch.preprocess(Sketch.java:1345) at processing.app.Sketch.build(Sketch.java:1624) at processing.app.Sketch.exportApplet(Sketch.java:1655) at processing.app.Sketch.exportApplet(Sketch.java:1641) at processing.app.Editor$DefaultExportHandler.run(Editor.java:2521) at java.lang.Thread.run(Thread.java:619) Here's the example file: /* Grove PIR Motion Sensor (Passive Infrared) The following sketch demonstrates a simple application of sensing motion. When someone moves in the sensor's detecting range, it will output HIGH through its SIG pin and the LED will turn on. Otherwise, it will output LOW. Then you can use it to detect the motion of people. The circuit: * Grove PIR Motion Sensor attached to Pin 7 (J12 plug on Grove Base BoosterPack) * Note: Position the Motion Sensor's jumper on N_Retrig to ensure the light stays on while motion is present This example code is in the public domain. http://www.seeedstudio.com/depot/Grove-PIR-Motion-Sensor-p-802.html */ /* Macro Define */ #define PIR_MOTION_SENSOR 7 /* sig pin of the PIR sensor */ #define LED RED_LED /* LED */ /* the setup() method runs once, when the sketch starts */ void setup() { pinMode(PIR_MOTION_SENSOR, INPUT); /* declare the sig pin as an INPUT */ pinMode(LED, OUTPUT); /* declare the LED pin as an OUTPUT */ digitalWrite(LED, LOW); } /* the loop() method runs over and over again */ void loop() { if(isMotionDetected()) { digitalWrite(LED, HIGH); /* if we detect movement, turn on the LED */ } else { digitalWrite(LED, LOW); /* no movement, turn off the light */ } } /* check if motion has been detected */ boolean isMotionDetected() { int sensor_val = digitalRead(PIR_MOTION_SENSOR); /* read sig pin */ if(sensor_val == HIGH) { return true; /* motion detected */ } else { return false; /* no motion detected */ } }
×