Author Topic: finding short on motherboards with a shorty (with display)  (Read 63534 times)

0 Members and 1 Guest are viewing this topic.

Online kripton2035Topic starter

  • Super Contributor
  • ***
  • Posts: 2690
  • Country: fr
    • kripton2035 schematics repository
Re: finding short on motherboards with a shorty (with display)
« Reply #125 on: October 24, 2023, 07:33:21 am »
@jdobry: please make a new thread with your device details... this thread is for the shorty-with-display. thanks.
 

Offline Miti

  • Super Contributor
  • ***
  • Posts: 1358
  • Country: ca
Re: finding short on motherboards with a shorty (with display)
« Reply #126 on: January 16, 2024, 09:17:08 pm »
Hi jdobry,

Our troubleshooters liked your project so we created a 10 up panel and assembled 10 boards on the SMT line. I programmed them with v1.02.02 and everything looks good but I have an issue with the I2C communication, I think. The OLED goes crazy after some time, between few seconds and about a minute. The display and sound freeze with a broken display or not. The SW is still running because I can turn it off with a long press and it respond with a long beep. My guess is that the I2C is too fast for some OLEDs. Is it possible to slow it down a bit?

Thanks ,
Miti
« Last Edit: January 16, 2024, 10:15:55 pm by Miti »
Fear does not stop death, it stops life.
 

Online Kean

  • Supporter
  • ****
  • Posts: 2353
  • Country: au
  • Embedded systems & IT consultant
    • Kean Electronics
Re: finding short on motherboards with a shorty (with display)
« Reply #127 on: January 17, 2024, 10:40:02 am »
Hi jdobry,

Our troubleshooters liked your project so we created a 10 up panel and assembled 10 boards on the SMT line. I programmed them with v1.02.02 and everything looks good but I have an issue with the I2C communication, I think. The OLED goes crazy after some time, between few seconds and about a minute. The display and sound freeze with a broken display or not. The SW is still running because I can turn it off with a long press and it respond with a long beep. My guess is that the I2C is too fast for some OLEDs. Is it possible to slow it down a bit?

Thanks ,
Miti

Without seeing them, I doubt the I2C bus is "too fast" or the ones Jiri made would not have worked.  I guess the OLEDs could be marginal.
As a troubleshooting step, I would look at the I2C signals on a scope.  That would confirm the speed and shape of the I2C signals.
But even before that, I see on the schematic that the I2C pullups are 10k which is a bit high for 3.3V.  Maybe try decreasing R10 and R11 to something in the range of 3k3 to 4k7.

I haven't made any of these yet, but I am about to order some of the PCBs and parts.
 

Offline Miti

  • Super Contributor
  • ***
  • Posts: 1358
  • Country: ca
Re: finding short on motherboards with a shorty (with display)
« Reply #128 on: January 17, 2024, 01:24:16 pm »
I doubt the I2C bus is "too fast" or the ones Jiri made would not have worked.  I guess the OLEDs could be marginal.

Yeap, another way of saying the same thing. Too fast for the OLED. He may have been lucky with very fast OLEDs, mine may be a bit slower.
I did play a bit with the pull ups, I soldered 4.7K in parallel with the 10K. First I soldered one on the SCL and the display didn't come on at all. Then I soldered on both SCL and SDA and it came back on but crashing again. I will post some scope screen shots.
Fear does not stop death, it stops life.
 

Online Kean

  • Supporter
  • ****
  • Posts: 2353
  • Country: au
  • Embedded systems & IT consultant
    • Kean Electronics
Re: finding short on motherboards with a shorty (with display)
« Reply #129 on: January 17, 2024, 01:47:35 pm »
I assume you must have used SSD1306 based OLEDs to be compatible.  The SSD1306 is specified to support up to 400kHz I2C.

Do you have a link to the OLEDs you bought?
I'm not a fan of TZT stores on AliExpress, but was planning to buy the suggested ones at https://www.aliexpress.com/item/32927682460.html
 

Offline Miti

  • Super Contributor
  • ***
  • Posts: 1358
  • Country: ca
Re: finding short on motherboards with a shorty (with display)
« Reply #130 on: January 17, 2024, 04:09:26 pm »
I assume you must have used SSD1306 based OLEDs to be compatible.  The SSD1306 is specified to support up to 400kHz I2C.

Do you have a link to the OLEDs you bought?
I'm not a fan of TZT stores on AliExpress, but was planning to buy the suggested ones at https://www.aliexpress.com/item/32927682460.html

That’s where I bought from. I’m pretty sure that the SCK is around 800kHz so I may be right about “too fast”.

Edit: Added SCK scope shot.
Edit1: The start condition Hold Time is too short as well, minimum is 600ns.
« Last Edit: January 17, 2024, 07:54:12 pm by Miti »
Fear does not stop death, it stops life.
 

Online Kean

  • Supporter
  • ****
  • Posts: 2353
  • Country: au
  • Embedded systems & IT consultant
    • Kean Electronics
Re: finding short on motherboards with a shorty (with display)
« Reply #131 on: January 17, 2024, 07:55:33 pm »
@Miti OK, it looks like you might be right then and thanks for checking the signals.
@jdobry will need to look into this.  His firmware must be enabling I2C Fast-mode Plus (~1MHz).
I didn't dig too deep into the code, but I saw it being enabled in the HAL defs file.
 

Offline Miti

  • Super Contributor
  • ***
  • Posts: 1358
  • Country: ca
Re: finding short on motherboards with a shorty (with display)
« Reply #132 on: February 06, 2024, 08:10:07 pm »
I don’t think Jiri is still maintaining this project.
I installed STM32 Cube and tried to change the I2C mode from FastModePlus to FastMode but I can’t figure out how to do that.  :palm:
Moreover, the project doesn’t seem to be the latest one. I guess I’m  :horse:
Fear does not stop death, it stops life.
 

Offline Miti

  • Super Contributor
  • ***
  • Posts: 1358
  • Country: ca
Re: finding short on motherboards with a shorty (with display)
« Reply #133 on: February 06, 2024, 10:03:30 pm »
Ok, I’ve modified the I2C timing variables and the clock is now 400kHz but the display is still breaking. My displays may be junk or there’s something else wrong with the software.
Fear does not stop death, it stops life.
 

Online Kean

  • Supporter
  • ****
  • Posts: 2353
  • Country: au
  • Embedded systems & IT consultant
    • Kean Electronics
Re: finding short on motherboards with a shorty (with display)
« Reply #134 on: February 07, 2024, 10:10:51 am »
Ok, I’ve modified the I2C timing variables and the clock is now 400kHz but the display is still breaking. My displays may be junk or there’s something else wrong with the software.

I will be assembling mine in the next week, so I will report back when I've done that.
Maybe you can share your modified firmware with 400kHz I2C?
 

Offline Miti

  • Super Contributor
  • ***
  • Posts: 1358
  • Country: ca
Re: finding short on motherboards with a shorty (with display)
« Reply #135 on: February 08, 2024, 01:24:33 pm »
Here it is.
Fear does not stop death, it stops life.
 
The following users thanked this post: Kean

Offline Lagros

  • Newbie
  • Posts: 2
  • Country: ua
Re: finding short on motherboards with a shorty (with display)
« Reply #136 on: February 08, 2024, 01:33:55 pm »
Try unsoldering R10 and R11 and turn it on without these resistors.
 

Offline Miti

  • Super Contributor
  • ***
  • Posts: 1358
  • Country: ca
Re: finding short on motherboards with a shorty (with display)
« Reply #137 on: February 08, 2024, 04:26:47 pm »
Try unsoldering R10 and R11 and turn it on without these resistors.

How would it work without pull-up resistors? What do you suspect?
Fear does not stop death, it stops life.
 

Offline Lagros

  • Newbie
  • Posts: 2
  • Country: ua
Re: finding short on motherboards with a shorty (with display)
« Reply #138 on: February 08, 2024, 04:53:20 pm »
Pull-up resistors are present in OLED.
Try it!
 

Offline Ocela

  • Newbie
  • Posts: 3
  • Country: ru
Re: finding short on motherboards with a shorty (with display)
« Reply #139 on: February 11, 2024, 12:48:19 pm »
I don’t think Jiri is still maintaining this project.
I installed STM32 Cube and tried to change the I2C mode from FastModePlus to FastMode but I can’t figure out how to do that.  :palm:
Moreover, the project doesn’t seem to be the latest one. I guess I’m  :horse:
Miti, this is not enough. It is also necessary to change the frequencies inside the microcontroller buses
The pull-up resistors for the I2C bus and 3.3V voltage are not selected correctly. They should be equal to 1k. You can calculate this using an online calculator.
« Last Edit: February 11, 2024, 12:52:13 pm by Ocela »
 

Offline wacd

  • Contributor
  • Posts: 15
  • Country: tr
Re: finding short on motherboards with a shorty (with display)
« Reply #140 on: March 11, 2024, 11:53:22 am »
I built this Shorty on breadboard it works relatively good but there is one thing that i don't understand.

When i measure various shunt resistors it shows me strange results

0.0200R - 0.0189
0.0250R - 0.0245
0.0330R - 0.0333
0.0400R - 0.0430
0.1000R - 0.1100

Something wrong but i don't know what.
 

Online kripton2035Topic starter

  • Super Contributor
  • ***
  • Posts: 2690
  • Country: fr
    • kripton2035 schematics repository
Re: finding short on motherboards with a shorty (with display)
« Reply #141 on: March 11, 2024, 12:51:57 pm »
did you build MY shorty-with-display with arduino nano, or the "clone" with ST controller ?
the shorty-with-display is not a precision instrument, so the error is possible. it's only to measure relative to another point
also I suspect the device to change the value when it becomes hotter with time. it could change values
 

Online Antonio90

  • Frequent Contributor
  • **
  • Posts: 378
  • Country: es
Re: finding short on motherboards with a shorty (with display)
« Reply #142 on: March 11, 2024, 12:52:36 pm »
Hello, all results are within 5% tolerance, except the last one, which is 10%.
What is the tolerance of the shunts? 5-10%? Even if the resistors are 1% the results are well within expected values for a continuity tester IMHO.
 

Offline wacd

  • Contributor
  • Posts: 15
  • Country: tr
Re: finding short on motherboards with a shorty (with display)
« Reply #143 on: March 11, 2024, 01:01:03 pm »
I removed these shunts from laptop motherboards

There is something about the results , its like a pattern for example

-10
-5
-2
-0
+2
+5
+10

Sorry for not being able to explain myself i'm just a begginer at this kind of work and a complete stranger to the software side of the project.
 

Offline wacd

  • Contributor
  • Posts: 15
  • Country: tr
Re: finding short on motherboards with a shorty (with display)
« Reply #144 on: March 11, 2024, 01:03:20 pm »
Yes its your version Kripton. It's a clone nano. MCU has Atmel writing on it. 328P.

@Antonio90

All of them are %1


If i play around with these configs , i can get it to display the exact value of the resistor that i'm measuring. But when i change the resistor with a smaller or with a bigger value , it just does not measure it correctly. How can this be improved any suggestions?
« Last Edit: March 11, 2024, 06:25:13 pm by wacd »
 

Offline wacd

  • Contributor
  • Posts: 15
  • Country: tr
Re: finding short on motherboards with a shorty (with display)
« Reply #145 on: March 12, 2024, 07:56:18 am »
Closest one is 0.025 , it measured 0.022

Others are way off and it gets worse with bigger value resistors.
 

Online kripton2035Topic starter

  • Super Contributor
  • ***
  • Posts: 2690
  • Country: fr
    • kripton2035 schematics repository
Re: finding short on motherboards with a shorty (with display)
« Reply #146 on: March 12, 2024, 08:26:44 am »
so the inverse calc of the resistor is not as linear as the resistor value ? it can be...
 
The following users thanked this post: wacd

Offline wacd

  • Contributor
  • Posts: 15
  • Country: tr
Re: finding short on motherboards with a shorty (with display)
« Reply #147 on: March 12, 2024, 08:33:38 am »
I really have no idea about the programming side but the problem is, it displays lower value than it actually is under certain value resistor , and displays higher value than it actually is above certain resistor value. i hope i was able to explain myself with my broken English  |O
 

Online kripton2035Topic starter

  • Super Contributor
  • ***
  • Posts: 2690
  • Country: fr
    • kripton2035 schematics repository
Re: finding short on motherboards with a shorty (with display)
« Reply #148 on: March 12, 2024, 08:40:48 am »
this line could be modified to adjust to the measured values
 
The following users thanked this post: wacd

Offline wacd

  • Contributor
  • Posts: 15
  • Country: tr
Re: finding short on motherboards with a shorty (with display)
« Reply #149 on: March 12, 2024, 08:55:25 am »
Yea i played with those values for 2 days and got no real results , i guess i'll have to make do with what i have now.  :palm:
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf