- Joined
- Nov 25, 2010
- Messages
- 1,211
- Motherboard
- AsRock X570M Pro4
- CPU
- Ryzen 3700x
- Graphics
- RX 580
The software-controlled LED is now functional on the iMac. Using a Picaxe Micro-Controller and MacTester's pulsing LED code (thx MacTester!) that I modified slightly to suit my build, the LED in the iMac display now does the following...
1. Intializes with USB 5V power at system startup
2. Stays lit at about 20% brightness during operation
3. Pulses in an emulated 'breathing' rhythm during system sleep
4. Re-wakes to 20% brightness up system wake from sleep
5. Shuts off at system shutdown
To control the LED, the following power configuration is utilized...
1. 5V USB power for supplying Picaxe Micro Controller.
- This allows the Picaxe to function during system sleep and shut down when powered off
2. 5V Front Panel Pin 9 for detection of sleep or wake state
- Pin 9 of the Front Panel Header goes to 0V during sleep, 5V during wake
3. PWM output power from Picaxe Chip to power the LED
- Continuous 20% PWM output during wake
- Pulsing PWM power output during system sleep
The Picaxe LED circuit is wired into a small breadboard that is wrapped in electrical tape. Five wires come out of it, they are...
1. 5V supply in from USB to Picaxe Controller
2. GND to the PicoPSU for Picaxe Controller
3. 5V from Pin 9 Front Panel Header to pin C.3 of Picaxe (for sleep/wake detect)
4. 5V USB power output via 330 Ohm resistor to iMac LED
5. PWM Power Return from iMac LED via BC547B transistor/PWM control to PicoPSU ground
Here's the circuit layout diagram
Wrapped in electrical tape and mounted in the iMac, Picaxe chip remains accessible for re-programming.
Here is a Video Demonstration of Startup, Sleep, Re-Wake and Shutdown.
The code for the Picaxe Controller is attached below.
Ersterhernd
1. Intializes with USB 5V power at system startup
2. Stays lit at about 20% brightness during operation
3. Pulses in an emulated 'breathing' rhythm during system sleep
4. Re-wakes to 20% brightness up system wake from sleep
5. Shuts off at system shutdown
To control the LED, the following power configuration is utilized...
1. 5V USB power for supplying Picaxe Micro Controller.
- This allows the Picaxe to function during system sleep and shut down when powered off
2. 5V Front Panel Pin 9 for detection of sleep or wake state
- Pin 9 of the Front Panel Header goes to 0V during sleep, 5V during wake
3. PWM output power from Picaxe Chip to power the LED
- Continuous 20% PWM output during wake
- Pulsing PWM power output during system sleep
The Picaxe LED circuit is wired into a small breadboard that is wrapped in electrical tape. Five wires come out of it, they are...
1. 5V supply in from USB to Picaxe Controller
2. GND to the PicoPSU for Picaxe Controller
3. 5V from Pin 9 Front Panel Header to pin C.3 of Picaxe (for sleep/wake detect)
4. 5V USB power output via 330 Ohm resistor to iMac LED
5. PWM Power Return from iMac LED via BC547B transistor/PWM control to PicoPSU ground
Here's the circuit layout diagram
Wrapped in electrical tape and mounted in the iMac, Picaxe chip remains accessible for re-programming.
Here is a Video Demonstration of Startup, Sleep, Re-Wake and Shutdown.
The code for the Picaxe Controller is attached below.
Ersterhernd