Go to Post Come on guys, its not like it's rocket surgery or anything. - hallk [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-08-2008, 14:03
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Re: Serial communication help

There's a second serial port on the RC, labeled TTL. That second programming port works just like the 1st. If the sound chip needs RS232 levels, you can use the little converter board that came with the cmucams.

Quote:
Ideally, I could send it the words to say via the program port and a terminal app on my laptop
What prevents you from connecting the laptop directly to the sound chip?
  #2   Spotlight this post!  
Unread 24-08-2008, 16:17
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,644
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Re: Serial communication help

Quote:
Originally Posted by tdlrali View Post
There's a second serial port on the RC, labeled TTL. That second programming port works just like the 1st. If the sound chip needs RS232 levels, you can use the little converter board that came with the cmucams.


What prevents you from connecting the laptop directly to the sound chip?
If you don't have the CMUCAM level shifter, it is almost trivial to build one with a MAX232 or MAX233 chip -- add a few caps, a few wires and some solder and you're in business.

Alternatively, you may be able to track down the level shifter on the sound board you are using and tap into the board where the serial data is TTL voltages again -- this will take more courage on your part, but you seem like a bold kind of guy, so I think you could handle it (don't forget to cut the trace from the output of the level shifter so that the IFI output and the level shifter are not fighting to control the same line).

Good luck,

Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2
  #3   Spotlight this post!  
Unread 24-08-2008, 17:19
dpeterson3 dpeterson3 is offline
Registered User
FRC #1178 (DURT)
Team Role: Alumni
 
Join Date: Aug 2008
Rookie Year: 2008
Location: St. Louis
Posts: 158
dpeterson3 is a jewel in the roughdpeterson3 is a jewel in the roughdpeterson3 is a jewel in the roughdpeterson3 is a jewel in the rough
Re: Serial communication help

I was told that there were three ports on the controler and that I could only use the program port. Last year was my first year actually in competition. All my programming knowledge and how the IFI contoller works comes from what I was told. Basically our programmer graduated this year, and all I have to go on is what little he told me. I want to interface the chip with the IFI controller so that it would appear as if the robot was talking. Also, I would not have to be teathered that way. I guess I should have made that more clear. That is why I don't think I can send commands from the laptop. If I understand correctly, my laptop can not send commands from the OI to the robot. Any programing tips are welcome also. Everything is stored at our partner school, so I can not access it easily. If we show off the robot, I will only have a day or two to troubleshoot programming. I need it to be close to working the first time. All I have to wrok with right now is the lastest version of MPlab, the MC18 compiler and IFI_Loader that I found online yesterday.
  #4   Spotlight this post!  
Unread 26-08-2008, 13:58
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Serial communication help

Here's an example program that uses one of the digital outputs to send serial commands to an LCD screen.
http://www.team358.org/files/program...x_LCD_Demo.zip
Some mods will be necessary to make it compile with the latest MCC18 compiler though. This used v2.4 although the serial part of it is generic and doesn't care.

Commanding it via a laptop through the program port is fairly easy as well.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with CMUcam2 serial communication Ashinkizer Programming 0 11-04-2008 15:12
Serial Communication to a Cmucam3 Lawrey Programming 0 03-09-2007 21:38
Need Help With Maplab C programming on serial communication loveheb3 Programming 0 04-06-2007 21:24
Serial Communication in C++ Adam Shapiro Programming 8 21-01-2003 12:49
serial communication using c++ Malakili Programming 31 01-05-2002 15:51


All times are GMT -5. The time now is 00:03.

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