that datasheet says that I should not exeed 3v in the data pin. If i connect this device directly to the arduino TX pin will be damaged?
So you need to cut down the signal from the arduino pin into this device. You can use a potential divider to do this but the best way is to use two transistors, as a simple two stage common collector amplifier. You need two stages because a single stage inverts the signal, so with two stages it is the right way up.
I understand now that with the voltage divider, i think i'm gonna use it. and also a 3v regulator for the whole circuit.
but i don't know what is a "simple two stage common collector amplifier". Does anybody have a link with the circuit? If this is better I would like to know how does it work.
but i don't know what is a "simple two stage common collector amplifier"
First diagram (Figure 1) on this page.
put a resistor (1K) in the base and wire it up to the TX of the arduino and wire the collector resistor to +3V3
Then use that circuit again and connect the base directly to the collector of the first transistor. Take the collector of the second transistor and connect that to the RX input of your device. Again wire the collector resistor to +3V3.
In the circuit, in the above link, where the resistor is added to the emitter side of the transistor, why isn't it possible to put the output on the emitter and use that as a non inverting output?