Archive for the ‘avr’ 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, 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, lcd, programming, sensor
My AVR Development Board
Friday, December 9th, 2011I build a new dev board for my AVR and Arduino development. My old one really was too small… Since I am daily are working on the evaluation of all the nice and tiny IC’s in my electronics box I needed this. Maybe it will become too small in some time but currently it helps me a lot.
It consists of two large breadboards and a wooden panel underneath with four rubber foots. I will work on optimizing this in the future and maybe I will write a document, describing how to build it like mine… ;)
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… ;)
Pages
Categories
account acta amsterdam android app arduino arm attiny automation avr beach board book circuit code community cross cyanogen denhaag denmark desaster deutsch device distribution diy dotnet electronics embedded extension firefox foo fosdem freedom freifunk friends fun games gcc gentoo german gnoduino hamburg header holiday host howto httpd internet irc jabber keitum kernel language lcd led lego leiden leo leo-search life linux madurodam mariadb matrix mindstorms minimal mobile monitoring moon music mysql nagios nas netduino netherland network news nxt ooc openmediavault opensource openwrt pcsc photos php politics programming question recovery robotics rsync sabayon scm sensor server service shell simulation smartcard snow soap space sun sweden sylt techno telemichel toolchain translation vpn website wine wiring wsdl xmpp zsh zynk
$Date: 2011-12-02 16:09:44 +0100 (Fri, 02 Dec 2011) $

