Direction and Speed Control of DC Motor Using Raspberry PI and Python-Based GUI

Direction and Speed Control of DC Motor Using Raspberry PI and Python-Based GUI

Anup Kumar Kolya (RCC Institute of Information Technology, India), Debasish Mondal (RCC Institute of Information Technology, India), Alokesh Ghosh (RCC Institute of Information Technology, India) and Subhashree Basu (RCC Institute of Information Technology, India)
DOI: 10.4018/IJHIoT.2021070105
OnDemand PDF Download:
No Current Special Offers


This paper presents the design and implementation of control strategy for both the speed and direction of a direct current (DC) motor using Android-based application in smart phone. The Raspberry Pi 3 with a motor driver controller has been used to implement the control action via Python-based user-defined programming. The Android application has been developed using Android Developer Tools (ADT) in Java platform. The Android apps work like a client and communicates with Raspberry Pi through wi-fi connectivity. Finally, a small graphical user interface (GUI) has been created in Python in order to interface and control the motor with buttons in GUI. The advantages of GUI are that it is attractive, user friendly, and even a layman can work with the application developed in GUI.
Article Preview

2. Literature Study

The study on a DC Motor speed control and its direction with wireless ssensors and Android Smart Phones has been carried out by several authors based on different controlling devices like Arduino-uno, Raspberry Pi etc. Various control algorithms such as Fuzzy Logic, PID algorithm, GUI based etc are also employed by many researchers. However, controlling speed of a DC Motor is still an important and evolving task to the researchers over past two decades or more and is a vividly literature rich topic to explore.

The topology of fuzzy logic has been utilized in (Thepasatom et al., 2006) for controlling speed of a separately excited DC motor, where the fuzzy rule and control logic has been implemented in LabVIEW. The performance of the designed Fuzzy logic controller has been compared also with the with PI and PID Controller.A remote control strategy for a two-tank level control system has been shown in (Brito, et. al., 2009) where both the on-off control and PID algorithm has been implemented in LabVIEW system. In (Palpankar et al., 2015) a low cost and efficient technique for speed control of an Induction motor has been shown where the variation of speed of the induction motor has been achieved by short range stator terminal voltage control by controlling the firing angle of the semiconductor power devices, TRIAC.

A cost effective and open-ended wireless sensing, monitoring and control has been demonstrated in (Rao & Uma, 2015) for application in home appliances. In this work smart phone has been used for remotely accessing and controlling devices with an embedded controller through IP connectivity. The suggested system offers a novel communication protocol to monitor and control the home appliances without dedicated server. In this home control system, essential components like power plug, switches, current sensors and temperature sensors etc. are incorporated to validate demonstration. An interactive GUI based control of DC motor has been created in (Patel, 2017) with Raspberry Pi board. Here, the algorithm for controlling direction (clockwise and anticlockwise) has been implemented through Python programming language. In (Šustek et al., 2017) Raspberry Pi 2B was chosen for controlling servo-motor as well as and DC motors. This paper illustrates a basic understanding on the Python programming syntaxes for controlling and also given insides for connection of DC motors with Raspberry Pi Board.

An efficient and economical method of Induction Motor speed control has been proposed in (Thangalakshmi & Dinesh, 2017) where the speed variation of the Induction Motor can be by controlling the firing angle of the semiconductor devices. The work in (Pavangopal, et al., 2018) aims to provide a speech control interface using NodeMCU for home automation and control. Here the user’s speech command is used to control a line following robot. The proposed technique can be helpful for the elderly and disabled persons for quick completion of work. The work presented in (Yfoulis et al., 2018) exhibits two main objectives; first, it has revealed the usefulness of an Arduino-based low cost embedded speed control system, and secondly, it explored the topology of design and testing of switching PI control laws which can be further extended to various other application cases.

Complete Article List

Search this Journal:
Open Access Articles: Forthcoming
Volume 6: 2 Issues (2022): 1 Released, 1 Forthcoming
Volume 5: 2 Issues (2021)
Volume 4: 2 Issues (2020)
Volume 3: 2 Issues (2019)
Volume 2: 2 Issues (2018)
Volume 1: 2 Issues (2017)
View Complete Journal Contents Listing