United Kingdom
Online
Faraday Member
Karma: 131
Posts: 4656
|
 |
« Reply #30 on: September 14, 2011, 03:26:37 am » |
If the circuit transmits successfully when you short the non-ground side of C9 to the non-ground side of D2, then I suggest you check/try the following:
1. Check that R5, R8 and R9 have the correct value.
2. Check transistor T2.
3. Check that D3 is the right way round and the correct type (i.e. a signal diode not a power diode).
4. Temporarily replace your 2-capacitor C9 arrangement with a single capacitor, positive side to ground (no need to get a 10uF cap if you don't have one, 22uF should do). Then make sure you power up the PC and connect the RS232 cable BEFORE connecting power to the Arduino, and likewise remove power from the Arduino before disconnecting the RS232 cable. This should avoid a reverse voltage on C9.
If (4) fixes it and you still can't get a non-polar electrolytic, you could try a 1uF or greater metal film capacitor, if you can find one - that should work at high baud rates.
PS - what country are you in?
|
|
|
|
« Last Edit: September 14, 2011, 03:28:22 am by dc42 »
|
Logged
|
Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 63
discovering the fun in electronics
|
 |
« Reply #31 on: September 14, 2011, 03:39:44 am » |
1. R5,R8 are correct. R9 is 4k instead of 4.7k, when I was adding components I had the mounting diagram with me. And it is not very clearly mentioned on it. I thought it was 4k. Now when I see the schematic carefully, I noticed it. I will replace it today. 2. I checked the transistor T2 and it is working fine. I checked the connectivity of EB and CB terminals with a multimeter bothways. 3.D3 is correctly connected and it is a 4148 switching diode. 4. I did check that in the morning, and it still didn't work. But I didn't do it in that sequence, I will try again. And I live in India 
|
|
|
|
« Last Edit: September 14, 2011, 03:41:36 am by mohitdaksh »
|
Logged
|
|
|
|
|
United Kingdom
Online
Faraday Member
Karma: 131
Posts: 4656
|
 |
« Reply #32 on: September 14, 2011, 04:37:26 am » |
4k is an odd value - it's hard to find resistors with that value, so I suggest you check it with a multimeter. If it really is 4K instead of 4k7, I wouldn't expect it to make a significant difference to the operation of the circuit.
Here is a test you could try:
- lift the end of R5 that is connected to the TxD pin of the mcu
- with the RS232 port connected to the PC and the Severino powered up, check the voltage on the non-ground side of C9. It should be around -10v. Then check the voltage on pin 2 of the RS232 port (= collector of T2). It should be between -10v and -6v.
- connect the end of R5 that you lifted to ground. Check the voltages again. The non-ground side of C9 should still be around -10v or perhaps nearer -8v this time, but pin 2 of the RS232 port should be nearly +5v.
Let me know the 4 voltages you read.
|
|
|
|
|
Logged
|
Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 63
discovering the fun in electronics
|
 |
« Reply #33 on: September 17, 2011, 11:41:41 pm » |
Sorry for late reply, I was having my exams. 4k is an odd value - it's hard to find resistors with that value, so I suggest you check it with a multimeter. If it really is 4K instead of 4k7, I wouldn't expect it to make a significant difference to the operation of the circuit. It measures 3.86 K ohms. with the RS232 port connected to the PC and the Severino powered up, check the voltage on the non-ground side of C9. It should be around -10v. Then check the voltage on pin 2 of the RS232 port (= collector of T2). It should be between -10v and -6v. C9== -9.06V Pin 2 == -5.02 V connect the end of R5 that you lifted to ground. Check the voltages again. The non-ground side of C9 should still be around -10v or perhaps nearer -8v this time, but pin 2 of the RS232 port should be nearly +5v. C9== -8.54V Pin2 == 0.19 V ????!!! I would like to add one more thing. I was seeing the datasheet for bc557. At these two locations the pin out is different: www.nxp.com/documents/data_sheet/BC556_557.pdfand http://www.fairchildsemi.com/ds/BC/BC557.pdfIs there no standard for pin out? I used the 2nd one for the readings because it seems to be more common.
|
|
|
|
« Last Edit: September 18, 2011, 01:38:07 am by mohitdaksh »
|
Logged
|
|
|
|
|
United Kingdom
Online
Faraday Member
Karma: 131
Posts: 4656
|
 |
« Reply #34 on: September 18, 2011, 03:02:20 am » |
That 0.19v is the problem. Either you have emitter and collector of the bc557 transposed, or the resistor you lifted has the wrong value, or the transistor is faulty. Regarding pinout, I can't read one of those datasheets on the mobile I am sending this from, however some transistors come in different pinouts with different suffixes to the main part number.
|
|
|
|
|
Logged
|
Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 63
discovering the fun in electronics
|
 |
« Reply #35 on: September 18, 2011, 03:07:46 am » |
I will see all these possibilities one by one and report here.
|
|
|
|
|
Logged
|
|
|
|
|
United Kingdom
Online
Faraday Member
Karma: 131
Posts: 4656
|
 |
« Reply #36 on: September 18, 2011, 03:39:38 am » |
Ps - I am assuming you grounded the correct end of the resistor, the one that used to be connected to the mcu.
Your 4k resistor is actually 3k9 which is a standard value.
I hope you did well in your exams.
|
|
|
|
|
Logged
|
Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 63
discovering the fun in electronics
|
 |
« Reply #37 on: September 18, 2011, 04:41:12 am » |
I lifted the end that was NOT connected to the base of T2, I replaced the capacitors because they seemed like shorting with another similar pair, changed the transistors, changed the 3k9 to 4k7, changed R5, but everything is exactly the same. And exams were fine. Thanks for your concern PS. I think I should try reversing the pnp before giving it up. Maybe it is the odd type transistor with opposite pinout.
|
|
|
|
« Last Edit: September 18, 2011, 04:46:51 am by mohitdaksh »
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 63
discovering the fun in electronics
|
 |
« Reply #38 on: September 18, 2011, 05:06:42 am » |
Finally everything is fine.  Serial communication is fine now you have emitter and collector of the bc557 transposed This was it. The pinout of the transistor was opposite, and it did not mention the company or anything to distinguish it with other bc557s. I think companies that don't stick to standard pinout and don't write anything on the IC to distinguish it should be banned!!!  And I cannot thank you enough for it. I really appreciate the help you and other members of this forum offer to everyone. At the moment serial communication is going great. I am just having some troubles with the bootloader, I have burnt it, but right now its not working. But I think it is just a software problem, which I will sort out hopefully.
|
|
|
|
« Last Edit: September 18, 2011, 09:29:28 am by mohitdaksh »
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 63
discovering the fun in electronics
|
 |
« Reply #39 on: September 19, 2011, 11:31:20 am » |
Finally everything is working as it should. Thanks a lot everyone 
|
|
|
|
|
Logged
|
|
|
|
|
|