Monday:
Went with some of the other exchange students on a hiking trip. We were originally planning on going to Brauneck, but wound up taking the wrong train and hiking at Tegernsee instead. The mountain and weather were beautiful, but I realize I've gotten a bit out of shape -- climbing while a lot of fun and good for strength, does not do to much for cardio. The path we took was somewhere between 5 and 7 mi up and down the mountain and at the very peak we found a tiny chapel and had lunch by it. The view was amazing, though I was somewhat surprised by how much snow there still was.
Tuesday:
Bought our student tickets which allow us to use any of the public transportation in Munich for the entirety of the semester. After buying the ticket, Scott, Luke, and I explored some more of the nearby churches and then had Dönner for dinner (a German-Turkish food) which was delicious. That evening I also went to Professor Söder's tour of the city. He has a talent for making the history really interesting (by involving a bit of roleplay) and it turns out Munich used to be mostly just a poor monastery until they destroyed the bridge over the Isar (river in Munich named by the Celts who had settled there) that a nearby town had and built one of their own. This meant that now all of the salt caravans traveled through Munich whose name literally comes from the expression, "by the monks" a way to describe where the new bridge was.
Wednesday:
We got the lecture on how to choose courses and everyone freaked out a bit about that and in the evening I hung out around my apartment working on trying to finalize which courses I wanted to take and which Olin courses I need in order to graduate on time.
Thursday:
We had the dreaded German language proficiency test which got off to a late start because there had been a fire in the building about 15 minutes before the test was supposed to start and they had to evacuate to allow the fire department to put it out. After the test (which was long and rather challenging) I went with a couple of the other students to hang out in the Englischer Garten. I also had my first Radler (half beer half lemonade) and because it has a lot less alcohol than beer it was not nearly as bad. It was nice to hang out with people, there was live music, good company and a tree that was perfect for climbing and the garden is so large that we were able to go for a decently long walk before heading back to Studenten Stadt (which is actually connected to the garden but about a 45 minute run away which no one was particularly inclined to do)
Friday:
Went to Andsechs monastery which is at the top of another mountain. Luckily this one did not have nearly as high of a peak as the one at Tegernsee. The church itself was rather beautiful in a kind of ostentatious way, but the food was really good and I tried some of Samantha's apple beer which was also not bad. Samantha is from somewhere south and is very extraverted, but I kind of like her even though the first thing she wanted to talk about was boys, it was somehow endearing rather than annoying (she was the one who felt that because Luke and I speak to each other in German we must like each other - since she had no real idea what we were saying and interpreted any talking as getting along well). On the way back to StuSta we stopped and hung out by the lake for a while and some of the group broke off to smoke weed which was when I decided it was a good time to go home.
Saturday:
Traveled to Regensburg and met up with Andy. He took me around the city showing me the remnants of when it was a roman army base and the different architectural styles in the city. Apparently since Regensburg was a freie Stadt they didn't really do the whole persecute the protestants thing and instead of each of their kings building a bigger church, they just built towers. So there are some random towers in the city. That said they also have a huge cathedral and it is beautiful and basically exactly what one thinks of when they think of a cathedra. There was also a protestant church that let you pay a small fee to climb their tower and from there you could see almost all of the city. We had lunch at a place that has been making bratwurst for about the the last 300 years (and by now they're pretty good at it) and then took a ferry down the Danube to Walhalla. Which looks like a greek temple but was actually built by a Bayerisch king as a monument to unite German speaking people. Inside are statues of famous German speakers (and some of them are even women which was pretty progressive for a king at that time). That evening we ate out at an Italian restaurant because Andy didn't want to cook and then he showed me his university and lab which was a lot of fun and sort of made me wish that I had chosen Regensburg (but that may just be the missing people I can relate to thing)
Sunday:
Went to Andy's church and got to meet some of his friends and some of the little kids that go to the church. The service was very different from catholic mass. For one thing, they meet in a movie theatre and use the screen to project powerpoints. It is also a lot less formal. The theme of the service was about what is really required in a service (what does the bible say, what does the congregation think?) and also on perspective analysing John the baptist and people's reaction to him. That was broken up in the middle by singing christian rock songs and in the end people shared stories from their life experience about where they see God. For lunch we had somewhat of a potluck spaghetti meal where two of Andy's friends came over and we cooked what they brought and what Andy had left in the refrigerator. That was also a fun time because I was able to understand and take part in the conversation even if I didn't understand everything. After lunch Andy and I went climbing, and I tried a puzzle that involved a pretty high jump and I'm still unclear on what exactly caused me to miss the landing, but I think it was probably the fear I didn't have my sports brace on. It hurt, but I was able to bike back to the trainstation and still go to mass that evening which was good. Overall this was probably my favorite weekend so far and I may try to see Andy again the weekend after next
Lindsey Vanderlyn
Wednesday, April 6, 2016
Sunday, March 27, 2016
My First week in Germany
So it's been a week now (almost - tomorrow will officially mark a week). Which is a bit strange. I'm probably going to be forgetting a lot of the details on things, but I'll do my best to at least provide a summary of what happened each day this week.
Monday, 21:
Changing time zones definitely sucks. I was pretty thoroughly exhausted by the time we touched down (around 12:00 local time). It didn't help that I then needed to drag my suitcase everywhere (weighing in at 20 kg before I transferred my laptop into in) which made the train commute a little more difficult than it needed to be. I was able to clear customs without any real problem - they simply wanted to make sure that I knew how long I was allowed to remain in Germany for and I was also able to buy the train ticket I needed without too much difficulty. The hardest part of the whole trip, I think, was getting out at the stop near the JYM and finding the escalator there not working. This meant I had to drag my suitcase up the stairs. When I was about 2/3 of the way up however, there was a nice gentleman who helped me take it the rest of the way. Unfortunately, he was speaking Bayerisch and I couldn't understand much of what he was saying besides that he was willing to help and that it was quite heavy. After checking in with the program, I met another girl (Maddi) who was also heading to Studentenstadt and we wound up going shopping together after dropping our stuff off.
Tuesday, 22:
This was the first day of orientation (which I was about 5 minutes late to unfortunately) and here I was able to meet some of the other students. Among them were Christina and Luke who seem like people I might be able to become friends with. I spent the afternoon shopping with Christina and some of the other students in the program. It is a bit strange going to places like Marienplatz where all of the buildings are so old and historic, but then inside are modern stores. I the evening I went on a tour of Studentenstadt. One thing that's rather interesting about Studentenstadt is that is is entirely student run. All of the on campus bars/restaurants, the mail service, library, repairs, and events are all organized and executed by students. This means that the atmosphere is a bit different from the dorms at home and there seems to be more of a sense of freedom, but also personal ownership of the spaces.
Wednesday, 23:
During orientation we got taken to the Mensa (cafeteria) and were able to buy our Mensakarte which are required for purchasing food. The food is not super exciting, but it is cheap which is nice. Afterwards, I was planning on going shopping with Luke because all of the department stores recommended in the packet were very expensive so I had been putting off buying things until I could find somewhere cheaper, but a lot of the recommendations we found were for places that were no longer open. We did, however go to the Chrism mass (for blessing the three holy chrisms) in the Frauenkirche which was really pretty (and really cold because cathedrals don't seem to believe in heating). The mass was lead by the archbishop (who is also a cardinal) and there were more than 100 priests + deacons there. Afterwards, Luke showed me some of the other churches in the area and it turns out there are a lot right around Odeonsplatz/ Marienplatz. Afterwards Luke and I attempted to cook noodles and fish in my room (because he had not yet bought pots/pans) and he screwed up the fish so we ate the noodles and some of his leftover beans and rice. I then helped him fix his router because he'd kind of mangled the settings on it.
Thursday, 24:
Today I registered with the city of Munich and registered for health insurance/ got warned about the dangers of going anywhere too far away on my own or wandering after midnight by myself. And also went on a grocery shopping trip where I bought way too much stuff (I needed it all, but it was really heavy to try to carry back to my room).
Friday, 25:
On Friday I did the whole fasting thing and then went to mass at the Frauenkirche again. During the day I finished working out my desired course plan and started trying to find somewhere to boulder here. I also started organizing a hiking trip with some of the other students which originally would have been Saturday but wound up moving to Monday. I also cooked fish successfully for the first time.
Saturday, 26:
I slept in a lot. I then cooked an egg sandwich for brunch which was good. The stoves here have a timer so you can't forget to turn them off, but it only goes up to 15 minutes so I was proud that I turned the oven off about two minutes before it would have gone off anyway. I was also really happy with how well the pan fried toast went. In the afternoon, I didn't have quite as much time for adventuring as I had hoped I would because I wound up calling Mike around 14:00, but it was nice to talk with him. Afterwards I did go check out the nearby bouldering facility and I'm not sure how I feel on it yet. It does have a lot of puzzles, but none of them seem to be labeled with difficulty or start position. With a lot of them the start position is pretty obvious, but not marking difficulty means I have trouble telling which puzzles are going to be the right difficulty and which are really too hard. The walls are also a bit higher than what I'd gotten used to at home so there's a bit of fera near the top-out. From there, I actually didn't have enough time to get changed (out of the jeans I was wearing not leggings) so I went directly to mass at the Theatinkirche. This was a good choice because I really didn't want to be out on my own after midnight and their vigil mass started at 20:00 instead of 21:00 which the other nearby churches did. The mass itself was really nice, but I felt super disorganized. the candles are much nicer than the ones we use at home so you have to buy them, and so I did, but I paid too much so they gave me a second one which I didn't really know what to do with and then I couldn't find the booklet with the song lyrics. I was able to get a seat because a kind gentlemen let me into his pew, but then I didn't have a book and so the women next to me wound up giving me hers when she noticed I wasn't singing (which was really nice of her but made me also feel awkward). I am finally starting to learn the responses in German, but not knowing all of them also made me feel a bit awkward. Overall though, it was a really pretty church (cathedral) and I was able to understand 70% of the mass and so that felt good. And the candlelit vigil is always one of my favorite masses so I was also glad not to have missed it - a real possibility given when I left the climbing hall.
Sunday, 27:
I spent a lot of the morning adding pictures to facebook/writing this. In a bit I'm going to cook brunch and then I hop to spend time with calligraphy/ finishing the last chapters in the Russian book I need to. Nothing too fancy. I might get adventurous and try cooking chicken, noodles, and green beans for dinner though. And if I am happy with how calligraphy goes I may put a couple of pieces up on the walls to make them slightly less barren.
Monday, 21:
Changing time zones definitely sucks. I was pretty thoroughly exhausted by the time we touched down (around 12:00 local time). It didn't help that I then needed to drag my suitcase everywhere (weighing in at 20 kg before I transferred my laptop into in) which made the train commute a little more difficult than it needed to be. I was able to clear customs without any real problem - they simply wanted to make sure that I knew how long I was allowed to remain in Germany for and I was also able to buy the train ticket I needed without too much difficulty. The hardest part of the whole trip, I think, was getting out at the stop near the JYM and finding the escalator there not working. This meant I had to drag my suitcase up the stairs. When I was about 2/3 of the way up however, there was a nice gentleman who helped me take it the rest of the way. Unfortunately, he was speaking Bayerisch and I couldn't understand much of what he was saying besides that he was willing to help and that it was quite heavy. After checking in with the program, I met another girl (Maddi) who was also heading to Studentenstadt and we wound up going shopping together after dropping our stuff off.
Tuesday, 22:
This was the first day of orientation (which I was about 5 minutes late to unfortunately) and here I was able to meet some of the other students. Among them were Christina and Luke who seem like people I might be able to become friends with. I spent the afternoon shopping with Christina and some of the other students in the program. It is a bit strange going to places like Marienplatz where all of the buildings are so old and historic, but then inside are modern stores. I the evening I went on a tour of Studentenstadt. One thing that's rather interesting about Studentenstadt is that is is entirely student run. All of the on campus bars/restaurants, the mail service, library, repairs, and events are all organized and executed by students. This means that the atmosphere is a bit different from the dorms at home and there seems to be more of a sense of freedom, but also personal ownership of the spaces.
Wednesday, 23:
During orientation we got taken to the Mensa (cafeteria) and were able to buy our Mensakarte which are required for purchasing food. The food is not super exciting, but it is cheap which is nice. Afterwards, I was planning on going shopping with Luke because all of the department stores recommended in the packet were very expensive so I had been putting off buying things until I could find somewhere cheaper, but a lot of the recommendations we found were for places that were no longer open. We did, however go to the Chrism mass (for blessing the three holy chrisms) in the Frauenkirche which was really pretty (and really cold because cathedrals don't seem to believe in heating). The mass was lead by the archbishop (who is also a cardinal) and there were more than 100 priests + deacons there. Afterwards, Luke showed me some of the other churches in the area and it turns out there are a lot right around Odeonsplatz/ Marienplatz. Afterwards Luke and I attempted to cook noodles and fish in my room (because he had not yet bought pots/pans) and he screwed up the fish so we ate the noodles and some of his leftover beans and rice. I then helped him fix his router because he'd kind of mangled the settings on it.
Thursday, 24:
Today I registered with the city of Munich and registered for health insurance/ got warned about the dangers of going anywhere too far away on my own or wandering after midnight by myself. And also went on a grocery shopping trip where I bought way too much stuff (I needed it all, but it was really heavy to try to carry back to my room).
Friday, 25:
On Friday I did the whole fasting thing and then went to mass at the Frauenkirche again. During the day I finished working out my desired course plan and started trying to find somewhere to boulder here. I also started organizing a hiking trip with some of the other students which originally would have been Saturday but wound up moving to Monday. I also cooked fish successfully for the first time.
Saturday, 26:
I slept in a lot. I then cooked an egg sandwich for brunch which was good. The stoves here have a timer so you can't forget to turn them off, but it only goes up to 15 minutes so I was proud that I turned the oven off about two minutes before it would have gone off anyway. I was also really happy with how well the pan fried toast went. In the afternoon, I didn't have quite as much time for adventuring as I had hoped I would because I wound up calling Mike around 14:00, but it was nice to talk with him. Afterwards I did go check out the nearby bouldering facility and I'm not sure how I feel on it yet. It does have a lot of puzzles, but none of them seem to be labeled with difficulty or start position. With a lot of them the start position is pretty obvious, but not marking difficulty means I have trouble telling which puzzles are going to be the right difficulty and which are really too hard. The walls are also a bit higher than what I'd gotten used to at home so there's a bit of fera near the top-out. From there, I actually didn't have enough time to get changed (out of the jeans I was wearing not leggings) so I went directly to mass at the Theatinkirche. This was a good choice because I really didn't want to be out on my own after midnight and their vigil mass started at 20:00 instead of 21:00 which the other nearby churches did. The mass itself was really nice, but I felt super disorganized. the candles are much nicer than the ones we use at home so you have to buy them, and so I did, but I paid too much so they gave me a second one which I didn't really know what to do with and then I couldn't find the booklet with the song lyrics. I was able to get a seat because a kind gentlemen let me into his pew, but then I didn't have a book and so the women next to me wound up giving me hers when she noticed I wasn't singing (which was really nice of her but made me also feel awkward). I am finally starting to learn the responses in German, but not knowing all of them also made me feel a bit awkward. Overall though, it was a really pretty church (cathedral) and I was able to understand 70% of the mass and so that felt good. And the candlelit vigil is always one of my favorite masses so I was also glad not to have missed it - a real possibility given when I left the climbing hall.
Sunday, 27:
I spent a lot of the morning adding pictures to facebook/writing this. In a bit I'm going to cook brunch and then I hop to spend time with calligraphy/ finishing the last chapters in the Russian book I need to. Nothing too fancy. I might get adventurous and try cooking chicken, noodles, and green beans for dinner though. And if I am happy with how calligraphy goes I may put a couple of pieces up on the walls to make them slightly less barren.
Monday, April 27, 2015
Flywheel PID
Interesting title for blog post
Background
Control theory is a branch of mathematics that deals with how a moving system reacts to feedback. This is a very broad definition, which boils down to: control is changing your input based on how the system reacts until you can make a system do what you want. For this project, Jiaying and I wanted a suspended flywheel assembly to follow a light.
In order to do this, we needed to create some type of controller where the voltage we gave the motor was influenced by the voltage we read after a photoresistor.
In this case, our controller - K - is proportional to the value of photoresistor, the derivative of that value, and the integral of that value. This voltage is fed to the motor which changes its position and by extension the voltage that we read from the photoresistor. These transfer functions are represented by the ‘motor’ and ‘sensor’ boxes in the diagram above.
Why Proportional, Integral, and Derivative?
Proportional, Integral, Derivative (PID) control is one of the most common types of controllers because it is easily implemented in code. These types of controllers have also historically been considered on of the best options when knowledge of the how exactly a system functions is unknown. In our case, we care more about the PID controller’s ability to compensate for the unknown system because in order to have a complete transfer function we would have to model how the input voltage to the motor affects the dynamic movement of the motor and the translation of that to value our photoresistor reads.
How does PID control work?
Proportional:
For a system based purely on proportional control, the process (in this case our motor + photoresistor) has some form of output, the difference - or error - between this value and a set point is found. This value is then passed into a function that multiplies it by some constant and that new value is passed into the system. In theory, doing this means that when the system is far from the set point, it will change a lot, but as it approaches the setpoint, the change in it’s position will go to zero.
Integral:
In practice, a controller that has only proportional control may have some form of residual error and never actually reach equilibrium so many systems will add a term proportional to the integral of the error. This term is proportional to both the magnitude of the error and the duration that the error has existed. In some cases, however, because it is proportional to the duration of the error, this term may cause the system to overshoot its set point
Derivative:
Derivative control is proportional to the slope of the error, and can help reduce settling time because it, in a sense, is a prediction of the future. In practice, however, derivative control can become very noisy/unstable because it does not really use past values so it is very sensitive to changes. For this reason, if it is implemented, there is also generally a low pass filter to get rid of the worst of the high frequency noise.
Circuit Design
In order to create the PID controller we needed to determine how to measure error, and then what values made sense for each of the components in the controller itself.
Choosing the setpoint
To simplify our circuit design, we wanted the find a way to avoid creating a subtractor circuit, and thus wanted to make sure that our setpoint was zero. In order to accomplish this, we connected one leg of our photoresistor (the pale blue wires) to the negative rail and the other to the output of a pot which was connected to the positive rail. With this in place, we simply turn the pot to change the location of our zero, or setpoint.
Creating the PID circuit
When we originally looked into creating a PID circuit, we planned on having three separate op amp circuits, one for the proportional, integral, and derivative components of the controller. After talking with our professor, however, we realized that with the use of Kirchoff’s Voltage law we could actually combine all three of these aspects into a single op amp circuit.

This greatly simplified the construction and reduced the number of variables we needed to tune. However, it also meant that all three systems became tied to the same four components.
Choosing resistor and capacitor values
Ideally, to choose the gains we would apply to our system, we would be able to model the transfer function between the voltage applied to the motor and the voltage from the photoresistor. If we had this function, we could use a process called the Laplace transform to investigate the system behavior to different PID gains. Doing this would have given us a good idea of what types of gains were stable and from there we could have chosen values of our resistors and capacitors.
In this case, however, the transfer function is rather complicated. It involves the translation of voltage to torque, and the interaction between the angular momentum of a spoked wheel and the motor itself, as well as the resistance of the wires tethering the motor to its control circuit. This lead us to choose gains in a more experimental method. We created a Matlab script in order to tell us the values of each of our coefficients and started building a proportional controller. Once we had values for the proportional constant, we used the script to get a rough estimate of what capacitor value we would need to keep the correct order of magnitude for the integral component. After getting a rough estimate, we experimentally tweaked the system and then repeated the process for the derivative component.
Filtering
After adding the derivative component, we realized that the values we were getting out were too noisy to be very useful in controlling the motor. With these oscillations, the motor became very jerky and prone to oscillating out of control. To reduce this, we created a low pass filter to kill some of the very high frequency oscillations before they were passed to the motor.
Results
So with proportional control our system behaves as we would expect it to, with the motor input following the photoresistor output by a factor of 2 as determined by our Kp (proportional constant). We found that our motor followed our light source when the motor input smoothly followed the photo resistor output as seen from T= -6 to T = -1. However when the motor input railed we would see that the motor no longer acknowledge the light source and returned to its natural bias (T = -1 to T = 0). The times characterized by extreme oscillations (T = 1 to T = 4), the motor attempts to follow the lightsource but mirrors the input behavior in that it follows the light source in a jittery fashion.
After adding derivative control, we found that the motor more often followed the light source. As seen above we still had problems with the motor input railing against the 12V limit when the light moved too fast or got too close/far from the sensor.
Using PD control we were able to control the motor in a sinusoid like manner, making the motor turn one way and then the next. However, this control was only possible when the light moved very slowly and remained a very constant distance from the motor.
After adding the integral control, we can see that almost any movement results in either the motor input railing or in severe oscillations. This resulted in the motor being more unstable, and extremely jittery.
Analysis
Although normally derivative control tends to add noise to a system, we found that a combination of PD or PID control provided the most stability. That said, we were not able to find gains (all abt dem gainz) that created a very stable system. If the radius the light is held from the sensor changes too much or the system starts to overshoot by too much, it rapidly loses stability. Part of this may be due to to the type of controller we are using, however most of this is probably a result of us not being to able to find ideal constants of proportionality.
Interesting title for blog post
Background
Control theory is a branch of mathematics that deals with how a moving system reacts to feedback. This is a very broad definition, which boils down to: control is changing your input based on how the system reacts until you can make a system do what you want. For this project, Jiaying and I wanted a suspended flywheel assembly to follow a light.
In order to do this, we needed to create some type of controller where the voltage we gave the motor was influenced by the voltage we read after a photoresistor.
In this case, our controller - K - is proportional to the value of photoresistor, the derivative of that value, and the integral of that value. This voltage is fed to the motor which changes its position and by extension the voltage that we read from the photoresistor. These transfer functions are represented by the ‘motor’ and ‘sensor’ boxes in the diagram above.
Why Proportional, Integral, and Derivative?
Proportional, Integral, Derivative (PID) control is one of the most common types of controllers because it is easily implemented in code. These types of controllers have also historically been considered on of the best options when knowledge of the how exactly a system functions is unknown. In our case, we care more about the PID controller’s ability to compensate for the unknown system because in order to have a complete transfer function we would have to model how the input voltage to the motor affects the dynamic movement of the motor and the translation of that to value our photoresistor reads.
How does PID control work?
Proportional:
For a system based purely on proportional control, the process (in this case our motor + photoresistor) has some form of output, the difference - or error - between this value and a set point is found. This value is then passed into a function that multiplies it by some constant and that new value is passed into the system. In theory, doing this means that when the system is far from the set point, it will change a lot, but as it approaches the setpoint, the change in it’s position will go to zero.
Integral:
In practice, a controller that has only proportional control may have some form of residual error and never actually reach equilibrium so many systems will add a term proportional to the integral of the error. This term is proportional to both the magnitude of the error and the duration that the error has existed. In some cases, however, because it is proportional to the duration of the error, this term may cause the system to overshoot its set point
Derivative:
Derivative control is proportional to the slope of the error, and can help reduce settling time because it, in a sense, is a prediction of the future. In practice, however, derivative control can become very noisy/unstable because it does not really use past values so it is very sensitive to changes. For this reason, if it is implemented, there is also generally a low pass filter to get rid of the worst of the high frequency noise.
Circuit Design
In order to create the PID controller we needed to determine how to measure error, and then what values made sense for each of the components in the controller itself.
Choosing the setpoint
To simplify our circuit design, we wanted the find a way to avoid creating a subtractor circuit, and thus wanted to make sure that our setpoint was zero. In order to accomplish this, we connected one leg of our photoresistor (the pale blue wires) to the negative rail and the other to the output of a pot which was connected to the positive rail. With this in place, we simply turn the pot to change the location of our zero, or setpoint.
Creating the PID circuit
When we originally looked into creating a PID circuit, we planned on having three separate op amp circuits, one for the proportional, integral, and derivative components of the controller. After talking with our professor, however, we realized that with the use of Kirchoff’s Voltage law we could actually combine all three of these aspects into a single op amp circuit.
This greatly simplified the construction and reduced the number of variables we needed to tune. However, it also meant that all three systems became tied to the same four components.
Choosing resistor and capacitor values
Ideally, to choose the gains we would apply to our system, we would be able to model the transfer function between the voltage applied to the motor and the voltage from the photoresistor. If we had this function, we could use a process called the Laplace transform to investigate the system behavior to different PID gains. Doing this would have given us a good idea of what types of gains were stable and from there we could have chosen values of our resistors and capacitors.
In this case, however, the transfer function is rather complicated. It involves the translation of voltage to torque, and the interaction between the angular momentum of a spoked wheel and the motor itself, as well as the resistance of the wires tethering the motor to its control circuit. This lead us to choose gains in a more experimental method. We created a Matlab script in order to tell us the values of each of our coefficients and started building a proportional controller. Once we had values for the proportional constant, we used the script to get a rough estimate of what capacitor value we would need to keep the correct order of magnitude for the integral component. After getting a rough estimate, we experimentally tweaked the system and then repeated the process for the derivative component.
Filtering
After adding the derivative component, we realized that the values we were getting out were too noisy to be very useful in controlling the motor. With these oscillations, the motor became very jerky and prone to oscillating out of control. To reduce this, we created a low pass filter to kill some of the very high frequency oscillations before they were passed to the motor.
Results
So with proportional control our system behaves as we would expect it to, with the motor input following the photoresistor output by a factor of 2 as determined by our Kp (proportional constant). We found that our motor followed our light source when the motor input smoothly followed the photo resistor output as seen from T= -6 to T = -1. However when the motor input railed we would see that the motor no longer acknowledge the light source and returned to its natural bias (T = -1 to T = 0). The times characterized by extreme oscillations (T = 1 to T = 4), the motor attempts to follow the lightsource but mirrors the input behavior in that it follows the light source in a jittery fashion.
After adding derivative control, we found that the motor more often followed the light source. As seen above we still had problems with the motor input railing against the 12V limit when the light moved too fast or got too close/far from the sensor.
Using PD control we were able to control the motor in a sinusoid like manner, making the motor turn one way and then the next. However, this control was only possible when the light moved very slowly and remained a very constant distance from the motor.
After adding the integral control, we can see that almost any movement results in either the motor input railing or in severe oscillations. This resulted in the motor being more unstable, and extremely jittery.
Analysis
Although normally derivative control tends to add noise to a system, we found that a combination of PD or PID control provided the most stability. That said, we were not able to find gains (all abt dem gainz) that created a very stable system. If the radius the light is held from the sensor changes too much or the system starts to overshoot by too much, it rapidly loses stability. Part of this may be due to to the type of controller we are using, however most of this is probably a result of us not being to able to find ideal constants of proportionality.
Monday, October 13, 2014
Self-Authorship Code Book (mark II)
Self-authorship is a measure of how individuals learn/know about themselves, about the world and about their relationships. Self-authorship differs from agency because it is not about behavior,; it differs from self-efficacy because it is not about self-confidence. Self-authorship is about the cognitive process people use to make meaning (Cream & Laughlin 2005). The frameworks for analysing self-authorship from Marcia B. Baxter Magolda and Robert Kegan provide us with a way to look at how people develop intellectually, personally, and in relationships with other people. It provides three (four) main stages of developments which highlight the shift in the way individuals know - about themselves, about relationships, and about knowledge - from externally driven to internally driven. This work analyzed these changes in three dimensions:
- Epistemological - “How I know”
- Intrapersonal - “Who am I”
- Interpersonal - “what relationships do I want with others”
The study in this book focuses on 39 students through their undergraduate years and into their early 30s. Individuals who participated came from a small college where the teachers were invested in the students’ success, however the curriculum reinforced listening to authorities rather than developing self authorship. The participants were interviewed once a year into their early thirties and faced a variety of very different challenges during this time. Despite these varied circumstances, this study found that the stages of self-authorship remained universal.
Code #1 - Following Formulas: In this stage, people's ideas of who they are come from the expectations of others, ideas of knowledge come from belief in authorities’ plans and absolutes, ideas of relationships often come by putting other people before themselves.
- Letting other people’s ideas influence/shape one’s own decisions; putting other’s beliefs/ emotions ahead of ones own (Intrapersonal)
- Absorbing societal beliefs/prejudices and trusting them over person experience
Code #2 - Crossroads: In this stage, participants recognize that they need to stop relying on external definitions for their identity in all three dimensions, but are not necessarily able to act on this new knowledge.
EXAMPLE: Amber Wilcox-O’Hearn
Amber’s interview (done while she was still mid-batch at Hacker School) mentions that she is still affected by worries she has of how other people see her. Although Amber realizes that the way ‘other people’ code does not necessarily work for her, she admits she does not yet act consistently on this.
“And on that note, I’m finding that a lot of people here are spending more time doing actual coding than I do, and sometimes I worry that I’m not doing enough coding, but for me, I need to simultaneously have some kind of order. I need to write about what my thoughts are, and just coding is not enough. And if I’m spending some proportion of my time that other people might be spending coding, doing writing, it looks like I haven’t done very much. But to me, it’s absolutely much more...Effective in terms of my feeling of having learned something.”
Code #3 - Self-Authorship: In this stage, participants are able to choose their own beliefs, define their own morals, values and spirituality, and enter into relationships true to themselves, mutually negotiating how needs are met.
Code #5 - Epistemological, or ‘how do I know?’. Can be manifested during any of the four stages of self authorship. This code refers to how people learn/know and their views on the absoluteness of that knowledge.
Code #6 - Intrapersonal, or ‘who am I?’ Can be manifested in any of the four stages of self-authorship. Refers to how people make decisions about themselves and their identities.
Code #7 - Interpersonal, or ‘what relationships do I want with others?’ Can be manifested in any of the four stages of self-authorship. Refers to how people interact and form relationships with others, and how much they allow these relationships to define themselves.
Code #8: Environment - making an environment that encourages self-authorship. These sort of environments encourage students to reflect on the constancy of knowledge and develop confidence in their ability to make decisions and create positive relationships with others.
Reference:
Baxter Magolda, M. (2001). Making Their Own Way. Springfield: Stylus.
Creamer, E., & Laughlin, A. (2005). Self-Authorship and Women's Career Decision Making.Journal of College Student Development, 46(1), 13-27. doi:10.1353/csd.2005.0002.
Kegan, R., & Lahey, L. (2009). Immunity to Change. Boston: Harvard Business Review Press.
Global v. relative Self-efficacy
I was reading a paper called “Gender and Percieved Self-Efficacy in Self-Regulated Learning,” and it had a study of elementary school boys and girls rating themselves on self-efficacy. Boys and girls rated themselves pretty much equally on self-efficacy. However, when the researchers asked how they thought they compared to their classmates, the girls expressed that they were better writers than the boys in their class and even in their school.
One of the things the paper suggested was that girls and boys may have similar self-efficacy but use different scales to compare themselves to others, so that may account for why, in general, girls will rate themselves more modestly than boys on self-efficacy. This was an interesting point, that the paper did not develop as much as I'd hoped it would. However, what I did find interesting, was that when ranking themselves on an absolute/personal scale for self-efficacy in language arts and self-regulation, girls' responses put them equal to boys responses, however when ranked on the relative scale of 'compared to your classmates', girls definitely considered themselves better writers. I'm not really sure where to go with this, but I thought this concept of relative and global scales as a way of measuring self-efficacy was interesting, especially because it shows that while girls might judge themselves more modestly on a global scale, in the relative context of their class, their self-efficacy is higher than it might otherwise appear.
I will continue looking at gender and self-efficacy because although this was an interesting paper, it did not really go as much in depth with a comparison between girls and boys as I would like to be able to draw useful information from.
[disclaimer than this was a study conducted on way younger students]
Saturday, September 27, 2014
Self-Authorship Code Book (mark I)
Marcia B. Baxter Magolda’s framework for analysing self-authorship provides us with a way to look at how people develop intellectually, personally, and in relationships with other people. It provides three (four) main stages of developments which highlight the shift in the way individuals know - about themselves, about relationships, and about knowledge - from externally driven to internally driven. This work analyzed these changes in three dimensions, epistemological - “How I know”, intrapersonal - “Who am I”, and interpersonal - “what relationships do I want with others”.
The study in this book focuses on 39 students through their undergraduate years and into their early 30s. Individuals who participated came from a small college where the teachers were invested in the students’ success, however the curriculum reinforced listening to authorities rather than developing self authorship. The participants were interviewed once a year into their early thirties and faced a variety of very different challenges during this time. Despite these varied circumstances, this study found that the stages of self-authorship remained universal.
Code #1 - Following Formula’s: In this stage, people's ideas of who they are come from the expectations of others, ideas of knowledge come from belief in authorities’ plans and absolutes, ideas of relationships often come by putting other people before themselves.
- Letting other people’s ideas influence/shape one’s own decisions; putting other’s beliefs/ emotions ahead of ones own (Intrapersonal)
- Absorbing societal beliefs/prejudices and trusting them over person experience
Code #2 - Crossroads: In this stage, participants recognize that they need to stop relying on external definitions for their identity in all three dimensions, but are not necessarily able to act on this new knowledge.
Code #3 - Self-Authorship: In this stage, participants are able to choose their own beliefs, define their own morals, values and spirituality, and enter into relationships true to themselves, mutually negotiating how needs are met. All of these activities are performed within outside context.
Code #4 - Internal Foundation: This is the final stage in the journey to self-authorship that Baxter Magolda describes. At this point, participants have a strong set of guiding ideas and beliefs that help them navigate and adapt to the variety of contexts that make up everyday life.
No strong evidence yet.
Code #7 - Intrapersonal, or ‘what relationships do I want with others?’ Can be manifested in any of the four stages of self-authorship. Refers to how people interact and form relationships with others, and how much they allow these relationships to define themselves.
Code #5 - Epistemological, or ‘how do I know?’. Can be manifested during any of the four stages of self authorship. This code refers to how people learn/know and their views on the absoluteness of that knowledge.
Code #6 - Interpersonal, or ‘who am I?’ Can be manifested in any of the four stages of self-authorship. Refers to how people make decisions about themselves and their identities.
Code #7 - Intrapersonal, or ‘what relationships do I want with others?’ Can be manifested in any of the four stages of self-authorship. Refers to how people interact and form relationships with others, and how much they allow these relationships to define themselves.
Baxter Magolda, M. (2001). Making Their Own Way. Springfield: Stylus.
Creamer, E., & Laughlin, A. (2005). Self-Authorship and Women's Career Decision Making.Journal of College Student Development, 46(1), 13-27. doi:10.1353/csd.2005.0002.
Kegan, R., & Lahey, L. (2009). Immunity to Change. Boston: Harvard Business Review Press.
Subscribe to:
Posts (Atom)