Arduino Leonardo Game Controller for Quadriplegics

by giselle.perez in Circuits > Assistive Tech

145 Views, 0 Favorites, 0 Comments

Arduino Leonardo Game Controller for Quadriplegics

IMG_4334.jpg

Our task was to create a game controller that required minimal movement of the neck for quadriplegic people. Before we started building our controllers, we learned and experimented with breadboards and perf boards to understand how to wire the electronics we would need for the final project. We then built our controllers using the materials available to us, many of which you might already have! Here's a video of me explaining a bit about my controller and giving a demonstration of how it works.

Supplies

Wiring the Arduino/Perf Board

IMG_4424.HEIC.jpg
IMG_4426.HEIC.jpg
IMG_4427.HEIC.jpg
IMG_4428.HEIC.jpg

Materials: perf board, soldering iron, solder, seven Arduino wires, Arduino, three resistors, six alligator clips

  1. Put an Arduino wire into the perf board in the column/row 18T and put in resistors in 18P, 18L, 18H.
  2. Solder the the resistor in 18P to the Arduino wire in 18T, the resistor in 18L to 18P, and the resistor in 18H to 18L.
  3. Add an Arduino wire in 12P, 12L, and 12H and solder the other end of the the resistors to these Arduino wires. (Do not cut the extra length of the resistor leg off. In the next step you are going to attach modified alligator clips to the rest of the resistor.)
  4. Take three of your alligator clips and cut off the clip on one side of each and strip off some of the wire cover. Put the newly stripped wire ends through 9P, 9L, and 9H and solder them each to their respective resistor leg.
  5. Take three Arduino wires (one Arduino wire needs to be longer than the others) and put them in 10T, 8T, and 6T. With your last three alligator clips, cut the alligator clip off of one side and strip a bit of the wire cover off. Attach these in 10U, 8U, and 6U and solder each Arduino wire to the alligator wire that is in the same column as it.
  6. You can now plug in your wires to your Arduino! The Arduino wires in 12P goes to the A0 pin socket, 12L to A1, 12H to A2, 18T to 5V, and 10T, 8T, and 6T all go to GND (grounds - since there are only two grounds on each side, use the longer Arduino wire you added to connect to a ground in the pin sockets on the other side of the Arduino)

Building Support for the Neck Pillow

IMG_4333.HEIC.jpg
IMG_4463.jpg

Materials: Neck pillow, cardboard/foam board, duct tape, pencil, scissors (or exacto knife), hot glue

  1. Hold the neck pillow in a U shape and trace the shape onto a piece of cardboard (my dimensions were 18" by 16" with the U having a depth of 7.5" and width of 6.75" in the front)
  2. Cut out the middle U
  3. Use the cardboard you just cut as a trace and repeat on two more sections of cardboard
  4. Hot glue all three on top of one another
  5. Duct tape your neck pillow to your newly created frame

Buttons

IMG_4464.HEIC.jpg
IMG_4465.HEIC.jpg
IMG_4466.HEIC.jpg

Materials: three paper clips, cardboard, tinfoil, duct tap, scissors (or exacto knife) and hot glue.

  1. Get something round, such as a glass or water bottle that has a diameter of around three inches to trace six circles.
  2. Cut out your six circles.
  3. Cover at least half of each circle with tinfoil and use duct tape of glue to secure it.
  4. Grab the paper clips and separate the two parts of them (if the paperclip was over a piece of paper, pull apart the paper clip piece that is on each side).
  5. Use the hot glue to attach each paper clip to a cardboard circle on the part that doesn't have tinfoil (make sure to wait for the glue to completely dry before hot gluing the other circle on).
  6. Once the glue is dry, repeat the same process on the other side of the paper clips with the three remaining cardboard circles.

After building the buttons... time to attach them!

  1. Attach all buttons facing up (side with the paperclip should be directed down) with bubbles of tape to the neck pillow.
  2. One will be in the back, behind where the head will be. The other two will be on the sides of the neck pillow.
  3. You can play around with the location of your buttons before adding more tape or using hot glue to secure them more.
  4. This next step is optional, only if you feel like your buttons need more support, but you can add wedges behind the buttons to stabilize them further. I used small triangle pieces of would but you can use cardboard (or any other material you think would work) to create them.

Attaching Wiring to Controller

IMG_4336.HEIC.jpg
IMG_4334.jpg
IMG_4362.HEIC.jpg

Materials: Previously soldered perf board, Arduino, neck pillow apparatus and duct tape

  1. Attach the Arduino and perf board to the cardboard at the back of the neck pillow using duct tape bubbles
  2. The alligator clips in 10U, 8U, and 6U (the grounds) should each be clipped to one side of each button
  3. Attach alligator clip to the other side of each button. Put alligator clip in 9P to the left button, 9L to the back button and 9H to the right button (Since 9P is connected through wires to A0, this makes it left. Same with 9L connected to A1 and 9H connected to A2)

Build the "Backbone"

IMG_4467.HEIC.jpg
IMG_4468.HEIC.jpg

Materials: Cardboard/foam board, hot glue, scissors (or exacto knife), duct tape, twine, wood beam, ruler/measuring tape and potentially a saw

  1. Measure if the wood beam needs to be shorter for the person who will use the controller by placing the neck pillow on top of the wood and looking at it next to the person who will be using the controller to see if the height needs to be changed.
  2. If it needs to be shorter, mark where the cut will need to be and us a saw (or a band saw if you have access to one) to make the cut.
  3. When the wood is at the correct height, use foam board and cut 16 pieces 3" by the distance between where the neck pillow will be and the height of the back of the chair is.
  4. Hot glue 8 pieces together and repeat with the other 8 pieces.
  5. Use each 8 piece block of foam board as pillars and attach them to the back corners of the cardboard the neck pillow is taped to.
  6. Cut 4 16" by 3" pieces of cardboard, glue them together and cut a hole in the middle that your wood beam can fit through snugly.
  7. Optional: you can add smaller pieces of foam board under the cardboard 'beam' that line up with the hole you cut to add more stability.
  8. Glue the cardboard beam to the foam board pillars you attached earlier.
  9. Use hot glue to secure it to the top piece of cardboard that the neck pillow is on (it should end up being glued close to underneath the perf board and Arduino).
  10. Cut a piece of foam board 12" by 15" and attach the 12" side right in front of where the wood beam comes through the whole you cut. Curve it down by bending the foam board to help it stay attached to the chair.
  11. Cut a long piece of foam board that is long enough to wrap around the person's waist and the chair, about 2" thick, and tape it to the wood beam at the height you want this belt to be at.
  12. Make a small hole in each side of the foam board and thread a piece of twine through each side to connect the belt in the front.

Downloading Game & Arduino Code

Screen Shot 2021-11-25 at 11.59.00 AM.png
Screen Shot 2021-11-25 at 11.57.48 AM.png
Screen Shot 2021-11-25 at 10.47.34 AM.png

Materials: Arduino software, Arduino Leonardo code, Space invaders game

  1. Download the Arduino software for the type of computer you have.
  2. Open the Arduino Leonardo code and download the whole file by clicking on the little down arrow next to the folder name and then click download.
  3. From you downloads open the code.
  4. Open the Space invaders game and download the whole file by clicking on the little down arrow next to the folder name and then click download.
  5. From you downloads open the code and double click on the html file to open the game in your browser.
  6. On the computer the buttons are D is left, F is shoot and G is right
  7. The goal of the game is to shoot all the blocks that are moving around (the space invaders) before they move to the bottom of the box and hit the shooter



Good luck! Have some fun and get those space invaders!