|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
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:
-Kevin |
|
#10
|
||||
|
||||
|
Re: serial port interface
I can use your code for the pic, Kevin?
|
|
#11
|
||||
|
||||
|
Re: serial port interface
Quote:
-Kevin |
|
#12
|
||||
|
||||
|
Re: serial port interface
Quote:
I suspect that if I need too many more trig functions or the code gets too slow, we'll have to address the issue (probably by replacing the floating point math with fixed point trig routines), but for now I'm pleasantly surprised with what this year's RC can do. |
|
#13
|
||||
|
||||
|
Re: serial port interface
Quote:
How accurate do you think you can go for a navigation system using the gyro and accelerometer? I want like 1 cm resolution at 10m/s, on paper at least. Whats DAA? and What do you need 6 encoder for(at 1000 pules/sec)? |
|
#14
|
||||
|
||||
|
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 |