Lab: Serial Input to P5.js IDE

Week 6
Assignments


When I was doing the Labs, I think I ran into a problem, because the sensor data sending from Arduino to p5 didn't work properly. The Number at the Top-Left Corner didn't move but when I changed to Serial.readLine(). The numbers changes according to the potentiometer. 

I probably made a mistake and didn't follow the labs steps accordingly..... 

Arduino Input to P5.js

p5.js IDE
Serial.read()

Arduino
delay(1);

Arduino Input to P5.js

p5.js IDE
Serial.readLine();

Arduino
delay(1);


Arduino Input to P5.js

p5.js IDE
serial.readLine()

Arduino
delay(100);

Arduino Serial Input to P5.js

p5.js IDE
Serial.readLine()

Arduino
delay(100);

PComp: Maze Game

Week 4
Assignment
Servo Motor : Potentiometer

Maze Game

 

I got very excited to work with servo motor, because servo can make things physically move! I thought about what I wanted to make, which is a Maze Game that will be controlled by potentiometer. I did not realize when I was thinking about the project that I will need 2 servos to do TILT & PAN. At the moment, the servo can only TILT. I figured this most important control when I already constructed my project. However, I am determined to add another servo so that I have a full control over my game. 

PComp Lab: Simple Switch

Week 2
Homework Assignments
 

My Simple Switch


Test 01: Test....Test.....Potentiometer

 

Test 02: Test....Test.....Button Switch