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.
The assembly of the turntable is very simple. Follow the steps:
You just have to connect motor to evive Motor channel 1. Refer to the figure on the right.
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:
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.
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.
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.
Connecting motor to evive.