TriggerHappy
Junior Member level 3
EDIT: To make the story short:
When I use a transistor to open and close a switch, I can't just leave the collector hanging, right? And I shouldn't ground it nor the emittor, right? What I need is a big resistor between emittor and collector, which is short circuited when the base gets high. Am I onto it here?
BACKGROUND
I've soldered wires onto a tact switch (of a hands free bluetooth device) in order to replace physically pressing its on/off button, with a way of switching which I control electronically. I can manually turn it on and off by short circuiting the wires I've soldered onto it, no problems. But when I connect them to my astable oscillator, it doesn't work anymore.
Three things can be done with the button physically.
A) Holding it pressed in 3 seconds switches it on (if "off" to begin with).
B) 4 seconds switches it off (if "on" to begin with).
C) 8 seconds puts in "search mode" (if "off" to begin with).
And this works just like that when I manually short circuits the wires I've soldered onto the switch and let go when the LED of the device indicates that it has entered the state change I want.
Now, my goal is to repeatedly turn it on and off, to have it go between A and B above, but never C. That way, it repeatedly sends a hello bluetooth signal which I can capture with code in my mobile phone. So I've put together an oscillator to open the switch for about 6 seconds, and then close it for X seconds (I've tried with from about ½ up to a about 2 seconds).
PROBLEM
But my astable oscillator only makes it go into "search mode". It never stops in "on" mode without going on to enter the "search mode". And this is not because the pulse length of the oscillator is too long. I've tried with a LED and it is definitely not lit as long as 8 seconds.
And I've decreased the "on" time (mark time, high time) of the oscillator, but then I just hit the level where the bluetooth never even goes into "search mode". The window between 4 and 8 seconds doesn't seem to exist when it's connected to the oscillator. Either it never switches on, or it goes all the way into "search mode".
SOLUTION?
One theory is that maybe the resistance between collector and emittor doesn't go down low enough fast enough for the device to recognize that the "the button has been released". I measure that resistance and it oscillates with about the right timing. But my multimeter doesn't momentarily change its display from "infinite" to 0 ohm. It counts down and up, especially the fall is displayed sequentially and never hits 0 ohm before rising again. Is this simply a measuring error of my multimeter, or is it possible that my astable oscillator has leaning flanks as large as in the order of a couple of seconds?
- This is the tact switch I've soldered on:
https://www.edaboard.com/threads/244644/
- My transistor is the one in optocoupler 4N36 DIL. I just use the transistor part of it pins 4, 5 and 6.
- The oscillator is built around an NE555P on a solderless board. And as I said, itself it seems to work well on a LED. But my mutlimeter doesn't indicate (by its design I suppose) how fast its pulse flanks fall.
- I have a 1 uF capacitor, so I use timing resistors in the order of 1 Mohm to a few Mohm. I've tried different configurations to vary timing. Again, timing seems okay when indicated by a LED.
- My VCC is 5.1v from batteries (when in service it will be USB powered with 5v).
SPECIFIC QUESTIONS
What resistance should I really have between the 555 output and the base of the transistor? I used 3800 ohm. Collector is grounded without resistor. Is this where I screw up?
What could I measure in order to find useful information about what's wrong?
I see know that some example circuits have a 0.01 uF capacitor to ground from the control pin of the 555. Is that important for the time scales I work with? What is it for really?
When I use a transistor to open and close a switch, I can't just leave the collector hanging, right? And I shouldn't ground it nor the emittor, right? What I need is a big resistor between emittor and collector, which is short circuited when the base gets high. Am I onto it here?
BACKGROUND
I've soldered wires onto a tact switch (of a hands free bluetooth device) in order to replace physically pressing its on/off button, with a way of switching which I control electronically. I can manually turn it on and off by short circuiting the wires I've soldered onto it, no problems. But when I connect them to my astable oscillator, it doesn't work anymore.
Three things can be done with the button physically.
A) Holding it pressed in 3 seconds switches it on (if "off" to begin with).
B) 4 seconds switches it off (if "on" to begin with).
C) 8 seconds puts in "search mode" (if "off" to begin with).
And this works just like that when I manually short circuits the wires I've soldered onto the switch and let go when the LED of the device indicates that it has entered the state change I want.
Now, my goal is to repeatedly turn it on and off, to have it go between A and B above, but never C. That way, it repeatedly sends a hello bluetooth signal which I can capture with code in my mobile phone. So I've put together an oscillator to open the switch for about 6 seconds, and then close it for X seconds (I've tried with from about ½ up to a about 2 seconds).
PROBLEM
But my astable oscillator only makes it go into "search mode". It never stops in "on" mode without going on to enter the "search mode". And this is not because the pulse length of the oscillator is too long. I've tried with a LED and it is definitely not lit as long as 8 seconds.
And I've decreased the "on" time (mark time, high time) of the oscillator, but then I just hit the level where the bluetooth never even goes into "search mode". The window between 4 and 8 seconds doesn't seem to exist when it's connected to the oscillator. Either it never switches on, or it goes all the way into "search mode".
SOLUTION?
One theory is that maybe the resistance between collector and emittor doesn't go down low enough fast enough for the device to recognize that the "the button has been released". I measure that resistance and it oscillates with about the right timing. But my multimeter doesn't momentarily change its display from "infinite" to 0 ohm. It counts down and up, especially the fall is displayed sequentially and never hits 0 ohm before rising again. Is this simply a measuring error of my multimeter, or is it possible that my astable oscillator has leaning flanks as large as in the order of a couple of seconds?
- This is the tact switch I've soldered on:
https://www.edaboard.com/threads/244644/
- My transistor is the one in optocoupler 4N36 DIL. I just use the transistor part of it pins 4, 5 and 6.
- The oscillator is built around an NE555P on a solderless board. And as I said, itself it seems to work well on a LED. But my mutlimeter doesn't indicate (by its design I suppose) how fast its pulse flanks fall.
- I have a 1 uF capacitor, so I use timing resistors in the order of 1 Mohm to a few Mohm. I've tried different configurations to vary timing. Again, timing seems okay when indicated by a LED.
- My VCC is 5.1v from batteries (when in service it will be USB powered with 5v).
SPECIFIC QUESTIONS
What resistance should I really have between the 555 output and the base of the transistor? I used 3800 ohm. Collector is grounded without resistor. Is this where I screw up?
What could I measure in order to find useful information about what's wrong?
I see know that some example circuits have a 0.01 uF capacitor to ground from the control pin of the 555. Is that important for the time scales I work with? What is it for really?
Last edited: