Pagoda Dogwood Tree (Pretty sure unless my map skills are bad) near the UMC My attempt at drawing the tree.
During this sketch session I noticed that the trees were planted in little cutout squares in the ground. I wonder if this was done for aesthetic or to prevent the tree from competing
I noticed that some of the leaves seemed to have started to change color a bit. The general leaf structure looked like this:
Below was another leaf that was on the tree but less common than the previous leaf type had these little fruit like objects attached.
I wonder what the ratio between these leaf types are.
Prompt: “In our first class session, we discussed our favorite objects. Write a short post (~150-200 words) about what object you chose, why it’s special, and what materials it’s made from. Include at least one photo of the object.”
I chose my laptop as my favorite object. It is a MacBook Pro 2021 with an M1 Pro processor. My Mac is special to me because it allows me to do a lot of creative things such as designing logos, making mobile applications, websites, editing videos and more. My laptop also allows me to conduct tech-support for my friends and family remotely and also be able to play the occasional computer game. I can do my homework assignments, read, write, blog, and watch YouTube videos to expand my knowledge of anything and everything with the power of the internet. The Mac keyboard lets me write significantly faster compared to a phone or tablet so I can get things done with ease. The device is composed of many materials including plastic, aluminum, tin, and gold. It also contains different rare earth elements. With my MacBook in hand, I am an unstoppable force.
My current MacBook Pro (left) vs. my previous MacBook Pro (right) with GeekBench scores.
NOTE: I am currently working on reorganizing my servers. I want to move some of them to a 3rd party provider while keeping some on site. I will have this blog separated from my other projects soon.
For this lab, we were tasked with developing a game using P5JS that responded to two different inputs from the Arduino. I decided not to use my sensor box since my sensor box was falling a part due to poor construction. I decided to make a prototype of something similar to my final project idea.
Programming with P5.js
P5js is a new tool for me. I have some familiarity with javascript but it was still a bit of a learning process. I found a Breakout clone online that was written in P5js that I used as a base for my project (https://editor.p5js.org/kchung/sketches/qyur46iW9). I studied the code to figure out how it worked and changed various aspects to make this work for my project. I removed the bricks and made the game similar to wall ball. During testing, I made the bar be able to move via the arrow keys on my computer. I made the ball get faster over time and reset whenever the ball falls below the screen (the player failed to rebound it.)
Code
Building the circuit
Next, I had to build the actual circuit. I thought it would be cool to use an ultrasonic sensor to make the bar move when the user brings their hand close to the sensor. I had the bar move to the left when no object is detected and to the right when an object is detected. Since I needed a second input, I made a potentiometer be able to change the color of the ball.
For my final project I am making motion pong. The game will be controlled with motion sensors. I will need to figure out how to smooth the sensor value better as in this implementation of the ultrasonic sensor, the bar was a little bit shaky. I would also use a library with physics rather than writing complicated code to deal with collisions simply based on the x and y location of the ball and other objects.