Go to Post After all, professional engineers know The Right Way To Do It (TM) and if we knew that we'd be deprived of the educational experience of screwing up. - phrontist [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-03-2012, 22:33
enrique's Avatar
enrique enrique is offline
Registered User
FRC #1251 (Tech Tigers)
Team Role: Electrical
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Florida
Posts: 87
enrique will become famous soon enough
Send a message via Yahoo to enrique
Lightbulb DIO to read SIO

Anyone have a class or sample code to read a serial IO sensor via the digital side car IOs?
Reply With Quote
  #2   Spotlight this post!  
Unread 28-03-2012, 22:46
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 04-04-2012, 13:03
enrique's Avatar
enrique enrique is offline
Registered User
FRC #1251 (Tech Tigers)
Team Role: Electrical
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Florida
Posts: 87
enrique will become famous soon enough
Send a message via Yahoo to enrique
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 04-04-2012, 18:19
PAR_WIG1350's Avatar
PAR_WIG1350 PAR_WIG1350 is offline
Registered User
AKA: Alan Wells
FRC #1350 (Rambots)
Team Role: Alumni
 
Join Date: Dec 2009
Rookie Year: 2009
Location: Rhode Island
Posts: 1,189
PAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond repute
Re: DIO to read SIO

Quote:
Originally Posted by enrique View Post
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?
__________________
Reply With Quote
  #5   Spotlight this post!  
Unread 05-04-2012, 00:58
enrique's Avatar
enrique enrique is offline
Registered User
FRC #1251 (Tech Tigers)
Team Role: Electrical
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Florida
Posts: 87
enrique will become famous soon enough
Send a message via Yahoo to enrique
Re: DIO to read SIO

Quote:
Originally Posted by PAR_WIG1350 View Post
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.
Reply With Quote
  #6   Spotlight this post!  
Unread 05-04-2012, 15:23
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: DIO to read SIO

Quote:
Originally Posted by enrique View Post
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.
__________________
Reply With Quote
Reply


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 14:36.

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