Arduino meet Raspberry Pi

While at the electronics store the other day, I noticed they had motion detectors on sale for only $4. I decided with my latest obsession of electronic tinkering, picking up a OSEEP Passive Infrared Sensor (PIR) Module might be fun. I guess I should have done a little more reading on the packaging; by the time I was home, I noticed this sensor reported in analog , not digital. This was an issue as the Raspberry Pi only reads digital input.

Raspberry Pi and Official NFL Score Board API

Now that I’ve got my hands on a Raspberry Pi 3 Model B Motherboard , I decided nows a good time to play around with the 16x2 LCD Module Controller HD44780 I had laying around (I’ve had this thing since December 2015). A live NFL (National Football League) score board seemed fitting as the season just started. I found a really good write up on raspberrypi-spy.co.uk about wiring up the controller and Pi, here is the diagram I used:

Raspberry Pi – cleverbot voice communication

Using my first generation Raspberry Pi and a few USB / analog devices, i’ve been able to create (a rather slow) cleverbot voice communicator. The reason for the slow down is initialization and listening on the USB microphone, but other than that everything works as expected. #!/usr/bin/env python import speech_recognition as sr import pyttsx import cleverbot print 'Initializing, please wait...' # define our cleverbot cb = cleverbot.Cleverbot() # speech recognizer setup r = sr.

Janky Lego stop motion

Well the kids have lost interest in Raspberry Pi Python programming for now, but look who’s still at it! The jankyiest of Lego stop motions. Here was the code I tossed together to make the gif above: #!/usr/bin/env python2 import os import time import shutil import datetime import tempfile import pygame.camera import pygame.image import RPi.GPIO as GPIO save_dir = '/usr/share/nginx/www' GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.cleanup() GPIO.setup(17, GPIO.IN) pygame.camera.init() camera = pygame.camera.Camera('/dev/video0') def make_picture(filename): raw_input('Ready for picture?