Last time we looked at how to write a server application in C++, and call it from Python. This time, we’ll do things the other way around: implementing a service in Python, and calling from C++.
Inspired by the famous XKCD cartoon that started it and by Google’s Peter Norvig over on O’Reilly.com I decided to play some RegEx Golf myself this Easter… If you’re not familiar with the game – the idea is to write the shortest regular expression possible that will select every element of a list, without selecting […]
[latexpage]The Microchip MCP9808 is a high precision temperature sensor with an I2C interface – making it easy to interface with microcontroller or embedded Linux electronics. The chip has a very small form-factor: available as either an 8-pin DFN package – or an 8-pin MSOP package. For hobbiest purposes DFN is almost impossible to use due […]
Xbee modules provide a very simple way to add a wireless capability to communications on Arduino. Essentially they let you work in exactly the same way as a direct serial connection between two boards – albeit wirelessly. The easiest way to connect an Xbee to your Arduino, is to use the Arduino Wireless Shield. It’s […]
In my last post on using sysfs for GPIO on Raspberry Pi, I showed you how you can use the sysfs file system to manipulate the state of the GPIO pins. This time, we’re going to explore how to do the same thing programmatically. I’m going to walk you through developing a C library to […]
The Raspberry Pi (in case you’ve been living under a rock for the last six-months) is a cheap ($25) ARM Linux computer, primarily designed to be used to help teach kids to learn programming & computer science. It’s also makes a pretty nice alternative to something like a BeagleBone, if you’re looking to play with […]
Here’s a video that I made, talking about one way to use seven-segment displays with a microcontroller.
In my previous posts in this series I looked at a couple of ways to use an Arduino to generate analogue waveforms. In this third part I look at a much simpler, IC-based digital to analog (DAC) circuit to provide the waveforms, and look at ways of changing the frequency of the output.