Contribute
Register

Kiwi's Next Project - iMac G5

Joined
Dec 15, 2011
Messages
906
Motherboard
Z68MX-UD2H-B3, DQ77KB, NUC DC53427HYE, NUC D54250WYKH
CPU
i5-2500K, i3-3225, i7-3770S
Graphics
HD 3000, HD 4000, HD 5000
Mac
Classic Mac
iMac, Power Mac
Mobile Phone
iOS
Thanks for the hint, Kiwi. I will try that as soon as I've finished my new tests with a tiny little P-Channel Mosfet. See my thread.

MacTester
 
Joined
Dec 15, 2011
Messages
906
Motherboard
Z68MX-UD2H-B3, DQ77KB, NUC DC53427HYE, NUC D54250WYKH
CPU
i5-2500K, i3-3225, i7-3770S
Graphics
HD 3000, HD 4000, HD 5000
Mac
Classic Mac
iMac, Power Mac
Mobile Phone
iOS
Kiwi,

I've just implemented your "OK handshake" in the slider applet and in my Arduino sketch. It appears, that the serial communication is fixed now.

Thanks again!
 
Joined
May 27, 2012
Messages
775
Motherboard
DQ77KB
CPU
i7-3770S
Graphics
HD4000
Mac
MacBook Air, MacBook Pro, Mac mini
Mobile Phone
iOS
Kiwi,

I've just implemented your "OK handshake" in the slider applet and in my Arduino sketch. It appears, that the serial communication is fixed now.

Thanks again!
Glad it worked, i didn't think it would be too difficult. Are you able to post your code, so I can update, or if you have a Git Hub account create a pull request.

Kiwi.
 
Joined
Dec 15, 2011
Messages
906
Motherboard
Z68MX-UD2H-B3, DQ77KB, NUC DC53427HYE, NUC D54250WYKH
CPU
i5-2500K, i3-3225, i7-3770S
Graphics
HD 3000, HD 4000, HD 5000
Mac
Classic Mac
iMac, Power Mac
Mobile Phone
iOS
Unfortunately it's still not 100% reliable during high fan RPM...

I've added the code you suggested to the slider app and the following to the Arduino sketch:

Code:
//----Serial interface

// This function processes the inverter related serial commands
void processCommandBrightness(String subCmd, String extraCmd) {

  noInterrupts();

  if (subCmd.equals("R")) {
    // Brightness Read (from the Arduino)
    Serial.println(inverterBrightness);

  } else if (subCmd.equals("+")) {
    // increase brightness
    increaseBrightness();
    serialCommandReceived();

  } else if (subCmd.equals("-")) {
    // decrease brightness
    decreaseBrightness();
    serialCommandReceived();

  } else if (subCmd.equals("W")) {
    // Brightness Write value BWnnn - nnn is the value
    adjustInverter( extraCmd.toInt() );
    serialCommandReceived();

  } else if (subCmd.equals("A")) {
    // Activate Inverter
    enableInverter();
    serialCommandReceived();

  } else if (subCmd.equals("D")) {
    // Deactivate Inverter
    disableInverter();
    serialCommandReceived();

  } else {
    Serial.println(F("Brightness Command Unknown: BR (read), BW (write), BA (activate), BD (deactivate), B+, B- (change)"));
  }
  interrupts();
}

// This function sends "OK" back to the Slider Applet
void serialCommandReceived() {
  Serial.println("OK");
}
 
Joined
May 27, 2012
Messages
775
Motherboard
DQ77KB
CPU
i7-3770S
Graphics
HD4000
Mac
MacBook Air, MacBook Pro, Mac mini
Mobile Phone
iOS
Hi Mactester,

Another idea to try, what about increasing the serial baud rate e.g 115k, or higher, theory being serial messages will much shorter in duration, and less chance of of overlapping with fan interrupt.

Kiwi
 
Joined
Dec 15, 2011
Messages
906
Motherboard
Z68MX-UD2H-B3, DQ77KB, NUC DC53427HYE, NUC D54250WYKH
CPU
i5-2500K, i3-3225, i7-3770S
Graphics
HD 3000, HD 4000, HD 5000
Mac
Classic Mac
iMac, Power Mac
Mobile Phone
iOS
Hi Kiwi

Sounds like a good idea. Will try it.
 
Joined
Dec 15, 2011
Messages
906
Motherboard
Z68MX-UD2H-B3, DQ77KB, NUC DC53427HYE, NUC D54250WYKH
CPU
i5-2500K, i3-3225, i7-3770S
Graphics
HD 3000, HD 4000, HD 5000
Mac
Classic Mac
iMac, Power Mac
Mobile Phone
iOS
Hi Kiwi

Any news from your SMC project?

I've just implemented some recent changes in my sketch for the SMC prototype board with the old pinout (which is still installed in the iMac G5). It allows me to use the current version of the Brightness Menulet on the iMac G5.

MacTester
 
Joined
Apr 19, 2015
Messages
3
Motherboard
Dell 0Y2MRG
CPU
i7-2600K
Graphics
GTX 1050 Ti
Mac
iMac, Mac mini
Classic Mac
iMac, Power Mac
Mobile Phone
Android
Hi Kiwi,

And congratulations for the amazing job you did on your various iMac moding ! I'm now on the same kind of project involving an A1076 iMac, which is running no more > videoboard HS. I plan to do as it was successfully done by several members here with the Intel NUC, but using a macmini instead (A 1347). That's why I came across this topic with new informations about the macMini power supply.

According to these guys, there is an easy way to use direct 12V DC to run the macMini ! :eek:

06-Mac-Mini-DC-power.jpg

That's sounds pretty good, insofar as we have three 12V DC outputs and many more GND outputs from the original iMac PSU. I'll be glad to know what you think about that, and more if you have ideas about such a build. The next step will be to connect the macMini start-up button to the G5's one ; I'm far to be done with that !

I wish you the best luck on the iMac moding way and many thanks again for sharing your expertise !

Pixys
 
Joined
Jun 22, 2015
Messages
14
Motherboard
Toshiba Satellite S50-B-14X
CPU
i5-5200u
Graphics
HD 5500 / Radeon R7 M260 (1920x1080)
Mac
MacBook Pro
Classic Mac
Classic
Mobile Phone
iOS
Part 22 - Breathing LED

There has been some work done on describing the breathing led on this forum, so thought would document my implementation. From what I have read there is a 5 second cycle, where the first 1.5 seconds is the fade up, and then 3.5 seconds fade down to zero. From my observations there is also a gap at the end of the fade down, and the start of the next fade up.
Very nice work - very inspiring. As I understand it this iMac model is the Ambient Light Sensor model, is that right? Did you try to integrate the light sensor into the design so that the breathing LED would be dimmed/off when the room is dark?

-ragev
 
Joined
Aug 5, 2010
Messages
183
Motherboard
Toshiba Satellite C875 / Dell 13Z 5323
CPU
2.4 GHz i3 3110M - HM76 / 1.9GHz i3 - HM77
Graphics
HD4000 1600x900 / HD4000 1366x768
Mac
iMac
kiwi, from page 18 on the back of I/O board, regarding the wires for power switch and LED. I'm using a laptop board, not a NUC. I'm hoping to accomplish to use the power button on the rear on the iMac as well. I'm hoping to attach other ends of the leads to micro board power switch ribbon cable somehow (see attached pic) from a laptop to trigger on. I'm hoping to solder them to the ribbon (4pin) connected to MB. I'm just a little confused about the 4 pin leads. Is there a simple way to figure out which leads I should connect to? BTW, all you guys have done a remarkable jobs with these iMac G5 mods. Inspiring for some of us.
 

Attachments

Top