Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   DIO to read SIO (http://www.chiefdelphi.com/forums/showthread.php?t=105049)

enrique 25-03-2012 22:33

DIO to read SIO
 
Anyone have a class or sample code to read a serial IO sensor via the digital side car IOs?

Alan Anderson 28-03-2012 22:46

Re: DIO to read SIO
 
You'll need to give a lot more information than that if you want helpful advice. What kind of sensor is it, and what kind of serial I/O does it use? A pointer to a data sheet would be good.

enrique 04-04-2012 13:03

Re: DIO to read SIO
 
he he. I suppose your right. The one in question is a gps unit with built in compass. It uses Asynchronous TTL level at 4800bps, 8 data bits, no parity, 1 stop bit, non inverted. All in a single pin parked SIO. It has an adapter that converts regular serial, to this single pin async ttl serial. I can communicate with this no problem without the adapter with the CRIOs serial port. But then came the idea to use 2 of them. One on the turret and one on the main frame of the robot. Our last thought was to use the cypress board to read the heading and pass it in through the DIO as a binary number.

PAR_WIG1350 04-04-2012 18:19

Re: DIO to read SIO
 
Quote:

Originally Posted by enrique (Post 1154058)
he he. I suppose your right. The one in question is a gps unit with built in compass. It uses Asynchronous TTL level at 4800bps, 8 data bits, no parity, 1 stop bit, non inverted. All in a single pin parked SIO. It has an adapter that converts regular serial, to this single pin async ttl serial. I can communicate with this no problem without the adapter with the CRIOs serial port. But then came the idea to use 2 of them. One on the turret and one on the main frame of the robot. Our last thought was to use the cypress board to read the heading and pass it in through the DIO as a binary number.

Wouldn't a GPS device utilize illegal wireless communications?

enrique 05-04-2012 00:58

Re: DIO to read SIO
 
Quote:

Originally Posted by PAR_WIG1350 (Post 1154288)
Wouldn't a GPS device utilize illegal wireless communications?

Interesting though. I used it at championship in 2010 Atlanta. This is not transmit receive. It is just receive. The serial communications is just to talk to the sensor to get the data. The compass part uses the earth poles, and the gps part receives signals already in the air if any considering its indoors.

Using the cypress board in between will work. I just wondered is anyone had a class to do serial ttl via the DIO.

mikets 05-04-2012 15:23

Re: DIO to read SIO
 
Quote:

Originally Posted by enrique (Post 1154058)
But then came the idea to use 2 of them. One on the turret and one on the main frame of the robot. Our last thought was to use the cypress board to read the heading and pass it in through the DIO as a binary number.

Why do you need two absolute heading sensors? Can't you just use one compass sensor and a potentiometer for the delta? For example, compass on the main frame and the potentiometer on the turret.


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

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