LED Kaleidoscope

by Gammawave in Workshop > 3D Printing

4023 Views, 38 Favorites, 0 Comments

LED Kaleidoscope

DSCF4379_2.jpg
DSCF4352.JPG

Your typical Kaleidoscope is an optical instrument with two or more reflecting surfaces tilted to each other in an angle, so that objects on one end of the mirrors are seen as a regular symmetrical pattern. The reflectors are usually enclosed in a tube, containing on one end loose coloured pieces of glass/plastic or other combinations of transparent and opaque materials to be viewed. Rotation causes materials to move creating random patterns.

This version closely follows the general design however, were your typical Kaleidoscope uses physical elements that move under the influence of movement this version used LED's to display everchanging random patterns.

The patterns are displayed on a Zip tile for Microbit, this contains 64 LED's in an 8 x 8 matrix which are controlled by the Microbit.

Downloads

Supplies

MicroBit

ZIP Tile LED Display

Plastic Mirror 212mm long x 40mm wide - Qty 3

BlocksCAD

10mm M3 X M3 Hex standoff threaded hole & screw - Qty 6

15mm M3 X M3 Hex standoff threaded hole - Qty 3

3mm x185mm rod - Qty 3

M3 X 10mm countersink screw - Qty 3

Masking tape.

2mm drill bit.

Pliers.

M3 box spanner.

Scissors.

Aperture Ring and Carrier Design

kaleidoscope.jpg
kaleidoscope_ring.jpg

These elements are designed using BlocksCAD and are 3D printed.

The carrier supports the Zip tile and Microbit in place and into this is inserted the aperture ring.

The aperture ring is a press fit into the carrier and once pressed into the carrier rotates freely by turning with the knurled edge.

The three mirrors in the form of a Triangular prism sit in the recess in the Aperture ring.

With these elements in place the image is viewed between the mirrors and rotation of the aperture ring allows the display of the existing pattern to the varied.

Support and Eyepiece

kaleidoscope_eye.jpg
kaleidoscope_support.jpg

These elements are designed using BlocksCAD and are 3D printed.

The Supports slide over the reflectors and are spaced at intervals and in conjunction with the rods form the body of the kaleidoscope.

The Eyepiece fits over the end and caps off the body.

3D Printed Hardware

DSCF4344.JPG
DSCF4345.JPG
DSCF4361.JPG

3D printed elements consist of the Supports and Eyepiece additional to this the Aperture ring and Carrier which are printed as two separate elements that are then clipped together.

Microbit and ZipTile Assembly

DSCF4346.JPG
DSCF4347.JPG
DSCF4349.JPG

The Zip tile is attached to the Mircobit by five M3 bolts and cylindrical spacers.

Both elements are orientated with the LED's facing upwards and the Microbit visible enabling easy operation of the A button.

However, the Microbit can be mounted in invisible mode on the back reducing the profile if required.

Details for the Zip tile and assembly options are given at the following link:

https://resources.kitronik.co.uk/pdf/5645-zip-tile...

Display Assembly

DSCF4350.JPG
DSCF4343.JPG

The Display assembly consists of the Zip tile, Microbit, Aperture Ring and Carrier.

The Zip tile + Microbit are slid into the underside of the carrier and held in place by the close tolerance of the design.

The carrier supports the Zip tile and the Aperture sits central to the Zip tile.

Reflectors

DSCF4360_2.jpg
DSCF4359.JPG
DSCF4358.JPG

The reflectors or made up of three rectangular mirrors formed into a triangular hollow prism and held together with tape.

The mirrors are made of plastic making them easy to cut whilst at the same time being less fragile than glass.

These were cut from a single sheet with a portable table bench saw although a hand saw could be used if clamped along the full length of the edge to be cut to prevent breakage or movement resulting in scratches or an uneven cut.

The triangular hollow prism is placed end on to the Aperture within the triangular recess.

The ZIP tile mounted at one end is then viewed through the centre of the hollow prism.

Assembling the Body

DSCF4372.JPG
DSCF4366.JPG
DSCF4364.JPG
DSCF4365.JPG
DSCF4367.JPG
DSCF4363.JPG
DSCF4362.JPG
DSCF4369.JPG
DSCF4371.JPG
DSCF4370.JPG
DSCF4368.JPG
DSCF4375.JPG
DSCF4374.JPG
DSCF4373.JPG
DSCF4376.JPG

The assembly process is shown in the accompanying images in addition to the following description.

Using one of the Supports place it over the Aperture ring and align the centre triangle.

With a pen mark the Aperture through the three holes in the Support.

With a 2mm drill bit make three holes at the points previously marked, into these holes screw a standoff.

Take each of the rods and taper each end with a knife/file/pencil sharpener subject to the material.

If metal rods are used then threads will need to be cut on the ends at this point.

Fit three standoffs, one on the end of each rod and screw approximately10mm of the rod into the threaded hole of the standoff.

Slide the three Supports over the rods with one at each end and one in the middle.

Push the triangular prism through each support and retaining the support spacing

Take the Aperture Ring and Carrier assembly and fit the triangular prism in to the triangular recess.

Align the standoffs on the Aperture Ring with the standoff on the end of the rods and screw together.

Cut each rod ~9mm below the end of the triangular prism and fit a 15mm hollow threaded standoff on each end.

Holding the part of the rod with pliers below the standoff to be fitted and using a box spanner tighten the standoff until its level with the top of the triangular prism.

Into the Eyepiece drill three 2mm holes into the alignment depressions and countersink the the holes on the front side (the side without the triangular recess), partially fit three 10mm countersink screws into the holes. they should be a tight fit.

Orientate the triangle in the Eyepiece with the Triangular prism and fit the Eyepiece over the Triangular prism ensuring the Triangular prism sits in the Eyepiece recess then tighten the screws.

The assembly is now complete.

Coding

microbit-screenshot5.png

The Microbit is coded to create a circular pattern in the centre of the Zip tile.

The triangular aperture which can be rotated only shows LED's in the visible area of the aperture diameter outside this range LED's would not be visible and therefore serve no purpose to illuminate.

The on start initialises the Zip tile and sets variable Active to false this is set to true when the pattern generator is active. An array is created which contains the decimal values for Red, Green and Blue

The forever loop checks if the Active variable is true and the Dimmer value is >0, if this is true the display is gradually dimmed. The dimming duration can be adjusted by varying the pause time, increased for longer duration and reduced for short duration.

Function Pattern2 is the pattern generator. The variable Dimmer sets the display brightness and variable Active is set to true. The display is than set. A series of radial arms are draw creating a circular image were each point displayed is randomly selected from Red, Green or Blue..

On button A when pressed generates and displays a new pattern.

Usage

With power applied to the Zip tile (disconnect the USB from the Microbit first), press the A button on the Microbit whilst looking into the hollow triangular prism via the eyepiece.

Each press of the A button will result in a different pattern being displayed.

Rotating the body of Kaleidoscope will result in variations in the existing pattern.

The combination of these two actions will result in ever changing patterns.

The display will switch off after a period of inactivity which can be reactivated by pressing button A again.

Enjoy.