Skip to main content

3D LED Pyramid


The author 'just wanted to do a bit of microcontroller programming'. However, the project rapidly grew into this impressive and visually attractive pyramid. The circuit consists essentially of a specially-sawn printed circuit board,  23 LEDs and a microcontroller. Despite the fact that the microcontroller  is a rather modest Atmel ATtiny2313, the author nevertheless has found room in the 2 KB flash memory for 16 different light sequences.

23 LDEs

The 23 LEDs are divided into three groups. The lower and middle sections consist of eight LEDs, while the upper section  has just seven. The microcontroller has only 20 pins, and so it is not feasible to provide a direct individual drive for each LED. The multiplexing approach adopted uses just eleven output port pins. Buffer transistors are used to increase the  current drive capability of each output.

23 LDEs Circuit Diagram

The software was written in assembler and can, as usual, be downloaded from the Elektor web pages accompanying this  article [1]  as either source code or as a hex file. The printed circuit board layout files are also available from the same  place, as well as a link allowing purchase of ready-made boards and pre-programmed microcontrollers.

Populating the printed circuit board is straightforward: there are some surface-mount components to be soldered,  but space is not tight. For best results,  it is best to choose LEDs with the widest possible viewing angle so that the pyramid  looks its best even when seen from the side. The author used type LO 1296 orange LEDs from Osram, which have a viewing angle of 160 '. A six- way connector is provided to allow in system programming  (l5P) of the microcontroller. The  configuration fuses are set to enable use of the internal4  MHz  clock source, which is divided down to 0.5 MHz by an  internal divider.  lf the fuses are not correctly programmed the light sequences will run too quickly, too slowly, or even not at all!

When everything is working, take an 11 cm length and  a 5.5 cm  length of 1.5 mmz solid copperwire and solder one end  of the shorter piece to the middle of the longer piece to make a 'T' shape. Pullthe  printed  circuit board spiral apart  so  that the T-shaped wire assembly fits underneath, and then solder it to the two pads as shown in the photograph. Fine-bore brass tubing can also be used instead of solid copperwire.

As well as the ISP connector a USB interface is provided, whose job is solely to provide a 5 V supply. An external 5 V mains adaptor would do the job equally well. Two jumpers affect the behaviour of the light pyramid: JP1 deter-mines  whether the sixteen sequences follow one another in strict order or at random;  and JP2 determines whether the light  patterns are displayed orwhether all LEDs will be continuously lit. S1 is a reset button, which will come in handy if you  wish to experiment with modifying the software.

Author : Lothar Goede - Copyright : Elektor


Comments

Popular posts from this blog

PID instruction in Allen Bradley PLC Closed Loop Control

PID instruction in Allen Bradley PLC [Proportional/Integral/Derivative] Closed Loop Control For   Processor SLC 5/02SLC 5/03SLC 5/04SLC 5/05    MicroLogix 1200 and MicroLogix 1500 (A special PID file replaces the old integer file control block.) Description of PID in PLC   This output instruction is used to control physical properties such as temperature, pressure, liquid level, or flow rate of process loops. The PID instruction normally controls a closed loop using inputs from an analog input module and providing an output to an analog output module as a response to effectively hold a process variable at a desired set point. The PID equation controls the process by sending an output signal to the actuator. The greater the error between the setpoint and the process variable input, the greater the output signal, and vice versa. An additional value (feed forward or bias) can be added to the control output as an offset. The result of the PID calculation (control vari...

NE566 Function Generator Circuit Diagram

The NE566 Function Generator is a Voltage-Controlled Oscillator of exceptional linearity with buf fered square wave and triangle wave outputs. The frequency of oscillation is determined by an external resistor and capacitor and the voltage applied to the control terminal. The Oscillator CAN be programmed over a ten-to-one frequency range by proper selection of an external resistance and modulated over a ten-to-one range by the control voltage, with exceptional linearity.  FMAX = 1 MHz     WIDE 1000:1 Continuous Sweep Possible  NE566 Function Generator Circuit Diagram Pdf Datasheet  Sourced by : Circuitsstream

Long Loopstick Antenna Circuit Diagram

Circuit Diagram  Description Wound on a 3 foot length of PVC pipe, the long loopstick antenna was an experiment to try to improve AM radio reception without using a long wire or ground. It works fairly well and greatly improved reception of a weak station 130 miles away. A longer rod antenna will probably work better if space allows. The number of turns of wire needed for the loopstick can be worked out from the single layer, air core inductance formula: Inductance = (radius^2 * turns^2) / ((9*radius)+(10*length)) where dimensions are in inches and inductance is in microhenrys. The inductance should be about 230 microhenrys to operate with a standard AM radio tuning capacitor (33-330 pF). The 3 foot PVC pipe is wound with approximately 500 evenly spaced turns of #24 copper wire which forms an inductor of about 170 microhenrys, but I ended up with a little more (213uH) because the winding spacing wasn't exactly even. A secondary coil of about 50 turns is wound along the length of th...