I've done 1MHz using SPI. Usually slower in DIY applications.What is the maximum speed for the Tx signal?
It would be 9600 baudsWhat is the maximum speed for the Tx signal?
I tried with 2n2907, but it didn't work. Do you think it isn't right for the application, or it's right and I should start looking for the fault somewhere else?I've done 1MHz using SPI. Usually slower in DIY applications.
A 2N7000 works for low-side switching. I'm guessing any old 2n3906 should work.
You could almost switch by hand at those speedsIt would be 9600 bauds
Ok, that answers my last reply. Thank you!NPN: 2N2222
PNP: 2N2907
Or almost any other small signal transistors you can think of.
Understood! xDYou could almost switch by hand at those speeds![]()
The 2n2907 should work. People get e, b, c mixed up on pnp transistors - did you connect it wrong? What is your load? Do you even need this extra current? What is your application and cable length.I tried with 2n2907, but it didn't work. Do you think it isn't right for the application, or it's right and I should start looking for the fault somewhere else?
I think I did connect correctly. I even made the test switching by hand and measuring the output. It seems to work fine, but the communication isn't working. The maximum current would be 15 mA. The application is for MDB protocol (a coin changer), and the cable length is about 60 cm.The 2n2907 should work. People get e, b, c mixed up on pnp transistors - did you connect it wrong? What is your load? Do you even need this extra current? What is your application and cable length.
The pic can easily drive 15 ma if I remember correctly. Check the specific pin used for transmit on your chip.I think I did connect correctly. I even made the test switching by hand and measuring the output. It seems to work fine, but the communication isn't working. The maximum current would be 15 mA. The application is for MDB protocol (a coin changer), and the cable length is about 60 cm.
I think it is some sort of current limiting in case of a short on the cable.I don't understand how that circuit works.
What's the purpose of the top transistor?
I think the PIC is capable to drive up to 20 mA. But the MDB protocol states that circuit for interfacing between master and slave, so I have to include it.The pic can easily drive 15 ma if I remember correctly. Check the specific pin used for transmit on your chip.
It isn't for RS232. It's MDB (multidrop bus)If this is for RS-232, the receiving end might need to see the signal go below ground, not just to ground.
By the way, what's the purpose of the top transistor?