Chance Jiajie Li/Week9 - input devices

Created Wed, 08 Nov 2023 10:44:03 -0500 Modified Thu, 21 Dec 2023 04:11:58 -0500
186 Words

Week9 - input devices

Assignment

individual assignment:

  • measure something - add a sensor to a microcontroller board that you have designed and read it

group assignment:

  • probe an input device’s analog levels and digital signals

Group Assignment

Vincy and I used a multimeter to probe the input of a slider rail. We found that its resistance value gradually changes from 10k ohms to less than 1k ohms, depending on the position of the slider knob.

Individual Assignment

Idea

Following the idea of the origami/paper folding machine to conceptualize this week’s assignment, in fact, the requirements of final project’s input part are not a lot, probably only a need to sense the position of the paper..

Special thanks to Jake for his help, he gave me good and concise advice on how to use photodio and LEDs to build a basic paper sensing circuit.

Electronics Design

Issue - text in top layer

Fix - microsoft paint

Electronics Production

Export

Milling

Soldering

Embedded Programming

Code

int pin = 3;  
int value;

void setup() {
  pinMode(pin, INPUT); 
  Serial.begin(9600); 
}

void loop() {
  value = digitalRead(pin); 
  Serial.println(value); 
  delay(1000);
}

Tesing