On June 3rd I had a short presentation on Arduino basics, part 2 in the Hamburg (Germany) Makerspace Attraktor .
The participants learned about the serial communication (USART) and the ADC both with the Arduino IDE, how to program in C/ C++ and how to manipulate the registers directly.
The paper (pdf) is downloadable here (sorry folks, it's only available in german).
ThermalCam with MLX90614, Arduino UNO, XBee Series 2 and prototyping shield
A project I'm working on for some weeks now is a cheap ThermalCam based on the Melexis MLX90614 IR sensitive thermopile detector chip (more on the chip from Melexis: MLX90614 )
There are lots of people out there, who already built a working version with this $35 device, but most of them use a wired connection and a Java graphical user interface (GUI).
I wanted to get the thing wireless and also to build my own GUI where I may customize some things that I miss with the Java-version. I chose a XBee Series 2 configured as a Router AT with 57600 baud and Processing for the GUI. I'm already done with the data transmission part. I can control the ThermalCam with some buttons in the Processing sketch and get the data out of the chip but it still lacks a nice GUI and a webcam overlay.
This awesome project was first developed by two german pupils Markus Kohl/ Max Ritter for "Jugend forscht 2010" (german science competition for pupils). Well done!
I already made some thermal images with the Java program and here are some examples.
Sitting at the desk, waving my hand. Background dark blue: windows, right orange square: tft screen
Raspberry Pi with voltage regulator (left bottom), main chip (middle) and ethernet chip (right)
Laptop laying flat on the ground, upper half display, lower half keyboard/ mainboard
4/02/2013
Arduino UNO Rev. 2
Arduino basics presentation
On April 1 I had a short presentation on Arduino basics in the Hamburg (Germany) Makerspace attraktor .
The participants learned about the Arduino environment, the IDE and how to program a sketch so that it blinks an led.
The paper (pdf) is downloadable here (sorry folks, it's only available in german - again).
3/04/2013
XBee Series 2
XBee presentation @ Makerspace Attraktor
On March 4 I had a short presentation on XBee modules in the Hamburg (Germany) Makerspace attraktor .
The paper (pdf) is downloadable here (sorry folks, it's only available in german).
This is part 2 of the electronic compass with the video and the Arduino sketch.
Video:
Sketch:
/*****************************************
* Compass with Pollin HDMM01-compass-module
* and Nokia 5110-display
* Last edit: 3.1.2013
* By Markus Ulsass
******************************************/
/*******************************************************************************
* This is an example sketch for our Monochrome Nokia 5110 LCD Displays
*
* Pick one up today in the adafruit shop!
* ------> http://www.adafruit.com/products/338
*
* These displays use SPI to communicate, 4 or 5 pins are required to
* interface
*
* Adafruit invests time and resources providing this open source code,
* please support Adafruit and open-source hardware by purchasing
* products from Adafruit!
*
* Written by Limor Fried/Ladyada for Adafruit Industries.
* BSD license, check license.txt for more information
* All text above, and the splash screen must be included in any redistribution
*******************************************************************************/
Some projects have mixed supply voltages (e.g. 5 Volt and 3.3 Volt) and sometimes integrated circuits don't work with those unequal signal levels - or worse get damaged by the higher level supply signals.
Level shifter pcb
In case of the XBee which is driven by 3.3 Volt up to now I added a simple resistor divider to get the signals down to the lower supply level (see this older post ). But even if you feed the XBee without translating the different supply levels, I never got any problems (but I wouldn't recommend).
It might look slightly different with the Raspberry Pi, so to be on the safe side I built a simple 2-bit bidirectional voltage-level translator circuit for the alleged thin-skinned RasPi. You just need four 10k resistors, two BSS138 (N-Channel Logic Level Enhancement Mode Field Effect Transistor) and two four-pin headers.
I etched the board by myself but if you want to take the short way, there are already breakout boards and ICs available (e.g. Sparkfun Logic Level Converter, TXS0102 from Texas Instruments or ADuM1250/ ADuM1251 from Analog Devices).
Anyway I wanted to do some practice with my favourite pcb layout software Eagle and designed this simple pcb.
How does the level shifting work? If nothing happens on the bus (in this special case on the I2C-bus, thats what the pcb is labled for, but it also works with RX/ TX or any other 2-bit bidirectional digital purposes) all signals are pulled high by the 10k resistors. If either side goes low, the N-Channel MOSFET steps in and also pulls the signal line low, either because it turns on (low level side) or passes through the body diode (high level side).
Just a note to a little project I'm building at the moment - an electronic/ digital compass:
There is no XBee involved - but a Nokia5110 lcd display, an Arduino Nano, a 2-axis compass module (HDMM01) and a HCF4050 for level-shifting. Of course you could add a XBee if you are using the compass for a robot or other mobile project.
And yes - the Halloween project is still to be posted. Just give me some more time.