My goal is to get code from onewire reader (DS1990A transmision emulation) do some modification and send it to RS232 port. When arduino will do modification i want also light up/down 2 leds and make sound from buzzer in reader which are controled by connecting to ground.
I made schema as attached.
Can someone check my schema cos im not electronic ninja?
I see some 2 pin 12 volt connector (J4), with both pins to 12 volt and none to GND.
These 12 volts go to your 6 pin connector J3 and nowhere else, is that what you meant to happen ?
The red and green LED are connected to J3's 12 volt via a resistor i must assume ?
What's the function of J1 ?
Transistor T1 will invert your serial communications, you need to take that in consideration.
That why i use BC547 as level converter for TX. RS232 works from 3V to 15V, so 5V is OK, i test above solution and works better then cheap max232 (for TTL TX to RS232 RX) i dont need full tansmission, just send data from arduino direct to RS232 on main unit.
sirwiz:
That why i use BC547 as level converter for TX. RS232 works from 3V to 15V, so 5V is OK, i test above solution and works better then cheap max232 (for TTL TX to RS232 RX) i dont need full tansmission, just send data from arduino direct to RS232 on main unit.
That is why Ron suggested you review RS-232. IT uses +-3 to +-25 volts, not just +3 to +15.
Point being: Don't mention a communication protocol that has been around longer than you have if you
are not going to respect the protocol. Either respect the protocol by following it or don't mention it.
If you are going to invent your own protocol , fine, but don't call it RS232 or expect us to consider it as
RS232 because as ANYONE who knows ANYTHING about RS232 can tell you, it is a bipolar voltage protocol.
You labeled one pin RS232_TX but you have only positive voltages in your circuit, so your label is WRONG.
You CANNOT label that pin RS232_TX if you have NO RS232 circuitry, regardless of your "it works " claims.
Either follow the protocol or don't discuss it. It's really that simple.