Here is Sir Lancelot, the Lego rover controlled by a Raspberry Pi. I wanted to create an interface between Lego Power Functions and the Raspberry Pi so that the Lego could be controlled from across the internet.
The Raspberry Pi‘s raspbian image comes with oracle-java8-jdk already installed and I wanted to use this with maven. However if you install maven using apt-get it will install all kinds of other JDKs and things you don’t need. The solution to this is to install maven from it’s binary distribution. This is quite easy as everything it needs is already installed.
It has taken me some time to understand how to write a slave driver for this chip so here is a simple example. Every byte received is written to port D so that it can be seen, and when a stop condition is detected all pins on port D are toggled. Reading data from it returns the next value of an 8 bit counter.
Portal 2 has some brilliant ASCII art in it’s ending sequence. Having spent some time copying it for a project, here it is:
For a while now I’ve been programming AVR chips with the GPIOs on my Raspberry Pi. It’s very useful to me and I thought I’d documet it here as I will probably mention it in future blog posts too.