22
1.1 1.2 1.3 1.4 1.5 1.6 Table of Contents Introduction Introduction to pcDuino Robot assembly Introduction to ASU VIPLE Remote control Robots by ASU VIPLE Remote control Robot by Android APP Download 1

Table of Contents - Amazon S3ASU+VIPLE+Robot+for...Table of Contents Introduction Introduction to pcDuino Robot assembly Introduction to ASU VIPLE Remote control Robots by ASU VIPLE

  • Upload
    letruc

  • View
    228

  • Download
    10

Embed Size (px)

Citation preview

Page 1: Table of Contents - Amazon S3ASU+VIPLE+Robot+for...Table of Contents Introduction Introduction to pcDuino Robot assembly Introduction to ASU VIPLE Remote control Robots by ASU VIPLE

1.1

1.2

1.3

1.4

1.5

1.6

TableofContentsIntroduction

IntroductiontopcDuinoRobotassembly

IntroductiontoASUVIPLE

RemotecontrolRobotsbyASUVIPLE

RemotecontrolRobotbyAndroidAPP

Download

1

Page 2: Table of Contents - Amazon S3ASU+VIPLE+Robot+for...Table of Contents Introduction Introduction to pcDuino Robot assembly Introduction to ASU VIPLE Remote control Robots by ASU VIPLE

Introduction

pcDuinoRobotisaprogrammableRobotwhichsupportsASUVIPLEgraphicalprogramming.WeuseASUVIPLEtooltoprogram.Thendrivetherobotforward,backwardorturnitaroundbyremotelycontrollingviaWi-Fi.AnditisalsoeasytoremotelyaccesssystemviaWi-Fihotspot,VNCorsshtool.pcDuinoRobotispoweredbypcDuino3BandrunsUbuntu12.04OS.Therearetwoultrasonicsensorsontherobotwhichareusedtogetrelativedistancefromitselftotheobstacles.Thuswecanusedifferentalgorithmtocontroltherobot,andletitfindoutwayofamaze.

Introduction

2

Page 3: Table of Contents - Amazon S3ASU+VIPLE+Robot+for...Table of Contents Introduction Introduction to pcDuino Robot assembly Introduction to ASU VIPLE Remote control Robots by ASU VIPLE

Hardwarespecifications

pcDuino3BAllwinnerA20Dual-coreARMCortexA71GBRAM8GSDflashOnboardWiFimoduleArduino-comptiableslot

PowershieldfordrivingpcDuino3BandservomotorUltrasonicsensorHC-RS04x2Highqualitycontinuousrotationservomotor(5VDC)x27.4V18650lithiumbattery8.4VbatterychargerAluminiumrobotplatform

Introduction

3

Page 4: Table of Contents - Amazon S3ASU+VIPLE+Robot+for...Table of Contents Introduction Introduction to pcDuino Robot assembly Introduction to ASU VIPLE Remote control Robots by ASU VIPLE

Softwarespecifications

OSonRobotUbuntu12.04

ProgrammingtoolASUVIPLEprogramsupportingWin7orlater

Features

RobotsupportingASUVIPLEgraphicalprogrammingWi-FicontrolMazealgorithmimplementation

Introduction

4

Page 5: Table of Contents - Amazon S3ASU+VIPLE+Robot+for...Table of Contents Introduction Introduction to pcDuino Robot assembly Introduction to ASU VIPLE Remote control Robots by ASU VIPLE

IntroductiontopcDuinoRobotassembly

1.Chassisassembly

SecurethetwoservomotorstothechassiswithscrewsSecurethewheelstotheservomotorswithscrewsSecurethecastertothechassiswithscrews

Note:Thecasterandthetwowheelsshouldbeatthesameheight,andyouneedtoaddshimsifnecessary.

Usethefollowingpicturestocheckwhethertheinstallationiscorrect.

IntroductiontopcDuinoRobotassembly

5

Page 6: Table of Contents - Amazon S3ASU+VIPLE+Robot+for...Table of Contents Introduction Introduction to pcDuino Robot assembly Introduction to ASU VIPLE Remote control Robots by ASU VIPLE

2.Palletassembly

UsethreecopperstudstoattachthepcDuino3BtothepalletTheUltrasonicSensorhasbeeninstalledonthebracket,soyoujustneedtosecurethetwoultrasonicbracketstothepalletStickthelabeltoafreepositionofthepallet

Note:Thetwoultrasonicsensorsshouldbeplacedatthefrontandrightrespectively.

Checkwhethertheinstallationiscorrectaccordingtothefollowingpictures.

IntroductiontopcDuinoRobotassembly

6

Page 7: Table of Contents - Amazon S3ASU+VIPLE+Robot+for...Table of Contents Introduction Introduction to pcDuino Robot assembly Introduction to ASU VIPLE Remote control Robots by ASU VIPLE

IntroductiontopcDuinoRobotassembly

7

Page 8: Table of Contents - Amazon S3ASU+VIPLE+Robot+for...Table of Contents Introduction Introduction to pcDuino Robot assembly Introduction to ASU VIPLE Remote control Robots by ASU VIPLE

3.CompleteRobotassembly

Usetwoscrewstosecurethechassisandthepallettogether.Notethatthecasterpointstothefront.Securethebatterytothecastersidewithacabletieasthefollowingpicture

Securethechargingportofthebatterytothepalletwithacabletieasthefollowingpicture

IntroductiontopcDuinoRobotassembly

8

Page 9: Table of Contents - Amazon S3ASU+VIPLE+Robot+for...Table of Contents Introduction Introduction to pcDuino Robot assembly Introduction to ASU VIPLE Remote control Robots by ASU VIPLE

4.Wiring

ConnectthePowerBaseShieldtothepcDuino3BConnecttheultrasonicsensortothePowerBaseShieldaccordingtothefollowingtables

UltrasonicFront PowerBaseShield

VCC VCC

Trig D13

Echo D3

GND GND

UltrasonicRight PowerBaseShield

VCC VCC

Trig D12

Echo D2

GND GND

ConnecttheservomotorstothePowerBaseShieldaccordingtothefollowingtables

IntroductiontopcDuinoRobotassembly

9

Page 10: Table of Contents - Amazon S3ASU+VIPLE+Robot+for...Table of Contents Introduction Introduction to pcDuino Robot assembly Introduction to ASU VIPLE Remote control Robots by ASU VIPLE

ServoLeft PowerBaseShield

Black GND

Red Servo5V

White D11

ServoRight PowerBaseShield

Black GND

Red Servo5V

White D10

ConnectthebatterypoweroutputtothePowerBaseShieldpowerinput

Usethefollowingpicturestocheckyourwiring.

IntroductiontopcDuinoRobotassembly

10

Page 11: Table of Contents - Amazon S3ASU+VIPLE+Robot+for...Table of Contents Introduction Introduction to pcDuino Robot assembly Introduction to ASU VIPLE Remote control Robots by ASU VIPLE

Whenthewiringiscomplete,launchthepcDuinoRobot,waitfortheindicatorlightoftheWi-Fimodulelightingup.AfterawhiletheRobotwillautomaticallycreateaWi-FiHotspotnamedpcDuino-xxxx.

Ifyouwanttowatchtheassemblyvideo,clickPcDuinoRobotassemblyvideotutorial.

IntroductiontopcDuinoRobotassembly

11

Page 12: Table of Contents - Amazon S3ASU+VIPLE+Robot+for...Table of Contents Introduction Introduction to pcDuino Robot assembly Introduction to ASU VIPLE Remote control Robots by ASU VIPLE

IntroductiontoASUVIPLEASUVIPLEisaVisualIoT/RoboticsProgrammingLanguageEnvironment,whichisusingthesamecalculationmodelasMicrosoftVPL.TheprogramisrunningonaWindowscomputer,adesktop,alaptop,oratablet.Thecomputersendscommandtocontroltherobotactuatorsandreceivesthesensorydataandmotorfeedbackfromtherobot.ThedatabetweenthecomputerandtherobotisencodedinaJSONobjectwhichisinplaintextformat.ItsupportsWi-Fi,BluetoothandUSBconnectionsbetweenthemaincomputerandtherobot.

1.InstallASUVIPLEtool

WeneedaWindowsPCwithawirelessnetworkcard,becausewewantPCandpcDuinoRobottocommunicateviaWi-Fi.ThesystemversionrequiresWin7orlater.

ClickhereanddownloadASUVIPLEtool,UnzipandrunVIPLE.exe.

ASUVIPLEprogrammingLanguageisissimilartoMicrosoftVPL.Asshowninthepicture,theleftsidebarprovidesaseriesofgraphicalprogrammingcomponents:

BasicActivitiescanbeusedforconstructingprograms,includingData,Variables,

IntroductiontoASUVIPLE

12

Page 13: Table of Contents - Amazon S3ASU+VIPLE+Robot+for...Table of Contents Introduction Introduction to pcDuino Robot assembly Introduction to ASU VIPLE Remote control Robots by ASU VIPLE

If/Else,While,Join,andsoon.Servicesprovidesasetofmodulesusedtoconnecttogenericrobots,sensors,andmotorservices.

2.QuickstarttoaccessASUVIPLE

HelloWorldinASUVIPLE

OpentheASUVIPLECreateanewproject.PressCtrl+NorgotothetoolbarandclickFile-->NewDragtheDatamodulefromtheBasicActivitiesontheleftEnter"Helloworld!"intotheDatamoduleDragthePrintLinemodulefromtheServicesontheleftConnectthesetwomodulesRunit.ClicktheRunbuttoninthetoolbarorpressF5

InputandOutputinASUVIPLE

CreateanewprojectDragtheCalculatemodulefromtheBasicActivitiesDragtheSimpleDialogmodulefromtheServicesConnectandconfigurethosemodulesaccordingtothefollowingfigurePressF5torunit

IntroductiontoASUVIPLE

13

Page 14: Table of Contents - Amazon S3ASU+VIPLE+Robot+for...Table of Contents Introduction Introduction to pcDuino Robot assembly Introduction to ASU VIPLE Remote control Robots by ASU VIPLE

ASimpleCounterinASUVIPLE

ConnectandconfigurethemodulesaccordingtothefollowingfigurePressF5toruntheprogram

FormoreASUVIPLEprogramminginformation,pleaserefertoVIPLEProgrammingGuide.

IntroductiontoASUVIPLE

14

Page 15: Table of Contents - Amazon S3ASU+VIPLE+Robot+for...Table of Contents Introduction Introduction to pcDuino Robot assembly Introduction to ASU VIPLE Remote control Robots by ASU VIPLE

RemotecontrolRobotsbyASUVIPLE

1.configurationofpcDuinoRobot

ThesystemwillautomaticallycreateaWi-FiHotspotwhenwelaunchthepcDuinoRobots.Andthebasicinformationisasfollows:

Wi-FiHotspot:pcDuino-xxxxPassword:12345678IPaddress:10.0.0.1CorrespondingVIPLEserviceportnumber:8124

Next,wewillexplainhowVIPLEconnectstopcDuinoRobot.

LaunchthepcDuinoRobot,waitfortheindicatorlightoftheWi-FimodulelightingupUseyourPCtoconnectthisWi-FiHotspot

OpenthenetworkconnectionandsearchfortheWi-FiHotspotstartedwith"pcDuino-"ChooseitandentertheWi-Fipassword,waitfortheconnectiontosucceed

CheckandconfigureRobotmodule.

Configurethebasiccommunicationinformation.

RemotecontrolRobotsbyASUVIPLE

15

Page 16: Table of Contents - Amazon S3ASU+VIPLE+Robot+for...Table of Contents Introduction Introduction to pcDuino Robot assembly Introduction to ASU VIPLE Remote control Robots by ASU VIPLE

Configuretheservos.Thetwoservosarenumberedas0and1respectively.Therangeofspeedisbetween-1.0to1.0.

CheckandconfigureRobotDistanceSensorModuleConfiguretheultrasonicsensor

Thetwoultrasonictransducersarenumberedas0and1respectively

Pleaserefertogithubtogetspecifictestprograms.

2.TestofpcDuinorobot

RemotecontrolRobotsbyASUVIPLE

16

Page 17: Table of Contents - Amazon S3ASU+VIPLE+Robot+for...Table of Contents Introduction Introduction to pcDuino Robot assembly Introduction to ASU VIPLE Remote control Robots by ASU VIPLE

Testofservos

OpentheASUVIPLEOpentheservo-control.xmlprojectMakesureyourPChasalreadyconnectedtotheWi-FicreatedbyRobotClicktheRunbuttoninthetoolbar,andpressthearrowkeystocontrol

TheVIPLEcodeisasfollows:

TestofUltrasonicsensor

Runultrasonic.xmlObservethedatadisplayedinthewindowObservethechangesofdistancebymanuallyaddingobstacles

TheVIPLEcodeisasfollows:

RemotecontrolRobotsbyASUVIPLE

17

Page 18: Table of Contents - Amazon S3ASU+VIPLE+Robot+for...Table of Contents Introduction Introduction to pcDuino Robot assembly Introduction to ASU VIPLE Remote control Robots by ASU VIPLE

ImplementingMazeNavigationAlgorithms

Runmaze-resolve.xmlObservethepcDuinoRobot'smovinginamaze,andmodifythecorrespondingparameters

Note:Thisprojectusestheright-wall-followingalgorithm.

TheVIPLEcodeisasfollows:

RemotecontrolRobotsbyASUVIPLE

18

Page 19: Table of Contents - Amazon S3ASU+VIPLE+Robot+for...Table of Contents Introduction Introduction to pcDuino Robot assembly Introduction to ASU VIPLE Remote control Robots by ASU VIPLE

RemotecontrolRobotsbyASUVIPLE

19

Page 20: Table of Contents - Amazon S3ASU+VIPLE+Robot+for...Table of Contents Introduction Introduction to pcDuino Robot assembly Introduction to ASU VIPLE Remote control Robots by ASU VIPLE

RemotecontrolRobotbyAndroidAPPWehavespecificallydevelopedasimpleAPPtotestthebasicfunctionsoftheRobot.

DownloadandinstallAppLaunchtheRobot.AfterawhiletheRobotwillautomaticallycreateaWi-FiHotspotnamedpcDuino-xxxx.UseyourmobilephonetoconnectthisWi-FiHotspot

ReadtheultrasonicsensordataandcontrolthemovingoftheRobotviatheAPP

RemotecontrolRobotbyAndroidAPP

20

Page 21: Table of Contents - Amazon S3ASU+VIPLE+Robot+for...Table of Contents Introduction Introduction to pcDuino Robot assembly Introduction to ASU VIPLE Remote control Robots by ASU VIPLE

RemotecontrolRobotbyAndroidAPP

21