Monthly Archives: May 2014

Papilio One: 4 bit binary counter

FPGA implementation of a 4 bit binary counter. Hardware was described using VHDL. The Papilio One comes with a 32 MHz clock but this was divided down to 0.5Hz so you could actually see the counter counting. VHDL code: The … Continue reading

Posted in FPGA, Papilio One | Tagged , , , , | Leave a comment

Papilio One : Flashing an LED at a specific frequency

To flash an LED at a specific frequency we need to divide the input clock frequency. In VHDL this can be done using counters. The Papilio One FPGA board comes with a 32MHz oscillator. 32Mhz means 32 million pulses per … Continue reading

Posted in FPGA, Papilio One | Tagged , , | Leave a comment

Calling a C program from a Python script

This process is made simple with Python’s subprocess module.

Posted in C, Python | Tagged , , , , , | 2 Comments

Cheap and nasty ‘powered’ usb cable

I was trying to connect a wifi adapter to a raspberry pi today but the pi’s usb ports could not supply enough current to the device. A powered USB hub would be the ideal solution to this problem but I … Continue reading

Posted in Hardware, Uncategorized | Tagged , , , , , | Leave a comment