// These constants won’t change:
const int sensorPin = A0;    // pin that the sensor is attached to
const int ledPin = 9;        // pin that the LED is attached to
// variables:
int sensorValue = 0;         // the sensor value
int sensorMin = 1023;        // minimum sensor value
int sensorMax = 0;           // maximum sensor value
void setup() {
  // turn on LED to signal the start of the calibration period:
  pinMode(13, OUTPUT);
  digitalWrite(13, HIGH);
  // calibrate during the first five seconds
  while (millis() < 5000) {
    sensorValue = analogRead(sensorPin);
    // record the maximum sensor value
    if (sensorValue > sensorMax) {
      sensorMax = sensorValue;
    // record the minimum sensor value
    if (sensorValue < sensorMin) {
      sensorMin = sensorValue;
  // signal the end of the calibration period
  digitalWrite(13, LOW);
void loop() {
  // read the sensor:
  sensorValue = analogRead(sensorPin);
  // apply the calibration to the sensor reading
  sensorValue = map(sensorValue, sensorMin, sensorMax, 0, 255);
  // in case the sensor value is outside the range seen during calibration
  sensorValue = constrain(sensorValue, 0, 255);
  // fade the LED using the calibrated value:
  analogWrite(ledPin, sensorValue);

Electrical vs. Electronic

Electrical:Uses electricity as power usually converting in into some other form of energy.

Electronic: Manipulates the electric currents itself to make it do useful and interesting things.

The important difference between electrical devices and electronic device is that electrical doesn’t had the computer to manipulates the electricity itself while electronic does.

Disadvantages NYC faced in switching to electronic traffic lights:

-The traffic lights is more expensive.

-It’s hard to fix. (must be some sort of programmer.)

Advantages NYC faced in switching to electronic traffic lights:

-Almost unlimited control and variation:all the setting microwave.

-Easy to make changes. (i:upload new software. ii: control from a remote location.

Yes,  New York City did the right thing by switching from electrical to electronic traffic lights because with the electronic traffic lights, it’s easier to control the traffic, you can just change it right on sight instead of walk to the traffic light and change it.

Blog Post 10

Throughout this year, I had transfer from a middle student to a high school, I have learn many new knowledge in all many class. Also, I have learn how to pace myself and turn in all the work need to be done without a teacher chase me down.

When I have my first physics class, I have no idea what is physics and how does it involve in our everyday life but as we learn more stuff from physics class, I learn that the reason we can walk on the ground but not floating on the sky is because the gravity in pull us down and the reason we can walk with our feet but not moving on the ground like a warm is because the normal force is help us fighting the gravity so we down get pull down by our.

When I have my first U.S history class, I have no idea where does U.S come from and how did it develop into a powerful country. But now, I’m able to explain what is Declaration of Independence who are  funding fathers of the nation. Also, I’m able to explain what is slavery and how does that led to Civil War between the South and the North and who ended the slavery and keep the nation as one. Other than Colonial period and Slavery, I also learn how the social and economy change in the U.S during different time.

And for Math, before I get to learn about Geometry, I only know Triangles are congruent if the sides and angles are equal and it will be similar if the sides are proportion and angles are congruent but after I finish a year of Geometry, I can determine whether triangles are congruent or similar and explain the reason of why it’s congruent or similar.

Last, as a reader, I’m able to reader for a longer time in high school than I’m in middle and I get to read the book that’s in higher level than I usually read in middle school and also, I could finish the test as the same time as other student and don’t need to get into the extend time like what I usually do in middle school.

blog #6

What did you learn about the overall process?

I learned that from when we start the project to when we finish the project, we did not do the project alone the way but we follow the Designing thinking process like read the entry doc, read over the force reading and finished first draft.

What did you learn about yourself?

I learned that it’s not hard for me to present in front of the people because yesterday, I present in front of the people that I never met before and I did well. The point is that we need to practice to not be nervous.

What will you take from this experience to make the next 20 days of school more successful?

The experience I will take from the presentation will be that I need to practice before I’m gonna do something that I’m not confidence at because yesterday when I first present, I will so nervous that I can’t speak property but as I present more and more, it get better.
What will you take from this experience to be more successful next year?

That experience will help me to become more successful because as I present more and more, I will not be nervous if there is a project that we will be asked to present the work to other classmate and I will be able to speak clearly in front of them and get a good grade for my presentation.

What advice would you give to next year’s freshman about their final presentations?

My advice to next year’s freshman will be when they present to those who them never saw before, they can just pretend like they have know each for a long time and don’t just read what the board but said what have you done during the project like what are some challenge you face and how you over throw the challenge.
What advice would you give to next year’s freshman about their egg cars and blog posts?

My advice for the egg car will be, keep the seat of the egg low and keep the side of the car high because if your car fill over, the top of the side will prevent the egg from touching the ground and try to leave some space around the egg because then the egg with not be squeeze by the car after the crash to the wall. For the blog post, my advice will be read over the rubric before you write the post so you will know what should be in the post.