SparkFun Forums 

Where electronics enthusiasts find answers.

General project discussion / help
Did you make a robotic coffee pot which implements HTCPCP and decafs unauthorized users? Show it off here!
By hungry_hobbit
I'm trying to send a cycle count from a Moog smart motor to an ADM1602U LED but only get garbage out.
How do I set up the LED to receive ASCII strings? What I send is visible in the motor's software, but gets garbled up in the display.
Any help is greatly appreciated.
By hungry_hobbit
Yes, they match. I currently have output from the motor at pin 10, which is the RS-232 transmit channel. The motor is an SM23375DM. +5 on pin 12, ground on 13.
User avatar
By DanV
I'm unsure what you're saying:
output from the motor at pin 10, which is the RS-232 transmit channel
I guess that's the motor's pin 10?
And it may well be the motor's transmit channel - is it connected to Rx on the LED?

Maybe the motor is not working with 5 VDC?
the datasheet clearly states:
Note that the RX input should be a 5V TTL-level signal directly from a 5V microcontroller or other 5V system. You should NOT connect the board to RS232-level voltages, which are +/-10V and will damage the board (see our explanation here). If you do wish to connect this display to RS232 signals, you can use a level-shifting board such as our PRT-00449 to translate the RS232 signals to TTL-level signals.
that could be affecting things.
By hungry_hobbit
Yes, I have 5 V at the motor, between pins 12 and 13. I see in your response that I need a "shifter" to translate the signal. I've purchased one(1568-1283-ND), but am unsure how to wire it.
Please correct if I'm wrong: from the motor to shifter - 5V out (pin 12) soldered to Vcc @ the back of the shifter
- Gnd to gnd
- pin 10 (transmit) to Rx-1
then, from LED into matching female shifter ports?
Again, thanks for the assist!
User avatar
By DanV
Aside from making certain that you also have GND connected to the LED, I would try connecting the motor to a serial port on a PC and using HyperTerminal to verify the communications work with what settings you believe the motor is configured with.

I'm not sure you need the level shifter for motor to LED connection since you motor is using 5VDC.

You may need the level shifter for connection to the PC since the PC likely uses somewhat standard +/- 13VDC or so.
RS232 levels can vary from +/- 3VDC to +/-25VDC.

I have not used a level shifter but your description of the connections seems correct.
By hungry_hobbit
Great !!
I have it working, but it's filling up the display. I need to figure out what command clears the previous entry.
It's probably code hiding in the manual somewhere for me to pass by it again and again!
Thanks for all the help !!
I'm checking the FAQ for how to give "kudos."
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]