top of page
Juan Anderson
My SIMULATION PROJECTS
MATLAB RUBBLE RESCUE ROBOT
SPRING 2020
​
Johns Hopkins University
​
Objective:
Create a robot that crawls through an earthquake rubble field and finds the survivor before its battery runs out.
​
Knowledge and Skills Used:
-
Conditional statements
-
Switch cases
-
For, while loops
-
Persistent variables
-
1-D Arrays
-
Strings
​
Result:
Where the robot thinks the survivor is skewed by the "nose noise" value. Digging through rubble costs 10 battery while moving costs 1 battery. Thus, robot successfully goes around the perimeter determining survivor's position and goes there. Additionally, robot compensates for any "nose noise" successfully finding the survivor.
​
Reflections:
I learned how to apply the engineering design process to code. I created flow charts with pseudo-code to organize my thoughts and given information. While coding, I learned how to organize large amounts of code via blocking my code as well as thoroughly commenting my code. Additionally, because there are many ways of going about the problem, I learned how to prioritize the easiest, simplest, time-saving way to program the robot while still achieving the desired outcome.
Robot
MATLAB CRYSTAL CLEAVAGE
SPRING 2020
​
Johns Hopkins University
​
Objective:
Create a function that cleaves (cuts) a crystal by any plane and then writes a file that contains the positions of the atoms in the cleaved crystal
​
Knowledge and Skills Used:
-
Switch cases
-
Strings
-
Loops, nested loops
-
Logical arrays
-
Multi-dimensional arrays
​
Result:
The code successfully modeled different atomic structures of different planes to cleave a crystal and the different atomic structures of three different types of crystals (simple cubic, body-centered cubic, face-centered cubic).
​
Reflections:
Through this project, I learned a lot about rigorously testing my code. I deduced where a bug in the code may lie, specifically tested that portion of the code, and in a timely manner determined the bug and fixed it.
Crystal
MATLAB HEART TISSUE
SPRING 2020
​
Johns Hopkins University
​
Objective:
Create a program that simulates the cause of a heart attack, ventricular fibrillation, via the passage of electrical pulses through the heart
Knowledge and Skills Used:
-
Nested functions
-
Nested loops
-
Conditional statements
-
Loops
-
Multi-dimensional arrays
-
Strings
​
Result:
The code worked as desired. Electrical pulses show up on the graph and pulsate outward and the rapid random pulses depict ventricular fibrillation.
​
Reflections:
This project's topic was an intricate, complex, and still to this day not a very well understood one in the scientific community. Additionally, it was outside of my field of study. Through this project, I learned how to compartmentalize pieces of information in order to understand each piece of information as well as how each piece of information relates to one another. In turn, I was able to create a program that models ventricular fibrillation.
Heart
MATLAB BAJA CVT
SPRING 2020
​
Johns Hopkins University
​
Objective:
Using the Continuously Variable Transmission (CVT), determine the maximum acceleration and speed of the Baja SAE off-road car as it starts from rest and travels in a straight 100ft path
​
Knowledge and Skills Used:
-
Ability to obtain useful information on the physics of a car's drivetrain system including the CVT and how the drivetrain transfers power to the wheels in a timely manner
-
Ability to obtain useful information on the different forces acting on a car
-
Manipulate collected real-world data to determine necessary quantities for the code
-
Use of obtained information to determine what specific quantities/factors need to be accounted for in the code
Result:
The real-world maximum velocity achieved by our Baja car was 28 mph and my theoretical max velocity was 28.5 mph. Also, I found our max acceleration to be 0.86 ft/sec^2
​
Reflections:
This was one of the first coding projects I completed without a set predefined solution. Thus, I learned how to compare my theoretical results with real-world data collected from the Hopkins Baja SAE off-road racing team. Additionally, from my code we, the Baja team, were able to understand when we reach our max velocity as well as the effect the CVT has on the trend line on our velocity vs time graph.
.png)
CVT
bottom of page