DIO to read SIO

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

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.

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?

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.

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.