Go to Post Stupid programmer question: where does the tread go? - Joel J [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 12-03-2015, 11:38
sanelss sanelss is offline
Registered User
FRC #1658
 
Join Date: Dec 2012
Location: saint louis
Posts: 258
sanelss is a splendid one to beholdsanelss is a splendid one to beholdsanelss is a splendid one to beholdsanelss is a splendid one to beholdsanelss is a splendid one to beholdsanelss is a splendid one to behold
Roborio labview RS-232 port issue

X-post: http://www.chiefdelphi.com/forums/sh...=1#post1456937

Trying to get an arduino to talk to roborio over the serial port and having some issues.

on the arduino side i have:

Serial.write(0);
Serial.write(1);
Serial.write(2);
Serial.write(8);


and on roborio side I get:

0
253(0b11111101)
251(0b11111011)
239(0b11101111)

as far as i'm aware the arduino uses 8 data bits, no flow control, and 1 stop bit, in labview I have the same configuration on the serial>open vi

it seems as though the bits are inverted and off by one place. This is not the first time I've run into a communication issue, the i2c interface also has a very similar issue where the address bits are shifted the wrong way and was able to work around that. on here it looks like it can also be worked around but looks like 1 bit of data will be lost...

Anyone have any ideas how to fix this?

Edit:Looks like it's just an issue with the logic levels, the rs-232 port is not ttl compatible and needs a level shifter circuit. In my case since it's only 1 way communication I can just use an inverter and should work

Last edited by sanelss : 12-03-2015 at 12:40.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:39.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi