Direct Drive Turntable Adaptor

Possibly the world's simplest direct drive turntable
1
14
0
300
updated October 21, 2023

Description

PDF

Get an an iPower 5208 24, an Arduino Uno and a SimpleFOC Shield and you have a direct drive turntable.

 

The platter I used was a simple ¾ mdf slab with an 8mm hole in the middle and sits on 4 thin felt pads.

This is the Arduino code:

// Open loop motor control example

#include <SimpleFOC.h>



 

// BLDC motor & driver instance

// BLDCMotor motor = BLDCMotor(pole pair number);

BLDCMotor motor = BLDCMotor(11, 21, 90);

// BLDCDriver3PWM driver = BLDCDriver3PWM(pwmA, pwmB, pwmC, Enable(optional));

BLDCDriver3PWM driver = BLDCDriver3PWM(9, 5, 6, 8);


 

// Stepper motor & driver instance

//StepperMotor motor = StepperMotor(50);

//StepperDriver4PWM driver = StepperDriver4PWM(9, 5, 6,  8);



 

//target variable

float target_velocity = 3.4865;


 

// instantiate the commander

Commander command = Commander(Serial);

void doTarget(char* cmd) { command.scalar(&target_velocity, cmd); }

void doLimit(char* cmd) { command.scalar(&motor.voltage_limit, cmd); }


 

void setup() {


 

 

  // driver config

  // power supply voltage [V]

  driver.voltage_power_supply = 12;

  driver.init();

  // link the motor and the driver

  motor.linkDriver(&driver);


 

  // limiting motor current (provided resistance)

  motor.current_limit = 0.2;   // [Amps]

 

  // open loop control config

  motor.controller = MotionControlType::velocity_openloop;


 

  // init motor hardware

  motor.init();


 

  // add target command T

  command.add('T', doTarget, "target velocity");

  command.add('L', doLimit, "voltage limit");


 

  Serial.begin(115200);

  Serial.println("Motor ready!");

  Serial.println("Set target velocity [rad/s]");

  _delay(1000);

}


 

void loop() {


 

  // open loop velocity movement

  // using motor.voltage_limit and motor.velocity_limit

  motor.move(target_velocity);


 

  // user communication

  command.run();

}

Tags



Model origin

The author marked this model as their own original creation.

License