Saturday, January 26, 2013

1 Wire Serial Temperature Sensor (No need to calibrate!)

So this is a great little temperature sensor I got for the Arduino.  No need to calibrate or map or anything, it gives you the temperature straight up via a 1 wire serial interface.

Here is the sensor:
Temperature Sensor: $2.53
The datasheet

I followed instructions here to get it to work with the Arduino Mega:
Keyes modules blog

It works just fine on the Arduino Mega.  I will have to see if I can get to work on my Raspberry Pi!

Thursday, January 17, 2013

RTC for Arduino

The real time clock makes it so that the Arduino knows what time it is.  This is useful for timestamps in datalogging.


Component:
http://www.fasttech.com/products/0/10000007/1012004-tiny-i2c-rtc-ds1307-at24c32-real-time-clock-module

Help:
The arduino wire library documentation


Arduino with SD Card

I am not the first or the smartest to record my Arduino projects.  But I'm writing this so that even if it helps none of you, I can save myself four hours next time I decide to get out a certain part.

Components Used:

Resources:
I downloaded the latest version of SD library from adafruit's github
I followed instructions from adafruit
I had a look at the Arduino SPI reference and looked at the SD card notes
I found Profmason's site useful too.

Once the wiring is right try the cardinfo example from the SD library and it should work!

Problem:  I got all the wiring wrong because I have a mega.  
Solution: follow the wiring in the CardInfo example Source

Problem:  My card didn't work
Solution:  It was an MMC card, it needs to be FAT and SD