![]() |
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