Arduino Based Bluetooth Controlled Robot Report 1
Arduino Based Bluetooth Controlled Robot Report 1
The purpose of our research is to provide simpler robot’s hardware architecture but with powerful computational
platforms so that robot’s designer can focus on their research and tests instead of Bluetooth connection
infrastructure. This simple architecture is also useful for educational robotics, because students can build their own
robots with low cost and use them as platform for experiments in several courses. Common control architectures:
The following list shows typical robot control architecture:
A. Arduino
Arduino is an open-source computer hardware and software company, project and user community that designs and
manufactures microcontroller-based kits for building digital devices and interactive objects that can sense and
control objects in the physical world. Arduino had used the Atmel Atmega AVR series of chips, specifically the
ATmega8, ATmega168, ATmega328, ATmega1280, and ATmega2560.
Arduino is an open source computer hardware and software company, project, and user community
that designs and manufactures single-board microcontrollers and microcontroller kits for building
digital devices and interactive objects that can sense and control objects in the physical world. The
project's products are distributed as open-source hardware and software, which are licensed under
the GNU Lesser General Public License (LGPL) or the GNU General Public
License (GPL),[1] permitting the manufacture of Arduino boards and software distribution by anyone.
Arduino boards are available commercially in preassembled form, or as do-it-yourself (DIY) kits.
Arduino board designs use a variety of microprocessors and controllers. The boards are equipped
with sets of digital and analog input/output (I/O) pins that may be interfaced to various expansion
boards (shields) and other circuits. The boards feature serial communications interfaces,
including Universal Serial Bus (USB) on some models, which are also used for loading programs
from personal computers. The microcontrollers are typically programmed using a dialect of features
from the programming languages C and C++. In addition to using traditional compiler toolchains, the
Arduino project provides an integrated development environment (IDE) based on
the Processing language project.
The Arduino project started in 2003 as a program for students at the Interaction Design Institute
Ivrea in Ivrea, Italy,[2] aiming to provide a low-cost and easy way for novices and professionals to
create devices that interact with their environment using sensors and actuators. Common examples
of such devices intended for beginner hobbyists include simple robots, thermostats, and motion
detectors.
The name Arduino comes from a bar in Ivrea, Italy, where some of the founders of the project used
to meet. The bar was named after Arduin of Ivrea, who was the margrave of the March of
Ivrea and King of Italy from 1002 to 1014
History[edit]
The Arduino project started at the Interaction Design Institute Ivrea (IDII) in Ivrea, Italy.[2] At that time,
the students used a BASIC Stamp microcontroller at a cost of $100, a considerable expense for
many students. In 2003 Hernando Barragán created the development platform Wiring as a Master's
thesis project at IDII, under the supervision of Massimo Banzi and Casey Reas, who are known for
work on the Processing language. The project goal was to create simple, low cost tools for creating
digital projects by non-engineers. The Wiring platform consisted of a printed circuit board (PCB) with
an ATmega168 microcontroller, an IDE based on Processing and library functions to easily program
the microcontroller.[4] In 2003, Massimo Banzi, with David Mellis, another IDII student, and David
Cuartielles, added support for the cheaper ATmega8 microcontroller to Wiring. But instead of
continuing the work on Wiring, they forked the project and renamed it Arduino.[4]
The initial Arduino core team consisted of Massimo Banzi, David Cuartielles, Tom Igoe, Gianluca
Martino, and David Mellis,[2] but Barragán was not invited to participate.[4]
Following the completion of the Wiring platform, lighter and less expensive versions were distributed
in the open-source community.[5]
Adafruit Industries, a New York City supplier of Arduino boards, parts, and assemblies, estimated in
mid-2011 that over 300,000 official Arduinos had been commercially produced,[6]and in 2013 that
700,000 official boards were in users' hands.[7]
In October 2016, Federico Musto, Arduino's former CEO, secured a 50% ownership of the company.
In April 2017, Wired reported that Musto had "fabricated his academic record.... On his company's
website, personal LinkedIn accounts, and even on Italian business documents, Musto was until
recently listed as holding a PhD from the Massachusetts Institute of Technology. In some cases, his
bios also claimed an MBA from New York University." Wired reported that neither University had any
record of Musto's attendance, and Musto later admitted in an interview with Wired that he had never
earned those degrees.[8]
Around that same time, Massimo Banzi announced that the Arduino Foundation would be "a new
beginning for Arduino."[9] But a year later, the Foundation still hasn't been established, and the state
of the project remains unclear.[10]
The controversy surrounding Musto continued when, in July 2017, he reportedly pulled many Open
source licenses, schematics, and code from the Arduino website, prompting scrutiny and outcry.[11]
In October 2017, Arduino announced its partnership with ARM Holdings (ARM). The announcement
said, in part, "ARM recognized independence as a core value of Arduino ... without any lock-in with
the ARM architecture.” Arduino intends to continue to work with all technology vendors and
architectures
Hardware[edit]
Arduino-compatible R3 UNO board made in China with no Arduino logo, but with identical markings, including
"Made in Italy" text
Arduino is open-source hardware. The hardware reference designs are distributed under a Creative
Commons Attribution Share-Alike 2.5 license and are available on the Arduino website. Layout and
production files for some versions of the hardware are also available. The source code for the IDE is
released under the GNU General Public License, version 2.[21] Nevertheless, an official Bill of
Materials of Arduino boards has never been released by Arduino staff.
Although the hardware and software designs are freely available under copyleft licenses, the
developers have requested the name Arduinoto be exclusive to the official product and not be used
for derived works without permission. The official policy document on use of the Arduino name
emphasizes that the project is open to incorporating work by others into the official
product.[22] Several Arduino-compatible products commercially released have avoided the project
name by using various names ending in -duino.[23]
An early Arduino board[24] with an RS-232 serial interface (upper left) and an Atmel ATmega8 microcontroller
chip (black, lower right); the 14 digital I/O pins are at the top, the 6 analog input pins at the lower right, and the
power connector at the lower left.
The Arduino board exposes most of the microcontroller's I/O pins for use by other circuits.
The Diecimila,[a] Duemilanove,[b] and current Uno[c] provide 14 digital I/O pins, six of which can
produce pulse-width modulated signals, and six analog inputs, which can also be used as six digital
I/O pins. These pins are on the top of the board, via female 0.1-inch (2.54 mm) headers. Several
plug-in application shields are also commercially available. The Arduino Nano, and Arduino-
compatible Bare Bones Board[29] and Boarduino[30] boards may provide male header pins on the
underside of the board that can plug into solderless breadboards.
Many Arduino-compatible and Arduino-derived boards exist. Some are functionally equivalent to an
Arduino and can be used interchangeably. Many enhance the basic Arduino by adding output
drivers, often for use in school-level education, to simplify making buggies and small robots. Others
are electrically equivalent but change the form factor, sometimes retaining compatibility with shields,
sometimes not. Some variants use different processors, of varying compatibility.
beginner program
ago[53]
https://github.com/arduino/Arduino
Repository
Website www.arduino.cc
A program for Arduino may be written in any programming language with compilers that produce
binary machine code for the target processor. Atmel provides a development environment for their
microcontrollers, AVR Studio and the newer Atmel Studio.[54][55][56]
The Arduino project provides the Arduino integrated development environment (IDE), which is
a cross-platform application written in the programming language Java. It originated from the IDE for
the languages Processing and Wiring. It includes a code editor with features such as text cutting and
pasting, searching and replacing text, automatic indenting, brace matching, and syntax highlighting,
and provides simple one-click mechanisms to compile and upload programs to an Arduino board. It
also contains a message area, a text console, a toolbar with buttons for common functions and a
hierarchy of operation menus.
A program written with the IDE for Arduino is called a sketch.[57] Sketches are saved on the
development computer as text files with the file extension .ino. Arduino Software (IDE) pre-1.0 saved
sketches with the extension .pde.
The Arduino IDE supports the languages C and C++ using special rules of code structuring. The
Arduino IDE supplies a software library from the Wiring project, which provides many common input
and output procedures. User-written code only requires two basic functions, for starting the sketch
and the main program loop, that are compiled and linked with a program stub main() into an
executable cyclic executive program with the GNU toolchain, also included with the IDE distribution.
The Arduino IDE employs the program avrdude to convert the executable code into a text file in
hexadecimal encoding that is loaded into the Arduino board by a loader program in the board's
firmware.
The open-source nature of the Arduino project has facilitated the publication of many free software
libraries that other developers use to augment their projects.
Battery
An electric battery is a device consisting of one or more electrochemical cells with
external connections provided to power electrical devices such
as flashlights, smartphones, and electric cars.[1] When a battery is
supplying electric power, its positive terminal is the cathode and its negative
terminal is the anode.[2] The terminal marked negative is the source of electrons
that when connected to an external circuit will flow and deliver energy to an
external device. When a battery is connected to an external circuit, electrolytes are
able to move as ions within, allowing the chemical reactions to be completed at the
separate terminals and so deliver energy to the external circuit. It is the movement
of those ions within the battery which allows current to flow out of the battery to
perform work.[3]Historically the term "battery" specifically referred to a device
composed of multiple cells, however the usage has evolved additionally to include
devices composed of a single cell.[4]
Primary (single-use or "disposable") batteries are used once and discarded;
the electrode materials are irreversibly changed during discharge. Common
examples are the alkaline battery used for flashlights and a multitude of portable
electronic devices. Secondary (rechargeable) batteries can be discharged and
recharged multiple times using an applied electric current; the original composition
of the electrodes can be restored by reverse current. Examples include the lead-acid
batteries used in vehicles and lithium-ion batteries used for portable electronics
such as laptops and smartphones.
Batteries come in many shapes and sizes, from miniature cells used to
power hearing aids and wristwatches to small, thin cells used in smartphones, to
large lead acid batteries used in cars and trucks, and at the largest extreme, huge
battery banks the size of rooms that provide standby or emergency power
for telephone exchanges and computer data centers.
According to a 2005 estimate, the worldwide battery industry generates
US$48 billion in sales each year,[5] with 6% annual growth.
Batteries have much lower specific energy (energy per unit mass) than
common fuels such as gasoline. In automobiles, this is somewhat offset by the
higher efficiency of electric motors in producing mechanical work, compared to
combustion engines.
The usage of "battery" to describe a group of electrical devices dates to Benjamin
Franklin, who in 1748 described multiple Leyden jars by analogy to a battery of
cannon[6] (Benjamin Franklin borrowed the term "battery" from the military, which
refers to weapons functioning together[7]).
Italian physicist Alessandro Volta built and described the first electrochemical
battery, the voltaic pile, in 1800.[8] This was a stack of copper and zinc plates,
separated by brine-soaked paper disks, that could produce a steady current for a
considerable length of time. Volta did not understand that the voltage was due to
chemical reactions. He thought that his cells were an inexhaustible source of
energy,[9] and that the associated corrosion effects at the electrodes were a mere
nuisance, rather than an unavoidable consequence of their operation, as Michael
Faraday showed in 1834.[10]
Although early batteries were of great value for experimental purposes, in practice
their voltages fluctuated and they could not provide a large current for a sustained
period. The Daniell cell, invented in 1836 by British chemist John Frederic
Daniell, was the first practical source of electricity, becoming an industry standard
and seeing widespread adoption as a power source for electrical
telegraph networks.[11] It consisted of a copper pot filled with a copper
sulfate solution, in which was immersed an unglazed earthenware container filled
with sulfuric acid and a zinc electrode.[12]
These wet cells used liquid electrolytes, which were prone to leakage and spillage
if not handled correctly. Many used glass jars to hold their components, which
made them fragile and potentially dangerous. These characteristics made wet cells
unsuitable for portable appliances. Near the end of the nineteenth century, the
invention of dry cell batteries, which replaced the liquid electrolyte with a paste,
made portable electrical devices practical.[13]
Batteries convert chemical energy directly to electrical energy. A battery consists
of some number of voltaic cells. Each cell consists of two half-cells connected in
series by a conductive electrolyte containing anions and cations. One half-cell
includes electrolyte and the negative electrode, the electrode to
which anions (negatively charged ions) migrate; the other half-cell includes
electrolyte and the positive electrode to which cations (positively charged ions)
migrate. Redox reactions power the battery. Cations are reduced (electrons are
added) at the cathode during charging, while anions are oxidized (electrons are
removed) at the anode during charging.[14] During discharge, the process is
reversed. The electrodes do not touch each other, but are electrically connected by
the electrolyte. Some cells use different electrolytes for each half-cell. A separator
allows ions to flow between half-cells, but prevents mixing of the electrolytes.
Each half-cell has an electromotive force (emf), determined by its ability to drive
electric current from the interior to the exterior of the cell. The net emf of the cell
is the difference between the emfs of its half-cells.[15] Thus, if the electrodes have
emfs and , then the net emf is ; in other words, the net emf is the
difference between the reduction potentials of the half-reactions.[16]
General[edit]
H bridges are available as integrated circuits, or can be built from discrete components.[1]
The term H bridge is derived from the typical graphical representation of such a circuit. An H bridge
is built with four switches (solid-state or mechanical). When the switches S1 and S4 (according to
the first figure) are closed (and S2 and S3 are open) a positive voltage will be applied across the
motor. By opening S1 and S4 switches and closing S2 and S3 switches, this voltage is reversed,
allowing reverse operation of the motor.
Using the nomenclature above, the switches S1 and S2 should never be closed at the same time, as
this would cause a short circuit on the input voltage source. The same applies to the switches S3
and S4. This condition is known as shoot-through.
Operation[edit]
The two basic states of an H bridge
The H-bridge arrangement is generally used to reverse the polarity/direction of the motor, but can
also be used to 'brake' the motor, where the motor comes to a sudden stop, as the motor's terminals
are shorted, or to let the motor 'free run' to a stop, as the motor is effectively disconnected from the
circuit. The following table summarises operation, with S1-S4 corresponding to the diagram above.
S1 S2 S3 S4 Result
0 0 0 0 Motor coasts
1 0 0 0 Motor coasts
0 1 0 0 Motor coasts
0 0 1 0 Motor coasts
0 0 0 1 Motor coasts
0 1 0 1 Motor brakes
1 0 1 0 Motor brakes
1 1 0 0 Short circuit
0 0 1 1 Short circuit
0 1 1 1 Short circuit
1 0 1 1 Short circuit
1 1 0 1 Short circuit
1 1 1 0 Short circuit
1 1 1 1 Short circuit
Operation as an inverter[edit]
A common use of the H bridge is an inverter. The arrangement is sometimes known as a single-
phase bridge inverter.
The H bridge with a DC supply will generate a square wave voltage waveform across the load. For a
purely inductive load, the current waveform would be a triangle wave, with its peak depending on the
inductance, switching frequency, and input voltage.
See also[edit]
Active rectification
Commutator (electric)
References[edit]
1. ^ Jump up to:a b Al Williams (2002). Microcontroller projects using the Basic Stamp (2nd ed.). Focal
Press. p. 344. ISBN 978-1-57820-101-3.
2. Jump up^ wordpress.com
3. Jump up^ "The Half-bridge Circuit Revealed (2012)
4. Jump up^ wordpress.com
External links[edit]
Video tutorial on H-bridges and example bidirectional motor speed controller circuit
H-Bridge Theory and Practice
Brief H-Bridge Theory of Operation
H-bridge tutorial discussing various driving modes and using back-EMF
PWM DC Motor Controller Using MOSFETs and IR2110 H-Bridge Driver
H-Bridges on the BEAM Robotics Wiki
Derivation of formulas to estimate H-bridge controller current (Vex, JAGUAR,Victor). Discusses
why some H-bridges used in robotics have non-linear current and speed responses.
Projects[edit]
Power supply
A power supply is an electrical device that supplies electric power to an electrical load. The primary
function of a power supply is to convert electric current from a source to the correct voltage, current,
and frequency to power the load. As a result, power supplies are sometimes referred to as electric
power converters. Some power supplies are separate standalone pieces of equipment, while others
are built into the load appliances that they power. Examples of the latter include power supplies
found in desktop computers and consumer electronicsdevices. Other functions that power supplies
may perform include limiting the current drawn by the load to safe levels, shutting off the current in
the event of an electrical fault, power conditioning to prevent electronic noise or voltage surges on
the input from reaching the load, power-factor correction, and storing energy so it can continue to
power the load in the event of a temporary interruption in the source power (uninterruptible power
supply).
All power supplies have a power input connection, which receives energy in the form of electric
current from a source, and one or more power output connections that deliver current to the load.
The source power may come from the electric power grid, such as an electrical outlet, energy
storage devices such as batteries or fuel cells, generators or alternators, solar power converters, or
another power supply. The input and output are usually hardwired circuit connections, though some
power supplies employ wireless energy transfer to power their loads without wired connections.
Some power supplies have other types of inputs and outputs as well, for functions such as external
monitoring and control.
General classification[edit]
A rackmount, adjustable regulated DC power supply
Functional[edit]
Power supplies are categorized in various ways, including by functional features. For example,
a regulated power supply is one that maintains constant output voltage or current despite variations
in load current or input voltage. Conversely, the output of an unregulatedpower supply can change
significantly when its input voltage or load current changes. Adjustable power supplies allow the
output voltage or current to be programmed by mechanical controls (e.g., knobs on the power supply
front panel), or by means of a control input, or both. An adjustable regulated power supply is one
that is both adjustable and regulated. An isolated power supply has a power output that is electrically
independent of its power input; this is in contrast to other power supplies that share a common
connection between power input and output.
Packaging[edit]
Power supplies are packaged in different ways and classified accordingly. A bench power supply is a
stand-alone desktop unit used in applications such as circuit test and development. Open
frame power supplies have only a partial mechanical enclosure, sometimes consisting of only a
mounting base; these are typically built into machinery or other equipment. Rack mount power
supplies are designed to be secured into standard electronic equipment racks. An integrated power
supply is one that shares a common printed circuit board with its load. An external power supply, AC
adapter or power brick, is a power supply located in the load's AC power cord that plugs into a wall
outlet; a wall wart is an external supply integrated with the outlet plug itself. These are popular in
consumer electronics because of their safety; the hazardous 120 or 240 volt mains current is
transformed down to a safer voltage before it enters the appliance body.
Types[edit]
DC power supply[edit]
A DC power supply is one that supplies a constant DC voltage to its load. Depending on its design, a
DC power supply may be powered from a DC source or from an AC source such as the power
mains.
AC-to-DC supply[edit]
Schematic of basic AC-to-DC power supply, showing (from L-R) transformer, full-wave bridge rectifier, filter
capacitor and resistor load
DC power supplies use AC mains electricity as an energy source. Such power supplies will employ
a transformer to convert the input voltage to a higher or lower AC voltage. A rectifier is used to
convert the transformer output voltage to a varying DC voltage, which in turn is passed through
an electronic filter to convert it to an unregulated DC voltage.
The filter removes most, but not all of the AC voltage variations; the remaining AC voltage is known
as ripple. The electric load's tolerance of ripple dictates the minimum amount of filtering that must be
provided by a power supply. In some applications, high ripple is tolerated and therefore no filtering is
required. For example, in some battery charging applications it is possible to implement a mains-
powered DC power supply with nothing more than a transformer and a single rectifier diode, with a
resistor in series with the output to limit charging current.
DC motor
A DC motor is any of a class of rotary electrical machines that converts direct current electrical
energy into mechanical energy. The most common types rely on the forces produced by magnetic
fields. Nearly all types of DC motors have some internal mechanism, either electromechanical or
electronic, to periodically change the direction of current flow in part of the motor.
DC motors were the first type widely used, since they could be powered from existing direct-current
lighting power distribution systems. A DC motor's speed can be controlled over a wide range, using
either a variable supply voltage or by changing the strength of current in its field windings. Small DC
motors are used in tools, toys, and appliances. The universal motor can operate on direct current but
is a lightweight motor used for portable power tools and appliances. Larger DC motors are used in
propulsion of electric vehicles, elevator and hoists, or in drives for steel rolling mills. The advent of
power electronics has made replacement of DC motors with AC motors possible in many
applications.
Electromagnetic motors[edit]
A coil of wire with a current running through it generates an electromagnetic field aligned with the
center of the coil. The direction and magnitude of the magnetic field produced by the coil can be
changed with the direction and magnitude of the current flowing through it.
A simple DC motor has a stationary set of magnets in the stator and an armature with one or more
windings of insulated wire wrapped around a soft iron core that concentrates the magnetic field. The
windings usually have multiple turns around the core, and in large motors there can be several
parallel current paths. The ends of the wire winding are connected to a commutator. The
commutator allows each armature coil to be energized in turn and connects the rotating coils with
the external power supply through brushes. (Brushless DC motors have electronics that switch the
DC current to each coil on and off and have no brushes.)
The total amount of current sent to the coil, the coil's size and what it's wrapped around dictate the
strength of the electromagnetic field created.
The sequence of turning a particular coil on or off dictates what direction the effective
electromagnetic fields are pointed. By turning on and off coils in sequence a rotating magnetic field
can be created. These rotating magnetic fields interact with the magnetic fields of the magnets
(permanent or electromagnets) in the stationary part of the motor (stator) to create a force on the
armature which causes it to rotate. In some DC motor designs the stator fields use electromagnets
to create their magnetic fields which allow greater control over the motor.
At high power levels, DC motors are almost always cooled using forced air.
Different number of stator and armature fields as well as how they are connected provide different
inherent speed/torque regulation characteristics. The speed of a DC motor can be controlled by
changing the voltage applied to the armature. The introduction of variable resistance in the armature
circuit or field circuit allowed speed control. Modern DC motors are often controlled by power
electronics systems which adjust the voltage by "chopping" the DC current into on and off cycles
which have an effective lower voltage.
Since the series-wound DC motor develops its highest torque at low speed, it is often used in
traction applications such as electric locomotives, and trams. The DC motor was the mainstay of
electric traction drives on both electric and diesel-electric locomotives, street-cars/trams and diesel
electric drilling rigs for many years. The introduction of DC motors and an electrical grid system to
run machinery starting in the 1870s started a new second Industrial Revolution. DC motors can
operate directly from rechargeable batteries, providing the motive power for the first electric vehicles
and today's hybrid cars and electric cars as well as driving a host of cordless tools. Today DC
motors are still found in applications as small as toys and disk drives, or in large sizes to operate
steel rolling mills and paper machines. Large DC motors with separately excited fields were
generally used with winder drives for mine hoists, for high torque as well as smooth speed control
using thyristor drives. These are now replaced with large AC motors with variable frequency drives.
If external mechanical power is applied to a DC motor it acts as a DC generator, a dynamo. This
feature is used to slow down and recharge batteries on hybrid car and electric cars or to return
electricity back to the electric grid used on a street car or electric powered train line when they slow
down. This process is called regenerative braking on hybrid and electric cars. In diesel electric
locomotives they also use their DC motors as generators to slow down but dissipate the energy in
resistor stacks. Newer designs are adding large battery packs to recapture some of this energy.
Brushed[edit]
Main article: Brushed DC electric motor
A brushed DC electric motor generating torque from DC power supply by using an internal mechanical
commutation. Stationary permanent magnets form the stator field. Torque is produced by the principle that any
current-carrying conductor placed within an external magnetic field experiences a force, known as Lorentz
force. In a motor, the magnitude of this Lorentz force (a vector represented by the green arrow), and thus the
output torque,is a function for rotor angle, leading to a phenomenon known as torque ripple) Since this is a two-
pole motor, the commutator consists of a split ring, so that the current reverses each half turn ( 180 degrees).
The brushed DC electric motor generates torque directly from DC power supplied to the motor by
using internal commutation, stationary magnets (permanent or electromagnets), and rotating
electromagnets.
Advantages of a brushed DC motor include low initial cost, high reliability, and simple control of
motor speed. Disadvantages are high maintenance and low life-span for high intensity uses.
Maintenance involves regularly replacing the carbon brushes and springs which carry the electric
current, as well as cleaning or replacing the commutator. These components are necessary for
transferring electrical power from outside the motor to the spinning wire windings of the rotor inside
the motor.
Brushes are usually made of graphite or carbon, sometimes with added dispersed copper to improve
conductivity. In use, the soft brush material wears to fit the diameter of the commutator, and
continues to wear. A brush holder has a spring to maintain pressure on the brush as it shortens. For
brushes intended to carry more than an ampere or two, a flying lead will be molded into the brush
and connected to the motor terminals. Very small brushes may rely on sliding contact with a metal
brush holder to carry current into the brush, or may rely on a contact spring pressing on the end of
the brush. Very small short-lived motors, such as are used in toys, may be made of a folded strip of
metal that contacts the commutator.
Brushless[edit]
Main articles: Brushless DC electric motor and Switched reluctance motor
Typical brushless DC motors use one or more permanent magnets in the rotor
and electromagnets on the motor housing for the stator. A motor controller converts DC to AC. This
design is mechanically simpler than that of brushed motors because it eliminates the complication of
transferring power from outside the motor to the spinning rotor. The motor controller can sense the
rotor's position via Hall effect sensors or similar devices and can precisely control the timing, phase,
etc., of the current in the rotor coils to optimize torque, conserve power, regulate speed, and even
apply some braking. Advantages of brushless motors include long life span, little or no maintenance,
and high efficiency. Disadvantages include high initial cost, and more complicated motor speed
controllers. Some such brushless motors are sometimes referred to as "synchronous motors"
although they have no external power supply to be synchronized with, as would be the case with
normal AC synchronous motors.
Uncommutated[edit]
Other types of DC motors require no commutation.
Homopolar motor – A homopolar motor has a magnetic field along the axis of rotation and an
electric current that at some point is not parallel to the magnetic field. The name homopolar
refers to the absence of polarity change. Homopolar motors necessarily have a single-turn coil,
which limits them to very low voltages. This has restricted the practical application of this type of
motor.
Ball bearing motor – A ball bearing motor is an unusual electric motor that consists of two ball
bearing-type bearings, with the inner races mounted on a common conductive shaft, and the
outer races connected to a high current, low voltage power supply. An alternative construction
fits the outer races inside a metal tube, while the inner races are mounted on a shaft with a non-
conductive section (e.g. two sleeves on an insulating rod). This method has the advantage that
the tube will act as a flywheel. The direction of rotation is determined by the initial spin which is
usually required to get it going.
A PM motor does not have a field winding on the stator frame, instead relying on PMs to provide the
magnetic field against which the rotor field interacts to produce torque. Compensating windings in
series with the armature may be used on large motors to improve commutation under load. Because
this field is fixed, it cannot be adjusted for speed control. PM fields (stators) are convenient in
miniature motors to eliminate the power consumption of the field winding. Most larger DC motors are
of the "dynamo" type, which have stator windings. Historically, PMs could not be made to retain high
flux if they were disassembled; field windings were more practical to obtain the needed amount of
flux. However, large PMs are costly, as well as dangerous and difficult to assemble; this favors
wound fields for large machines.
To minimize overall weight and size, miniature PM motors may use high energy magnets made
with neodymium or other strategic elements; most such are neodymium-iron-boron alloy. With their
higher flux density, electric machines with high-energy PMs are at least competitive with all optimally
designed singly fed synchronous and induction electric machines. Miniature motors resemble the
structure in the illustration, except that they have at least three rotor poles (to ensure starting,
regardless of rotor position) and their outer housing is a steel tube that magnetically links the
exteriors of the curved field magnets.
Introduction
HC‐05 module is an easy to use Bluetooth SPP (Serial Port Protocol) module,designed for
transparent wireless serial connection setup.The HC-05 Bluetooth Module can be used in a
Master or Slave configuration, making it a great solution for wireless communication.This
serial port bluetooth module is fully qualified Bluetooth V2.0+EDR (Enhanced Data
Rate)3Mbps Modulation with complete 2.4GHz radio transceiver and baseband. It uses CSR
Bluecore 04‐External single chip Rluetooth system with CMOS technology and with AFH
(Adaptive Frequency Hopping Feature).
Hardware Features
Software Features
Slave default Baud rate: 9600, Data bits:8, Stop bit:1,Parity:No parity.
Auto‐connect to the last device on power as default.
Permit pairing device to connect as default.
Auto‐pairing PINCODE:”1234” as default.
Pin Description
The HC-05 Bluetooth Module has 6pins. They are as follows:
ENABLE:
When enable is pulled LOW, the module is disabled which means the module will not
turn on and it fails to communicate.When enable is left open or connected to 3.3V,
the module is enabled i.e the module remains onand communication also takes
place.
Vcc:
GND:
Ground pin
STATE:
It acts as a status indicator.When the module is not connected to / paired with any
other bluetooth device,signal goes Low.At this low state,the led flashes
continuously which denotes that the module is not paired with other device.When
this module is connected to/paired with any other bluetooth device,the signal
goes High.At this high state,the led blinks with a constant delay say for example 2s
delay which indicates that the module is paired.
BUTTON SWITCH:
This is used to switch the module into AT command mode.To enable AT command
mode,press the button switch for a second.With the help of AT commands,the user
can change the parameters of this module but only when the module is not paired
with any other BT device.If the module is connected to any other bluetooth device, it
starts to communicate with that device and fails to work in AT command mode.
Hardware Connections
As we know that Vcc and Gnd of the module goes to Vcc and Gnd of Arduino.The TXD pin
goes to RXD pin of Arduino and RXD pin goes to TXD pin of Arduino i.e(digital pin 0 and
1).The user can use the on board Led.But here,Led is connected to digital pin 12 externally
for betterment of the process.
Program for HC-05 Bluetooth Module
The program given below is the HC-05 bluetooth module program.This process is quite
different from others since we are going to use android mobile to control and communicate
with arduino.Here the bluetooth module acts as an interface between our mobile and
Arduino board.Before getting into the execution process,follow the given procedure:
First of all,the user should install an application called Bluetooth SPP PRO from the
playstore which is a free application.
After installation,pair the bluetooth module to your mobile as like connecting one device
to other using bluetooth.The default pairing code is 1234.
Upload the given program to the Arduino Uno board.After uploading the code,unplug
the USB from the arduino.
Now use external power adapter to power the Uno board.
The Bluetooth SPP PRO has three types of communication mode.Here Byte stream mode
is used to communicate.So select that mode and give the input as 1,as soon as the input
has given the led will turn on and for 0 led will turn off.
Bluetooth code
#include <SoftwareSerial.h>
SoftwareSerial mySerial(0, 1);
int ledpin=12;
int Data;
void setup()
{
mySerial.begin(9600);
pinMode(ledpin,OUTPUT);
}
void loop()
{
if (mySerial.available())
{
Data=mySerial.read();
if(Data=='1')
{
digitalWrite(ledpin,HIGH);
mySerial.println("LED On! ");
}
else if (Data=='0')
{
digitalWrite(ledpin,LOW);
mySerial.println("LED Off! ");
}
}
}
References
HC-05 and HC-06 zs-040 Bluetooth modules. First Look
BlueTooth-HC05 Module