Go Down

Topic: Several Serial Devices (Read 2 times) previous topic - next topic

yamandu

Hi,

I have an Arduino Duemilanove in my project and I need to comunicate serial with 3 devices:
-LCD 16x2
-Xbee
-Barcode scanner

The barcode scanner is the only not working
It has a serial cable and a RS232 interface built in, is not a handheld, its kinda OEM.

I could read it sometimes but no more.
Now it looks like a power supply issue.
I was able to feed it with another power supply so it can scan normaly.
But now when I try to read from it using software serial arduino just freezes.
I am using pin 9 and 13 for the scanner.

liudr

Try reading some more from that scanner you will smoke your arduino. RS232 runs on +- 12V and Arduino serial runs on 0 +5V so you should have something in between to shift the voltage levels.

CrossRoads

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

yamandu

Thank you all for quick replying!

I think will not smoke the Arduino because the specification of the scanner states the power is 5v.

I had better success reading using RX and TX pins and using the real Serial.

Will I still need the converter?

But I get weird data!
I dont know the relation to the printed barcode it reads, any clue?
Is it because I dont have that converter?

CrossRoads

Measure the Rx & Tx lines out of the scanner when it is not sending - are they resting something besides 0 or 5V? Like + 10, +12V, maybe -10 or -12?
Then they are using RS232 levels and you will need the adapter, or make one up.
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Go Up