• Anna Oh

Week13_Final_procces

For the final, rather than using voice recognition module, I used Rosary Encoder which is more easier than using stepper motor. But still I have desire to control my clock even little bit far distance from the clock. So, if I make it done my clock with Rosary Encoder, for the next step, for the Wintershow I'd like to try voice recognition with stepper motor.


this is my code for basic Rosary encoder

#include <Encoder.h>


// Change these two numbers to the pins connected to your encoder.

// Best Performance: both pins have interrupt capability

// Good Performance: only the first pin has interrupt capability

// Low Performance: neither pin has interrupt capability

Encoder myEnc(5, 6);

// avoid using pins with LEDs attached


void setup() {

Serial.begin(9600);

// Serial.println("Basic Encoder Test:");

}


long oldPosition = -999;


void loop() {

// long newPosition = myEnc.read();

// if (newPosition != oldPosition) {

// oldPosition = newPosition;

// Serial.println((newPosition / 4) % 20);

// }


long newPosition = myEnc.read();

long tempPosition = (newPosition / 4) % 20;

if (tempPosition != oldPosition) {

oldPosition = tempPosition;

// Serial.print(newPosition);

// Serial.print(" ");

Serial.println(tempPosition);

}

}


This is my p5 sketch. https://editor.p5js.org/Annaoh/sketches/rJVy1kHkV








I made a prototype, and still design of clock structure is considering. I'm thinking light wood pannel and Acrylic will be working for my project. Since I decided hang on the wall, I need to figure it out how I can mount this work to the wall.

I tested just for two cities- Santiago and Tel aviv. But still struggling with p5 sketch. So serial communication was working, but still need to figure it out p5 sketch for changing the time and background stable.


This is demo film

https://vimeo.com/




© 2023 by Salt & Pepper. Proudly created with Wix.com