The Raspberry Pi is a single board computer (SBC) based on an ARM processor aimed at teaching young people about computers and programming. FTDI have developed an expansion module for this Raspberry Pi based on the FT2232H, the RPI-Hub-Module. This application note explains how to use the RPI-HubModule as an SPI master to read an external ADC. Schematics and sample code will be provided.
The Raspberry Pi is a single board computer primarily running Linux OS. The board has a number of IO ports for developing applications with, including 2 USB host ports. With the RPI-Hub-Module connected to the Raspberry Pi USB port, FTDI can demonstrate using an FTDI chipset operating on an ARM processor running Linux to expand the IO options of the Raspberry Pi while also offering buffered protection to the processor from badly connected external peripherals.
This application note assumes the user has already created a working Linux image on an SD card and the Raspberry Pi is already functional. This application note will show how to connect the RPI-Hub-Module to the Raspberry Pi and install FTDI drivers to control the module. The application note will then explain how the module may be used to read values from an external ADC device over the SPI interface.