|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi
im using the FRC tTL serial port to connect another controller to my robot and i dont know how to read the serial Data from the other controller... can Anyone help my with an example on how to read/write from the serial TTL port? thanks |
|
#2
|
||||
|
||||
|
Re: serial port interface
Quote:
-Kevin |
|
#3
|
||||
|
||||
|
Can you use the serial port 1 to connect to another 18 series pic eventhough that port has a RS232 chip interfaced to connect to PC.
Can't use serial port 2 since the camera is using it. How many sensors can you put on the FRC before you start pushing it(including Camera)? Thanks. |
|
#4
|
||||
|
||||
|
Re: serial port interface
Quote:
|
|
#5
|
||||
|
||||
|
Re: serial port interface
So have like a external MAX232 wired to the pic?
|
|
#6
|
||||
|
||||
|
Re: serial port interface
why would you use a different controller if the other one works just fine?
|
|
#7
|
|||
|
|||
|
Re: serial port interface
Quote:
becuse the sensor that i want to use is slow and give me the data in pulse width and if ill be witing for the pulse ,the program wont send the Data evry 26mS and wont work.... |
|
#8
|
||||
|
||||
|
Re: serial port interface
Thats the thing i don't how far you can push the RC. I want quite a bit of accuracy form both the accelerometer and a the gyro. I would also like to keep track of the RPM's of the spinning wheel in the shooter to adjust the power as required.
Now with the camera and these sensors and trig functions, you could easily push the RC to its limits, I think. |
|
#9
|
||||
|
||||
|
Re: serial port interface
Quote:
|
|
#10
|
||||
|
||||
|
Re: serial port interface
Quote:
-Kevin |
|
#11
|
||||
|
||||
|
Re: serial port interface
I can use your code for the pic, Kevin?
|
|
#12
|
||||
|
||||
|
Re: serial port interface
Quote:
-Kevin |
|
#13
|
||||
|
||||
|
Re: serial port interface
Quote:
Is there anything really important that I have to modify to make the serial port driver, adc, gyro, and accelerometer code work with a 18F4XX series pic?Other than the usual registers and pins. Would a CAN bus connection to the TLL port work? What type of serial connection does your serial port drive control?USART? Last edited by 6600gt : 20-01-2006 at 18:50. |
|
#14
|
|||
|
|||
|
Re: serial port interface
is ther any rule about connecting another microcontroller to the FRC??
|
|
#15
|
||||
|
||||
|
Re: serial port interface
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CMUcam2 Serial Port Diagnostics | Kevin Watson | Programming | 13 | 18-02-2006 15:05 |
| Scripting Setup and the Camera + Serial Port Drivers | CJO | Programming | 22 | 11-01-2006 17:42 |
| Updated: Serial Port Driver Code | Kevin Watson | Programming | 4 | 05-02-2005 18:39 |
| New Serial Port Driver | Kevin Watson | Programming | 16 | 09-01-2005 01:56 |
| TTL Serial Port and PS2 Mouse Interface | cbolin | Electrical | 8 | 29-12-2004 15:00 |