Introduction

Turntables are very useful instruments. They can be used to make fantastic sketches and drawings, playing records or for product display. We are now going to make a small DIY turntable, whose speed and direction can be controlled using slide switch and potentiometer of evive. It will be driven using DC motor provided in the kit.

Components Required

Image Component Quantity Available in Kit
evive 1
Acrylic Part: Base Plate 1
Dual Shaft BO Motor 1
BO Wheel 1
Thick Cardboard 1
  • None
Glue Gun and Glue Sticks 1
  • None
30mm M3 (Female to Female) 4
M3 bolts of 8 mm Length 4
Cable Ties 5-10

Story

Step 1: Assembly

The assembly of the turntable is very simple. Follow the steps:

  1. Take a cardboard and cut a circle with a diameter of approximately 15cm.
  2. Gently put removable glue (like hot glue gun) on the outer perimeter of the wheel and paste the wheel on the center of the cardboard piece you have cut previously.
  3. Take a DC motor and place it on the base plate. Refer to the given figure. Tight it using cable ties.
  4. Now you have to just insert the wheel on the motor shaft and your turntable is ready.
  5. Take a piece of paper and cut into circular shape. Fix it on the cardboard
    using binding clips.
  6. Mount evive on the base plate.

Step 2: Circuit Diagram

You just have to connect motor to evive Motor channel 1. Refer to the figure on the right.

DC Motor Control Fritzing Cirrcuit Diagram

Step 3: A brief about Scratch

Scratch is a graphical programming language which let you interface and control your evive with laptop. If you have not installed Scratch visit here to get full instruction on installing Scratch.

To learn about the Scratch interface, visit here.

We have developed these Scratch extensions containing special blocks through which you can control your evive in Scratch:

In Scratch, there are two modes in which you can work:

  • Arduino Mode: Under Arduino mode, the instruction blocks will be tranfer to Arduino C++ into Arduino IDe, and user could modify code in Arduino IDe, and then upload the code into Robot. In that case, the Robot is running offline and it can not interact with Scratch’s stage.
  • Scratch Mode: Under Scratch mode which is defualt mode when mBlock start, mBlock could program robot through USB serial port, the robot is running a program could communicate with mBlock, and robot could intercate with Stage and create more insteresting projects and animations.

In this project we are not using any scratch feature and want to run evive independent of your computer, hence we have to work in Arduino mode.

Step 4: Scratch Script

In this project we are going to use evive menu to control motor. To upload the firmware from Scratch, you just have to use a block ‘Upload firmware’ from evive Inbuilt Function extension along with evive Program.

The script is shown below:

Upload the code to evive.

Step 5: Making Cool drawings

After uploading the code, you will observe a menu on evive TFT screen. To control a DC motor, the user have to navigate in Control, select Motor. Then select whether you want to control motor though Channel 1 or Channel 2 or both the Channels (in our case we want to control Channel 1). Then you can see the motor control panel, where you can control the direction of the motor using slide switch and the speed (PWM) of the motor using potentiometer.

The project is complete. Let’s make cool drawings . You just have to put a marker on the rotating paper (very steadily), and the motor will do the rest of the work. Shift the center of the rotating paper or move marker to make creative drawing.

Turntable

Circuit Diagram

Motor Control

Connecting motor to evive.

Code

Uplaod Firmware
Download