The SRAM Tinyshield allows you to add memory to your TinyDuino projects that can read and write at a virtually instant rate. Here's a quick tutorial on how to get started with the SRAM Tinyshield.
Note: The resistor on R5 can be swapped to R6 to change the Chip Select Pin to pin 6.
On top of your TinyDuino processor, stack your USB and SRAM TinyShields. Plug a MicroUSB cable into the USB TinyShield, and plug it into a free USB port on your computer. Make sure the processor is switched on.
First, open the Arduino IDE. If you don't have it installed, check out our TinyDuino Setup Tutorial. Download and install the SRAM library, which can be found here, or on the SRAM TinyShield product page. Under to the Sketch tab, go to Include Library>Add .ZIP Library. Find and select the SRAM library .ZIP folder in your downloads folder, and press "Open". The library should now be installed.
This example program is also in the SRAM examples tab from the library.
Select the correct processor type (Arduino Pro or Pro-Mini, and 3.3v 8mHz if you're using the TinyDuino Processor) and Com port, then press the upload arrow.
Once the upload is complete, open the Serial Monitor, which is a magnifying glass icon at the top right of the Arduino window. Make sure that 9600 baud rate is selected. You should see that text is continuously being printed to the serial monitor.
This program writes a string of text to a specific memory address and then reads back the text from memory. The text that is read back is then printed to the Serial Monitor. You can play around with the program by changing the text that is written to memory, or changing the memory address that it is written to.
As always, if you have any questions or feedback, feel free to email us at email@example.com.
Show us what you make by tagging @TinyCircuits on instagram, twitter, or facebook so we can feature it!
Thanks for making with us!