The strange case of my mac

Today my MacBook Pro showed some signs of being not so "pro" anymore, as it repeatedly showed a pop up claiming that usb had been disabled due to a device drawing too much current, but actually there were no devices connected to the hub.

 

"Fine", i tought, "i'll take it to Apple tomorrow". But then i realized that this was not my style, and even that they would have kindly persuaded me to change the whole motherboard (and even to buy some iwatches, just in case). And as i'm one who wants everything hinc et nunc, i decided to solve the issue myself. So what did i do, perform an hard reset? reset the smc? No, i teared down my mac and investigated.

 

I found that some some stages of the power supply section of one of the USBs seemed to be shorted to ground.

I started by desoldering some capacitors which i suspected of being damaged, but without luck.

 

The short seemed to be localized at the final stage of the supply; an ic took my attention: the TPS2046, it is a dual current-limited power distribution switch from TI (which i'm pointing at with the tweezers).

 

After some time i found that the ic was internally damaged and shorted to ground, and the problem affected only the yet not working section of the power switch.

So i solved it by deceiving the CPU that everything was fine by cutting the other overcurrent protection trace and pulling it to VCC, and by bypassing the switch by soldering the second USB directly to the main 5V bus.

And now we are back in business!

 

 

 

 

I cut some traces with a scalpel to isolate the chip and performed some testing. The ic has two open drain overcurrent and thermal protection warning outputs, which i found were both pulled to gound, so that the computer was interpreting that as an OC problem and consequently disabling the whole bus. Once i forced the both OC  pins to VCC, the pop up disappeared. But unfortunately the USBs were not working, precisely power was not being supplied to the connectors. In fact, the enable pins weren't being handled correctly by the mac, even after a restart. Forcing the enable pin to ground worked for one of the ports but i had to investigate more to solve the problem...

 

 

 

 

 

 

As shown by the photo both usb now work, and a little label was added next to one of the ports in order to prevent users from plugging in excessive loads.

 

 

 





Comments: 30 (Discussion closed)
  • #30

    danny (Friday, 22 January 2021 14:23)

    good afternoon. Your ESP32-CAM project is splendid. Well done. Would you be able and willing to share the code. Much appreciated. email: danny.mcalbu@gmail.com. Thanks

  • #29

    moses (Wednesday, 30 December 2020 09:49)

    hello the project is very interesting. I would be very grateful if you could share the code?
    my email: rabbiwest@gmail.com

  • #28

    Tony Le (Sunday, 09 August 2020 04:14)

    hi, I like this 3D printed precision peristaltic pump and want to download this file printing. Can you show to me ? Thanks !
    https://www.youtube.com/watch?v=zLDlSd56vko

  • #27

    Ari (Tuesday, 05 May 2020 17:16)

    Hello Sir, im in interest for make this project , is possible that you share the code or at least could you give me an example, i got some trouble when use universaltelegrambot in esp32 is still cant find solution my email arirehan10@gmail.com , really happy if i get you attention .

    best regard

  • #26

    Javi Morales (Sunday, 26 April 2020)

    Hi,
    This model looks very interesting, congratulations. Would it be possible to share the 3D printer files and also the arduino code with the libraries you used, pleas! Thanks.
    J.M.

  • #25

    antonio couto (Friday, 24 April 2020 02:35)

    Hi,
    Would it be possible to share the arduino code for this project. I would like to implement it on my 3d printer My e-mail is antoniompcouto@gmail.com
    tks

  • #24

    Andre Geyser (Sunday, 12 April 2020 12:57)

    Hi,
    Would it be possible to share the arduino code for this project. I would like to implement it on my ESP32-CAM? My e-mail address: andre.geyser@telkomsa.net

  • #23

    Yanwar (Friday, 06 March 2020 08:23)

    Hello Sir, im in interest for make this project , is possible that you share the code or at least could you give me an example, i got some trouble when use universaltelegrambot in esp32 is still cant find solution.my email yanwareko.m@gmail.com, really happy if i get you attention .

    best regard

  • #22

    tornado64@gmail.com (Friday, 28 February 2020 01:36)

    Hello.
    I like it. Is possible that you share the code?
    my email is: tornado64@gmail.com
    Thanks

  • #21

    bruno martineze (Sunday, 23 February 2020 17:44)

    Congratulations! Im looking for a project like this. Can you share de code? brunomarcio.agl@gmail.com

    best regards,

  • #20

    Reham (Thursday, 26 December 2019 17:18)

    Please, can you send me the CAD files for this design?

  • #19

    Toyran (Thursday, 31 October 2019 10:21)

    Thank you for your quick response !
    I mean the Modular Chemistry Analyzer project,
    just the part of making multiport selector valve.
    I can not understand the mechanism purely.

  • #18

    dptechnology.jimdo.com (Wednesday, 30 October 2019 18:35)

    Dear Toyran,
    this guestbook is about the whole website. Which project are you referring to?

    dp

  • #17

    Toyran (Wednesday, 30 October 2019 18:26)

    Hi, I am trying to make the valve for my project but I can not understand the mechanism by looking at photos . Can you send me the method to make this please ?

    email: e.toyran_@Hotmail.com

  • #16

    David Coronado Ecos (Wednesday, 31 July 2019 16:28)

    hi, your work impresed me , i would like to probe it with my 3d printer , could you please send me the cad files?
    my email: davicoecos@gmail.com

  • #15

    Shawn Alfaro (Sunday, 28 October 2018 14:08)

    Do you offer .stl files for printing? If so, my email issalfaroart@gmail.com

  • #14

    Be (Saturday, 27 October 2018)

    b,van,hattem@xmsnet.nl

  • #13

    Be (Saturday, 27 October 2018 18:27)

    I wil also make this multi port valve for my project.Can you send me the method to make this.Thanks you

  • #12

    SANDEEP KUMAR (Friday, 28 September 2018 10:19)

    I want to make this multi port valve for my project.Can you send me the method to make this.Thanks you
    Email-
    sandeep.ec72@gmail.com

  • #11

    dpt (Saturday, 10 September 2016 17:58)

    Caro Pasquale,
    l'esp8266 è stato programmato usando l'IDE di arduino (https://github.com/esp8266/Arduino). Per quanto riguarda il codice che ho scritto e le librerie che ho usato per i bot, dovrei controllare sul computer, ora non ricordo... Se ti servono mandami una email alla sezione contatti e te le allego appena ne ho l'occasione.
    saluti, dp

  • #10

    Pasquale (Friday, 09 September 2016 13:43)

    Scisa, non avevo capito.
    Mi riferisco al progetto
    IoT: control esp8266 from Telegram Bot for telemetry and domestics applications
    Sto cercando di utilizzare un ESP-01 interfacciata con Arduino per utilizzare I Telegram BOT ma sono in difficolta' perche, mi pare di aver capito, che tutte le librerie disponibili non gestiscono I telegram BOT utilizzando I comandi seriali di ESP-01 ma utilizzano ESP-01 programmato tramite LUA.

    Darei quindi interessato alla tua soluzione.

    Grazie.

    P.S. Molto cortese nella sollecita risposta.

  • #9

    dpt (Friday, 09 September 2016 12:57)

    Ciao Pasquale,
    a quale progetto ti riferisci?
    Il libro dei commenti riguarda tutto il sito!
    dp

  • #8

    Pasquale (Friday, 09 September 2016 11:51)

    Progetto molto interessante.
    E' possibile avere I dettagli ed eventualmente il codice SW?

    Grazie

  • #7

    Marc (Saturday, 27 August 2016 07:59)

    It’s my fortune to go to at this blog and realize out my required stuff that is also in the quality.

  • #6

    dpt (Thursday, 26 May 2016 13:42)

    Hi Anibal,
    contact me tomorrow at info.dptechnology@gmail.com, i will provide you with the libraries used in the project. Regards

  • #5

    Anibal Marcos De Simony (Thursday, 26 May 2016 03:48)


    Caro , come è possibile accedere al progetto software : " ESP8266 e Telegram Bot ". migliori saluti.
    Anibal Marcos
    anibaldesimony@gmail.com

  • #4

    dpt (Tuesday, 05 January 2016 13:38)

    Hi markc,
    a preliminary hydraulic schematic was added yesterday :)

  • #3

    markc (Tuesday, 15 September 2015 16:05)

    When will you add the schematics of the automatic titrator?
    thanks

  • #2

    Federico (Monday, 14 September 2015 18:26)

    What about creating a community around the most ambitious projects? :D

  • #1

    Federico (Monday, 14 September 2015 18:14)

    Well done! This is smth we did need in Rome :)