Porting SparkFun Inventor’s Kit to Raspberry Pi and Python using nanpy

Aim: having just figured out how to make an Arduino slave to the Raspberry Pi (see this post), it’s time to see what is possible using this set up. SparkFun have created (IMHO) a really nice set of circuits as part of their ‘Inventor’s Kit v3.2′. The aim for the next twelve posts is going to be to follow their circuits, porting the Arduino code to Python using the nanpy Python library.

Circuit 1: Blinking an LED – now we covered this in our first post looking at setting up the Arduino as slave (here).

Circuit 2: Potentiometer – this involves using a potentiometer to change the rate at which an LED blinks. A potentiometer is just a fancy name for a variable resistor. A resistor is very simply, something we use in electronics to control the current flowing through a circuit. The higher the resistance, the lower the current (see Ohm’s law for more on this relationship). We are now able to measure this using an analogue pin on the Arduino and make use of it within a Python programme running on our Pi!

IMG_20141221_193117.jpg [continue reading]

Tim Greenwood

Tim currently works for Living Systems. His background is in psychology, and he has been working as a psychologist within education and the community for the last ten years. He recently gained a Masters of Arts in Management, Learning, and Leadership from Lancaster Business school focusing on the use of Action Research to promote curious and evolving ways of working with individuals, groups and organisations.

More Posts - Website

Published by

Tim Greenwood

Tim currently works for Living Systems. His background is in psychology, and he has been working as a psychologist within education and the community for the last ten years. He recently gained a Masters of Arts in Management, Learning, and Leadership from Lancaster Business school focusing on the use of Action Research to promote curious and evolving ways of working with individuals, groups and organisations.