![]() |
serial port interface
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 |
Re: serial port interface
Quote:
-Kevin |
Re: serial port interface
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. |
Re: serial port interface
Quote:
|
Re: serial port interface
So have like a external MAX232 wired to the pic?
|
Re: serial port interface
why would you use a different controller if the other one works just fine?
|
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.... |
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. |
Re: serial port interface
Quote:
|
Re: serial port interface
Quote:
-Kevin |
Re: serial port interface
I can use your code for the pic, Kevin?
|
Re: serial port interface
Quote:
-Kevin |
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? |
Re: serial port interface
is ther any rule about connecting another microcontroller to the FRC??
|
Re: serial port interface
Quote:
|
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. |
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)? |
| All times are GMT -5. The time now is 20:29. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi