Recitation 3: Sensors

Introduction

A joystick module and light up correspondence was the original idea. We hoped to create a light that would like up according to the direction, but we ended up switching to using an RGB LED at the advice of LA Eszter. 

Process

We originally tried to get directions attached to the direction of the joystick module, however, it was not working correctly, most likely due to an error in the wiring. LA Eszter suggested we use an RGB LED in order to have an easier time wiring.  However, when we switched to the RGB LED, we still had trouble with the color-changing, most like caused by a coding error. Our table of values for the X and Y:

Direction X Y
Left 0-200 490-540
Right 900-1023 490-540
Up 490-540 900-1023
Down 490-540 0-200

Each direction corresponded to a different color, but,  we were only able to get red to blink, and once green to blink. 

Reflection 

The process did not go as planned. We were hoping that using simple wiring would create an easier way to solve the issue, but we did not have enough experience with the RGB LED to know how it worked and how to control it through the code.  I think in the future, I would just use the simple LEDs to start before moving on to the RGB LED. 

Questions

  1. We intended to create a light reactive joystick module. I think this is very similar to a gaming input and output because when the joystick moves, the screen moves with it, however, this was a simpler case in which lights interacted with the joystick in order to see the joystick’s movements. 
  2. I think code is often compared to a recipe or a tutorial because that is what it is. It is a recipe that the computer is reading in order to create a delicious program. 
  3. I think more and more rapidly human behaviors are being influenced by computers as new technology develops; humans become more dependent on this smarter and smarter technology without having to think about it because the computer is already knowing what is needed or what is going to happen. 

One Reply to “Recitation 3: Sensors”

  1. good idea Sarah. The RGB led works exactly like having 3 leds, one is Red light, another is Green light, and the last one is Blue light (RGB). So it is like connecting these 3 leds with 3 resistors as you do with any LED.

    It would be good to show the diagram of the circuit you made and have the code, you can copy and paste the code or add a link to your code on github (https://github.com/).

Leave a Reply