Lab 1 – Blink

Description

I used Arduino with a red LED. I changed the code to lighting up for 0.1 seconds and then off for 0.1 seconds, and then lighting up for 0.5 seconds, and then off for 0.5 seconds.

Components

  • 1 Arduino
  • 1 LED
  • 1 Resistor (220Ω)
  • 3 Jumper wires
  • 1 USB cable
  • 1 Breadboard

Code

// the setup function runs once 
when you press reset or power the board
void setup() {
 pinMode(13, OUTPUT);
}

// the loop function runs over 
and over again forever
void loop() {
 digitalWrite(13, HIGH); 
 delay(100); 
 digitalWrite(13, LOW); 
 delay(100); 
 digitalWrite(13, HIGH); 
 delay(500); 
 digitalWrite(13, LOW); 
 delay(500); 
}

Google Maps

I use Google Maps almost everyday and it greatly impacts my everyday life. Although the main motivation of using Google Map (or any form of map) is almost always the same, which is to get to my destination, Google Maps in particular can help me achieve different goals in different conditions.

When I first came to Berkeley, I needed to use Google Maps as a navigation tool to get me to school. At first, I followed its audio instructions step by step to make turns. After a few days, I’ve remembered the turns and internalized the process in my head. I don’t have to use Google Maps to get to school, but I still turn it on in rush hours to avoid traffics. Google Maps tells me which roads are busy and which are not, and I can optimize my route accordingly. Google Maps can also be customized to avoid toll roads or highways to meet special needs. A few days ago, I got a flat tire and I had to use my spare tire for a few days. I was not supposed to drive faster than 35 MPH using my spare tire, and I had to adjust the setting in Google Maps to avoid highways. Last but not least, the search nearby function in Google Maps is a perfect tool for searching nearby places such as restaurants or gas stations.