Tag Archives: featured

Little Home Lamp

Little Home Lamp
Cute Little Home lamps.

Introduction

Little Home lamps define what a companion light is. It is present, it’s gentle, and it’s in tune with you.

Try it!

You can take it with you wherever you go. It is pocket-sized and battery powered allowing you to move it with ease from one place to another. Will you dare to simply take it to your favourite café or to work?

It is a soft and gentle light that will make you smile! Brightness can be adjusted according to the surrounding luminance.

It is always in tune with you. A control button allows you to select the colour that best matches your mood.

Love it!


How to start?

Ingredients

  • 3D printed parts
    • In the photo (above) you can see  a derivative of  Stone cottage.  We added a small fit for the electronics and the battery.
    • Notice that these cute lamps work best with translucent filament.
  • PCB component list
    • ATtiny45 (or 85)
    • WS2812B led
    • MCP1640
    • capacitors: 0.1 μF, 22 μF (2).
    • resistances: 330 kΩ, 560 kΩ, 4 MΩ.
    • inductor: 4.7 μH.
  • You’ll need a bit of magnet wire, roughly two 10 cm wires
    (depends on the size of your object), and some bare paint, for the capacitive sensing buttons (BT1, BT2).
  • Batteries: whatever works best for you. Lithium batteries tend to have less self discharge, hence will last longer. (BAT in the schematics)

PCB assembly 
Schematics
Little Home Lamp
Little Home lamp schematics

We build the pcb, but you can use a perfboard or just mount it on a breadboard. The pads on the left will allow you to program the ATtiny (if you use an smd ATtiny).

PCB 

casinhapcb

PCB3D
Little Home pcb layout. The WS2812B 3D component model  is missing. We’ll update the file once the pattern is ready.

 

You must solder one wire to BT1 and the other to BT2. Each should be connected to a generous drop of bare paint that you place on the surface of the house. We chose the chimney for this. This bare paint drops will be your capacitive buttons: one to control the light intensity and the other to control the colour. You can read more about capacitive buttons here.

casinha_buttonschimney2 casinha_buttonschimney1

Capacitive sensing buttons

Add the battery and program the ATtiny (our source .ino file) and you’re done!

We chose a house to host our light project, but you can easily replace it by any other shape/design. Be creative and let us know all about it!

Don’t forget to HAVE FUN!

 

Building a (fast) low resolution light spectrometer

Motivation

Despite the limitations that a low resolution light spectrometer
has (like the inability to detect the atmosphere absortion bands),
it still can be useful to investigate the light spectrum from
multiple light sources, like the Sun, the Moon, LEDs and mercury lamps.

Methods

The output of a light spectrometer is a wavelength dependent light intensity, to archive this the light to be analysed has to be separated into its constituent wavelength. This separation can be done with a prism or by grating, on this post we will use the second. The working principle can be find here.

Material

– Support box – this will provide the support for the webcam, grating and slit, ensuring that all of them have the proper alignment.

specbox

The main requirements of this box are that the grating support makes a 60 ° angle with the horizontal (we also tried 45 °, but the results were not better) and ensure that the camera always fit exactly on the same place.

– Slit – the slit is in a panel that should fit on the open face of the “box”. It should be very narrow for better resolution of the spectrometer, however the resolution is limited by other factors in this case making less important the width of the slit. We tested with multiple slit widths 0.8mm worked well, less narrow slit adds sensibility to the spectrometer.

slit

– Filter – this setup is missing a collimator mirror, this requires that the light being analysed  is already collimated. The sunlight is nearly collimated and can be analysed directly, but other point light sources need some kid of correction. Failing to apply collimated light will create too many reflections on the grating with disappointing results.

20150809_223002
Filter, 3D printed with transparent PLA

The 3D printed filter is not great, but it is better than no filter.

– Grating – the grating is a surface with very closely spaced holes, this  is not easy to fabricate at home, but an old CD would do, you can also buy a grating on ebay.s_20150809_233101

– Webcam

We used a very cheap webcam (costed ~ 10CHF), a better camera would be a major improvement, this camera has the advange of being very small but has only 0.3 MPixel.

s_20150809_232736

 

All the parts together

Glue a small piece of CD into the grating support, making sure that all the support is covered.

20150809_223019

Fit the silt panel in the open face of the box.

20150810_032953

Finally out the camera and the filter in place.

s_20150809_232943

And the hardware is ready!

The Software

Just a quick python script, using OpenCV for webcam image manipulation and matplotlib for plotting. You can download it at the bottom of the page.

prog
Grating Spectra up and running

The figure above shows the spectrum of a white led. As you can see the resolution is not great, the rainbow looks a bit blur. Despite the blur and aliasing, the spectrum is very clear. Also this spectrometer is very fast, we can analyse 20 spectrum per second!

Downloads:

grat_spectra.py – Python software
box.scad – drawing files for 3D printing.