POWER DESIGNER BATTERY LOGGER CODE
The sd_logger sketch is provide in the attached code repository. The Adafruit website has detail instructions for using the IDE with the Feather M0, see: Arduino IDE Setup The Adafruit Feather platform is supported by the Arduino IDE. Please see the README for programming instructions. SPI Slave - interface to the read pixels from MCUĪ pre-built FPGA image implementing these components is provided in the attached code repository.Image Capture - reads pixels from the camera sensor to memory.I2C Master - configures the camera settings at power up.The first step is to solder stacking headers like these onto the Feather M0 board.
It's an easy fix, though I just cut the pin off the SoM board header to leave it unconnected from Feather's GPIO 10 pin. In this case, the SD card chip select is using pin GPIO 10 which unfortunately is tied to reset on the SoM board. However, SPI also requires a separate slave-specific chip select pin which is not standardized it can be any GPIO. Both boards have a pull-up register on the I2C data pin, but that seems okay in this case. The common pins of the I2C and SPI interfaces are meant to be shared by multiple slaves so that is not usually a problem. The only pins used by the Adalogger are for the I2C interface (real-time clock, not used in this project) and the SPI (SD card). So in the end I have a four board stack ! Since the three main boards are sharing pins, let's check the pinouts for compatibility. The Vision FPGA SoM is a module that mounts onto a Feather pin-compatible board. Since I would be combining the Feather M0 with two separate Wings (Adalogger and SoM), the next step is to check for pin conflicts. I happened to have a Feather M0 WiFi and an Adalogger FeatherWing ( NOTE: There is a Feather that includes both an M0 microcontroller and an SD card which would be a lot more convenient, but was out-of-stock at the time of this build ). Fortunately, tinyVision.ai offers an Adafruit Feather-compatible board for the SoM, so it can be easily used with a number Feather microcontrollers and FeatherWings. In order to collect images, I will need a board with an SD card and microcontroller to transfer images to the card. It's small and includes an FPGA from Lattice Semiconductor as well as a low-power camera module from HiMax Imaging. The Vision FPGA SoM is the target platform for my applications.