Arnov Sharma
Published © MIT

DIY Turntable Rotating Platform

Made a DIY version of Turntable using a Micro Motor controlled by an Attiny13A MCU.

BeginnerFull instructions provided1 hour389

Things used in this project

Hardware components

Raspberry Pi Pico
Raspberry Pi Pico
×1
Microchip attiny13A
×1

Software apps and online services

Fusion 360
Autodesk Fusion 360
Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Seeed Studio Fusion PCB/PCBA
Seeed Studio Fusion PCB/PCBA

Story

Read more

Custom parts and enclosures

Motor Dock

Bearing holder

Motor Holder

Turntable Holder

Schematics

sch

Code

code

C/C++
const int switchPin = 4; 
const int FANPin = 0;
int FANMode = 1; 

void setup() 
{
    pinMode(FANPin, OUTPUT);
    pinMode(switchPin, INPUT_PULLUP);
    digitalWrite(FANPin, LOW);
     
}
void loop()
{ 
    if (digitalRead(switchPin) ==LOW) 
    { 
        FANMode = FANMode + 1;
        if (FANMode == 4)
        {
            FANMode = 1;
        }
    }
    if (FANMode == 1)
    {
        digitalWrite(FANPin, LOW);
        delay(200);
    }
    else if (FANMode == 2)
    {
         analogWrite(FANPin, 100);
        delay(200);
    }
    else if (FANMode == 3)
    {
        analogWrite(FANPin, 50);
        delay(200);        
    }
    //delay(200); // see text
}

Credits

Arnov Sharma

Arnov Sharma

296 projects • 300 followers
Just your average MAKER

Comments