Thursday, January 16, 2014

Raspberry Pi and a PIR Sensor

Today, I successfully used the Human Sensor PIR module with the RPi. I ordered this: http://www.amazon.com/gp/product/B007XQRKD4/

I followed this blog post. The only change was different GPIO port numbers:
http://www.millamilla.com/?p=18

When moving in front of the sensor, the LED turns on.

Worked great!

There are two manual adjustments on the module:
  • Sensitive Setting: turn to right, distance increases (about 7m); turn to left, distance reduces (about 3m)
  • Time Setting: turn to right, time increases (about 300 seconds); turn to left, time reduces (about 5 seconds).

Monday, January 13, 2014

Raspberry Pi and WiFi

I purchased a Edimax EW-7811Un wireless USB adapter (http://www.amazon.com/Edimax-EW-7811Un-Wireless-Adapter-Wizard/dp/B003MTTJOY) for my raspberry pi,

Setup:

With the ethernet still plugged in, I remoted in and used the WPA_GUI tool (shortcut already on the desktop). I was able to connect but when I tried it with the ethernet disconnected, it didn't work.

Long story short (after lots of troubleshooting), I needed to save the configuration in the WPA_GUI tool. It's been working since.

Another possible cause of the intermittent problem is with the usb hub (d-link dub-h7). When plugged into the pi, the pi would not start and when restarting right away without the usb hub, the wifi adapter (usb) wouldn't work. I suspect that power from the usb hub was causing the fuse to open for a short period of time, rendering the usb port inoperable until it closes again.

Wednesday, January 8, 2014

Raspberry Pi and Temperature Sensor

Today I successfully connected the DS18B20 temperature sensor to the RPi. I ordered the waterproof version that comes with ~ 2 ft leads.

I used the following Adafruit lesson to the letter and it worked great:
http://learn.adafruit.com/adafruits-raspberry-pi-lesson-11-ds18b20-temperature-sensing/overview