|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Gryo, Camera, Accelorometer, Ultrasonic, and Gear Tooth Sensors in one program
I am considering running a vex or EDU controller to handdle most or all of the sensors on next year's robot and want to have it working on this years robot this summer. What i want to do is have a serial cable runnign between the VEX and FRC controllers that would send all the sensor data mabe ten time a second. Idealy the VEX unit would know what pwm values were being sent to the motors so it would be able to say change the camera values as the robot starts to move. or be able to tell if the accelration is from the motors or if the robot got hit. So is it posibal to run this kind of program on a vex? How hard would it be to run Kevin's serial port code on a vex controller? And, i still don't have any good Gear tooth code.
If anyone has any ideas or suggestions i'd like to hear them. |
|
#2
|
||||
|
||||
|
Re: Gryo, Camera, Accelorometer, Ultrasonic, and Gear Tooth Sensors in one program
you are making things harder by adding another controller.
the FRC controller can handle every sensor mentioned here. our team had several potentiometers in addition to the items in your list. the gear count sensors were the only problem for the FRC controller. i would suggest using a quadrature controller for rolling measurements. our 2006 team had wiring problems. so not all the sensors were active. but the code was in the controller. we are currently fixing the wiring so as to demonstrate the optimized control. we would be glad to share our efforts with you. jerry w |
|
#3
|
|||
|
|||
|
Re: Gryo, Camera, Accelorometer, Ultrasonic, and Gear Tooth Sensors in one program
I'm not sure if another controller is the way to go. I'm very much in favor of keeping a robot as simple as possible leaving less chance of error. While I believe it would be possible to use a vex controller I'm not sure why you would want to.
|
|
#4
|
|||||
|
|||||
|
Re: Gryo, Camera, Accelorometer, Ultrasonic, and Gear Tooth Sensors in one program
I'd suggest going with the 2nd-gen EDU bot. That runs the same way as the main controller I believe. The VEX, like everyone else has said, will just be a hassle. However, the EDU bot will handle it just like the FRC one will. However, since it is the older chip, you'll have to just compile the code in the same way you did 2004/2005 controllers. But, in theory once you've developed your code you can just compile it the way we had to this year for the 2006 controller without any issues. Either way you look at it, if they are making changes for 2007 (which if you've been reading the rumors floating around, there's definitly a possibility of this occuring) you may have a total revamp or just a basic "change the compiler" thing like this year. Sticking with the EDU should keep you in the ballpark with your code to easily transfer to whatever they throw at us next year though, definitly more than the VEX. Good luck with it!
|
|
#5
|
||||
|
||||
|
Re: Gryo, Camera, Accelorometer, Ultrasonic, and Gear Tooth Sensors in one program
Quote:
|
|
#6
|
||||
|
||||
|
Re: Gryo, Camera, Accelorometer, Ultrasonic, and Gear Tooth Sensors in one program
I thought the EDU controller cost too much for this application, does it fit into the rules? I would reccomend a Gumstix, teams in the past have used them to do higher level math so it doesn't slow the controller, you get more for your money this way.
|
|
#7
|
|||||
|
|||||
|
Re: Gryo, Camera, Accelorometer, Ultrasonic, and Gear Tooth Sensors in one program
Based on our past 3 years experience of using interrupt driven events to count shaft encoders for speed and distance, I'd say that a 2nd processor would be useful for off-loading that task from the FRC. Sampling accelerometers also comes to mind... It all comes down to the sensors you plan to use for a particular game, the accuracy you think you need, and the resources you have to pull it off.
...my 2 cents Eric |
|
#8
|
|||||
|
|||||
|
Re: Gryo, Camera, Accelorometer, Ultrasonic, and Gear Tooth Sensors in one program
Quote:
Quote:
Thanks for the tip on Gumstix. These look interesting, and the pricing looks good, too. |
|
#9
|
||||
|
||||
|
Re: Gryo, Camera, Accelorometer, Ultrasonic, and Gear Tooth Sensors in one program
First the VEX controller is almost the same as an edu controller it runs two 18f8720s and is programmable with mplab and IFI Loader. also the VEX controller is under $200 if bought separately from vexlabs.com.
what i wanted to do is run a second controller that could handle most of the sensor software. Part of the reason i want the sensors on a separate processor is so when IFI does update the robot controller i can leave all the sensor software and just write the new software for the master controller to interpret the serial signal from the VEX/EDU/Gumstix. I have considered the possibility of the master controller to power the VEX off one of the Digital Outputs and have the Main Processor be able to reset the VEX if it stops responding. Edit: Jerry W if you would be able to e-mail me a copy of that code i would appreciate it. haskinseric@hotmail.com Last edited by EHaskins : 22-05-2006 at 12:11. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| where can we buy hall effect sensors or gear tooth sensors | amirjpl | Electrical | 3 | 13-02-2006 11:02 |
| Gear Tooth Sensor | nukem | Programming | 9 | 04-02-2006 20:21 |
| Gear Tooth Sensors | et1337 | Electrical | 7 | 28-01-2006 22:48 |
| Source for Additional Gear Tooth Sensors | Madison | Kit & Additional Hardware | 3 | 18-01-2006 16:57 |
| Accelerometer vs Gear Tooth Sensors | zdeswarte | Electrical | 4 | 22-01-2005 15:35 |