SPI sdcard device (lesson)
introduction
SPI is a synchronous serial interconnect with a protocol definition used to connect to computer devices (see also SPI devices).
We will first study some code examples to see how others have written device drivers that are used in
- computers, such as the raspberry pi, and
- micro controllers such as ESP32 and the pico,
- and research available devices.
aim
Students are to add an SPI sdcard carrier to their raspberry pi to obtain supplementary storage.
basic outcome
- research links to code examples
- understanding of SPI
- a functioning supplementary sdcard storage device, which appears on reboot.
advanced outcome
Students are to explore attaching an SPI sdcard carrier to provide secondary storage on a pico.
devices
- ethernet https://www.raspberrypi-spy.co.uk/2020/05/adding-ethernet-to-a-pi-zero/
- sdcard carrier https://ralimtek.com/posts/2016/2016-12-10-raspberry_pi_secondary_sd_card/
for pico
- sdcard carrier https://microcontrollerslab.com/micro-sd-card-module-raspberry-pi-pico/
- sdcard carrier https://www.instructables.com/Raspberry-Pi-Pico-Micro-SD-Card-Interface/
- ethernet https://www.raspberrypi.com/news/how-to-add-ethernet-to-raspberry-pi-pico/#:~:text=Go%20grab%20your%20Raspberry%20Pi,the%20board%20is%20plugged%20in.
references
- SPI interfaces https://github.com/raspberrypi/documentation/blob/develop/documentation/asciidoc/computers/raspberry-pi/spi-bus-on-raspberry-pi.adoc
- https://mounishkokkula.wordpress.com/spi-of-raspberry-pi/
- https://hackaday.com/2022/02/01/did-you-know-that-the-raspberry-pi-4-has-more-spi-i2c-uart-ports/
- https://www.mathworks.com/help/supportpkg/raspberrypiio/ug/about-spi-interface-on-the-raspberry-pi-hardware.html#:~:text=You%20can%20connect%20two%20SPI,one%20of%20the%20CE%20pins.
- https://raspberrypi-aa.github.io/session3/spi.html
- https://raspberry-projects.com/pi/programming-in-c/spi/using-the-spi-interface
- https://radiostud.io/understanding-spi-in-raspberry-pi/
- http://www.penguintutor.com/electronics/rpi-arduino-spi
- https://tmurphy.physics.ucsd.edu/phys122/lectures/04-pi-iface.pdf
- https://pi4j.com/documentation/io-examples/spi/
- ADC 8 channel 10 bit https://raspberry.piaustralia.com.au/products/mcp3008
- sdcard
- https://learn.adafruit.com/adafruit-microsd-spi-sdio/using-sdcardio
- https://www.youtube.com/watch?v=JrYT7aJnP_I
- https://www.auscomtech.com.au/product/new-micro-sd-card-module-spi-for-arduino-pic-raspberry-pi/
- https://core-electronics.com.au/guides/raspberry-pi-pico/makerverse-micro-sd-adapter-micropython-guide/
- 'bug https://github.com/adafruit/circuitpython/issues/6290
- pico https://microcontrollerslab.com/micro-sd-card-module-raspberry-pi-pico/
- pico https://www.instructables.com/Raspberry-Pi-Pico-Micro-SD-Card-Interface/
categories
identify SPI devices and update the list.