Kiwi's Next Project - iMac G5

Discussion in 'iMac Mods' started by kiwisincebirth, Aug 30, 2013.

  1. MacTester57

    MacTester57

    Joined:
    Dec 15, 2011
    Messages:
    907
    Mobo:
    Z68MX-UD2H-B3, DQ77KB, NUC DC53427HYE, NUC D54250WYKH
    CPU:
    i5-2500K, i3-3225, i7-3770S
    Graphics:
    HD 3000, HD 4000, HD 5000
    Classic Mac:
    iMac, Power Mac
    Mobile Phone:
    iOS
    Mar 17, 2015 at 7:02 PM #271
    MacTester57

    MacTester57

    Joined:
    Dec 15, 2011
    Messages:
    907
    Mobo:
    Z68MX-UD2H-B3, DQ77KB, NUC DC53427HYE, NUC D54250WYKH
    CPU:
    i5-2500K, i3-3225, i7-3770S
    Graphics:
    HD 3000, HD 4000, HD 5000
    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
     
  2. MacTester57

    MacTester57

    Joined:
    Dec 15, 2011
    Messages:
    907
    Mobo:
    Z68MX-UD2H-B3, DQ77KB, NUC DC53427HYE, NUC D54250WYKH
    CPU:
    i5-2500K, i3-3225, i7-3770S
    Graphics:
    HD 3000, HD 4000, HD 5000
    Classic Mac:
    iMac, Power Mac
    Mobile Phone:
    iOS
    Mar 18, 2015 at 9:46 PM #272
    MacTester57

    MacTester57

    Joined:
    Dec 15, 2011
    Messages:
    907
    Mobo:
    Z68MX-UD2H-B3, DQ77KB, NUC DC53427HYE, NUC D54250WYKH
    CPU:
    i5-2500K, i3-3225, i7-3770S
    Graphics:
    HD 3000, HD 4000, HD 5000
    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!
     
  3. kiwisincebirth

    kiwisincebirth

    Joined:
    May 27, 2012
    Messages:
    777
    Mobo:
    GA-Z68MX / DQ77KB
    CPU:
    i7-2600 / i7-3770S
    Graphics:
    GTX 650 Ti / HD4000
    Mac:
    MacBook Air, MacBook Pro, Mac mini
    Mobile Phone:
    iOS
    Mar 19, 2015 at 9:00 AM #273
    kiwisincebirth

    kiwisincebirth

    Joined:
    May 27, 2012
    Messages:
    777
    Mobo:
    GA-Z68MX / DQ77KB
    CPU:
    i7-2600 / i7-3770S
    Graphics:
    GTX 650 Ti / HD4000
    Mac:
    MacBook Air, MacBook Pro, Mac mini
    Mobile Phone:
    iOS
    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.
     
  4. MacTester57

    MacTester57

    Joined:
    Dec 15, 2011
    Messages:
    907
    Mobo:
    Z68MX-UD2H-B3, DQ77KB, NUC DC53427HYE, NUC D54250WYKH
    CPU:
    i5-2500K, i3-3225, i7-3770S
    Graphics:
    HD 3000, HD 4000, HD 5000
    Classic Mac:
    iMac, Power Mac
    Mobile Phone:
    iOS
    Mar 19, 2015 at 3:40 PM #274
    MacTester57

    MacTester57

    Joined:
    Dec 15, 2011
    Messages:
    907
    Mobo:
    Z68MX-UD2H-B3, DQ77KB, NUC DC53427HYE, NUC D54250WYKH
    CPU:
    i5-2500K, i3-3225, i7-3770S
    Graphics:
    HD 3000, HD 4000, HD 5000
    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 (Text):
    //----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");
    }
     
  5. kiwisincebirth

    kiwisincebirth

    Joined:
    May 27, 2012
    Messages:
    777
    Mobo:
    GA-Z68MX / DQ77KB
    CPU:
    i7-2600 / i7-3770S
    Graphics:
    GTX 650 Ti / HD4000
    Mac:
    MacBook Air, MacBook Pro, Mac mini
    Mobile Phone:
    iOS
    Mar 19, 2015 at 9:10 PM #275
    kiwisincebirth

    kiwisincebirth

    Joined:
    May 27, 2012
    Messages:
    777
    Mobo:
    GA-Z68MX / DQ77KB
    CPU:
    i7-2600 / i7-3770S
    Graphics:
    GTX 650 Ti / 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
     
  6. MacTester57

    MacTester57

    Joined:
    Dec 15, 2011
    Messages:
    907
    Mobo:
    Z68MX-UD2H-B3, DQ77KB, NUC DC53427HYE, NUC D54250WYKH
    CPU:
    i5-2500K, i3-3225, i7-3770S
    Graphics:
    HD 3000, HD 4000, HD 5000
    Classic Mac:
    iMac, Power Mac
    Mobile Phone:
    iOS
    Mar 20, 2015 at 5:34 AM #276
    MacTester57

    MacTester57

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

    Sounds like a good idea. Will try it.
     
  7. MacTester57

    MacTester57

    Joined:
    Dec 15, 2011
    Messages:
    907
    Mobo:
    Z68MX-UD2H-B3, DQ77KB, NUC DC53427HYE, NUC D54250WYKH
    CPU:
    i5-2500K, i3-3225, i7-3770S
    Graphics:
    HD 3000, HD 4000, HD 5000
    Classic Mac:
    iMac, Power Mac
    Mobile Phone:
    iOS
    Apr 19, 2015 at 10:14 AM #277
    MacTester57

    MacTester57

    Joined:
    Dec 15, 2011
    Messages:
    907
    Mobo:
    Z68MX-UD2H-B3, DQ77KB, NUC DC53427HYE, NUC D54250WYKH
    CPU:
    i5-2500K, i3-3225, i7-3770S
    Graphics:
    HD 3000, HD 4000, HD 5000
    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
     
  8. pixys

    pixys

    Joined:
    Apr 19, 2015
    Messages:
    3
    Mobo:
    GA-H97M-D3H
    CPU:
    Core i5-4590
    Graphics:
    GT 740 2Gb
    Mac:
    iMac
    Classic Mac:
    Power Mac
    Jun 18, 2015 at 3:51 PM #278
    pixys

    pixys

    Joined:
    Apr 19, 2015
    Messages:
    3
    Mobo:
    GA-H97M-D3H
    CPU:
    Core i5-4590
    Graphics:
    GT 740 2Gb
    Mac:
    iMac
    Classic Mac:
    Power Mac
    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
     
  9. ragev

    ragev

    Joined:
    Jun 22, 2015
    Messages:
    14
    Mobo:
    Toshiba Satellite S50-B-14X
    CPU:
    i5-5200u
    Graphics:
    HD 5500 / Radeon R7 M260 (1920x1080)
    Mac:
    MacBook Pro
    Classic Mac:
    Classic
    Mobile Phone:
    iOS
    Jul 2, 2015 at 9:54 AM #279
    ragev

    ragev

    Joined:
    Jun 22, 2015
    Messages:
    14
    Mobo:
    Toshiba Satellite S50-B-14X
    CPU:
    i5-5200u
    Graphics:
    HD 5500 / Radeon R7 M260 (1920x1080)
    Mac:
    MacBook Pro
    Classic Mac:
    Classic
    Mobile Phone:
    iOS
    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
     
  10. carl

    carl

    Joined:
    Aug 5, 2010
    Messages:
    168
    Mobo:
    Toshiba Satellite C875 / Dell 13Z 5323
    CPU:
    2.4 GHz i3 3110M - HM76 / 1.9GHz i3 - HM77
    Graphics:
    HD4000 1600x900 / HD4000 1366x768
    Mac:
    iMac
    Jun 24, 2016 at 3:48 AM #280
    carl

    carl

    Joined:
    Aug 5, 2010
    Messages:
    168
    Mobo:
    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.
     

    Attached Files:

    • power switch board.jpg  (94.7 KB, 76 views)

Share This Page