Collaborator : Ruoxiao Sun

Week 8

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.

Questions

  1. Datatype int, long, char for Arduino?

    int (32 bits in Nano)
    
  2. Serial.write writes in which format?

  3. 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
  1. Long wiring for physical prototype causes interference? MOSTLY NO

  2. Can we do wire tubing to photosensor? YES

  3. Counter with delay or hardware with interrupt?

    Can use millis() to know the time stamp.
    
  4. Analog Write is pulse width modulation.

Final Design - Smart Trash Can System