Thursday, April 2, 2015

Allen Salama - End of 3rd MP Update

I was initially tasked with calculating the kinetic energy output of gait motion, which I approached in 6 parts. I dealt with two segments, the thigh and the leg (separated by the knee), each with three energy values to obtain: translational energy, rotational kinetic energy, and potential energy. I actually started with the second type first, as I knew it would prove to be the most difficult to calculate of three.
I started with the RKE of the leg. Since the hip has very little movement throughout the walking motion, I assigned it as a fixed point in order to find the rate of angle change. I separated the motion into several cycles, and worked with each one individually. Using trigonometry, I created an "isosceles" triangle by taking the frame with the widest stance (since the two legs of the triangle are actually the length of the leg segment) and assumed that angle to be the total angle change. I did this for each cycle, plugged it into RKE after finding each trial's moment of inertia, and found the average of all the trials. The value ended up being below 1 J, which discouraged me (even though RKE is supposed to be smaller), and because of this, I decided to neglect the RKE of the thigh since it would have been much more difficult to calculate.
The next-most difficult energy to calculate was potential energy of each segment. I found the coordinates of the center of mass of each segment, and measured its potential energy at each time frame by finding the distance (or height) from the position of the COM at that time frame from the absolute minimum location of the entire motion. I took the sums of these values to obtain my total PE results for each segment.
Lastly, translational energy. This was simply mv^2, and I found the velocities of each segment by putting their distances traveled over time. This too, surprisingly, yielded pretty low values.

Looking back I definitely would have approached the calculations differently. I averaged all the RKE values from the start, when in hind sight should have done it like with the PE values: calculating the RKE at each time frame and taking the sum of all those energy values. I think that's why I may have gotten very small energy amount for RKE and TE.

After the math, I attempted to use the coordinates and values I had from using the Kinovea video analysis software in order to build a walking model on the computer. I went with Wolfram's Systemmodeler, but after a couple unsuccessful weeks, I got no where with the program. Simply put, Systemmodeler was just out of my and Max's reach and it required a very comprehensive foundation of mechanical engineering and modeling.

Luckily, Mr. Lin sent me a link to an OpenSim model developed by a Stanford researcher.  I have been playing around with it for the past two days, and it is certainly far more complex and intricate than what I had envisioned. But adding parameters could allow me and Max to observe the effects which adding mass of the knee has on the gait motion and energy output.

The biggest problem is, obviously, time. Personally, I would rather just get straight into the building and wiring of the generator rather than work with computer models, and with the end of the year approaching quickly, that made be what needs to happen.

Potential Energy Calculations
Rotational Kinetic Energy Calculations
Translation Energy/Final Calculations

Saturday, January 24, 2015

Week 15-17 Progress Report

We have both made considerable progress in their respective areas of focus in relation to the project.


Max:
Through an initial multimeter test of the first prototype of the generator, I found that the generator was producing voltage with alternating current. I also discovered through this test that there was a negligible amount of current being produced by the generator. To solve the first problem, converting the ac current to dc, I researched a component provided to us by Mr. Lin called a DC Rectifier. By utilizing the information I found I was able to construct a circuit that successfully converted the current to DC. The next step was to analyze this electricity with a oscilloscope. The graphs of the scope showed a large amount of interference which we will try and filter out on the next attempt at getting a data reading. With the information I was able to extract I came to the conclusion that the amount of wire we have wrapped around the doughnut provides us with 100 millivolts. A quick estimation revealed that we could fit four to five of these sections of wire on the doughnut. By adding these and doubling the thickness of each section we could potentially generate a full volt of electricity.
At this point two main problems are where we will focus our attention. The first is that even with the DC rectifier the multimeter was still not able to read any current in the generator. The second is that to maintain the amount of voltage I was achieving in the test, the ball would move much faster than a walking leg would be able to rotate it. We have not discussed a solution to the first problem because it is probably due to a low power generation. The second problem however is our main concern. In order to solve this we will use a program which I am still trying to obtain call maplesim. This program will allow us to implement the formula that Allen has been working on to create a model that will optimize the generator shape to cater to the motion of the leg. We will also construct a robot leg that we can use to uniformly test every new generator prototype we make.


Allen:
I have been working with the Kinovea video analysis software to acquire a rough estimate of the amount of kinetic energy yielded by the human walking motion, which could then be converted to power. The approach to determining rotational kinetic energy has varied; originally, I had been attempting to take the angle change of the entire leg to calculate angular velocity, but after conferring with Max and Mr. Lin, a better approach would be dividing the walking motion into two segments: one from hip to knee and the second from knee to ankle. This week, I have been honing in on the first segment. Although there is an angle tool in Kinovea with tracking capabilities, the data wouldn’t export to Excel. So, I has resorted to simple trigonometry; assuming that the length of each segment is fixed, the walking motion can be described in the form of an isosceles triangle, with two of the legs being equal (the length of the measured segment) and the base being that actual path of the knee marker.
Using that method of thinking, I divided the walking motion of a video clip (which he and Max had taken earlier on a treadmill, using neon green stickers as trackers) into 9 walking cycles. To find the third side, I found the slope of the tangent line for the path of the knee marker. This slope will be used to calculate the distance between the absolute extrema for each cycle graph, which will essentially be the third side of the triangle. Now, with three sides of a triangle, I can use the Law of Cosine to find the angle of each cycle’s triangle at its widest point. Using the Intermediate Value Theorem, because the motion of the knee is a continuous function, I can assume that there is a point in that function in which the angle is 0 radians - that is why finding the third side with the absolute extrema can be used to find the angle change, as the “longest” triangle will essentially describe the largest angle and consequently the total angle change.

I will find the average angular velocity for each cycle, and use that value - along with the moment of inertia for the hip-knee segment - to calculate a rough estimate of the rotational kinetic energy for that segment. I then will repeat the process for the second segment (knee to ankle). Since the motion of the knee isn’t purely rotational, I will also use Kinovea to calculate the translational kinetic energy for each segment, which should be a lot easier and require much less trigonometry. I will then send this out to Dr. Philip Martin of the Department of Kinesiology at Iowa State for an expert opinion, and if all bodes well, I will move on to working alongside Max with the MapleSim (or a similar tool) software, as well attempt to build a simple robot that uses segments to mimic gait motion to use during the testing phase of the project. A robot should yield more consistent results than a human, but first, a more optimally-shaped generator will need to be created, which will be the next phase.

Sunday, January 4, 2015

Week 14 Progress Report

This week, Max brought a multimeter and wire with him in  order to begin electrical testing. He coiled a segment of the doughnut (the two halves held with basic tape for the moment) tightly with wire, hooked the ends to the voltmeter and started whipping the ball around within. We were pleased to find that voltage was generated (roughly 200-300 millivolts), but disappointed to see no value for current arise. Perhaps the value was too small to be picked up on the multimeter, but that will be our next step moving forward.
Allen continued to sift through the documents he had received and found another flaw in his earlier calculations, this time with the angular velocity. Originally, he had used Kinovea to use the point on his knee joint to generate values of angular velocity. However, this now seems to be inaccurate; rather than acquiring the angular velocity of the knee joint, what needs to be found is the angular velocity of the entire leg. Dr. Martin says this can be found by measuring the rate of change of the angle at which the leg moves. So, Allen re-recorded video snippets, this time placing green rather orange orange dots (the orange didn't provide enough contrast against his skin accompanied with the poor lighting in the gym) along the entire leg. He will continue to fidget with the angle tool in Kinovea in order to extract data to Excel like he had before in order to garner the correct yield for angular velocity.

Week 13 Progress Report

This week we ran into some speed bumps with our project. When attempting to print the second half of the "doughnut" plastic model for the track, Max saw that the printing was all jumbled up. Plastic would print out haywired and linear rods would stick through the track. We were puzzled as to why these problems didn't arise with the first print, but Max solved this issue but reconfiguring the actual shape of the track on SketchUp into one that included much more hidden geometry. Now, the prints are huge successes; the track has just enough thickness and space for the neodymium ball to roll around fluidly. However, our "doughnut" shape may not be optimal after all; while walking around with it on the side of our knees, we noticed that the ball didn't really swing around as we had envisioned it would. Instead, the ball would just roll back and forth along the bottom of the track. We will see to this shape-issue later, as Max wants to get a start on testing this device for actual electric conductivity next week.
Allen reached out to two professors, Dr. Phillip Martin of the Department of Kinesiology at Iowa State university and Dr. Todd Royer of the Department of Kinesiology and Applied Physiology at the University of Deleware, to seek guidance regarding the calculation of the moment of inertia. What he got was far more than expected: a revsed vision of human walking entirely. Walking isn't one body of movement, but rather the compilation of several segments at work. Dr. Martin in particular provided Allen with some excellent resources in two chapters from Dr. David A. Winter's Biomechanics and Motor Control of Human Movement, 5th edition.  Instead of calculating the rotational kinetic energy (RKE) of the knee joint, Allen needs to calculate the RKE the entire leg ("leg"in this case is referred to as the lower shank, aka from the knee to the ankle). The moment of inertia is found by the formula: Ileg cm = [mleg  * (lengthleg * radius of gyrationleg)2]. The length of my lower shank is approximately .413m. Since my mass is 65.7709kg and the leg takes up roughly 4.65% of the body mass (based off Winter's findings), the mass of my leg is 3.06kg. Finally, the radius of gyration is a given ratio of 0.302, so after plugging in all these values into the formula above, the moment of inertia in my leg equates to roughly 0.0476kg*m^2. 

Thursday, December 4, 2014

Weeks 11-12 Progress Report

Updated Gantt Schedule (barring date updates) to account for the recent parallelization.

The time off from school allowed us both to work on our independent projects. As we had planned to in the previous progress report, we branched off into different sectors: Allen focused on capturing raw data from gait analyses in order to determine a theoretical yield of kinetic energy produced by walking, and Max ventured off into the 3D modeling world to construct a design for the magnetic ball track we will be implementing into our generator. Unfortunately, he has "boycotted" against making blog posts, but he is without a doubt doing great work.
Allen used a clip of himself filmed (by Max) with a 60 fps camera walking on a treadmill. Using Kinovea, he was able to track the movement of his outer knee by using the "tracking tool" to follow a neon orange sticker placed on the knee. From here, he was able to compute a lot of data, from horizontal velocity to position to speed. But what he was looking for most was angular velocity, or the velocity of an object rotating along an axis. He has the stored stored on Excel and in the form of a graph, which he plans on taking the average of, either as a whole or per walking cycle. The point is to try to obtain a theoretical value for kinetic energy generated. The formula for rotational kinetic energy is .5(angular velocity)(moment of inertia). The angular velocity has been collected, but the moment of inertia, or the point mass with respect to a rotating axis, will be harder to derive. That will be Allen's main focus for next week: continue to work on the calculation of the theoretical kinetic energy generated, specifically by computing the moment of inertia. Max will touch up the 3D model by adding thickness to the tracking, and possibly step into circuit designing.

Graph of Angular Velocity (rad/s) vs. Time (ms)




Thursday, November 20, 2014

Week 10 Progress Report

This week, we moved away from our Gantt Chart in the sense of parallelization; we 'went our seperate ways,' with Max focusing on the physical generator and Allen focusing on the analysis of gait motion.

Max created a block diagram to plan the design of the generator. This diagram includes the components that are included in the generator and helps to display a visual plan for the eventual designing and physical construction of the generator. His next step will be to translate these diagrams into 3D models. This will be done using Google SketchUp and the nodes isolated by the block diagrams to render designs of the different components that comprise the generator.

Allen went into more depth on the "Human Walking Analysis, Evacuation and Classification Based on Motion Capture System," which highlighted some key variables that some classmates had mentioned in their review of our presentation last week. Everyone has a unique walk, and it differs from gender and age. Balance is also a vital piece of walking. In terms of previous gait analysis research, most tend to focus on the sagittal (profile view) plane and ignore the traversal plane and frontal view. The researchers created a fourteen-linkage walking model, consisting of nineteen points, fourteen segments and twelve joints. This paper used motion capture technology to take down data, ranging from velocity to in-depty cycle data. After all, a walk is really just a series of periodic movements (for the knee). The data points to highest velocity occurring at the knee, but Allen will be looking to find other papers to compare.

Additionally, this week he began narrowing down choices for a video analysis tool. The idea is for him to record himself walking on a treadmill with some sort of market attached to his knee. The two video analysis programs are Kinivea and Sports Motion, which he'll work with on the same video and evaluate which gives the most comprehensive data.

Thursday, November 13, 2014

Week 8 Progress Report

This shortened week served as, essentially, an extension of what we worked on last week. We just recently got our hands on a LED light band, and the goal is to attach it one of our knees and film the motion of walking with the band in a dark room. The idea is to see if there actually is viable kinetic energy there to be extracted and converted into electrical energy. And while that will be apparent to the eye, it will still require some sort of function or program to pull some quantitative data out of that. We are also planning on contacting the people behind the BioMotionLab animation of the walking motion of the human (see last week's post) to enquire the possibility of receiving any numerical data from them. Kinetic energy is defined as .5(m)(v^2), and if mass remains constant when walking, the velocity (directly proportional to kinetic energy) is where we must focus on. Just after school we came across this paper detailing the analysis of human walking provides a table on p. 392 that shows that the knee contained the highest VMo (velocity motion data) of the tested body parts. The paper is clearly quite dense and will require a more thorough evaluation, but it could be useful to us.
We also researched different parts for our project, namely the magnetic neodymium balls. Thankfully they are all very cheap, none costing more than 10 cents a ball. Several sites are: http://neoballs.com/#https://www.kjmagnetics.com/products.asp?cat=12http://www.magnet4less.com/index.php?cPath=1_14.