close-circle
Close
0%
0%

Heroineclock II

Giant clock from a PIC18F6585, cheap LEDs, foam core posterboard, hot glue, lots of hot glue

Similar projects worth following
close
51 views
0 comments
0 followers
likes
Visible without contact lenses from all areas of the apartment. Controlled by IR remote.

It was a long & hard process between 1 month of commutes, but Heroineclock I was finally shut down after 13 years of blinking & replaced by a much better Heroineclock II, factoring in much more experience. 

All the Chinese options which appeared in the last 13 years were studied & found to be too expensive. The largest Chinese digits were 12" tall & $50. EL wire would cost a fortune. Projectors were too dim & small. Superbright red LEDs had dropped from 22c to 15c & become much brighter.

With the new experience, power consumption dropped from over 20W for Heroineclock I to 7W, yet light output increased greatly. The audio synthesizer was much more sophisticated, with 3 square wave oscillators & decay timing. The clockspeed was increased from 20Mhz to 40Mhz to allow the improved audio. The new speaker driver was a real PWM driven class D with the 0 crossing at 50% duty cycle. The speaker brought the total current with all the LEDs & sound to 0.6A.

The flaky buttons & switches which plagued Heroineclock I were replaced with an IR remote. It was a 1st experience decoding an IR remote & it revealed IR receivers don't output RS232 but PWM. The decoding had to be really schmick for it to handle the rapid button presses involved in setting a clock.

The shift registers which drove Heroineclock I's LEDs were replaced by direct wiring to 1 GPIO per segment. A PIC18F6585 replaced the old PIC16F877. It had a massive number of pins, but only enough actively driven GPIOs for 27 segments. Instead of PNP transistors, the LEDs were driven by NPN's, allowing higher voltage. Instead of wiring the LEDs in parallel with massive amounts of current supplied to 2.5V bus lines, they were now 5 in series with 10V bus lines. The total current with all LEDs on was now 0.5A instead of 10A.


There's a small program to convert MIDI files into data tables for the clock to play back.  For the simple clock chimes, it was easier just to enter the data tables manually.  Having infinite note length & relying on the software decay made a more pleasing sound.

For all the improved electronics, the whole thing could have been done much more easily with a raspberry pi playing mp3 audio. But the PIC would still have been necessary for multiplexing the LEDs & it was cheaper to leave out the additional raspberry pi. It was still a bit satisfying to use in a practical, modern application, a retro 8 bit platform with the kind of massive PLCC package that adorned high end electronics, 30 years ago.

clock.062217.tar.xz

MPLab project, PC board, utilities

x-xz - 239.59 kB - 12/07/2017 at 22:17

download-circle
Download

  • The Video

    lion mclionhead12/07/2017 at 22:21 0 comments

    The video

  • Construction

    lion mclionhead12/07/2017 at 22:12 0 comments

    The first pattern was drawn.

    The 1st pattern was a failure. There were gaps in the segments. 

    The 2nd pattern was a failure.  There were still gaps.

    Final pattern, with paint for brightness.  

    Completed LED installation.

    Soldering & labeling of all the LEDs.

    Complete back wiring

    Complete board with lots of defects.

    All the ground pins had to be grounded for it to work at all.  The speaker needed a MOSFET with more power.  

    1st light of the LEDs powered by the mane board.

    Maximum brightness, showing the 1st time display.  Voltage had to be reduced to the minimum in order for it to be dim enough to sleep by.

    Each segment was individually covered in 2 layers of wax paper.  Laser printed transparencies covered the icons.

    IR sensor, speaker, mane board strapped in.  Every segment has its own ground wire to the mane board.  A 2nd voltage regulator powers the colon.  That contains 10 old LEDs which required higher voltage.  

View all 2 project logs

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates