temp full docx - ConsoleDoc

weedyhospitalElectronics - Devices

Nov 25, 2013 (4 years and 5 months ago)



The aim of this project was to develop a system that could control the movements of a
robot with an embedded system via a wireless connection.

A Nintendo DS games console was used as the controller for the system. Various
commands could be
enter using the buttons of the DS. The DS would then transmit a
message over the Wi
Fi to the robot system issuing a movement command.

The robot system comprised of a main robot and a wireless module. The main robot
controlled all the movements of the syst
em while the wireless module communicated
with the DS. The wireless module received messages from the DS and communicated
them to the robot. The robot decoded the messages and


I would like to thank my project supervisor,

Dr. Michael Shukat, for all his guidance and
instructions on the project throughout the year.

I would like to thank the Electronic Engineering lab technicians Martin Burke and Myles
Meehan for all the advice and help they have given me during my time i
n college.

I would like to thank my classmates for making my four years in college a very
enjoyable experience

I would like to thank my friends, family and my girlfriend, without their support my time
in college would have been much more difficult.

Finally, I would like to thank my parents, Matthew and Patricia, for their moral and
financial support through my college years.

Declaration of Originality

I declare that this thesis is my original work except where stated.

Signed: __

Date: ____________________

Brian Lough

Chapter 1



Project in Context

The purpose of this project was to develop a system for controlling a Robot with a
Nintendo DS via Wi
Fi. Several robots
are available with Wi
Fi connectivity built in, but
these tend to me more expensive than the sum of their parts, so for this reason it was
decided that a wireless module would be integrated with a standard robot.

The main objectives of the project were to

Develop an application for the DS to receive commands using its buttons and
touch screen. The Ds should then send out a command over the Wi
Fi based on
the input received.

Integrate a Wi
Fi Module to the robot.

Develop a system for the robot and Wi

module capable of receiving
commands over the Wi
Fi and interrupting them into signals that make the robot

Report Structure

The report consists of seven chapters. Their titles and a short description of their
content are outlined below.

Chapter 1


Describes the project outline and describes the overall aim
of the project.

Chapter 2

Literature Review:

Gives a description of the background research carried
out for the project.

Chapter 3

Technical Review:

Describes the hardware and software used in the
project and the related problems.

Chapter 4


Describes the structure of the application and illustrates how it
was broken up into its components

Chapter 5


Provides a detailed

of how the different
modules of the

were implemented

Chapter 6


Describes how each component of the system was tested.

Chapter 7


this chapter gives a brief summary of the project outcomes
and also discusses any f
urther developments that could be carried out.

Chapter 2
: Literature Review

###Insert brief description of chapter###

2.1 Background Research

2.1.1 Embedded Systems:

An embedded system is a special purpose computer system designed to do one or a
specific functions. Since they are designed for specific functions they can be
optimised to reduce the size and the cost of the device.

An embedded system can be anything from something portable like a calculator or a
MP3 player to large stationary system

such as traffic light flow control.

Some of the earliest computers, as far back as the 1930, were designed with only one
function in mind so in this respect they were not unlike today’s embedded systems,
however one of the first recognisably modern embed
ded system was the Apollo
Guidance Computer which was developed in the early 1960s by the MIT Instrument
Laboratory. Embedded systems have since come down in price and there has been a
dramatic rise in their functionality and processing power. The Intel 4
004, the first
microprocessor, which was designed for calculators and other small systems still
required external memory and support chips to function properly. It is now not
uncommon for an embedded device, such as a mobile phone or PDA, to have a form of

wireless connectivity built in. Most entry level mobile phones now come with Bluetooth,
while Wi
Fi is becoming a common feature in newer hand

2.1.2 Wireless Communication

Wireless communication is the transfer of information without the use

of wires. It is used
where it is impractical or impossible to have a wired system such as long range
communication. It can also be more cost efficient to set up a wireless system e.g. a
wireless home network is cheaper to implement than a wired connection

in most cases.
Common examples of wireless equipment are cellular telephones, GPS, satellite
television, laptops and television remote controls.

Fi is the trade name the most common form of wireless technology, 802.11, used
mostly in home networks.

purpose of Wi
Fi is to provide wireless access


content. This content may include applications, audio and visual media,
Internet connectivity, or other data. Wi
Fi generally makes access to information easier,
as it can eliminate some of the
physical restraints of wiring.


Fi (802.11n)


Max Range


10 M

Max Bandwidth

54 mb/s

3 mb/s

Power Consumption

450 mW

2.5 mW

Table 2.1: Wi
Fi VS Bluetooth

As shown in
Table 2.1,

Fi greatly outperforms Bluetooth in both range and speed,
but this comes at the cost of power.

### More to be added####

2.1.3 Robotics

A robot is an electronic device equipped with actuators and sensors and is controlled by a type
of computer. Actu
ators are devices that convert software commands into physical motion,
typically electric motors or hydraulic cylinders. Sensors are devices that monitor the
environment, such as sonar and contact sensors.

##More to be added##

2.1.4 C Programming

C is
a general
purpose computer programming language developed in 1972 by Dennis Ritchie
at the Bell Telephone Laboratories. C was originally designed for writing architecturally
independent system software, it is also widely used for developing application sof
tware. C has
greatly influenced many other programming languages such as Java and C++.

C has been used successfully
for various programs and applications including

systems, standard applications and

expert systems

ompilers are available for
various types of
OS’, such as Windows, Linux and Mac OS X, on numerous different computer architectures,
such as X86 and Power PC

2.2 Literary Resources


All information regarding the WLAN
module was obtained from the manufacturer’s
website. Information on script writing, technical specifications and pin layouts were
contained on the site.


This website contained information on
programming the Nintendo DS using the Palib
library. The descriptions of functions and coding examples on this site proved very
useful over the course of the project.


This site contained the ne
cessary information for setting up and programming the RP6
robot. Technical specifications, code examples and pin layouts for the RP6 were
obtained from this site.