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.

  • 997 views
  • 1 comment
  • 4 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 Bluetooth Robot for Android Device

Project showcase by aip06

  • 4,395 views
  • 2 comments
  • 19 respects

Pathfinder

Project showcase by Team Maverick

  • 39,293 views
  • 22 comments
  • 165 respects

Room temperature sensor with display on Mobile

Project showcase by Kaustubh Agarwal

  • 30,170 views
  • 9 comments
  • 63 respects

How to Make a Laser Turret for Your Cat

Project tutorial by MisterBotBreak

  • 7,851 views
  • 4 comments
  • 22 respects

Tobor, the Arm

Project showcase by NerdFatherRJ

  • 5,048 views
  • 1 comment
  • 7 respects
Add projectSign up / Login