January 12, 2013

Arduino based data logging thermometer in IKEA RIBBA frame


And featured on Hack A Day, too!



I was looking for a nice enclosure to host my latest project (an Arduino baased data logging thermometer with multiple sensors) and, once again, I came to an Ikea product, a RIBBA photo frame that has enought space to host my project circuitry:



My idea was to relocate the back of the frame in line with the rear edge to use the empty space present in RIBBA:



Here's the back:



held in place with these tiny metal strips:


The inside of the frame seems to be a very convinient project box:



After removing the inner piece of paper, there's a nice cardboard frame I'm planning to keep in place:



Here's my idea: to put the LCD in the middle and all the circuitry nearby, masking the clear glass with tracing paper (to have a blurry vision of the circuit boards):



Here are all the circuits and components I have to fit in the frame, placed in the definitive places:



I've started putting some plastic spacers in the corners:



fixing them with hot glue:



Spacers are cut to size to leave enought space to fix the back of the frame.

All the circuitry is fixed to the back of the frame "sewing" the circuit boards with some thin wire that passes on top of the stripboard...



...and is fixed on the back of the frame with simple knots:



For example, here's a detail of the stripboard hosting the pushbuttons, with the "sewing" wire passing on the top of the board...



...and ending with two knots on the back:



Here's where the temperature sensors are connected to the thermometer, near the power connector (one sensor is hosted on the back of the thermometer itself):



Power is given by four AA batteries (in a battery holder provided with a switch) or by a wall adapter (connecting the wall adapter to the power connector, batteries are automatically disconnected).

Here's the blurry view of the electronics given by a sheet of tracing paper:



And here's the final view I'm going to achieve putting back the original cardboard frame:



To have a clear view of the LCD, I've cutted to size a window in the tracing paper:



Here's the back (hosting the circuitry) in place:



The SD card holder is on the outside for easy insertion/removal.

And here's the front:



Here's my thermometer in place and working to show temperatures and log data!


UPDATED: featured on Ikea Hackers!

UPDATED: featured on Hack A Day!

January 3, 2013

Thermometer with data logging and multiple sensors

After my first experiments (here and here) with Dallas One-Wire temperature sensors, I've decided to realize a thermometer that was able to log temperatures coming from multiple sensors, adding date/time information (coming from a Real Time Clock).

Here's the outcome: a thermometer based on Dallas DS1307 sensors on a Dallas One-Wire bus, logging data on an SD card. Information are showed on a 2x16 LCD.

Thanks to three push buttons you're able to perform different tasks.

The first pushbutton is used select showing mode on LCD (alternating time/date show, single sensor temperature show or scanning sensors temperatures).

The second one is used to enable/disable logging data on SD card.

The third one is used to temporarily switch LCD backlight on.

There's a LED to show when logs are written on the SD.

When the "mode" push button is kept pressed during reset, verbouse startup is done (i.e. all sensor addresses are shown, together with other information like the number of sensors that has been found, the refresh period and the file name used for logging).


When the "end-log" push button is kept pressed during reset, temperatures logging is not done (i.e. it is possible to use this digital thermometer without an SD card inserted in its slot).


Temperatures are logged every temperature-refresh cycle.


Log file is closed each cycle (so it is safe to switch power off when the writing-status LED is off, e.g. right after an entry has been written - or you can use the "end-log" push button to end logging and safely switch off the thermometer).

When enable/disable log push button is pressed, logging on file is enabled/disabled (untill a reset, the same log file is used in append).

Temperatures logging is started on a new file each reset (to start loggin on a new file, press the reset button or switch the Thermometer off and on).


When the third "LCD backlight" push button is pressed, LCD backlight is temporarily switched on.


Date/time showing and date/time information in log files are based on a Real Time Clock module (using a Dallas DS1307 chip).


This is the schematics I've used to realize this thermometer:




It shows how the different components are connected to my Arduino 2009 board.

And (after several iterations...) here's the code I'm using:

DigitalThermometerV3final.pde
(compiled with Arduino IDE 0022)

If you're going to give it a try, send info/link to your work in the comments.

UPDATED: since I don't like to waste my precious Arduino hosted in a project, I've realized a stand-alone version on a single stripboard hosting a minimal version of Arduino, an LCD with a basic interface, the PNP transistor to control LCD backlight, and a 3.3V and 5V supply circuitry



I've connected to the stripboard a One-Wire bus for the temperature sensors, a small stripboard hosting the three pushbuttons (in enabled internal pull-up resistor configuration), the LED, the SD Card module, the RTC module and a power jack to give power to the unit (I'm planning to use a battery pack or a wall adapter).

November 24, 2012

TI Stellaris LaunchPad Evaluation Kit Unboxing

I've finally received from Texas Instruments the Stellaris LaunchPad Evaluation Kit!!!

It was 4.99$ free shipping worldwide! It took quite long to arrive but it's here!

Here's the unboxing.

the external cardboard box...


and well protected inside...


the evaluation kit cardboard box


the back of the box...


opening the box a "welcome" quick guide...


under the guide, the board!!! protected in antistatic bag...


a "Start Here" inviting to flip the cardboard...


to find a micro-USB/USB cable...

nice box, with a "Happy coding" by the Stellaris MCU Team under the cable...

the contents of the box...


here's the Stellaris LaunchPad board!!!


and the back of the board...


the board arrives pre-programmed with a simple program changing the color of the embedded RGB LED (the color can be changed also pressing the embedded user push-buttons on the board)...


can't look forward to playing with it!

June 24, 2012

Hackvision retro gaming consolle in Ikea Rationell Variera


I was planning to put my Hackvision in a pleasant enclosure, that was compact and comfortable enough to be used with ease. Hackvision is an astonishing retro gaming platform based on Arduino.

I went to the Ikea store and eventually discovered the Rationell Variera box (24 x 17 cm):
It is really nice to be handled and beautiful in white gloss.

Of course, I'm going to use it the other way around:



I've bought a retro gaming joystick and three retro gaming push buttons, too (one of them is lit up by an internal LED - I'll use it as a power-on indicator).




Two linear potentiometers (10K) with knob complete the hardware needed to interact with this retro gaming consolle.

I've decided where to put the controllers:




And made some holes with the help of a 2cm drill bit for wood. Here's the shcema I've followed to wire the controllers to the Hackvision board (with the help of the official Hackvision pinout and the official instructions tu build two paddle controllers that will replace my old ones):



Here's my new consolle (front view):



and rear view (the RCA audio and video connectors are visible on the back side):



All the electronics (Hackvision board, battery holder etc.) fit nicely inside the enclosure. Now I'm ready to play Space Invaders, Pong, and the other available games.

UPDATED: featured on Ikea Hackers!

May 6, 2012

My own realization of Hackvision

To save my precious Hackvision, relying on the fact that it is very similar to an Arduino board, I've first loaded Hackvision firmware to my 2009, adding A/V connection through this one.



Everithing worked fine, so I've moved to a standalone version of a minimal Arduino (smilar to this one), adding a battery holder and a voltage regulator (similar to this one, because I also wanted to power a connected Wii Nunchuk with 3.3V rather than 5V), and put everithing in one of these project boxes).




Now, my precious Hackvision is free to experiment with.

Arduino TVOut Library Hardware Setup

Since I want to use this amazing TVOut library (composite video output library), I've realized a small circuit following the main directions on the main TVOut page and the good modifications added for the Hackvision board (by nootropic design).

Here's the schematic on a stripboard:



And here's a picture of a realization (using a double RCA connector salvaged from old electronics):


March 25, 2012

My own paddles for Hackvision

Following these easy instructions I've realized my own version of two paddles to play Pong with my Hackvision.






I've used two candy metal boxes, made holes for the potentiometer and push-button, and fixed cables with hot glue.


The pinout of the connectors reflects the pinout on the board.