UCL-Embedded - Turning Table

This project i made by Søren Andersen(soer45b5) and Dennis Jakobsen(denn924d)

Sitting at a table not being able to reach whatever is on the other side, meaning you have to talk to the relative you only see once a year who's name you can't quite remember. Fear no more, with this simple implementation you can control the center of your table with a joystick making it easy and simple to reach everything without moving or having to talk to anyone.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Things You Need

  • Arduino or Arduino Mega 2560
  • Analog Joystick P4P5FT
  • Step motor 28BYJ-48
  • Step motor controller
  • Wires 15+
  • 3D printer (optional)
  • 9 Volts power supply
  • 12 Volts power supply

Step 2: Setup

For this build you need 2 power supplies. One 9v for the joystick and a 12v for the step motor. If you use different hardware than listed, make sure to know how many volts it requires.

Step 3: The Code

Stepper stepper(STEPS, IN4, IN2, IN3, IN1);
// joystick pot output is connected to Arduino A0 int joystick = 5; void setup() { Serial.begin(9600); } void loop() { // read analog value from the potentiometer int val = analogRead(joystick); Serial.println(val); // if the joystic is in the middle ===> stop the motor if( (val > 500) && (val < 523) ) { digitalWrite(IN1, LOW); digitalWrite(IN2, LOW); digitalWrite(IN3, LOW); digitalWrite(IN4, LOW); } else { // move the motor in the first direction while (val >= 523) { // map the speed between 5 and 500 rpm int speed_ = map(val, 523, 1023, 5, 500); // set motor speed stepper.setSpeed(speed_); // move the motor (1 step) stepper.step(1); val = analogRead(joystick); } // move the motor in the other direction while (val <= 500) { // map the speed between 5 and 500 rpm int speed_ = map(val, 500, 0, 5, 500); // set motor speed stepper.setSpeed(speed_); // move the motor (1 step) stepper.step(-1); val = analogRead(joystick); } } }

Step 4: 3D Files

If your have a 3D printer, you can use these files to print

The base and the top. The base is the stationary part of the project, and the top provides the moving part of the table. The top has a hole in the bottom that fits the rotating part of the stepper motor.
When you 3d print the insert part of the top will ofthen be too rough for a smooth turn, so find yourself a lot of sanding paper and get going.

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    Discussions