Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Or the digital way: on the Commodore 64 disk drive (the 1541), you'd flip a bit of a certain memory-mapped location to switch the LED on or off. Doing this a variable amount of times per second would result in a smoothly fading led. Not sure if anyone ever made a sinusoidal fade, but there were demo's with the LED following the beat of the music.


Pulse width modulation (PWM) is a pretty common technique. This article seems to be more about measuring the actual waveform Apple uses. It even says that the PWM used in the original introduced artifacts into the measured waveform.


I saw someone do exactly this with a 1541 at a party in the summer of 1990: up, down, up, down. It didn't quite do Apple's special rhythm, naturally, but it was quite a shock the first time I saw it.


Sounds like quite a party.


Not sure if you're being sarcastic, but the OP probably refered to a demo party (http://en.wikipedia.org/wiki/Demoparty), aka "copy party".

In other words, a place where someone showing off a diskdrive indicator light taken over for other purposes is totally on-topic.


It would put you right to sleep.


Something like PWM?

I bet Macs don't generate analog voltages to fade the LED, it would be expensive.


LEDs also don't change brightness with voltage, they do with amperage and usually have an optimal amperage for the LED's design. Brightness can be controlled many ways, the most common way is to use Pulse Width Modulation. It's also a common power saving technique.

http://www.reuk.co.uk/LED-Dimmer-Circuit.htm


The patent they reference in the article states that the LED's current is PWMed, where the modulation function is sinusoidal.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: