Communicating with an Arduino on a Pi

Yesterday I wrote about how I managed to get an “Arduino” (or at least the AVR ATMega328 chip which powers one) attached to and programmed by my Raspberry Pi. However exciting a blinking LED may be, though, it’s not much use if the only way to change its behaviour is to completely re-program the chip. …

Continue reading ‘Communicating with an Arduino on a Pi’ »

Detective work on PiFace Control and Display

Having wasted all my free time yesterday on trying to find out how the PiFace CAD is interfaced to the Raspberry Pi, I thought I’d take a different approach today. When I was last working with SPI, I used my trusty Saleae Logic analyser to find out what was happening, so I thought I’d connect …

Continue reading ‘Detective work on PiFace Control and Display’ »

Using the bcm2835 C library for SPI

Yesterday I used Gordon’s WiringPi library to successfully read analogue voltage values from an MCP3002 chip over SPI. My plan for today was to try and read data as fast as possible, to begin building one version of an ultrasonic “bat detector”. However, I got a bit distracted.. When I looked in detail at the …

Continue reading ‘Using the bcm2835 C library for SPI’ »

Another try at reading a MCP3002 ADC with Bus Pirate

A few months ago I got somewhat stuck trying to understand how to “join the dots” between the Bus Pirate and a MCP3002 SPI analogue to digital converter (ADC) chip. Finally I abandoned the effort and moved on to other things. More recently, however, I have succeeded in sending data to a MAX7219 LED matrix …

Continue reading ‘Another try at reading a MCP3002 ADC with Bus Pirate’ »

Controlling a Slice of Pi/O with Python

I recently got a comment on my article from 1st February about Soldering a Slice of Pi/O asking for some help in programming it in Python. This reminded me that I have not got very far with this little board beyond checking that the Raspberry Pi could see it. So I decided to see what …

Continue reading ‘Controlling a Slice of Pi/O with Python’ »