top of page

This week's lab starts to doing some coding on Arduino IDE, and I found the language confusing at first sight, like I don’t know what is "int", "void" etc.. So I went to watch some tutorial videos to get familiar with the language and logic. Then I found it not too difficult, similar to the one we are learning in ICM class. I found I can understand the code examples, however, I still found it really hard for me to write my own one, i could only copy and paste the code... maybe i need more time to get familiar with it!

New knowledge to know: divide the analog value by 4 to get it into a range from 0 to 255.

And I got to know this wire stripper and wire wrapping tool! They made everything easier!

And when i do the phototransistor part. I saw the instruction is: The short leg goes to voltage, and the long leg goes to the input pin of a microcontroller. But I am still confused why the long leg should be connected to the "-". At the beginning, I connected the long leg to the "+" and short leg to the "-", it didn’t work, and when a classmate reminded me that instruction, then I did the change, it worked!

When i was doing to "Detecting a Peak", i found the value didn’t change at all, and asked for Shirley's help, she found that the wire was not connected to the FSR tightly, then we wrapped it up again, and it worked!

One last thing I learned from Shirley is, we can use "map" and "constrain" function to make the brightness of the led more visible.

bottom of page