Author Topic: transistor issue  (Read 3828 times)

0 Members and 1 Guest are viewing this topic.

Offline @rtTopic starter

  • Super Contributor
  • ***
  • Posts: 1059
transistor issue
« on: September 05, 2015, 10:51:17 am »
Hi Guys :)
This has to do with my core rope project. Pulling my hair out here :O

I send a pulse through the pulse line, and try to read the transformer outputs
from the secondaries into an eight bit port. Only the first four bits are shown here.

It is only bit 0 that is behaving itself.
The input to the transistors from the former secondaries all look the same to me on a scope.
This circuit should invert the signal, and usually be high, except when there’s a pulse.
Bit 0 does this, but all others in the line are always zero volts (the highlighted connections) unless I pull the micro controller out of the circuit.
I would think that the ten turn windings on the toroids would normally be
keeping the transistor bases low. The 5 Volt supply to all transistors is ok.

Right now, this will read 0001, when it should be 0101 due to the pulse wire weave pattern shown here.
Then as I cycle all the other pulse lines that aren’t shown here, the 8 bit result is either 0 or 1,
and it is always bit 0 state, and is correct.

Any ideas of what I should try? Thanks :)

« Last Edit: September 05, 2015, 10:53:27 am by @rt »
 

Offline Andy Watson

  • Super Contributor
  • ***
  • Posts: 2086
Re: transistor issue
« Reply #1 on: September 05, 2015, 11:09:07 am »
How big is the voltage pulse from the ten-turns sense winding? You're going to need at least 600mV before the transistors react.
 

Offline @rtTopic starter

  • Super Contributor
  • ***
  • Posts: 1059
Re: transistor issue
« Reply #2 on: September 05, 2015, 11:17:17 am »
Hi, yes they are all the same, but that’s irrelevant.
Let’s say the pulse was zero volts. Then all the outputs should be high all the time.
Only bit0 is normally high. The others go high when I pull out the micro, and drop down slowly to zero again.
« Last Edit: September 05, 2015, 11:19:55 am by @rt »
 

Offline Andy Watson

  • Super Contributor
  • ***
  • Posts: 2086
Re: transistor issue
« Reply #3 on: September 05, 2015, 11:23:34 am »
Ah, sorry, misinterpreted the problem.
Is the power supply to the micro clean?
 

Offline @rtTopic starter

  • Super Contributor
  • ***
  • Posts: 1059
Re: transistor issue
« Reply #4 on: September 05, 2015, 11:28:42 am »
It is a 5V 2A regulated supply for Sony PSP, but I have also tried another supply.
I’m about to disconnect the first secondary to see if that makes bit1 the new bit0.
 

Offline @rtTopic starter

  • Super Contributor
  • ***
  • Posts: 1059
Re: transistor issue
« Reply #5 on: September 05, 2015, 11:56:00 am »
The transistors can be forgotten about (except the unusual behaviour I think has something to do with it.
I just removed the first two and connected the micro inputs directly to their former secondaries.
It works the same.. only bit0 works, it’s just not inverted anymore.
 

Offline Andy Watson

  • Super Contributor
  • ***
  • Posts: 2086
Re: transistor issue
« Reply #6 on: September 05, 2015, 12:23:13 pm »
If you measure the voltages - with micro connected - are the static (DC) conditions correct?
 

Offline @rtTopic starter

  • Super Contributor
  • ***
  • Posts: 1059
Re: transistor issue
« Reply #7 on: September 05, 2015, 01:03:42 pm »
All looks good around the micro. with a DMM, the transistorised pins that are left, the highlighted points are slightly below zero normally (-0.09V).
If I measure the former output with a DMM that’s always going to look like a DC short to ground, and does.
On a scope, the signal is above 600mV on all of them, but I can’t see the positive pulse once I connect something to it
(either the mcu pin or transistor base).
 

Offline atferrari

  • Frequent Contributor
  • **
  • Posts: 314
  • Country: ar
Re: transistor issue
« Reply #8 on: September 05, 2015, 08:16:46 pm »
Cores acting like ferrite beads but huge ones?
Agustín Tomás
In theory, there is no difference between theory and practice. In practice, however, there is.
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21688
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: transistor issue
« Reply #9 on: September 06, 2015, 12:03:56 am »
Sounds like you forgot to set the MCU pins to input (tristate or pullup drive)?

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline @rtTopic starter

  • Super Contributor
  • ***
  • Posts: 1059
Re: transistor issue
« Reply #10 on: September 06, 2015, 03:18:45 am »
First suggestion was correct :)
Silly me wrote 0x01h to the port tris instead of 0FFh to set the eight bits input.
That perfectly explains the first bit working as input, and the project is working now ;)
Thanks for the suggestions :)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf