top of page

WK7

10/24-10/30

Lab 1: Intro to Asynchronous Serial Communications

Followed the instructions given. Got the correct output successfully.

The Arduino crashed 3 times during this lab, so it took me a lot of time to figure out the serial monitor cuz it always stop generating data.

For the rest of LABs: please use the following link.

https://www.notion.so/pcomp-blog-412054bf7e4649dbba25089218b2f6d3?pvs=4

截屏2023-10-30 下午9.21.53.png
截屏2023-10-30 下午11.45.21.png
截屏2023-10-31 上午12.10.52.png
截屏2023-10-30 下午9.21.14.png
IMG_0985.jpeg
截屏2023-10-31 上午12.15.18.png

​The serial plotter has more instant response than the serial monitor so I use it to check the availability of two potenitalmeters.

截屏2023-10-31 上午12.20.25.png
截屏2023-10-31 上午12.27.06.png

WK5

10/3-10/9

10/10-10/16

Lab 1: Using a Transistor to Control High Current Loads with an Arduino

Unfortunately, I attempted this lab three times, and it still did not work.I suspect the issue lies

with the transistor because all the TIP120 transistors were already taken out. So, I asked the

shop staffs, and they provided me with a TIP102.

Lab 2: DC Motor Control Using an H-Bridge

The second lab was more successful. I connected the motor to the motor driver, but it took a while to secure the driver to the breadboard. I tried using the pins, but they were much looser than I expected, so I just plugged the wires directly into the driver. As a result, every time I pressed the button, the motor started to rotate in one direction.

After setting up this lab, I proceeded with the L9110H H-Bridge Motor Driver. While following the steps in Figure 23, I noticed an incorrect drawing of the wire that should be connected to the down-right pin (positive) of the switch. I corrected this error, and it worked well. When I pressed the button, the motor changed its direction.

Question: I wanted to try with a servo, but I couldn't figure out where the third wire should be connected.

IMG_0758.jpeg

Midterm project:

​Me and Yian were working on the mechanism of the triggers.

Left: microphone sensor.

Right: hall-effect (magnetic) sensor.

​3D printed some objects (vases, candle, figure).

IMG_0789.jpeg
IMG_0780.jpeg

WK4

09/26-10/02


Some ideas for the midterm project:

A table with candles and offerings, the user needs to place the offerings on the table in the right position, each position will trigger its red light when placed correctly, and the wrong position will turn into a yellow light that will not allow them to continue. When all the red lights are triggered, the user blows out the candles which contain air pressure sensors, and then the puppet(automata) starts to be driven by servo servos, with scary music or light effects.

image.png
image.png
image.png
image.png
image.png
image.png
image.png

WK3

09/19-09/25

LAB 1

Tone Output Using An Arduino

- Check whether the speaker is working or not.

​- The input range is 100-700.

- The frequency changes as I put frequency = map(sensorReading, 100, 700, 100, 1000);

and as I change 1000 to 1400, it produces a higher pitch as its frequency changes.

-Check the input range after adding a sensor, which is 0-600, and then change its frequency by giving pressure to the surface.

 

 

 

- Use the note constants to make a simple keyboard. Learned how to create a new tab for the notes' source.

Lab 2

Servo Motor Control with an Arduino

- The range of the servo is 0-1023.

- Follow the instructions and let the servo rotate successfully.

截屏2023-09-26 上午12.43.01.png
IMG_0418.jpeg
截屏2023-09-26 上午1.20.59.png
截屏2023-09-26 上午1.19.32.png
IMG_0420.jpeg
IMG_0422.jpeg
IMG_0426.jpeg

WK2

09/12-09/18

I began with Lab 1, and it took me almost an hour to set up the Arduino IDE and the breadboard. I was quite anxious about the connections of each component, as I had previously encountered numerous bugs and problems in my previous labs.

Fortunately, the yellow LED poped up after I uploaded the code to the system. However, a big issue just came quickly, that is, when I was pressing the button, nothing changed.

Then I started to switch the two LEDs and also changed the definition of the coding to check if those all worked. It seemed like they all worked well. So I tried to remove the 10k resistor, and both LEDs turned on. As I pressed the button, the red LED turned off and the yellow LED became brighter. Later, I replaced the switch with a sensor and had some fun experimenting with it.​ But I am now still confused with this lab as I don't know what went wrong.

​*update: reinstalled the whole breadboard, it worked!

 

​Lab 2 went more successfully. I connected a speaker to the breadboard and the results turned really well. The LED gave a hint for the changing tone or volume of the speaker. ​Shown as the video.

For Lab 3, I got the result from serial monitor but I am still trying to figure out the output of serial plotter.

截屏2023-09-19 上午4.20.13.png
截屏2023-09-19 上午4.12.25.png
IMG_0347.jpeg
IMG_0348.jpeg
IMG_0352.jpeg
IMG_0353.jpeg
IMG_0350.jpeg
IMG_0351.jpeg

WK1

09/5-09/11

This week, we had an overview of different electrical components and we did several labs for set-ups. As we dived headfirst into labs and hands-on experiments, I realized that there were a lot of issues going on. One of the most common challenges when setting up a breadboard for me is correctly placing components and ensuring they are properly connected. Different from my previous experiences in physics class, where I primarily used only wires to establish connections, breadboards introduce a different level of “complexity”, where part of the circuits are hidden behind the rectangular columns. So that’s a bit challenging for me to go through all the connections. But hopefully I can get more used to it as I practice more and it is essential to understand the breadboard's underlying structure, including how the rows and columns are interconnected, to successfully navigate its concealed circuits.

IMG_0263.JPG

Used the white LED but it did not work.

IMG_0265.JPG
IMG_0266.JPG
bottom of page