Arduino Project

Arduino Fan Speed Control Project with DC Motor V3

Course Introduction

This Arduino project controls a DC motor using a TA6586 motor driver and three push buttons and I2C LCD. The blue button runs the motor at full speed in reverse, the yellow button runs it at half speed in reverse, and the red button stops the motor. The system uses PWM control to adjust speed and responds immediately to button input.

Note

If this is your first time working with an Arduino project, we recommend downloading and reviewing the basic materials first.

1.1 Install Arduino IDE(Important)
1.2 Introduction of Arduino IDE

Required Components

In this project, we need the following components:

SN

COMPONENT INTRODUCTION

QUANTITY

PURCHASE LINK

1

Arduino UNO R4 Minima/Arduino UNO R4 WIFI

1

2

USB Type-C cable

1

×

3

Breadboard

1

BUY

4

Wires

Several

5

DC Motor

1

6

TA6586 - Motor Driver Chip

1

×

7

Button

3

8

Button

3

9

I2C LCD 1602

1

Wiring

8.webp__PID:b60aa41d-faf7-4536-8359-a1ad6d6134a0

Common Connections:

TA6586 - Motor Driver Chip
BI:
Connect to 6 on the Arduino.
FI: Connect to 5 on the Arduino.
GND: Connect to breadboard’s negative power bus.
VCC: Connect to breadboard’s red power bus.

DC Motor
GND:
Connect to TA6586 B0.
VCC: Connect to TA6586 F0.

Button1
Connect to breadboard’s negative power bus.
Connect to 9 on the Arduino.

Button2
Connect to breadboard’s negative power bus.
Connect to 10 on the Arduino.

Button3
Connect to breadboard’s negative power bus.
Connect to 11 on the Arduino.

I2C LCD 1602
SDA:
Connect to A4 on the Arduino.
SCL: Connect to A5 on the Arduino.
GND: Connect to breadboard’s negative power bus.
VCC: Connect to breadboard’s red power bus.

Writing the Code

Note
You can copy this code into Arduino IDE.
To install the library, use the Arduino Library Manager and search for LiquidCrystal I2C and install it.
Don’t forget to select the board(Arduino UNO R4 WIFI) and the correct port before clicking the Upload button.