|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
UART Serial on cRIO
Is there currently a way to use UART TTL Serial as a method for communications to/from sensors? It would be very helpful for some gyros/accelerometers, as well as many other applications. I didn't see anything on the digital sidecar or any of the modules.
|
|
#2
|
|||
|
|||
|
Re: UART Serial on cRIO
Quote:
You might be able to fake out the SPI driver to do your dirty work, but I haven't tried. |
|
#3
|
|||
|
|||
|
Re: UART Serial on cRIO
Are we allowed to use the serial port on the cRIO? I vaguely remember hearing that we weren't allowed to use it. If we can, I would assume I could just use a MAX232 with it.
|
|
#4
|
|||
|
|||
|
Re: UART Serial on cRIO
One thing to keep in mind about the serial port on the crio is that if and when the GDC decides to allow us to use the Jaguars CAN interface that is how they intend to interface to it. The hardware beta teams were testing the use of CAN this year but no one will know until kickoff if it will be allowed or not.
|
|
#5
|
|||
|
|||
|
Re: UART Serial on cRIO
Yeah, I thought about that too. Maybe there's a way to use the serial ports from the empty module slots?
There's a SerialPort.h in the WPILib, but it looks like it's meant for that one serial port. It just irks me how complex and expensive this system is yet it doesn't (easily) provide something so simple. |
|
#6
|
|||
|
|||
|
Re: UART Serial on cRIO
The cRIO serial port is advertised as a true RS-232, hence it already has the level shifting drivers built in. No need for MAX232.
http://decibel.ni.com/content/servle...structions.pdf |
|
#7
|
|||
|
|||
|
Re: UART Serial on cRIO
Is there any other way to get it working? Maybe Soft Serial of sorts? (alliteration ftw)
It seems like something that should be supported. |
|
#8
|
|||
|
|||
|
Re: UART Serial on cRIO
This year Java supports a I2C Class for synchronous serial interface to sensors. There is also two I2C connectors on the Digital Sidecar. Any help?
http://www.andymark.biz/am-0266.html |
|
#9
|
|||
|
|||
|
Re: UART Serial on cRIO
Could you post a link to the specific sensor in question?
|
|
#10
|
|||
|
|||
|
Re: UART Serial on cRIO
Quote:
Here's one example: http://www.sparkfun.com/commerce/pro...oducts_id=9510 The reason is because they designed it with a micro on board to collect and package the data. I wish they would have broken out the SDA and SCL lines as well so I could use I2C, but that's not the case. Again, this is all theoretical at this point, I just saw that board and thought "wouldn't that be cool" and tried figuring out how I would interface it. I just like the idea of serial because it offers better accuracy with less interference than just an analog signal. |
|
#11
|
|||
|
|||
|
Re: UART Serial on cRIO
Quote:
If you look at the 2nd page of the schematics http://www.sparkfun.com/datasheets/S...-Razor-v13.pdf Pins 27 and 28 are the SCL and SCA pins used for I2C as well as being analog inputs. I'm not sure if these are used or not on the board for one of the many sensors or if you could some how hijack them and use them to send I2c back to the crio or not. According to the Arduino website by using I2C: 4 (SDA) and 5 (SCL) is supported I2C (TWI) communication using the Wire library. |
|
#12
|
|||
|
|||
|
Re: UART Serial on cRIO
Quote:
Technically it was supported last year, but disallowed in the rules. Quote:
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reimaging the cRio Issues there are no cRio devices on the subnet | Stuart | FRC Control System | 2 | 25-02-2009 23:41 |
| cRIO configuration issue- serial connection to laptop | Torbots 1197 | FRC Control System | 5 | 28-01-2009 22:28 |
| DS tty serial and crio run speed | Mr-Shutter | FRC Control System | 5 | 21-01-2009 12:39 |
| serial | edomus | Technical Discussion | 4 | 12-02-2004 15:09 |
| Serial Shortening | Gobiner | Programming | 6 | 14-02-2003 23:48 |