|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Anyone have a class or sample code to read a serial IO sensor via the digital side car IOs?
|
|
#2
|
|||||
|
|||||
|
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.
|
|
#3
|
||||
|
||||
|
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.
|
|
#4
|
||||
|
||||
|
Re: DIO to read SIO
Quote:
|
|
#5
|
||||
|
||||
|
Re: DIO to read SIO
Quote:
Using the cypress board in between will work. I just wondered is anyone had a class to do serial ttl via the DIO. |
|
#6
|
||||
|
||||
|
Re: DIO to read SIO
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|