Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   Variable thrower (http://www.chiefdelphi.com/forums/showthread.php?t=127353)

pfreivald 01-03-2014 23:14

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!

bbradf44 01-03-2014 23:15

Quote:

Originally Posted by Jeffy (Post 1351650)
I don't get it. The kinect is surely an option. But as I said, I think it is a more complex solution than is needed.
Are we having a conversation, or are we just saying words?



The sensor is not "fancy" by any means of its implementation. And some ultrasonic sensors cost as little as 5 dollars.

Where can we get one for that cheap and does it work well? And with shipping time will we get it in time?? I completely forgot we had a voucher. I'll look into that. How do we program it and hook it up? You guys are very helpful

geomapguy 01-03-2014 23:21

Re: Variable thrower
 
Quote:

Originally Posted by bbradf44 (Post 1351662)
Where can we get one for that cheap and does it work well? And with shipping time will we get it in time?? I completely forgot we had a voucher. I'll look into that. How do we program it and hook it up? You guys are very helpful

Find the maxbotix voucher in your kit..

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?

Jeffy 01-03-2014 23:23

Re: Variable thrower
 
Quote:

Originally Posted by bbradf44 (Post 1351662)
Where can we get one for that cheap and does it work well? And with shipping time will we get it in time?? I completely forgot we had a voucher. I'll look into that. How do we program it and hook it up? You guys are very helpful

Ill let you search for a sensor you like yourself.

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!

geomapguy 01-03-2014 23:25

Re: Variable thrower
 
Quote:

Originally Posted by Jeffy (Post 1351670)
Ill let you search for a sensor you like yourself.

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!

Analog breakout not digital sidecar unless they plan on using a pulsing (ping/return) ultrasonic.

bbradf44 01-03-2014 23:28

Thanks for the help! I believe we are using c++. Do we connect the sensor to a transformer to get the 5v?

geomapguy 01-03-2014 23:30

Re: Variable thrower
 
Quote:

Originally Posted by bbradf44 (Post 1351675)
Thanks for the help! I believe we are using c++. Do we connect the sensor to a transformer to get the 5v?

So if you get a Maxbotix Analog Sonar...

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..

bbradf44 02-03-2014 17:27

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