The goal of this practicum is to determine parameters for the mathematical model of the robot’s vertical motion that you developed in week 2. This will require you to measure the mass and buoyancy of your robot. In addition, you will determine the thrust curve for your robot, or remotely operated vehicle (ROV), motor. This curve will be a plot of motor thrust output as a function of motor control input. Together, these measurements finalize your model of the ROV’s vertical motion.
By the end of this practicum session, you and your partner will deliver information on the submission sheet (found on Canvas), including:
Understand MyDAQ
More LabVIEW
Excel
Calibration Curve
Equation of motion
Buoyancy
Voltage / Mass calibration curve
Duty cycle to thrust curve
Submission Sheet (found on Canvas)
ROV Frame
1 Assembled Thruster
P1C.vi (this VI will already be setup and ready on the computers in the tank room)
The parameters we seek to measure in this practicum include the ROV’s mass, buoyancy force, and thrust force. Sensors called load cells, such as the one shown below in Fig. 1, convert such forces to voltage. We will be using the FC2231 10lb load cell connected to a MyDAQ to measure the forces we are interested in.
There is one complication to using the load cells to measure the buoyancy response of a submerged ROV: load cells are not waterproof. We will use a device called a force measurement stand (FMS) to translate the forces we’re interested in into forces applied to a load cell.
Figure 1: The FC2231 10lb load cell.
As shown in Fig. 2, the FMS has a top beam that rotates about the pivot rod and presses on the load cell. For example, when a weight is hung from the top hook, it will force the top beam to rotate clockwise (CW) about the pivot rod and apply additional force on the load cell.
Throughout the course of this practicum, you will measure the change in force.
Figure 2: FMS dimensions.
Table 1: Force Measurement Stand dimensions
To accurately determine the ROV parameters, the ROV must be prepared so that it resembles the configuration that will be used for future experiments.
Make sure both pool noodles are on.
Attach the vertical thrust motor you built in practicum 1A to your frame using a zip tie.
Show your instructor or proctor that your ROV is ready for the test tank. They will let you know your time slot for taking measurements in the tank room.
IMPORTANT NOTE: If your time slot for the test tank room is not now, continue on to section 4.3. If your time slot is now, skip to section 4.4 now and come back to Section 4.3 later.
In this section, you will plot a set of points in Excel or Google sheets and fit a line to the data. That is, you will determine a linear equation that relates force F in N to voltage V in V, e.g.
where c1 and c2 are the constants you will determine.
If you HAVE already been to the test tank room to collect measurements:
Your data set for this section will be the measurements you collected.
If you HAVE NOT been to the test tank room yet:
Your data set for this section will be a fabricated data set.
Use the sample data given on the right. You will use this sample data to learn how to plot and fit the data, then replace it with your measured data set later.
Table 2: Sample Force Measurement Data
Your data set should include a list of (voltage, mass) pairs, where the voltage was measured by the load cell for each different mass hung from the top hook of the FMS (see Fig. 1). This data will be used to create a calibration curve relating voltage to applied force. There are a few points you need to consider when doing the calculations for this curve.
Open up your spreadsheet and type in (or load) your data set. Convert the calibration mass into force by multiplying by g. This may be easiest to accomplish by adding an extra column to your spreadsheet to list the force value for each mass value.
Calculate the force each mass applies to the load cell using your torque balance equation from this week’s tutorial. It may be easiest to create another column in your spreadsheet.
Plot the four data points in Excel, e.g. using a Marked Scatter Chart. The plot should have Force on the y – axis and voltage on the x – axis.
The plot should be relatively linear. Under Excel’s Chart Design tab, go to Add Chart Element -> Trendline -> Linear to add a trendline to the plot. Right click the trendline and select Format Trendline. Scroll to the bottom and click the Display Equation on Chart option to yield your calibration equation. You now have an equation that converts your measured voltage to a force. Screenshots of this process appear in Fig. 4.
Figure 3: In (a), the Excel trendline menu is shown. In (b), the resulting trendline that relates force to voltage is plotted.
Show your calibration curve to an instructor or proctor to confirm it is correct.
Make sure you save your calibration curve for a later step!
The goal of the FMS calibration is to construct a function that relates applied force to load cell voltage output. This will allow you to later convert measurements of the ROV mass, buoyancy, and motor thrust into units of Newtons. To accomplish this calibration, you will hang various masses on the top hook of the FMS and measure the mean load cell output voltage using a MyDAQ which speaks to LabVIEW.
At your FMS station, you should find a laptop running a VI named “P1C.vi”. If it is not running, click the run button. This VI reads measurements from the FMS load cell via a myDAQ, as well as opening up a PWM control. Fig. 5 shows the one front panel. The load cell measurements are plotted in real time (see chart with blue line). The mean value of the load cell data (using a moving window average) is displayed in a field just right of the chart.
A slider is used to control the PWM signal being sent to the thruster at the bottom of the FMS. See the right pane in Fig. 5. This won’t be used until the next section.
Figure 4: The Front Panels that open when selecting P1C.vi.
Be sure the VI is running, and press gently but firmly on the top-most horizontal beam that rests on top of the load cell. You should see the voltage level displayed in the chart respond to your pressure. An example of a typical LabVIEW output when force is applied to the FMS appears in Fig. 6.
Figure 5: Applying a downward force to the top beam of the FMS (a) to yield visible output on the LabVIEW VI (b).
Place the 500 g weight on the top hook. You might need a step stool for this. If you can’t reach, ask a proctor or instructor for help. Wait for all motion in the system to dissipate and the voltage to reach a steady state value, i.e. the voltage tenths should not be changing much with time. Write down the mass being used, as well as the measurement displayed in the field labeled Filtered Voltage located on the front panel of the P1C .vi, (see Fig. 7). Repeat this for the remaining weight values (e.g. 500g, 1000g, 1500g, 2000g). Finally, remove all of the weights and record the voltage with zero mass.
Figure 6: The filtered voltage field located on the front panel of the vi P1C.
After repeating step 2 for all weights, you should have constructed a table listing masses and corresponding filtered voltage measurements. Show an instructor your table before moving on.
To measure the ROV’s mass, hang the ROV at the end of the top arm (see Fig. 8a). You do not need to hook it on the carabiner, Also make sure none of the ROV is in the water during this measurement. Record the value displayed in the Filtered Measurement field.
To find the buoyancy of the robot, hook it onto the FMS lower arm as shown in Fig. 8b. This hook is underwater, so you will need to use a grabbing tool to submerge your robot and attach it to the hook. These are available in the test tank lab. Once the ROV is attached to the lower arm, record the load cell voltage. Take off the ROV for the next part.
Figure 7: Finding the mass of the ROV (a) and the buoyancy (b) by attaching the ROV to the top and bottom hooks respectively on the FMS.
Construct a motor thrust curve using VI set up on the laptop. Adjust the duty cycle, which is the fraction of the motor’s thrust we are commanding, from 30-80% in 10% intervals. Record the duty cycles and the corresponding load cell voltages from the field labeled Filtered Voltage.
You can try 100% as well. For some motors you may observe a phenomena called resonance which we will learn about in a few weeks.
Figure 8: Motor mounted at the bottom of the FMS.
When you have completed this portion, let the instructor or proctor maintaining the tank slot list know that the next team can come to the tank. Bring your robot back to the lab, dry it, and store it carefully (with motor and electronics box attached) in the cabinet for your practicum section.
In this section, you will need the methods presented in section 4.3 as well as data collected in the test tank room.
Use the set of calibration weight / voltage data points you measured to create a calibration curve relating voltage to applied force on the load cell.
Calculate the ROV’s mass (kg) and buoyancy force (N) using the voltage measurements obtained in section 4.4 and the calibration curve equation from step 5. Remember that the calibration curve can be used to determine force measured on the load cell, and that the ROV’s gravitational force was not being exerted directly on the load cell, (hint: remember your torque balance equations from tutorial).
Make a plot of thrust force vs. duty cycle. Using Excel’s trendline again, determine a linear model that relates duty cycle to thrust. Show your results to your proctor or instructor to confirm they are accurate.
Answer Questions 1-4 on the Submission sheet.
Make sure you save your duty cycle to thrust curve for homework! You should also have all your data from previous step saved for both partners to use.
Create a copy of the simulator from practicum 1B called VDSim.vi in your library and name it VDSim_PWM.vi. Modify the parameters in the new simulator to include the new experimentally determined values for mass and buoyancy.
Make sure you use mass in kg, and that your buoyancy value accounts for the fact that the FMS was measuring both the gravitational force and buoyancy when the ROV was submerged. Assume that the drag coefficient is 10 kg/s.
Modify the new simulator to include the linear model of thrust as a function of PWM signal, i.e.: replace the throttle slider with a PWM slider and a multiplication block and addition block to make the slider match the linear fit to the thrust vs. duty cycle data. (See Fig. 10b for a hint). Consider if the simulator behavior matches what you observed in the tank.
Discuss what happens with an instructor or proctor.
Figure 9: Modified simulator front panel with PWM signal scale on the slider control (a). In (b), an example of the corresponding block diagram.
Finally, plot the vertical velocity of the ROV from this command sequence:
Set the thruster value to zero.
After a few seconds, change the thrust to 50%.
Wait until the ROV vertical velocity stabilizes close to some steady state value.
Stop the simulation and take a screen shot of your velocity (m/s) vs. time (s) plot.
Answer Question 5 on the Submission sheet.
REMINDER: When closing a VI, a window may pop up prompting you to save the VI and any lower level VI’s used within it, even if you didn’t make any changes. This will happen with any VI from a library that was just downloaded onto the computer, such as from Canvas or Google Drive. When that window pops up, just click the “save all” option, then it shouldn’t pop up again for that VI as long as it stays on the computer. If you need to re-download a library, then this window will pop up when closing the VI’s from that library, and you will need to save them once again so the window won't pop up anymore.
1. Power supply data sheet – http://www.mouser.com/ds/2/260/NES-150-SPEC-806295.pdf
2. MyDAQ manual – http://www.ni.com/pdf/manuals/373060f.pdf
Tools Per Station
In lab:
Laptop
In tank room:
Fc2231 10lbs load cell
Force Measurement Stand
Power supply
myDAQ
Motor controller board
C clamps
Assorted Masses (~500-2000g)
Software
P1C.vi
In HWIOMyDAQ
Rev 1.llb
sampleVoltages.xls
Materials / Parts
ROV frame
Assembled Thruster