Archive for the ‘device’ Category
Evaluating DS1626
Tuesday, December 13th, 2011
I got some samples from MAXIM some few days ago. Since I was busy studying other stuff I had no time to give them a try. Today I tried the DS1626 Temperature Sensor.
It was very easy to setup in the Arduino environment using the SoftwareSerial library. One problem I had was, that I was not able to write the temperture to my LCD display. I could not figure out why this happens. The LCD code didn’t worked anymore when including the SoftwareSerial header without using any functions of it…
Another problem for me was, that the DS1626 is being delivered in a SOP8 package and I for the first time needed to solder SMD. I used an adapter for SOP28 to DIP28 conversion because I wanted to place the IC on my breadboard. I soldered it successful and it worked right out of the box… ;)
Posted in: arduino, avr, circuit, device, diy, electronics, lcd, news, sensor
Arduino LM35 temperature sensor with LCD Display
Sunday, December 11th, 2011I added my LM35 Temperature Sensor to my Arduino again and added a display to show how hot it is… ;)
I have used the LM35 already some month ago; It is a very easy to setup device.
Here is my Code:
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
float temp;
int tempPin = 0;
void setup() {
lcd.begin(16, 2);
lcd.print("Temperature:");
}
void loop() {
temp = analogRead(tempPin);
temp = temp * 0.48828125;
lcd.setCursor(0, 1);
lcd.print(temp);
delay(1000);
}
Some other sources:
- Arduino LM35 Sensor
- Temperature sensor tutorial – Using the TMP36 / LM35
- Temperature Sensor + Arduino
Have fun with it… ;)
Posted in: arduino, avr, board, circuit, code, device, diy, electronics, hacking, lcd, programming, sensor
Attiny13 Blink example
Sunday, December 4th, 2011
Just to keep and share the code… Here is the code for making a LED blink using an Attiny13 MCU from Atmel.
I got a package with about 30 AVR MCU’s from different kind yesterday and now I will give them all a try. The next step with the Attiny13 is to build a thermometer with a RGB LED as indicator of the temperature. As temperature sensor I will use the LT1025 chip which I tried some days ago. I got many logic IC’s too so it will be a hackish time this december. I will post the code and circuit here in some days when everything is working properly… ;)
#include <avr/io.h>
#include <util/delay.h>
#define LED_PIN PB4
int main(void) {
// Configure LED_PIN (PB4) as output
DDRB |= (1 << LED_PIN);
while (1) {
PORTB |= (1 << LED_PIN);
_delay_ms(500);
PORTB &= ~(1 << LED_PIN);
_delay_ms(500);
}
return 0;
}
Have fun… ;)
Evaluating LT1025
Friday, December 2nd, 2011Today I found a chip named LT1025. It is a Thermocouple Cold Junction Compensator from Linear Technology which is very easy to use for building temperature sensors for measurement and control and can also be used to convert a heat gradient into electricity.
It took about 5 minutes to get it working in the Arduino environment.
Just order some samples from Linear, they will send you one or two without charge… ;)
Posted in: arduino, avr, circuit, device, diy, electronics, hacking
Arduino LM35 temperature sensor
Monday, April 11th, 2011I am ill today and needed to distract me some bit.
I added a LM35 temperature sensor to my Arduino. Since someone did the work already, I only needed to copy some code and setup the wiring on a breadboard. I used the same wiring like in the link. Below is an image of the wiring made with Fritzing. I am using a LM335 for this because there where no LM35 as a Fritzing part available…

I changed some parts of the code to only print the temperature as String to serial. In the original code the data was sent as (byte) over serial to read the value with an application created using Processing. Feel free to change this again… ;) This is the code I used:
float temp;
int tempPin = 0;
void setup()
{
Serial.begin(9600);
}
void loop()
{
temp = analogRead(tempPin);
temp = temp * 0.48828125;
Serial.println(temp);
delay(1000);
}
My output in the serial monitor of the Arduino IDE looks like this:

Posted in: arduino, avr, circuit, device, diy, embedded, fun, hacking, news, opensource, programming, sensor, wiring
Pages
Categories
account acta android app arduino arm attiny automation avr board book circuit code community cross cyanogen denmark desaster deutsch device diy dotnet electronics embedded extension firefox foo fosdem freedom freifunk friends fun games gcc gentoo german gnoduino hacking hamburg header holiday host howto httpd internet irc jabber kernel language lcd led lego leo leo-search life linux matrix mindstorms minimal mobile monitoring nagios netduino network news nxt ooc opensource openwrt pcsc photos php politics programming question recovery robotics rsync scm sensor server service shell simulation smartcard snow soap sweden sylt telemichel toolchain translation vpn website wine wiring wsdl xmpp zsh zynk
$Date: 2011-04-11 16:04:45 +0100 (Mon, 11 Apr 2011) $


