skip to content
AdaWiki
User Tools
Log In
Site Tools
Search
Tools
Show page
Old revisions
Backlinks
Recent Changes
Media Manager
Sitemap
Log In
>
Recent Changes
Media Manager
Sitemap
You are here:
start
»
tutorials
»
library
»
arduino
»
hacks.html
Trace:
tutorials:library:arduino:hacks.html
==== Bumpers ==== Having the conductive traces touch your table is not so great, you can protect your Arduino by adding bumpers to the bottom {{ http://www.ladyada.net/images/arduino/decimillabumper_MED.jpg?nolink&350x237 |}} You can buy these from McMaster Carr part no. [[http://www.mcmaster.com/nav/enter.asp?partnum=95495K66&pagenum=3612|95495K66]] (in large quantities) or your local hardware store. ==== Free up some RAM ==== If you're working on a project that needs **a lot** of memory, you can free up 100 more bytes (10% of the RAM on an ATmega168!) by lessening the serial receive buffer. By default its 128 bytes, which is quite a bit! Open up **hardware/cores/arduino** (or **cores/arduino**) directory, and edit the file named **wiring_serial.c** or **HardwareSerial.cpp** Near the top is a** #define RX_BUFFER_SIZE 128**, which means 128 bytes are used for the buffer. You can change this to 32 (or even 16!). If you have almost no serial input, make it as low as you'd like as long as its > 0. {{ http://www.ladyada.net/images/arduino/rxbuffermod.jpg?nolink&682x352 |}} You can also save another 2 bytes by changing **rx_buffer_head** and **rx_buffer_tail** from **int** to **uint8_t**
/home/ladyada/public_html/wiki/data/pages/tutorials/library/arduino/hacks.html.txt
· Last modified: 2016/01/28 18:05 (external edit)
Page Tools
Show page
Old revisions
Backlinks
Back to top