Project showcase
Ariadne's Thread

Ariadne's Thread © GPL3+

Ariadne's Thread is a project born to fulfill the wish to automate an old game.

  • 16 views
  • 0 comments
  • 0 respects

Components and supplies

A000066 iso both
Arduino UNO & Genuino UNO
×1
Sg90 servo motor 180 degrees sg90 micro
SG90 Micro-servo motor
×1
11026 02
Jumper wires (generic)
×1
Analog joystick (Generic)
×1
Adafruit industries ada62 image 75px
USB-A to B Cable
×1
Samsung 5V 1A Power Supply
You can use any type, just be sure it is 5V
×1

Apps and online services

About this project

Ariadne's Thread is a project born to fullfill the wish toautomate an old game which consists in moving a ball through alabyrinth by moving two decks with two knobs.

In order to do that we have decided to replace the knobs with two servos and to control them with a joystick. To prevent any damage to eachs servo caused by an excessive stress, we have decided to set the limitto a minimum of 60 and a maximum of 120 degrees. We have also set two different angles (60-120 and 75-105) for each servo to maintain auniform movement of the decks.

Code

servo.inoArduino
#include <Servo.h>

Servo piana;
Servo padella;
int pot1 = A0;
int pot2 = A1;
int val1 = 0;
int val2 = 0;

void setup() {
  piana.attach(9);
  padella.attach(10);
  pinMode (pot1, INPUT);
  pinMode (pot2, INPUT);
  Serial.begin(9600);
}

void loop() {
  val1 = analogRead(pot1);
  if (val1 <= 513) {
    val1 = map(val1, 0, 1023, 70, 110);
  }
  else {
    val1 = map(val1, 0, 1023, 60, 120);
  }
  piana.write(val1);
  val2 = analogRead(pot2);
  val2 = map(val2, 0, 1023, 75, 105);
  padella.write(val2);
  delay(15);

}

Schematics

Electrical Connections
The following image shows the electrical connections, the joystick is replaced with two potentiometers since it is not present in the software.
Desktop screenshot 2018 rhf5kbr4k0

Comments

Similar projects you might like

Arduino Brake Rotor Clock

Project tutorial by xXarduino_11Xx

  • 490 views
  • 0 comments
  • 1 respect

Autonomous Line Following Hovercraft

Project showcase by Miles Nash

  • 1,636 views
  • 1 comment
  • 14 respects

PKE Meter Geiger Counter

Project showcase by mvonsivers

  • 1,012 views
  • 0 comments
  • 4 respects

Secret Batman Bust Switch

Project showcase by Michael Guerero

  • 10,815 views
  • 11 comments
  • 60 respects

LCD Game

Project showcase by Team Iron_SalsaStudio

  • 9,733 views
  • 9 comments
  • 17 respects

Speeduino - Speed Tracker

Project showcase by NerdFatherRJ

  • 9,531 views
  • 24 comments
  • 51 respects
Add projectSign up / Login