Collaborator : Ruoxiao Sun
Working document :
https://docs.google.com/presentation/d/1o4cRuEivGEDCvUIJfZw9f0nMB0wzKkF6Ai6XIY95ogw/edit?usp=sharing
In this week, we finalized the closing of the bin to be done by photosensor (phototransistor VTT9812FH). We refined our user flow after the feedback from the user testing to include corner cases. We tested the code for Arduino & p5.js. We locally hosted server for the ML code. We created the physical prototype for our project.
Datatype int, long, char for Arduino?
int (32 bits in Nano)
Serial.write writes in which format?
Difference between "W" & 'W'? for code,
inByte = Serial.read();
if(inByte == 'W'){ //Open organic trash can
servoMotor1.write(servoAngle);
flag1 = HIGH; //trashcan lid is open
counter = 0; //To start 10sec count timer
Long wiring for physical prototype causes interference? MOSTLY NO
Can we do wire tubing to photosensor? YES
Counter with delay or hardware with interrupt?
Can use millis() to know the time stamp.
Analog Write is pulse width modulation.