![]() Also I'd like to find a formula that would help me encompass below 15 inches as well. One way to do that is with an XY chart: You can make the appearance more like your example if thats needed: Hide the Y axis labels and use the axis title or text boxes to label 'On' and 'Off'. I'm assuming a maintained distance of at least 15 inches at all times, how ever I'm still getting an error of anywhere from 2-5 inches. 1 It looks like you want variable width bars that start and stop according to the times in the data. Current equation assuming that its sitting on top of the robot spinning and will always maintain a distance of AT LEAST 15 inches from the floor Converts the data read out by the sensor to a measurement of distanceĭistanceFromIR = 3pow ( ( sensorValue - 3 ), 4 ) + 15 // Output on datasheet shows it not to be linear so a converstion using 3* the power of something was needed in order to get a closer to exact answer SensorValue = analogRead( pinIR ) // Reading from sensor I'm using just a standard Arduino UNO for the programming and for the moment a single sensor to just merely tell distance. If there are more points above the line than below it, then you might need to move the line up some. Then, look at the line you draw and compare the rest of the points to it. Later we will find that we can graph the data more quickly by selecting the columns in question before launching the graphing tool, but for the sake of the. Then, find the point that is closest to the opposite corner. Before choosing the Chart Wizard, place the cursor anywhere in the area of the data. Descriptions of colors, mouse actions, or other configurable items can be different for your program and system. Either method inserts a sample chart on the worksheet, opens the Formatting toolbar, and opens the Chart Wizard, as shown in the section below. The Help references the default settings of the program on a system that is set to defaults. ![]() From now on, we will omit right click in the chart in our. avoid large gaps in case a long word doesnt fit at the end of the line and. So I have a SHARP GP2Y0A02YK0F IR sensor and I was wondering how to go about converting the value given into actual measurement of distance given the odd curve of the output value charts. Find the point that is the closest to one corner. Or, click the Chart icon on the main toolbar. Fitting a regression line to the data Right-click in the graph and select Edit. Its best to type in all the headings and sub-headings right from the start.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |