Recording Sound to an SD Card with a Microcontroller.

Recording Sound to an SD Card with a Microcontroller.

In one of my previous articles we learned to work with an SD card, and of course it would be good to put that knowledge into practice. That's how the idea of recording sound to an SD card and then listening to it on a computer was born. We won't be able to make anything worthwhile, because we can't create new files or increase their size; these limitations are imposed by the library. But the principles of working with sound laid out in this article...

Connecting an SD Card to a Microcontroller.

Connecting an SD Card to a Microcontroller.

In one of my previous articles we displayed an image from an SD card on a display, but a few points were left out: first, connecting the card itself; second, only some of the Petit FatFs library functions were covered. Let's look at these points in more detail. Communication with the card is possible over one of two interfaces, SPI or SD. I should say that the SD interface can work in one-bit...

Displaying an Image on a TFT Display from an SD Card, Using the SSD1289 as an Example.

Displaying an Image on a TFT Display from an SD Card, Using the SSD1289 as an Example.
Дисплеи

In the previous article we converted an image into an array and wrote this array to an SD card; now let's try to display it on a TFT display. To work with the SD card, we'll use the Petit FatFs library, which is designed for 8-bit microcontrollers with little memory. The library consists of 5 files: integer.h - a header file that describes the basic data types...

Displaying an Image on a TFT Display from an SD Card, Using the SSD1289 as an Example (Converting an Image to an Array)

Displaying an Image on a TFT Display from an SD Card, Using the SSD1289 as an Example (Converting an Image to an Array)
Дисплеи

In previous articles we dealt with the TFT display and the resistive touch panel; to master all the capabilities the module offers, let's try connecting the memory card, namely writing an image to an SD card and displaying it. Jumping ahead a bit, I'll say that the binary of the image (320x240) came out at 150K, while the Atmega16 has 16K of flash and 1K of RAM, so no matter...