For this project we put our coding to the test. We were told to build some kind of robot art with an arduino a breadboard and a comput. So my group and I made and LCD (liquid crystal display) and piezo buzzer that played music. Below is a more in depth description of what we did.
Coding
Our Code/* Darude - Sandstorm Speaker on port 8 By Ryan, Andrew, and Diamon */ #include "pitches.h" //Tone Library #include <LiquidCrystal.h> //LiquidCrystal Library LiquidCrystal lcd(12, 11, 5, 4, 3, 2); //LCD Pins
int shortTone = 80; //Length of Short Note int longTone = 200; //Length of Long Note int standardDelay = 40; //Delay int delayBetweenBars = 50; //Delay
void setup() { lcd.begin(16, 2); //Length and Height of LCD Screen lcd.clear(); }
void loop() { lcd.clear(); //Clear Screen leftover text onboard RAM lcd.setCursor(0, 0); //Print on first row lcd.print("Robot Art Show"); //Print Robot Art Show delay(3000); //Delay 3 seconds lcd.clear(); lcd.setCursor(0, 0); lcd.print("Darude Sandstorm");
Electricity- the flow of energy between charged electrons Voltage- potential energy difference through an obstacle with resistance Current- "flow" of electricity through a circuit Circuit- a loop of conductive material that connects the negative and positive sides of a power source Resistance- measure of how much current is slowed Power- rate at which energy is transferred by a circuit
Description of our Project
My Group and after some thought knew for sure we were going to be using the lcd, but we didn't what for, and then someone had the brilliant idea of adding a song with the buzzer and we ended up making the song Sandstorm by the artist Darude. We had to move some stuff around but we got the set up to work and that's what we needed Here's a picture of our diagram (see below)
Video of Project Running
Below is a link to a video of our project playing. Hope you enjoy!
This project was definitely one of my favorites if not my favorite project of the year. I had a small bit of prior knowledge of using Arduinos from and internship I had taken earlier that year on robotics, some things I felt I was strong in was learning my group and I's strength and weaknesses on the topic so we were able to choose our jobs around that for the project. Another was teamwork and I thought that without that on our project is wouldn't have nearly been as productive. Some things I need to improve on are mine productivity skills and getting distracted very easily. It always seems that every project I have had something negative to say about my productivity and staying on task. This project was especially hard because after we had set up all the wiring that day all we did was for waiting and watching Ryan code the Arduino. The first few days it wasn't so bad but towards the end it started to become a routine and it was very hard than when he needed us to get back focused. Overall I thought this project was very interesting and fun ad would definitely recommend it for next years class.