Project Overview
This project was super fun! We choose two organs systems in the body to research and then made a model representation. My group made a model that represents the skeletal and nervouss systems. We used an Arduino to represent the nervous system. The Arduino board itself was the brain and the wires that sent info everywhere were nerve cells. We built a "skull" box around the arduino to protect it to function as the skull and a wooden arm on the side. The arm could move up and down using a remote control and we moved it according to what signals we recieved from the brain.
Content
Our Code
#include <LiquidCrystal.h>
LiquidCrystal lcd(12,11,5,4,3,2);
const int sensorPinP = 0;
const int sensorPinF = 1;
int photo, highP = 0, lowP = 1023;
int flex, highF = 0, lowF = 1023;
void setup()
{
lcd.begin(16, 2);
lcd.clear();
}
void loop()
{
lcd.clear();
photo = analogRead(sensorPinP);
flex = analogRead(sensorPinF);
autoTuneP();
autoTuneF();
if (photo >200) {
lcd.setCursor (0,0);
lcd.clear();
lcd.print ("The brain");
delay(100);
}
if (photo <200) {
lcd.clear();
lcd.setCursor(0,0);
lcd.print("You see someone");
lcd.setCursor(0,1);
lcd.print("in front of you");
delay(3000);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Would you like");
lcd.setCursor(0,1);
lcd.print("to wave?");
delay(2000);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Raise the arm if");
lcd.setCursor(0,1);
lcd.print("you want to wave");
delay(3000);
}
if (flex >200) {
lcd.setCursor (0,0);
lcd.clear();
lcd.print ("The brain");
delay(100);
}
if (flex <200) {
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Your finger hit");
lcd.setCursor(0,1);
lcd.print("something");
delay(3000);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Raise the arm");
lcd.setCursor(0,1);
lcd.print("now");
delay(3000);
}
}
void autoTuneP()
{
if (photo< lowP)
{
lowP = photo;
}
if (photo > highP)
{
highP = photo;
}
photo = map(photo, lowP+30, highP-30, 0, 255);
photo = constrain(photo, 0, 255);
}
void autoTuneF()
{
if (flex< lowF)
{
lowF = flex;
}
if (flex > highF)
{
highF = flex;
}
}
LiquidCrystal lcd(12,11,5,4,3,2);
const int sensorPinP = 0;
const int sensorPinF = 1;
int photo, highP = 0, lowP = 1023;
int flex, highF = 0, lowF = 1023;
void setup()
{
lcd.begin(16, 2);
lcd.clear();
}
void loop()
{
lcd.clear();
photo = analogRead(sensorPinP);
flex = analogRead(sensorPinF);
autoTuneP();
autoTuneF();
if (photo >200) {
lcd.setCursor (0,0);
lcd.clear();
lcd.print ("The brain");
delay(100);
}
if (photo <200) {
lcd.clear();
lcd.setCursor(0,0);
lcd.print("You see someone");
lcd.setCursor(0,1);
lcd.print("in front of you");
delay(3000);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Would you like");
lcd.setCursor(0,1);
lcd.print("to wave?");
delay(2000);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Raise the arm if");
lcd.setCursor(0,1);
lcd.print("you want to wave");
delay(3000);
}
if (flex >200) {
lcd.setCursor (0,0);
lcd.clear();
lcd.print ("The brain");
delay(100);
}
if (flex <200) {
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Your finger hit");
lcd.setCursor(0,1);
lcd.print("something");
delay(3000);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Raise the arm");
lcd.setCursor(0,1);
lcd.print("now");
delay(3000);
}
}
void autoTuneP()
{
if (photo< lowP)
{
lowP = photo;
}
if (photo > highP)
{
highP = photo;
}
photo = map(photo, lowP+30, highP-30, 0, 255);
photo = constrain(photo, 0, 255);
}
void autoTuneF()
{
if (flex< lowF)
{
lowF = flex;
}
if (flex > highF)
{
highF = flex;
}
}
Reflection
This was the best project of the year by far! I enjoyed it a lot, espicially because we got clear instructions and we were able to use engineering to complete our project. One peak, or good thing, about the project was definitely our creativity in coming up with a way to represent our systems.
One pit, or bad thing, was probably our build schedule. Our idea was very creative but very ambitious so we ran out of time with the given time constraints. We should've planned better and made our project simpler. However, I think that we could've done a lot more with this project if we had more time and I would love to see another project like this with more time given to create and build something.
Another pit was some of our group's work ethic. I was working the whole time that we could, but I couldn't find a way to engage everyone at the same time in working on the project. I think I have to work on that and make sure everyone is on task.
Another peak was my group's openess to ideas. I brought up the idea of Arduino and I wasn't sure if they would all be okay with it but no one shut it down and it ended up working. My group had very good collaboration skills and we got along very well.
One pit, or bad thing, was probably our build schedule. Our idea was very creative but very ambitious so we ran out of time with the given time constraints. We should've planned better and made our project simpler. However, I think that we could've done a lot more with this project if we had more time and I would love to see another project like this with more time given to create and build something.
Another pit was some of our group's work ethic. I was working the whole time that we could, but I couldn't find a way to engage everyone at the same time in working on the project. I think I have to work on that and make sure everyone is on task.
Another peak was my group's openess to ideas. I brought up the idea of Arduino and I wasn't sure if they would all be okay with it but no one shut it down and it ended up working. My group had very good collaboration skills and we got along very well.