28 March 2021

Scaffolding: Progress Review

 Since my last post, it's been recommended to me that I should choose a slower-paced game than the light gun shooter I had before. With that in mind, I chose the PC version of Uno. The controller I decided to go with is a combination of the second and third ideas I came up with. While directional controls use the knob from the second plan, I'm going to use an RFID card reader to for the accept button. The cards bring it back to the fact that Uno is a card game and you can play the cards in game by scanning an RFID card. This should also work for drawing, and then you can call Uno by actually shouting into the CPE's microphone. The controller is planned to look like an Uno card tin. In order for this to work, I also need to use a library that allows an arduino to work like an Xbox controller.

A note for this picture: The RFID reader is for scanning cards to perform different actions based on which one is scanned.





// UNO controller by Devin Fitzgerald
// This code is used to create a controller using potentiometer knob,
// a RFID reader, and voice controls.

#include <Adafruit_CircuitPlayground.h> //Add CPE functions
// Add RFID reader library
// Add controller library

// (1)Set a Constant int for the RFID reader
// (2)Set a Constant int for the Potentiometer

// (3)Set an int for the pot to write 
// (4)Set an int that is used to map (1) to a lower value

void setup() {
  // Initialize CPE library

}

void loop() {
  // Set RFID reader to standby
  
  //---------------|Left and right controls: for navigating cards|-------------------
  // Read the analog in value (2) from pot and set it to (3)
  // Map (3) to (4) 
  // Map (4) to analog horizontal axis on controller

  //---------------|RFID Controls: for most of the face buttons|-----------------------------
  // If reciever reads the "play" card
    // use bottom face button (A)

  // else if it reads the "draw" card
    // use right face button (B)

  // else if it reads the "red" card
    // use down directional button

  // else if it reads the "yellow" card
    // use right directional button

  // else if it reads the "green" card
    // use up directional button

  // else if it reads the "blue" card
    // use left directional button

  //----------------|Voice Control: For the "call UNO" button|------------------------------
  // If mic picks up sound
    // use left face buttons (X)
}

1. Does this controller idea sound immersive? If not, is there anything that I can do or add to make it more so?

2. What do you think of basing the enclosure on an Uno tin?

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.