Go to Post rebound rumble didn't really have a lot of rebounding or surprise earthquakes. - Rynocorn [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-01-2012, 18:54
giantmidget31's Avatar
giantmidget31 giantmidget31 is offline
Eat robots, build waffles.
FRC #0555 (Montclair Robotics)
Team Role: Electrical
 
Join Date: Nov 2011
Rookie Year: 2007
Location: Montclair, NJ
Posts: 29
giantmidget31 is an unknown quantity at this point
Using a Flex Sensor

My team wants to integrate a flex sensor into our driver station controls. We were thinking using an Arduino might work but we really don't know how it would be done. Any help would be appreciated, in particular interfacing the information the Arduino would put out (flex sensor values) with the driver station.
  #2   Spotlight this post!  
Unread 07-01-2012, 19:23
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: Using a Flex Sensor

You could just wire the flex sensor directly to the IO Board, and read the values from that, no need to interface between the Arduino and the cRIO.
  #3   Spotlight this post!  
Unread 07-01-2012, 19:43
Sean M's Avatar
Sean M Sean M is offline
Alum, Mentor, and Vulonteer
AKA: Sean M. Messenger
FRC #0830 (RatPack)
Team Role: Mentor
 
Join Date: Oct 2009
Rookie Year: 2008
Location: Ann Arbor, MI
Posts: 40
Sean M is an unknown quantity at this point
Re: Using a Flex Sensor

From my experience, flex sensors are incredibly unreliable -- not in the respect of reading, but more in interpretation of what a certain reading means.

The flex sensors have so many different ways to bend (providing ambiguity in what a certain reading actually means), that if you are going to try to use them for much more then binary calculations (Am I touching something?) it's probably going to be difficult to get to work, if it does.

I would imagine that you're not going to use flex sensors for wall following or the sort, but just something o keep in mind if you've never worked with them before.
  #4   Spotlight this post!  
Unread 07-01-2012, 22:31
G33K's Avatar
G33K G33K is offline
Professional Baller
AKA: Ethan Anderson
FRC #0100 (The Wildhats)
Team Role: Electrical
 
Join Date: Mar 2010
Rookie Year: 2010
Location: Redwood City, CA
Posts: 16
G33K is on a distinguished road
Re: Using a Flex Sensor

I believe most flex sensors, if not all, act as variable resistors giving analog values. In this way, you'd wire the flex sensor into one of the analog inputs on the Arduino. The Arduino has an analog-to-digital converter on-board and you can program it to "write" those values through the USB port via serial interface. If for some reason you are unable to or don't want to use the 0-1023 numerical values the Arduino reads from the analog ports, you can always map them to different values or really do whatever you want with them.
  #5   Spotlight this post!  
Unread 08-01-2012, 17:05
dmitch's Avatar
dmitch dmitch is offline
Chief Head Electrical Guy
AKA: Daniel Mitchell
FRC #1997 (Stag Robotics)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Bishop Miege High School
Posts: 142
dmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the rough
Re: Using a Flex Sensor

What exactly is a flex sensor, as in what purpose would it serve better than another sensor?
__________________
  #6   Spotlight this post!  
Unread 12-01-2012, 21:14
BAM BAM is offline
Registered User
FRC #2425
 
Join Date: Jan 2012
Location: Atlanta
Posts: 13
BAM is an unknown quantity at this point
Re: Using a Flex Sensor

Flex sensor to Arduino is just an analog input. There may be some "Analog read" sample code, but if not, writing your own is not difficult. Arduino reference is very helpful, and the info on the analog read command can be found here:
http://arduino.cc/en/Reference/AnalogRead
If you give me some more information, I would be able to write the code for you. All the best,
-B
  #7   Spotlight this post!  
Unread 14-01-2012, 10:45
J.Warsoff's Avatar
J.Warsoff J.Warsoff is offline
BECAUSE SCIENCE
AKA: Jared Warsoff
FRC #1676 (The Pascack PI-oneers)
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2009
Location: New Jersey, currently Connecticut
Posts: 245
J.Warsoff has a reputation beyond reputeJ.Warsoff has a reputation beyond reputeJ.Warsoff has a reputation beyond reputeJ.Warsoff has a reputation beyond reputeJ.Warsoff has a reputation beyond reputeJ.Warsoff has a reputation beyond reputeJ.Warsoff has a reputation beyond reputeJ.Warsoff has a reputation beyond reputeJ.Warsoff has a reputation beyond reputeJ.Warsoff has a reputation beyond reputeJ.Warsoff has a reputation beyond repute
Re: Using a Flex Sensor

If any of you know instructables.com, I was looking through it one day and came across this:
http://www.instructables.com/id/Ardu...matronic-Hand/
Now I know you can't use the wireless part, but you may be able to use the concept.

Hope this helps.
__________________


"I reject your reality, and substitute my own!" -Adam Savage

Check me out on Twitter or Facebook

Acoustical Engineering & Music major at the University of Hartford / Hartt School of Music Class of 2017

Last edited by J.Warsoff : 14-01-2012 at 10:58.
  #8   Spotlight this post!  
Unread 07-01-2012, 22:26
giantmidget31's Avatar
giantmidget31 giantmidget31 is offline
Eat robots, build waffles.
FRC #0555 (Montclair Robotics)
Team Role: Electrical
 
Join Date: Nov 2011
Rookie Year: 2007
Location: Montclair, NJ
Posts: 29
giantmidget31 is an unknown quantity at this point
Re: Using a Flex Sensor

Quote:
Originally Posted by nighterfighter View Post
You could just wire the flex sensor directly to the IO Board, and read the values from that, no need to interface between the Arduino and the cRIO.
I want to use the flex sensor as part of a controller, not on the robot.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 20:03.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi