![]() |
Variable thrower
We have a motor driven thrower arm driven by a 2 cim gearbox on jags. We are trying to make it so a camera of some sort reads the distance and adjusts the power of the thrower accordingly. How would we go about doing that in both electrical and programing?
We have an axis camera, kinect, rasbery pi(were not entirely sure how to legally use it so instructions for that would be helpful as well) and an encoder on the gearbox running the thrower |
Re: Variable thrower
Quote:
1. Use a light to light up the retro reflective material. 2. Use camera and software to detect and measure the size of the retro reflective material 3. use this data to triangulate your distance OR I suggest you use an ultrasonic sensor The process 1. mount sensor high 2. read voltage from signal 3. use calibration factor to know how far you are. These sensors are pretty darn accurate. I would find another supplier than robotmarketplace because of ship time, but other than that, this is a great sensor. OR Create a mechanism with the so called "sweet-spot" so that you can use the same power, but score from many locations with the same exact shot pattern. |
Re: Variable thrower
I would say (like Jeffy did above), make a sweet spot for your shooter, I realize you guys made this device so you can shoot from multiple places, but you can get the same effect by creating a good arc from your ball. It simplifies everything and yet is very effective
|
Because of weather we actually created our thrower in our 45lb withholding allowance. We weren't expecting to be able to vary the power but after finishing and testing today we found it has far more speed and power than we thought. Do you know of any way we can use a kinect and rasbery pi?
|
Re: Variable thrower
Quote:
|
We have until Peachtree. I wasn't sure if we would be able to pull it off but we have some very skilled programmers and Linux guys so I figured it was worth a shot. We also need to know how to get the pi to communicate with the crio legally
|
We are also planning to use a different laptop for our driver station so if it would be easier to put our classmate on the robot and do it that way we can look into that. I don't know how to do that legally either though. This is the first time my team has experimented with raspi or on board computers for processing
|
Re: Variable thrower
Quote:
many options....I'm not too good with network tables but you could also use network tables as an option.. EDIT: and yes you could put your classmate on the robot |
How would we put the classmate on the robot? Is there a paper or something I can go to where it explains it in detail?
|
Re: Variable thrower
Quote:
http://www.chiefdelphi.com/media/photos/39569 Driver side code might be a bette roption |
Re: Variable thrower
Using camera (or kinect) vision is seriously over complicating this problem. You only need to know distance to the wall. So, don't use something designed to give you distance, shapes and color.
If you are going for the hot goals though, vision could be helpful. I bet you could detect them without it though. |
Re: Variable thrower
Quote:
|
Quote:
|
Re: Variable thrower
Quote:
Are we having a conversation, or are we just saying words? Quote:
|
Re: Variable thrower
Quote:
And yes many teams forget that we got a $35 voucher to a sonar sensor company...maxbotix |
Re: Variable thrower
Don't forget that the best sensors for teleop belong to the driver. Make one or more shots with the biggest sweet spot you can, and then take advantage of the multiple buttons on your joystick/controller--and then train, train, train your driver!
|
Quote:
|
Re: Variable thrower
Quote:
It's for $35... The EZ1 (best option is like $30)...shipping will cost you like $6...should get it in at most 5 days... It wires into the analog module...then just read the voltage and scale of accordingly...what language are you guys using? |
Re: Variable thrower
Quote:
But i can give you a starting point on how to utilize a sensor. -Supply a voltage to the sensor (5volts or 3.3 volts most of the time). -Read the voltage from the sensor using an input in the digital sidecar -Use a calibration factor (should be in the manual for the sensor) to convert the voltage to distance The programming is simple, but different for every language. I'm sure a small search would yield a tutorial for programming sensors in your language of choice. Good luck! |
Re: Variable thrower
Quote:
|
Thanks for the help! I believe we are using c++. Do we connect the sensor to a transformer to get the 5v?
|
Re: Variable thrower
Quote:
5V goes to + on breakout Gnd goes to - on breakout AN goes to SIG on breakout and the code should be as easy as reading the analog voltage and then scaling the returned value.. |
We've decided on going with a maxbotics sensor. I'm not extremely knowledgeable in this field though. We are trying to sense distance to the wall and, if possible, ignore other robots that may be in range. Which sensor would you guys recommend?
|
| All times are GMT -5. The time now is 15:35. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi