a bluetooth enabled mobile robot rory mcgrath 05000874 final year presentation

25
A Bluetooth enabled A Bluetooth enabled mobile robot mobile robot Rory McGrath 05000874 Final Year Presentation Final Year Presentation

Upload: cameron-bennett

Post on 31-Dec-2015

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

A Bluetooth enabled A Bluetooth enabled mobile robotmobile robot

Rory McGrath05000874

Final Year PresentationFinal Year Presentation

Page 2: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

IndexIndexIntroductionTechnology BackgroundSystem Design And OperationConclusions

Page 3: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

IntroductionIntroductionDesign a Bluetooth enabled mobile

robot Controllable via a wireless Bluetooth PC

based GUI.Port a control application to a mobile

handset. Develop a swarm of collaborative

robots. Develop software to show collaborative

tasks.

Page 4: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

Technology BackgroundTechnology Background

BluetoothJava / J2MEPythonLinuxDuty CycleOpto-IsolatorsGumstix

Page 5: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

Bluetooth Low power wireless

connectionsFrequency band of 2.45

gigahertz InexpensiveNot “line of sight”

technology“One to many

technology”Personal-Area Network.Avoid Disruptions by

“hopping”.

Page 6: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

Bluetooth RFCOMMProtocol available for BluetoothCable replacement protocolCreates a virtual serial data

streamData stream is simple and

reliableApplications that used a serial

port can be easily and quickly ported to use RFCOMM.

Page 7: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

Java J2MEJava is used to

provide applications for customer’s devices.

J2ME is a Java platform designed for mobile phones

Services are easily portable between different profiles and configurations

Page 8: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

PythonAn interpreted object orientation

languageNo cross compiling to be done.Available for all major operating

systems.Network programming in Python is

simpler than other languages, i.e. C.

Page 9: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

LinuxPopular open source computer

software environment that competes with Microsoft Windows

There are four main parts to Linux.◦The kernel◦Supplied programs◦The shell◦X

Page 10: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

Duty Cycle

D = τ / T ◦τ Defined as the Time that the

function is not zero;◦T Defined as the period of the

function.

Page 11: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

Opto-Isolators

Light emitting and sensitive device

Connect high and low power components with no risk of surges or spikes.

Page 12: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

Gumstixconnex 400xm

bt400MHz (Intel

Xscale PXA255)16MB flash

memoryBluetooth

wireless connectivity

Page 13: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

System Design & Operation

Hardware◦ Motors◦ Gumstix Circuit◦ Power Circuit◦ Gumstix Power Circuit◦ Ultrasonic

Software◦ Gumstix Server◦ PC Client◦ Phone Client

Page 14: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

MotorsTwo 'Parallax' continous rotation5 volts on the red wire0 volts on the black wirePWM signal with a 0.75 to 2.25ms

width and a period of 18ms on the white wire

Page 15: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

Gumstix CircuitProtect from 'surges'3V PWM from

Gumstix4V to activate 4N25

chip. Inverters used to

increase PWM to 5V

Page 16: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

Power Circuit10V split

between 2 motors

9V for each inverter

Page 17: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

Gumstix Power CircuitDesigned to isolate the Gumstix

from the other componentsPowers the Gumstix and safely

connects the two PWM signals and ground to the other circuits.

Powers the Gumstix with 6V

Page 18: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

UltrasonicWas to be used

as a locating capability in a swarm

Both infrared and ultra sonic would be required

Page 19: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

SoftwarePxaregs

◦Written in C◦Allows python to access Gumstix GPIO

pins. PyBluez

◦Python wrapper for Bluetooth resources.◦Manually add 'bluetooth.py' &

'bluetooth.so' ControlMotors

◦Written in Python◦7 Functions that control the motors

Page 20: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

Gumstix Server

Page 21: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

PC Client

Page 22: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

Phone Client

Page 23: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

Problems EcounteredTesting the opto isolator circuit.

Segmentation faults'burning out' of a GumstixReplacing a Gumstix.

Page 24: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

ConclusionsA successful Bluetooth enabled mobile

robot was created.The robot can be controlled by a PC GUIControl was ported to a mobile deviceWith more Bluetooth Gumstix a robot

swarm could be achieved.◦ Build Ultrasonic transmitter and reciever◦ Create an algorithm to control ultrasonic◦ Addition to Server to connect to other

clients

Page 25: A Bluetooth enabled mobile robot Rory McGrath 05000874 Final Year Presentation

Questions?