Tag Archives: python

Cheap PIR Sensors and the Raspberry Pi – Part 2

Following on from my first PIR sensor module article I thought I would create a Python script that allowed me to easily measure the reset time. That way I could attach a module, run the script and measure the time … Continue reading

Posted in Hardware, Python, Tutorials & Help | Tagged , , | 1 Comment

Nintendo Wii Remote, Python and The Raspberry Pi

I was looking for a way to send data to my Raspberry Pi via Bluetooth. Ideally I wanted to do this via an Android tablet and a custom app but I couldn’t get the app to connect. During a large … Continue reading

Posted in Hardware, Python, Tutorials & Help | Tagged , , , , , | 17 Comments

Ultrasonic Distance Measurement Using Python – Part 2

Following on from my Ultrasonic Distance Measurement Using Python – Part 1 article I decided to make my Python script a little bit more sophisticated. In this example the script takes three measurements and calculates the average. This is displayed … Continue reading

Posted in Hardware, Python | Tagged , , , | 4 Comments

Ultrasonic Distance Measurement Using Python – Part 1

This gallery contains 8 photos.

LEDs, buzzers and switches are the most common items people attempt to interface to their Raspberry Pi’s. Something I found in eBay that is a little bit different is an ultrasonic measurement module. This allows you to measure the distance … Continue reading

More Galleries | 19 Comments

Getting Your Raspberry Pi Revision Number Using Python

There have now been a number of different PCB revisions which have made small changes to the design of the Raspberry Pi PCB. In the latest revision some of these changes may affect the operation of Python code developed for … Continue reading

Posted in Hardware, Python, Tutorials & Help | Tagged , , | 1 Comment

Getting Your Raspberry Pi Serial Number Using Python

Every Raspberry Pi has a unique serial number. It is sometimes useful to extract this number to identify the hardware that your Python scripts are running on. The following function “getserial()” can be used to return a string containing the … Continue reading

Posted in Hardware, Python, Tutorials & Help | Tagged , , | Comments Off

Sending SMS Text Messages Using Python

For one of my Pi projects I wanted the ability to send SMS text messages from a Python script. These messages would be sent to my mobile phone and alert me about specific events recorded by my Pi. There was … Continue reading

Posted in Python, Software, Tutorials & Help | Tagged , , , , | 9 Comments

Reading Analogue Sensors With One GPIO Pin

Unlike some other devices the Raspberry Pi does not have any analogue inputs. All 17 of its GPIO pins are digital. They can output high and low levels or read high and low levels. This is great for sensors that … Continue reading

Posted in Hardware, Python, Tutorials & Help | Tagged , , , , , | 7 Comments

20×4 LCD Module Control Using Python

This article is based on my previous article 16×2 LCD Module Control Using Python and 16×2 LCD Module Control With Backlight Switch. 20×4 LCD modules are relatively easy and cheap to obtain. They have the same 16 pin interface as the 16×2 … Continue reading

Posted in Hardware, Python, Tutorials & Help | Tagged , , , | 7 Comments

16×2 LCD Module Control With Backlight Switch

Following on from my article about controlling a 16×2 LCD module with Python and a Raspberry Pi I decided to make a few enhancements. These included : Adding a 10Kohm variable resistor to adjust the contrast Adding a 5Kohm variable resistor … Continue reading

Posted in Hardware, Python, Tutorials & Help | Tagged , , , , , | 5 Comments