Author Topic: Somebody goofed up  (Read 4397 times)

0 Members and 1 Guest are viewing this topic.

Offline GeorgeOfTheJungleTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 2699
  • Country: tr
Somebody goofed up
« on: September 05, 2019, 06:31:16 pm »


Or not? It's in a very popular dev board. Suddenly its magic smoke escaped today...

The further a society drifts from truth, the more it will hate those who speak it.
 
The following users thanked this post: bd139

Online bd139

  • Super Contributor
  • ***
  • Posts: 23021
  • Country: gb
Re: Somebody goofed up
« Reply #1 on: September 05, 2019, 06:35:06 pm »
That sort of shit is why humans invented QA  :palm:
 

Offline martinayotte

  • Regular Contributor
  • *
  • Posts: 64
Re: Somebody goofed up
« Reply #2 on: September 05, 2019, 06:42:29 pm »
 :-DD
 

Online fourfathom

  • Super Contributor
  • ***
  • Posts: 1883
  • Country: us
Re: Somebody goofed up
« Reply #3 on: September 05, 2019, 06:47:02 pm »
What is "LS1"?  It looks like the problem is there, and not the upside-down transistor.  I've seen people deliberately swap emitter and collector in order to get a slightly smaller saturation voltage (less gain, though).  That by itself shouldn't cause any smoke.
We'll search out every place a sick, twisted, solitary misfit might run to! -- I'll start with Radio Shack.
 

Offline Gyro

  • Super Contributor
  • ***
  • Posts: 9504
  • Country: gb
Re: Somebody goofed up
« Reply #4 on: September 05, 2019, 06:52:18 pm »
What is "LS1"?  It looks like the problem is there, and not the upside-down transistor.  I've seen people deliberately swap emitter and collector in order to get a slightly smaller saturation voltage (less gain, though).  That by itself shouldn't cause any smoke.

It looks like a magnetic audio sounder (it would have to provide DC continuity for the circuit to 'work'). The GPIO stuck high would probably do it.
Best Regards, Chris
 

Online bd139

  • Super Contributor
  • ***
  • Posts: 23021
  • Country: gb
Re: Somebody goofed up
« Reply #5 on: September 05, 2019, 07:04:10 pm »
What is "LS1"?  It looks like the problem is there, and not the upside-down transistor.  I've seen people deliberately swap emitter and collector in order to get a slightly smaller saturation voltage (less gain, though).  That by itself shouldn't cause any smoke.

Fair point. Gain is close to unity doing this so I'm not sure what the deal is. Perhaps it was in the linear region too. Pd off the scale.
 

Online magic

  • Super Contributor
  • ***
  • Posts: 6779
  • Country: pl
Re: Somebody goofed up
« Reply #6 on: September 05, 2019, 07:36:29 pm »
If LS1 is something inductive it may easily avalanche the BE junction. People say a lot of bad things about avalanching BE junctions, I don't know how true they are :-//
 

Offline GeorgeOfTheJungleTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 2699
  • Country: tr
Re: Somebody goofed up
« Reply #7 on: September 05, 2019, 07:54:54 pm »
That NPN has become a short circuit, and as the thing is powered by a LiPo, the LiPo went smoking hot as well. I was trying different "beeps" to find out which one seemed louder/could be heard from farther away, gpio 26 was outputting a square wave @2.8 kHz when it happened...
The further a society drifts from truth, the more it will hate those who speak it.
 

Offline thm_w

  • Super Contributor
  • ***
  • Posts: 6378
  • Country: ca
  • Non-expert
Re: Somebody goofed up
« Reply #8 on: September 05, 2019, 09:30:50 pm »
DET402-G-1 attached, seems like the top cover is missing in OPs photo for some reason.
And it does appear to be coil based, which would give a voltage spike.
« Last Edit: September 05, 2019, 09:33:16 pm by thm_w »
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 
The following users thanked this post: GeorgeOfTheJungle

Offline rsjsouza

  • Super Contributor
  • ***
  • Posts: 5986
  • Country: us
  • Eternally curious
    • Vbe - vídeo blog eletrônico
Re: Somebody goofed up
« Reply #9 on: September 05, 2019, 09:36:59 pm »
What is "LS1"?  It looks like the problem is there, and not the upside-down transistor.  I've seen people deliberately swap emitter and collector in order to get a slightly smaller saturation voltage (less gain, though).  That by itself shouldn't cause any smoke.
A.k.a. common collector configuration.
https://en.wikipedia.org/wiki/Common_collector
 
Vbe - vídeo blog eletrônico http://videos.vbeletronico.com

Oh, the "whys" of the datasheets... The information is there not to be an axiomatic truth, but instead each speck of data must be slowly inhaled while carefully performing a deep search inside oneself to find the true metaphysical sense...
 

Offline Circlotron

  • Super Contributor
  • ***
  • Posts: 3180
  • Country: au
Re: Somebody goofed up
« Reply #10 on: September 05, 2019, 09:52:18 pm »
What is "LS1"?  It looks like the problem is there, and not the upside-down transistor.  I've seen people deliberately swap emitter and collector in order to get a slightly smaller saturation voltage (less gain, though).  That by itself shouldn't cause any smoke.
A.k.a. common collector configuration.
https://en.wikipedia.org/wiki/Common_collector
If that’s the case, the power supply rails are reverse polarity.
 

Offline GeorgeOfTheJungleTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 2699
  • Country: tr
Re: Somebody goofed up
« Reply #11 on: September 05, 2019, 10:00:18 pm »
Now that I think about it, I was flipping gpio every 350 µs, but that's not 2.8 kHz, it's 1.4 kHz. Since it's close to the resonance frequency of the DET402-G-1, could that have accelerated the unfortunate events?

Code: [Select]
: invert 0= if 1 else 0 then ;

26 output: speaker
: beep
    begin
        speaker speaker digr invert digw
        350 delay.us
        key?
    until
    speaker 0 digw
;

The further a society drifts from truth, the more it will hate those who speak it.
 

Online fourfathom

  • Super Contributor
  • ***
  • Posts: 1883
  • Country: us
Re: Somebody goofed up
« Reply #12 on: September 05, 2019, 10:20:37 pm »
What is "LS1"?  It looks like the problem is there, and not the upside-down transistor.  I've seen people deliberately swap emitter and collector in order to get a slightly smaller saturation voltage (less gain, though).  That by itself shouldn't cause any smoke.
A.k.a. common collector configuration.
https://en.wikipedia.org/wiki/Common_collector

Not the same thing at all.  Look again.
We'll search out every place a sick, twisted, solitary misfit might run to! -- I'll start with Radio Shack.
 

Online fourfathom

  • Super Contributor
  • ***
  • Posts: 1883
  • Country: us
Re: Somebody goofed up
« Reply #13 on: September 05, 2019, 10:26:00 pm »
Now that I think about it, I was flipping gpio every 350 µs, but that's not 2.8 kHz, it's 1.4 kHz. Since it's close to the resonance frequency of the DET402-G-1, could that have accelerated the unfortunate events?

Code: [Select]
: invert 0= if 1 else 0 then ;

26 output: speaker
: beep
    begin
        speaker speaker digr invert digw
        350 delay.us
        key?
    until
    speaker 0 digw
;
Quite possibly. Depending on Q, the voltage ringing might well be high enough voltage to kill the transistor, especially in the upside-down config.  This could be a problem at any frequency. But driving it at resonance could make it worse.
We'll search out every place a sick, twisted, solitary misfit might run to! -- I'll start with Radio Shack.
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14472
  • Country: fr
Re: Somebody goofed up
« Reply #14 on: September 05, 2019, 10:30:43 pm »
Oh well, do NPNs not have a right to be used inverted? Maybe some of them just feel "right" when used this way. :-DD
 
The following users thanked this post: GeorgeOfTheJungle, nugglix

Offline Kjelt

  • Super Contributor
  • ***
  • Posts: 6460
  • Country: nl
Re: Somebody goofed up
« Reply #15 on: September 05, 2019, 10:43:06 pm »
 
The following users thanked this post: GeorgeOfTheJungle

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14472
  • Country: fr
Re: Somebody goofed up
« Reply #16 on: September 05, 2019, 10:47:02 pm »
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12860
Re: Somebody goofed up
« Reply #17 on: September 05, 2019, 10:57:33 pm »
IMHO its just a shitty design.  If the transistor can't stand the max. current the sounder will pass @3.3V DC, they should have included a series resistor to limit the continuous current, possibly with a  capacitor across it so you can get more drive when you pulse it.   Also relying on reverse E-B zenering to turn the transistor on and clamp the back-EMF from the inductive load is just plain nasty.

Alternatively they could have used a NPN+ PNP pair as a complimentary emitter follower, and a capacitor in series with the sounder - that's particularly robust because the non-active transistor will turn on enough to clamp the output if the load tries to drags it more than one Vbe outside the rails.
 

Offline Sal Ammoniac

  • Super Contributor
  • ***
  • Posts: 1670
  • Country: us
Re: Somebody goofed up
« Reply #18 on: September 05, 2019, 11:09:30 pm »
Now that I think about it, I was flipping gpio every 350 µs, but that's not 2.8 kHz, it's 1.4 kHz. Since it's close to the resonance frequency of the DET402-G-1, could that have accelerated the unfortunate events?

Code: [Select]
: invert 0= if 1 else 0 then ;

26 output: speaker
: beep
    begin
        speaker speaker digr invert digw
        350 delay.us
        key?
    until
    speaker 0 digw
;



There's your problem right there... Forth killed it. When the transistor saw it was being controlled by Forth, it did the only thing it could: commit suicide.  :-DD
« Last Edit: September 06, 2019, 03:00:21 pm by Sal Ammoniac »
Complexity is the number-one enemy of high-quality code.
 
The following users thanked this post: GeorgeOfTheJungle, nugglix, bd139

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14472
  • Country: fr
Re: Somebody goofed up
« Reply #19 on: September 05, 2019, 11:14:42 pm »
There's reason in controlling an inverted transistor with an inverted language. ;D
 
The following users thanked this post: GeorgeOfTheJungle, Ian.M, RoGeorge, techman-001

Online bd139

  • Super Contributor
  • ***
  • Posts: 23021
  • Country: gb
Re: Somebody goofed up
« Reply #20 on: September 06, 2019, 07:22:27 am »
There's your problem right there... Forth killed it.

I actually just spilled coffee everywhere laughing at that  :-DD
 

Offline GeorgeOfTheJungleTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 2699
  • Country: tr
Re: Somebody goofed up
« Reply #21 on: September 06, 2019, 07:30:21 am »
Where's techman-001 ?
The further a society drifts from truth, the more it will hate those who speak it.
 

Offline techman-001

  • Frequent Contributor
  • **
  • !
  • Posts: 748
  • Country: au
  • Electronics technician for the last 50 years
    • Mecrisp Stellaris Unofficial UserDoc
Re: Somebody goofed up
« Reply #22 on: October 09, 2019, 09:03:31 am »
Where's techman-001 ?

Just stumbling across this topic right now :)

I think the inductive load and possibly the on/off frequency killed the transistor being used in "uncommon emitter mode".

I think it may have also killed it if it was in common emitter mode.

George is that Forth your "ATlast" ?
 

Offline GeorgeOfTheJungleTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 2699
  • Country: tr
Re: Somebody goofed up
« Reply #23 on: October 09, 2019, 09:12:16 am »
George is that Forth your "ATlast" ?

Yes it is. The only other Forth I've ever had (and used) is one for the Apple II that John Drapper (a.k.a. Captain Crunch) in person sold me at the NCC in NYC in 1979.

Edit:
But that code above won't run in yours because I've added some words to mine: e.g. delay.us (delayMicroseconds), digr (digitalRead) and digw IIANM.
« Last Edit: October 09, 2019, 09:15:44 am by GeorgeOfTheJungle »
The further a society drifts from truth, the more it will hate those who speak it.
 

Offline techman-001

  • Frequent Contributor
  • **
  • !
  • Posts: 748
  • Country: au
  • Electronics technician for the last 50 years
    • Mecrisp Stellaris Unofficial UserDoc
Re: Somebody goofed up
« Reply #24 on: October 09, 2019, 10:39:34 am »
George is that Forth your "ATlast" ?

Yes it is. The only other Forth I've ever had (and used) is one for the Apple II that John Drapper (a.k.a. Captain Crunch) in person sold me at the NCC in NYC in 1979.

Edit:
But that code above won't run in yours because I've added some words to mine: e.g. delay.us (delayMicroseconds), digr (digitalRead) and digw IIANM.

Just having bought a Apple II from Captain Crunch makes you a legend!

Yes I could see your extra Words.

Forth people never copy each others code, for one we don't need to, and 2) our systems are all different.

Your code is:
: invert 0= if 1 else 0 then ;

26 output: speaker
: beep
    begin
        speaker speaker digr invert digw
        350 delay.us
        key?
    until
    speaker 0 digw
;

Mine would be something like:
( not inverts all bits)

 : beep
    begin
           speaker dup digr not digw
           350 delay.us
           key?
   until
   speaker 0 digw
;
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf