Fall Biped 2016- Hardware Alternative Updates

By: Alan Valles (Electronics and Control)
Approved by: Ijya Karki (Project Manager)

Table of Contents

Introduction

The purpose of this document is to provide suggestions for the next iteration of the design of the PCB shield for the Biped. These improvements are based on feedback and experience in the manufacturing, design and build of the PCB.

Analysis

The engineering method is an iterative process. There are several suggestions and improvements that can be made to Biped schematics in [2]  to improve performance of the system.

The Schematics since CDR were not revised much. However, after the realized PCB system was put together and tested, there are several updates that I would make for the next revision of the shield. I would add pin headers for the I2C bus. This would allow for flexibility in future iterations for the Biped Project. In the future, I also would have changed the design to incorporate locking headers like the Ph-series of battery and motor connectors for the rest of the external peripherals. These will allow for more secure connections. The combination of jumper wires and pin headers was not a fixed connection and caused major amounts of headache due to contacts not connecting. It lead to perplexing troubleshooting in order to see if bugs were software related or hardware related.

33

Figure 1. Circuit System.

Next, I would add a protection circuit to prevent reverse current in the event of reverse polarity. The chosen lm1084 does not have this built into it. However, the battery was hooked up with reverse polarity the first time. The LM1084 was a robust chip because after reversing polarity of input the LDO still held up fine and output 5V to the rest of the systems. TI offers some quick suggestions to mitigate this issue, by using a protection diode or FET as shown.

34

Figure 2. NMOS FET in the Ground Return Path.

Next, The Ext- connection was not solidly grounded on the PCB, rather it created a GND connection on the 3Dot board itself. To correct this issue, traces and or vias to GND plane can be created near the connector of the Battery for stronger connection to GND. Finally, another issue was that 3.3V and Ext+ were being paralleled on the PCB that was ordered. After discussion and analysis, the president and I were able to fix this by isolating the connecting point by cutting a copper trace. The GND connection on the shield was never connected to EXT- connection on the 3dot. A small wire was post manufacturing. But the future shield should tie these point together at some point.  Also the SDA and SCL lines were crossed for A2D converter so that would obviously be fixed in next iterations.

35

Figure 3. After PCB in Production.

These are some of the changes that were recognized after our PCB was in production that should be fixed for the next iteration.

Conclusion

In conclusion, the pin headers for encoder connector, and other external peripherals would be changed to a locking style, a reverse current protection circuit would be added and various clean up work would be done such as tying GND to Ext-.

Reference

[1] http://www.ti.com/lit/an/slva139/slva139.pdf

[2] http://arxterra.com/fall-2016-biped-updated-schematics/

 

Fall Biped 2016- Color Sensor Design

By: Alan Valles (Electronics and Control) Approved by: Ijya Karki (Project Manager) Table of Contents Introduction  The purpose of this blog post is to explain the function and design of the custom PCB color sensor that was made. Analysis This color sensor was made to meet our requirements and detect color pads below. Two version […]

Fall Biped 2016- Verification Matrix and Validation

By: Brandon Perez (Missions, Systems, and Test)
Approved by: Ijya Karki (Project Manager)

Req. No. “The Biped Shall” Statement Success Criteria Method Results Pass / Fail

Introduction

This report covers the Test Plans for Verifying and Validating our Requirements.

Matrix

L1-1 Shall be ready to participate in the game “Save The Human” on December 14th, 2016. The project must be fully functional and presentable by December 14th, 2016. Demo FAIL
L1-2 Shall not exceed a cost of $125.00 to construct. The project must not exceed a budget of $125.00. Inspect PASS
L1-3 Will use a 3Dot board, have a custom PCB, and utilize the I2C interface. The project must contain a 3Dot board as the main control unit for the system, have a custom-built PCB, and utilize the I2C interface on the 3Dot board. Inspect PASS
L1-4 Shall be able to walk a minimum speed of 0.32mm/sec. The Biped shall have to walk a straight path at a speed of 0.32mm per second. Test FAIL
L1-5 Shall be able to turn up to 180 degrees on each of its sides. When the Biped is initiating a turn, the angle that it turns its body shall be any angle ranging from 0-180 degrees. Test PASS
L1-6 Shall be controlled telepathically up to 20ft away through the Arxterra App. When controlling the Biped via Arxterra Control Panel on a mobile device, the Biped shall be able to be controlled up to 20ft away from the user. Test PASS
L1-7 Will have a mass less than or equal to 750 grams. The total Biped’s mass shall not exceed 750 grams. Test PASS
L1-8 Shall be able to operate for a minimum duration of 1.00 hour. The Biped system shall have to operate for a minimum duration of 1.00 hour Test PASS
L1-9 Should be able to walk on angled surfaces with max slope of (+/-) 6.5 degrees. The Biped should be able to walk on inclines of 6.5-degree slope and declines of -6.5-degree slope. Test FAIL
L1-10 Should be able to walk on uneven surface heights of 0.5 cm or less. The Biped shall remain stable when walking over obstacles spread over the ground which shall have heights ranging from 0 mm to 5 mm. Test FAIL
L2-1 Will have a DC motor that can operate effectively at 5V and produce torque of 9.75e-3 ft*lbs. The DC Motor shall have an operating voltage of 5V or greater and shall have to produce a minimum torque of 9.75×10^-3 ft*lbs. Test PASS
L2-2 Will have servos that can operate effectively at 5V and horizontally move a mass of 68g. The servos being used to control the Bipeds arms shall have an operating voltage of 5V or greater and shall be able to turn horizontally the Biped’s arm’s mass of 80g. Test PASS
L2-3 Will have a rotary encoder to read the shaft’s position at a rate of 40 times the Motor RPM. The shaft encoder shall give a reading of the shafts position at a minimum rate of 40x[Motor RPM] to ensure the MPU has a resolution Test PASS
L2-4 Shall use an RGB LED to display the color of the color pad for a minute duration. When the Biped steps on top of the color pads, the color of the pads shall be displayed on the RGB LED for a minute duration. Test PASS
L2-5 Should have an IMU to detect inclines and decline angle deviations up to (+/-)6.5 degrees. The IMU should provide readings of the angle deviation when the Biped is walking on angled surfaces for all angles between -6.5 and 6.5 degrees. Test FAIL
L2-6 Will use a battery with a capacity rated at 560mAh or greater. The battery for the system must be rated at a capacity of 560mAh or greater. Inspect PASS

Level 1 Requirement 1:
Shall be ready to participate in the game “Save The Human” on December 14th, 2016.

Tools:

  1. Biped (final product)
  2. Calendar
  3. Clock

Procedure:

  1. If the Biped is complete, look at the calendar and record the current date.
  2. Look at the clock, and record the current time.
  3. Verify that the current time and date is before 9:30AM December 14th, 2016

RESULTS: By the time of final demonstration, the Biped was not able to walk. Our DC Motor Gearbox had gears that would constantly slip against each other causing our walk movement to stall at most times. In result, we did not meet the schedule requirement.

11

Level 1 Requirement 2:
Shall not exceed a cost of $125.00 to construct.

Tools:

  1. Biped Expense Report

Procedure:

  1. Look at the expense report and record the total Biped expenditure.
  2. Verify that total expenditure does not exceed $125.00.

RESULTS:

12

We have totaled $129.05 of expenses so we are $4.05 over budget. Regardless that we are over budget, we have still been within the customer’s contingency which is a reasonable 3.2% over budget.

13

Level 1 Requirement 3:
Will use a 3Dot board, have a custom PCB, and utilize the I2C interface.

Tools:

  1. Biped (final product)

Procedure:

  1. Inspect the Biped to verify a 3Dot board is being used when operated.
  2. Inspect the Biped to verify a custom-built PCB is being used when operated.
  3. Inspect the Biped to verify the I2C peripheral interface is being used when operated.

RESULTS: In the 3 pictures, below, we show 3 different perspectives of the of the 3DOT board and PCB encasement in our Biped.

The 3Dot’s board 12C peripheral interface pins are mapped to the custom built PCB for I/O access. Since we have a 3Dot board, a custom-built PCB, and are utilizing the I2C interface, this requirement has been met.

14

In the 3 pictures, below, we show 3 different perspectives of the of the 3DOT board and PCB encasement in our Biped. The 3Dot’s board 12C peripheral interface pins are mapped to the custom built PCB for I/O access. Since we have a 3Dot board, a custom-built PCB, and are utilizing the I2C interface, this requirement has been met.

15

13

Level 1 Requirement 4:
Shall be able to walk a speed of 0.32mm /sec.

Tools:

  1. Stop watch
  2. Measuring tape
  3. Biped with Arxterra Control
  4. Poster paper 3’x3’
  5. Marker
  6. String

Procedure:

  1. Mark the center point on the poster with the marker.
  2. Draw a circle of radius of 1ft around the center point using the string.
  3. Draw a radius on the circle.
  4. Place the Biped on the center mark made in step 1 facing the direction of the radius.
  5. Start a timer on the stopwatch and have the Biped operate its walking motion until it walks outside the circle and then stop the timer.
  6. Record the time it took for the Biped to reach outside the circle.
  7. Use V=D/T to determine the speed.
  8. Measure the angle at which the Biped walked with respect to the expected path to determine how straight the Biped walked.

RESULTS: Unfortunately, our Biped was unable to walk without falling over. To point out the obvious issues, too much mass had been concentrated in the front of the Biped which caused it to fall frontward. For improvement up our design, we should extend the feet out by about 1cm.

11

Level 1 Requirement 5:
Shall be able to turn 180 degrees on each of its sides.

Tools:

  1. Protractor
  2. 8”x11” white paper
  3. Marker
  4. Biped with Arxterra Control

Procedure:

  1. Place the Biped on top of the center of the White 8”x11” sheet of paper.
  2. Use the marker to draw a line directly out from where the Biped is facing on the white sheet of paper.
  3. Initiate the Biped to turn at angles ranging from 30 to 180 degrees in increments of 30 degrees. With each new turn, the Biped should be replaced facing its original direction.
  4. With each turn implemented, draw lines out from where the Biped is facing on the paper when it is in its new facing position.
  5. Determine how accurately the Biped performed the turns by measuring the angles of each of the lines with respect to the original position.

RESULTS:

We began this test by initiating a turn on the Biped when it was standing on one leg.

16

The Biped was able to take a turn here of 44 degrees when standing on one leg. The turning requirement was set to be accomplished when walking, however we were able to independently turn without ever be in the walking motion, therefore this requirement has been met to some degree of turning, literally.

13

Level 1 Requirement 6:
Shall be controlled in RC mode in the Arxterra App up to 20ft away.

Tools:

  1. Measuring Tape
  2. Biped with Arxterra Control Panel on Mobile Device

Procedure

  1. Start the experiment by initiating a custom command to the Biped at 2ft away.
  2. Make sure no obstacles are in the way when sending commands and repeat the process by moving 2ft further each time until the Biped does not respond to the commands being sent.
  3. Record the distance at which the Biped did not respond to the commands from the mobile device.
  4. Verify that the distance recorded is greater or equal to 20ft.

RESULTS:

We began this test by setting up the Biped 20ft away from the user who was sending commands via Arxterra control.

17

Due to limited time, we had only tested directly above 20ft away. In the picture you can see the view of a tape measure being extended out to confirm we were at least 20 ft away from the Biped to meet the RC Mode requirement. We could confirm that our biped was still able to receive commands at 20ft away, therefore we met this requirement.

13

Level 1 Requirement 7:
Will have a mass less than or equal to 750 grams.

Tools:

  1. Scale with accuracy of (+/-) 0.5g
  2. Biped

Procedure:

  1. Turn on the scale and set the reading value to grams (g).
  2. Place the Biped on the scale and read the value of the mass.
  3. Verify the mass does not exceed 750g.

RESULTS:

We begin by setting our Biped on the scale to determine its final mass.

18

The mass of the Biped is measured to be 466 grams. The mass requirement for our Biped is to be less than or equal to 750 grams, therefore this requirement has been met.

13

Level 1 Requirement 8:
Shall be able to operate for a minimum duration of 1 hour.

Tools:

  1. Biped
  2. Multimeter with current reading

Procedure:

  1. Measure the current drawn from the battery when the Biped is walking for the course of a minute.
  2. Determine the average current drawn from the battery over the minute duration.
  3. Verify that this value does not exceed the mAh rating on the system’s battery.

RESULTS: We begin the test by measuring the current drawn from the battery when the Biped is running the motor to produce its walking motion. We use an ammeter in series with the battery terminal and the DC motor pin. We recorded a video for a minute duration and then extracted the values from the ammeter throughout the video and provided them below.

We begin the test by measuring the current drawn from the battery when the Biped is running the motor to produce its walking motion. We use an ammeter in series with the battery terminal and the DC motor pin. We recorded a video for a minute duration and then extracted the values from the ammeter throughout the video and provided them below.

19

Data Collected from Ammeter: [0.68 0.14 0.12 0.14 0.10 0.19 0.09 0.37 0.33 0.93 0.47 0.48 0.38 0.35 0.44 0.41 0.45 0.40 0.47 0.33 0.42 0.61 0.57 0.42 0.37 0.88 0.39 0.53 0.64 0.87 1.14 0.98 0.64 0.82 0.46 0.48 0.29 0.33 0.58 0.41 0.55 0.39 0.50 0.56 0.72 0.90 0.40 0.60 0.49 0.71 0.40 0.66 1.21 0.75 0.34 0.39 0.52 0.35 0.36 0.98 0.42 0.54 0.54 0.51 0.71 0.72 0.76 0.96 0.78 0.51 0.59 0.34 0.31 0.26 0.62 0.33 0.20 0.28 0.25 0.20 0.42 0.51 0.62 0.61 0.43 0.57 0.66 0.45 0.36 0.52 0.42 0.38 0.45 0.32 0.18 0.22 0.28 0.32 0.20 0.41 0.37 0.48 0.52 0.58 0.27 0.29 0.35 0.27 0.14 0.22 0.19 0.16 0.13 0.20 0.21 0.29 0.40 0.55 0.46 0.55 0.48 0.46 0.40 0.34 0.23 0.25 0.35 0.37 0.25 0.30 0.24 0.35 0.31 0.29 0.49 0.54 0.48 0.56 0.62 0.38 0.24 0.19 0.15 0.25 0.28]

I then proceeded to calculate the average in MATLAB.

20

Since our walking motion is our most energy expensive operation, we can assume that we walk the entire duration of the game to get the maximum energy expense throughout the entire game duration.

If we assume the Biped will be walking the entire game, (which in reality, it won’t) it would consume 440mA x 1hr = 440 mAh of energy from the battery. Since our battery can provide 800 mAh of energy theoretically, then our battery should have sufficient energy for providing power to the Biped for the entire game duration of an hour.

13

Level 1 Requirement 9:
Should be able to walk on angled surfaces with max slope of (+/-) 6.5 degrees.

Tools:

  1. Biped with Arxterra Control (final product)
  2. Ramp of 6.5 degrees

Procedure:

  1. Operate the Biped and have it walk up against the incline and verify it doesn’t fall over.
  2. Operate the Biped and have it walk down the incline (decline) and verify it doesn’t fall over.

RESULTS: Unfortunately, our testing and design had been narrowed and focused towards the walking portion of the design, so we disregarded testing on inclines. 

11

Level 1 Requirement 10:
Should be able to walk on uneven surface heights of 0.5 cm or less.

Tools:

  1. Biped with Arxterra Control (final product)
  2. Cardboard cutout 6”x6” of 0.5 cm thickness

Procedure:

  1. Place the Biped on the floor.
  2. Place the carboard cutout a couple of inches away from the Biped.
  3. Operate the Biped and have it walk towards the cutout.
  4. Verify that the Biped can walk over the cardboard cutout without falling over.

RESULTS: Unfortunately, our testing and design had been narrowed and focused towards the walking portion of the design, so we disregarded testing walking on uneven surfaces.

11

Level 2 Requirement 1:
Will have a DC motor that can operate effectively at 5V and produce torque of 9.75e-3 ft*lbs.

Tools:

  1. DC Motor
  2. String
  3. Water bottle
  4. Scale
  5. Ruler

Procedure:

  1. Measure the shaft Radius for the DC Motor being used on the Biped.
  2. Divide the torque required [9.75×10^-3 ft*lbs] by the obtained shaft radius to get the weight.
  3. Fill the water bottle with water till it weighs as much as the value obtained in step 2.
  4. Tie the string several times around the motor shaft until it does not slip off.
  5. Tie the other end of the string the water bottle.
  6. Power the DC motor against the edge of a table with the water bottle hanging from the shaft.
  7. Verify that the motor can lift the water bottle.

RESULTS: We have set our DC motor torque requirement in the units of ft*lbs for making our calculation easier. We proceed to measure the diameter of our motor shaft to determine its radius.

We used calipers to measure the DC Motor shaft diameter.

21

T = F*L

T = 9.75×10^-3 ft*lbs

L = 2.6mm/2 = 1.3mm

1.3mm = 0.0043 in

F = (9.75×10^-3 ft*lbs)/(4.3×10^-3 ft) = 2.26 lbs = 36.28 oz

Since our DC Motor is already rated at 5V, no test must be done for the first part of the requirement. As far as the torque requirement, the DC Motor was successfully able to lift the gallon of water up, therefore this requirement has been met.

22

13

Level 2 Requirement 2:
Will have servo that can operate effectively at 5V and horizontally move a mass of 68g.

Tools:

  1. Servos being used to control the Biped’s arms
  2. Servo shaft connector piece
  3. Small tray 3” diameter
  4. Water Bottle

Procedure:

  1. Place the servo with the shaft axis facing upright.
  2. Attach the servo shaft connector and place the tray on top of the connector.
  3. Make sure the tray is secure on top of the servo’s connector.
  4. Fill the water bottle until it weighs 68g.
  5. Place the water bottle on top of the tray.
  6. Operate the servo and verify that it can turn over its full range while having the mass over it.

RESULTS:

Since our servo is rated at 5V already, no test is necessary for the first part of the requirement. To check if our servo can horizontally move a mass of 68g, we set the servo upright and attach a platform to carry the several different masses.

 

23

It was found through this experiment that the servo could horizontally move the masses on top of the platform up to 400g. We concluded that we that servo could meet the requirement so we suspended further testing of heavier masses.

24

13

Level 2 Requirement 3:
Will have a rotary encoder to read the shaft’s position at a rate of 40 times the Motor RPM.

Tools:

  1. 3Dot Board
  2. Rotary Encoder interfaced onto the 3Dot board
  3. Rotary Encoder test code

Procedure:

  1. Run the test code for the rotary encoder.
  2. Be sure to have a serial communication from the 3Dot board to your computer to see the sensor values.
  3. Turn the potentiometer of the rotary encoder and verify that the sensor can read values at various positions.

RESULTS:

We began this test by timing how long it too our motor to turn its shaft a full 360 degrees under the load of the legs it must move.

25

Time per motor revolution: 11.71sec

26

MOTOR RPM = (60secs per min)/(11.71sec) = 5.12

Therefore, our rotary encoder must read values at a rate of 40×5.12 = 204.8 times/minute to get a sufficient resolution of the shaft position.

We then began to try and measure how fast our rotary encoder could take values so wrote an Arduino code to write a timestamp after every rotary encoder reading.

Our values being outputted at the computer for time are in units of milliseconds. If you look at the picture at the left, you can see that each of the time readings are spaced by 4 milliseconds.

Therefore the sample rate for our rotary encoders ADC is 60/(4×10^-3 Hz) = 15,000 times per minute.

This sample rate is clearly sufficient for our system, therefore this requirement is met.

Level 2 Requirement 4:
Shall use an RGB LED to display the color of the color pad for a minute duration.

Tools:

  1. 3Dot Board
  2. Color Senor interfaced with 3Dot board
  3. Color sensor test code
  4. RGB LED
  5. Red, blue, and green construction paper

Procedure:

  1. Interface the Color Sensor and the RGB LED with 3Dot board.
  2. Run the test code for the color sensor and have the sensor readings output to the RGB LED.
  3. Place the red construction paper near the color sensor and verify the LED lights up red.
  4. Place the blue construction paper near the color sensor and verify the LED lights up blue.
  5. Place the green construction paper near the color sensor and verify the LED lights up green.

RESULTS:

We began testing the color sensor by seeing if our sensor was reading values. We placed the Biped above 3 different colored construction papers of color red, blue, and green.

27

The above pictures show our Biped testing the color sensor on the foot. To determine if our color sensor was reading the values, we send the sensor values via seirial communciation to be displayed on our computer.

28

We were able to successfully distinguish the color of the construction with the data we were receiving on our monitor. Our color sesnor was sucessful, however we were not able to display the value on the RGB LED since our GPIO expander on our custom PCB was having issues.

Level 2 Requirement 5:
Should have an IMU to detect inclines and decline angle deviations up to (+/-)6.5 degrees.

Tools:

  1. 3Dot Board
  2. IMU
  3. IMU Test Code

Procedure:

  1. Interface the IMU with the 3Dot through the I2C peripheral interface.
  2. Run Test code for the IMU on the 3Dot.
  3. Be sure to have a serial communication from the 3Dot board to your computer to see the sensor values.
  4. Once code is running, tilt the sensor at various angles.
  5. Verify that the sensor responds well to all angles being tilted at.

RESULTS: Due to limited time, we decided to not include an IMU in our final design since it would require more testing and its effectives would only benefit us if our system had already passed walking.

11

Level 2 Requirement 6:
Will use a battery with a capacity rated at 560mAh or greater.

Tools:

  1. Battery being used for Biped

Procedure:

  1. Identify the Capacity in mAh for the battery being used on the Biped
  2. Verify that the batteries capacity exceeds 560 mAh.

RESULTS:

29

Our battery is rated at 800 mAh, therefore this requirement has been met.

13

 

Fall Biped 2016- Interface Definition and Cable Tree

By: Brandon Perez (Missions, Systems, and Test)
Approved By: Ijya Karki (Project Manager)

Table of Contents

Introduction

This report will cover the interface definition and cable tree.

Table Information

1

Figure 1. 3DOT Interface Matrix.

On the top, here, we have our interface definition presented at CDR that has been updated to match our final Biped design. On the left, you can see the interface definition of the 3Dot board while on the right, you can see the interface definition for the 16-port GPIO expander that was included onto out custom-built PCB.

One of the changes that we made to the 3Dot interface was removing the second DC motor from the design. We worked with one DC motor to make design work. We attached both legs 180 degrees out of phase to the shaft output of our DC Motor gearbox.

On the GPIO expander, we removed the “body servo” which was supposed to helped shift the center-of-mass either in front of the Biped or behind the Biped when it would walk on inclines or declined, respectively. We omitted that servo because it was causing our Biped to weight up to 1kg with all the mass attached the servo.

 

Cable Information

2

Figure 2. Biped Cable.

Here on this image, we see the Cable tree which corresponds to the final design we have for the Biped. Since the “body servo” was removed, we have removed on set of cabling leading to one of the servos in the center of the figure right below the head. Our wire lengths and type for the servos correspond to the wires that our already on the servos. The cables for the servos are routed out of the head encasement and directly to the servos through a path between the legs. The wires for the color sensor that leads to the foot was the only set that was hand soldered and routed.

Conclusion

The interface definition and cable criteria are described above according to the design for the final Biped.

Fall Biped 2016- Motor and Battery

By: Alan Valles (Electronics and Control)
Approved by: Ijya Karki (Project Manager)

Introduction

The purpose of this document is to show all the updated schematic and hardware changes since CDR.

Hardware Design

The Final Hardware design of our robot was slightly different than what we had spec’d for CDR. The Motor stayed the same, it was a pololu 1117 size 130 motor. However, the gearbox that it went into was different. The final motor selected was the Tamiya 907710.[1] This motor was selected based on its gear ratio which was able to provide the Biped with even more torque than the previous model. Our Motor had an output RPM of m 11500 RPM at its shaft. We needed more torque due to the fact that our latest linkage design was larger/ longer than the previous design.  The Tamiya 70110 4-speed Crank Axle Gearbox Kit had 4 ratio option, 5402:1, 126:1,441:1 and 1543:1.

8

Figure 1. Speed Crank Axle.

These ratios dropped the output RPM to 2.2, 7.45, 27, and 16RPM respectively.

The only observed issue with this gearbox was that the gears internally seemed to be rubbing together when under large amounts of mechanical load. I noticed that there was an unsettling amount of play in the gears when it was put together.

10

Figure 2. Gearbox.

I suspect that once the load past a certain limit, the gears shifted to the left touched the high RPM green gear. This caused a clicking sound during random intervals of the walking motion.

Battery

9

Figure 3. Battery.

The battery was changed to a hobby people 7.4v 800mA Battery.[2] This battery was chosen over our previous battery because, we did not have to wait for shipping. Lithium batteries have a risk of catching fire which means that they are not shipped by air, only on trucks. Thus, it was much easier to go to the physical location of hobby people and purchase the needed battery and connector right on the spot. The form factor of the battery was absolutely perfect for our design as well. It had the dimensions of 12x35x68 mmm and weighted around 50g. Thus it was the perfect size for a RC Biped. Also, the pololu 117 motor had around 550mA operational current when attached to the 70110 gearbox. This was done by measuring it with a Digital Multimeter. Therefore, a rough calculation of power would be 650mA*5V = 3.25 W and the battery has a capacity of 7.4* 800mAH = 5.92 Wh. Thus, the battery still appears to meet our requirements that state we should play the game for an hour.

Conclusion

In Conclusion, The Battery and motor were changed to the hobby people 2S Lip and the Tamiya 70110 gearbox, respectively. This was done to increase the realized torque demand of the linkage assembly which was updated in order to meet customer request.

References

[1] https://www.pololu.com/product/68

[2] http://www.hobbypeople.net/index.php/hobby-people-7-4v-800mah-2s-30c-lipo-battery-bec-plug.html

[3] http://arxterra.com/fall-2016-biped-updated-motor-study/

Fall Biped 2016- Software Structure

By: Alan Valles (Electronics and Control)
Approved By: Ijya Karki (Project Manager)

Table of Contents

Introduction

The purpose of this document is to demonstrate software logic behind the Biped.

Analysis

The Fall 2016 Biped had a requirement which stated that the Biped had to be controlled using RC mode in the Arxterra App. The main feature of the app is a directional pad which is controlled by the Move Command. There is also a capability of adding Custom Commands. Electronics and System Engineers had several ideas and thought about the best way to utilize these. However, the backbone of our software and electronics subsystem design is a rotary position sensor. The selected rotary position sensor is the Bourns 3382. The rotary position sensor is a potentiometer that can spin forward up to 100000 cycles.[1]This means the inner rotor can be spinning freely.[1] All of the logic to be implemented is dependent on the readings of this value. As shown in the diagram below. The unsigned integer values between 0 and 1642. This value can be changed by setting the gain of the ADS1015 A2D converter in the set up loop. Therefore, logic can be implemented to control the robot in 330/360 of its walking motion.

3

Figure 1. Encoder Value

Thus, as the encoder value increases or decreases we continue to check to position and move the arms to the side of the foot that is planted. Ain0 shown in the picture above correlate to the variable adc0.

Poll a2d converter after every loop.

4

Based on position of walking motion i.e. shaft position, adjust arms accordingly.

5

Essentially when the user presses forward on rc mode in the move command, the robot will move and if the robot is on its left foot, the arms will move to left side and if on right foot, the arms will move to right side.

Also, the servohandler custom command was overridden to read color sensor and display LED using sx1509 gpio library. The final design was meant to use millis function inside loop as shown in reference [2]. It was commented out in the code that is uploaded to the zip file.

6

Conclusion

In conclusion, these are some of the code snippets for the Biped Group Design. Please see the Zip file for more information or our previous software blog post for library information.[3]

 

Reference

[1] http://www.bourns.com/pdfs/3382.pdf

[2] https://www.arduino.cc/en/Tutorial/BlinkWithoutDelay

[3] https://www.arxterra.com/fall-2016-biped-codesoftware-update/

Resources

[1] Biped Code