How to make a DIY circle drawing machine using Arduino

How to make a DIY circle drawing machine using Arduino

Hello, and welcome back. In this project, we will learn how to make a DIY circle drawing machine using an Arduino UNO board. It is a very simple and low-cost project. And you can see different types of this machine in the market. But today we will make it step by step at home. I want to say one thing. We can do this project without Arduino. But by doing this project using Arduino, you can learn how a motor driver works with Arduino and the code related to it. Also, we can control the motor speed separately. The L298N motor driver is used in this project and if you want you can use the L293D motor driver shield. Also, you can use a potentiometer to control the speed of the motors. But I didn’t use a potentiometer for this project.

Okay, let’s do this project step by step. The required components are given below.

Disclosure: These Amazon links are Affiliate links. As an Amazon Associate, I earn from qualifying purchases.

Step 1

Firstly, identify these components.

Step 2

Secondly, let’s prepare the base of this project. You can use rigifoam, foam board, or cardboard for this. I used a piece of rigifoam.

Step 3

Thirdly, attach the gear motors as follows.

Step 4

Then, connect the robot wheels for the gear motors.

Step 5

Next, attach the CD or DVD as follows.

Step 6

Then, cut the iron rods into the following sizes. After, connect these iron rods as follows.

Step 7

Next, connect the popsicle stick as follows.

Step 8

Next, attach the Arduino board and motor driver board to the base of this project.

Step 9

OK, now connect the motor driver to the Arduino board. For that, use the circuit diagram below.

How to make a DIY circle drawing machine using Arduino

Step 10

Next, attach the pen to the end of the popsicle stick. I used a rubber band for that.

Step 11

OK, now connect it to your computer and upload the program below. It is as follows.

  • The full program of this project — Download
/*How to make a circle drawing machine
   https://srituhobby.com
*/

// Define motor pins
#define ENA 9
#define IN1 2
#define IN2 3
#define IN3 4
#define IN4 5
#define ENB 10

void setup() {
// Set these pins as output pins
  pinMode(ENA, OUTPUT);
  pinMode(IN1, OUTPUT);
  pinMode(IN2, OUTPUT);
  pinMode(IN3, OUTPUT);
  pinMode(IN4, OUTPUT);
  pinMode(ENB, OUTPUT);
}
void loop() {
  motor1();
  motor2();
}
// Rotate the first motor
void motor1() {
// Set the speed of the motor
  analogWrite(ENA, 80);
  digitalWrite(IN1, HIGH);
  digitalWrite(IN2, LOW);
}
// Rotate the second motor
void motor2() {
// Set the speed of the motor
  analogWrite(ENB, 80);
  digitalWrite(IN3, HIGH);
  digitalWrite(IN4, LOW);
}

Step 12

Now, select board and port. After, upload this code to the Arduino board.

Step 13

Finally, cut the sheet to the size of a CD and attach it. I used several magnets for that. You can use glue or anything else.

OK, now connect the external power supply to it and enjoy this project. The full video guide is below. So see you in the next project.

How to make a DIY circle drawing machine using Arduino

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *