Skip to content Skip to navigation

Connexions

You are here: Home » Content » EEL3111 Force Sensor Paper July 2010

Navigation

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

This content is ...

Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • TI MSP430 display tagshide tags

    This module is included inLens: Texas Instruments MSP430
    By: Texas InstrumentsAs a part of collection: "EEL3111 Force Sensor Group July 2010"

    Click the "TI MSP430" link to see all content affiliated with them.

    Click the tag icon tag icon to display tags associated with this content.

Recently Viewed

This feature requires Javascript to be enabled.

Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.
 

EEL3111 Force Sensor Paper July 2010

Module by: Michael Toth. E-mail the author

Summary: This is a paper created by students in a Basic Circuit Theory course at the University of North Florida during Summer 2010. The students were tasked with using a Texas Instruments MSP430 microcontroller along with an analog sensor of their choice to create an embedded system. These students decided to use a resistive force sensor fed into a unity gain buffer and then to the ADC of the msp430. A simple program was created in C that allows the students to show a force in grams on an LCD display when pressure is applied to the sensor. This paper details the process that was followed.

                                            
Force Sensor


                      
Juan Castillo, Mordecai L. Huber, Bernadette Quijano


                      
College of Computing, Engineering, and Construction


                                     
University of North Florida


                                             
July 2010

ABSTRACT

This paper will discuss the different elements of our functioning force sensor. These include: the components thereof, sensor physics, accuracy of the device, and possible applications; both present and future.

Keywords
Unity Gain Buffer (UGB), Liquid Chrystal Display (LCD), Force Sensor (FSR).

Introduction

The purpose of this assignment was to build a functioning sensor using the MSP430F449 microprocessor. The sensor should generate an analog to digital signal which can then be displayed on the provided LCD. Our team has constructed a functioning force sensor. The sensor consists of four elements. The first element consists of the various power supplies used to power up the different components of the device. The second element is a voltage divider network which includes a variable resistance force sensor. The third element is an op-amp which functions as a UGB. The final element consists of the MSP430F449 microprocessor and its associated LCD. Together these four elements can detect and output the magnitude of a force applied to the sensing element (see fig. 1).

Picture 4.png

Power Supplies

The main power source for the device is a single nine volt battery. A simple sliding on-off switch is used to connect the device to the battery when operation is desired. The force sensing voltage divider network requires a five volt supply. A wire is run from the battery to a standard five volt voltage regulator that has been soldered to the board. A separate 3.3 volt supply is required for the MSP430F449 microprocessor and its associated LCD. This is made possible by utilizing the provided 3.3 volt precision voltage regulator that was supplied with the project kit. The 3.3 volt supply also provides the rail voltages for the UGB. This configuration ensures that the maximum signal input to the microprocessor does not exceed 3.3 volts (see fig. 2).

Picture 5.png

Voltage Divider Network

The voltage divider network consists of the above mentioned five volt supply, a variable resistance FSR, and a 10 kilo-ohm resistor. The components are wired as shown below:

Picture 6.png

Force Sensor

The FSR used in this device can be purchased online at sparkfun.com. The FSR is a force sensitive resistor with a square, 1.75 x 1.5" sensing area. Its resistance will vary depending on how much pressure is being applied to the sensing area; the harder the force, the lower the resistance. When no pressure is being applied to the FSR its resistance will be larger than 1MΩ [1]. The following is a detailed explanation of the inner workings of the FSR used in our device. In a nutshell the FSR is made up of two enmeshed conductors embedded in a piezosensitive conducting film. The two conductors do not make direct contact with each other. Instead the film acts as a variable resistance barrier between them. This film is a polymer matrix composed of very small conductive elements held in suspension by a non-conducting substance [1]. The sensing film is compressible and elastic. This compressibility allows the position of the conducting elements to change when under the pressure of a load. As the load is applied some of the conducting elements butt up against the surfaces of the enmeshed conductors. In addition, the conducting particles themselves are moved closer together as a result of the downward force. These actions allow the resistance of the sensor as a whole (Rab) to decrease under an applied load. Because the film is elastic the conducting film reverts back to its original position and shape when the load is removed. Because there are no semiconductors inside the sensor it is generally impervious to damage by most electromagnetic fields. It should be noted that forces capable of stressing the film or either of the conductors beyond the elastic range can cause irreversible damage to the sensor.

Picture 16.png

Note the term pressure which means force per unit area. While advertised as a force sensor, in reality, the device actually is pressure sensitive. Testing has shown that the same 100 gram weight will cause a greater output voltage swing if the force is concentrated on a smaller area. Based on the above description it should be clear why. Localized high pressure on a given area of the sensor creates a very low resistance bridge between the enmeshed conductors at that point. Spreading the force over a larger area will decrease the resistance of the sensor as a whole but will not result in the very low resistance circuit created under high pressure.

Operation

The 10 kilo-ohm resistor allows the circuit to act as a voltage divider. It also restricts the buildup of excessive current flow when pressure is exerted on the sensor. The equation for Vout is shown below:

Vout = graphics1.png

RFSR represents the sensor’s resistance under a given load. In this configuration the output voltage is very small when no load is applied. The voltage increases in a nonlinear fashion with respect to the applied load. This is due to the manner in which the resistance of the FSR changes with the applied load (See figure 4). Note that only as a substantial force is applied does the rate of change of resistance with respect to applied load move towards a constant value. Switching the positions of the two resistors would cause voltage to be at a maximum under no-load conditions.

Picture 2.png

UGB

As discussed above, Vout is the voltage pickoff from the FSR network. This voltage is sent next to an op-amp that functions as a UGB. This is accomplished by connecting the output to the inverting input terminal [4]. No feedback resistor is used just a copper wire. This connection drives the gain of the amp towards unity and no amplification of the signal occurs. As discussed in class the purpose of this is to isolate the input to the microprocessor from the FSR circuit (fig. 5).

Picture 9.png

The op amp we used has the part number TLV2765. It was soldered directly on to the board. The rail voltages are 3.3 volts to the positive and ground (reference voltage) which is applied to the negative. This op amp is a rail-to rail op amp meaning that high fidelity can be achieved even when the input signal (Vout) is very close to one of the rail voltages [3]. This function is essential because under no-load conditions the input signal to the op-amp is very close to the reference voltage which acts as the negative rail voltage. In fact, during construction of the device we had to hook up multiple op amps before we could find one that was faithful under no load conditions. We could have dedicated a separate -3.3 volt supply to use as the negative rail voltage but selection of this op amp made that unnecessary. Full credit should be given to Mike Toth for solving this design problem.

MSP430F449 and LCD

Up until this point in the circuit the signal representing the force applied was analog. The real magic takes place inside the microprocessor where the signal is converted in to a digital signal which is suitable for display on the LCD. Again we want to give credit to Mike Toth in the lab for doing most of the programming that was required. The MSP430F449 is a microcontroller unit complete with timers, analog to digital converters, and a LCD driver. It also contains memory which can be used to program the device to perform specific functions. The primary use for such a device is to capture analog signals, convert them to digital, and output the digital signal to an LCD or to some other device [2]. They can be purchased or procured as student samples at the Texas Instrument website. Figure six is a flow chart provided by Mike Toth that illustrates the flow of the program we used in this device. Notice the infinite loop (wait forever) and the one second interrupt. The infinite loop tells the program to execute a command with no predefined condition (that is not always true). Technically speaking this is like telling a program to run without ever giving it instructions on when to stop. This means that the only way to halt operation is to power down the device using the sliding switch on the front of the package. In C, the programming language used by engineers, there are different ways to exit an infinite loop. You can use the break command to end the cycle when a specific condition is encountered. Another method is to include in the program what is called an interrupt.


Picture 15.png

In this case, an interrupt is programmed which tells the device to sample the input from the FSR and UGB network, convert it to digital, and update the LCD with the new information. This interrupt occurs one time per second. What this means is that the sensor is sampled and the LCD is updated only once per second. After the sampling, control is handed back to the loop until the next interrupt occurs.

The Equation

Inside the microprocessor the instantaneous value of the analog signal is converted into a digital value and stored under a previously declared floating point variable. The following equation is used to calculate the actual weight in grams of the object on the sensor. The data is displayed on the LCD.

graphics2.png


In the equation, “y” equals the weight in grams and “x” is the value stored under the floating point variable that is representative of the analog signal present on the microprocessor’s input pin. This equation was derived from the specifications sheet of the FSR when using a ten kilo-ohm resistor (See figure seven, use the purple plot). Using a different resistor might have allowed the use of a simpler equation. Bear in mind however that the rail voltage to the UGB was only 3.3 volts. This was necessary because 3.3 volts was the max allowable input to the microprocessor. The 10 kilo-ohm resistor yields a maximum output very close to 3.3 volts and was thus ideal.

Picture 13.png


Because the equation is cumbersome it takes the microprocessor some time to crunch the numbers. Mike Toth suspected that this is the cause of the flickering on the LCD. It turns out that the microprocessor we used is better suited for solving linear or quadratic equations in any efficient manner.

Accuracy of the device

What we have described is the inner workings of a device that can sense and output the magnitude of a force applied to its sensing element. The range of the device is between zero and 890 grams. Ideally the device should take measurements up to 1000 grams however the UGB becomes saturated before that is allowed to occur. The device is not terribly accurate but definitely can be used to get the sense that a force is being applied to the FSR. Some of the ways that accuracy can be improved are as follows. Firstly, we could invest in a more expensive sensor (we bought ours for $7.95). Secondly, we could do more testing to fine tune the equation used in the calculation. A piecewise continuous function might be more suitable. Finally, one of the main flaws in the device is the fact that pressure is not evenly applied across the entire sensing area. Some type of mechanism that evenly distributes the weight across the FSR is sure to boost the accuracy of the device (see figure 8).

Picture 17.png

Applications and Conclusion

There are many different applications for force sensors that function in a manner similar to ours. The first one that comes to mind is the scale. The compact, rugged, and inexpensive nature of our sensor lends itself very well to those small digital scales used for weighing food portions. The only issue with the scale is that usually a high degree of accuracy is expected. Assuming we can correct that about our device a scale would be a perfect application for our creation. In all branches of engineering smart applications are the ways of the future. Force sensors can be a part of many different types of “smart” infrastructure. Roads and bridges are great places to incorporate force sensors. Transportation engineers could use them to gauge strain on roadways and electrical engineers could incorporate them into the design of the new red light camera systems that are coming our way soon. If they were only activated as car approaches their efficiency in terms of tickets per kilo-joule could be increased. In the near future force sensors may find their way into advanced applications such as robotics. Japan is the world leader in developing human like robots called androids. One of the more difficult tasks in mimicking human behavior is the act of walking. Most walking robots today have flat feet and lack the grace that humans have as they glide across a room. Instead they kind of lumber along. Force sensors could be a key element in developing a life-like walking android. Think about all of the nerve endings we have in our toes and feet that help us walk without any real effort. To conclude, this has been an excellent first opportunity to explore the possibilities that modern electronics has to offer. We look forward to taking it to the next level and one day implementing such technology in the field!

Content actions

Download module as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks