Close
0%
0%

ThumBoard v1

A dual joystick board.

Similar projects worth following
The ThumBoard is a dual joystick board that i made for the arduino. Who knows sometimes you need dual joysticks.

Small compact dual joystick for arnduino or any other platform you might use. It requires pull-up resistor on input pins. A way i got arround this was by using the Arduino INPUT_PULLUP feature.

The Code to run this board in Arduino.

/* ThumbBoardV1
    Written by DanielFrausto
   Use and modify as you wish.
   Unless you are a Zombie.
*/

int h1 = A0;
int v1 = A1;
int v2 = A2;
int h2 = A3;

void setup() {
  pinMode(v1, INPUT_PULLUP);
  pinMode(h1, INPUT_PULLUP);
  pinMode(v2, INPUT_PULLUP);
  pinMode(h2, INPUT_PULLUP);
  Serial.begin(9600);
}

void loop() {

  int v01 = analogRead(v1);
  int h01 = analogRead(h1);
  int v02 = analogRead(v2);
  int h02 = analogRead(h2);
  delay(60);
  Serial.print("V1 = ");
  Serial.print(v01);
  Serial.print(" ");
  Serial.print("H1 = ");
  Serial.print(h01);
  Serial.print(" ");
  Serial.print("V2 = ");
  Serial.print(v02);
  Serial.print(" ");
  Serial.print("H2= ");
  Serial.print(h02);
  Serial.print(" ");
  Serial.print('\n');

  if (v01 < 120) {
    Serial.print(" JS1 UP \n");
  }
  if (v01 > 150) {
    Serial.print(" JS1 DOWN \n");
  }
  if (h01 < 120) {
    Serial.print(" JS1 LEFT \n");
  }
  if (h01 > 180) {
    Serial.print(" JS1 RIGHT \n");
  }
  if (v02 < 120) {
    Serial.print(" JS2 UP \n");
  }
  if (v02 > 130) {
    Serial.print(" JS2 DOWN \n");
  }
  if (h02 < 110) {
    Serial.print(" JS2 LEFT \n");
  }
  if (h02 > 120) {
    Serial.print(" JS2 RIGHT \n");
  }
  delay(60);
}


ThumBoard_V1.ino

ino - 1.20 kB - 02/24/2016 at 07:11

Download

thumbV3.sch

Eagle Schematic

sch - 37.86 kB - 02/24/2016 at 07:09

Download

thumbV3.brd

Eagle Board

brd - 40.46 kB - 02/24/2016 at 07:09

Download

thumbV3.pdf

PCB_Bottom Layer

Adobe Portable Document Format - 12.17 kB - 02/24/2016 at 07:08

Preview

  • 2 × 2 Axis JoyStick
  • 1 × 10 pin Header
  • 2 × Tactile Switches
  • 1 × 84mmx37mm PCB

View project log

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates