Blog Atom RSS
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
PC/SC for PHP officially released on the PECL platform
Tuesday, December 13th, 2011
I am lucky to say, that my PHP extension for using Smart Cards based on the winscard API was successful released on pecl.php.net. It is designed for the use with the wonderful project PCSC-Lite for *nix. Since PCSC-Lite is implementing the API compatible to the PC/SC standard it should be possible to compile this code on other operating systems too.
I have created this extension in 2010 but needed to clean it up and do some long term tests. It runs nicely on some machines and now you are able to do Smart Card terminal prototyping using PHP. I am using this extension to run Smart Card devices on the server side for enabling communication with Secure Application Modules (SAM) / Hardware Security Modules (HSM).
The name of the extension is “pcsc”. There is only a small subset of the API implemented but for most things this is enough. I will implement the full API at any time.
More information:
To checkout the code you need to execute the following command:
svn checkout http://svn.php.net/repository/pecl/pcsc/trunk pcsc
Thanks to the PHP developers who helped me doing this step and for commenting my code.
Posted in: account, code, language, opensource, pcsc, php, programming, scm, smartcard
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… ;)
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-04 21:20:40 +0100 (Sun, 04 Dec 2011) $










