Remote control for CPG based robots

34
Remote control for CPG based robots Final Presentation - 18 June 2010 Gabriel Cuendet 3 rd year Bachelor in Electrical Engineering Assistant: Alessandro Crespi

description

Remote control for CPG based robots. Final Presentation - 18 June 2010 Gabriel Cuendet 3 rd year Bachelor in Electrical Engineering Assistant: Alessandro Crespi. Plan. 20’ Presentation 10’ Questions 10’ Demo, using the robot. Task description. - PowerPoint PPT Presentation

Transcript of Remote control for CPG based robots

Page 1: Remote control for CPG based robots

Remote control for CPG based robots

Final Presentation - 18 June 2010

Gabriel Cuendet 3rd year Bachelor in Electrical Engineering

Assistant: Alessandro Crespi

Page 2: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

2

Plan

• 20’ Presentation• 10’ Questions• 10’ Demo, using the robot

Page 3: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

3

Task description

« The goal of this project is to develop a wireless remote control that communicates with a robot, which is controlled by a CPG . The electronics for the RF part aren’t part of that project, since they are already designed. The remote control is able to configure a small number of locomotion parameters on the robot. It allows a user to interactively remote control the robot without needing a PC. »

Page 4: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

4

Goal of the project

To the robot

Gamepad + PC + Radio interface

Page 5: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

5

Goal of the project

Gamepad + Radio interfaceAUTONOMOUS DEVICE+ power supply

Page 6: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

6

• Hardware• User interface• Battery management

• Software• User interface’s PIC18F2580

• Housing and mechanical integration of the hardware

Parts of the project(state at mid-term presentation)

Dev. Version

In progress…

Page 7: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

7

Hardware (reminder)

• Battery protection, charger and 3.3V DC/DC converter

• Radio interface (developped by A. Crespi)

• User interface

Page 8: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

8

User interface

Page 9: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

9

• Hardware• User interface• Battery management

• Software• User interface’s PIC18F2580

• Housing and mechanical integration of the hardware

Parts of the project

Dev. VersionFinal version

Page 10: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

10

Final ver. vs Development ver.

• Possibility of a supplementary button• Removal of the on-off LED• Reset of the radio interface by software

Umax = 0.2⋅VDD =VDD ⋅Rmax

47⋅103 + Rmax

Rmax =0.2⋅ 47⋅103

1−0.2=11750Ω

VDD

47kΩ

R/MCLRPIN_B3

PIC16PIC18

Page 11: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

11

• Hardware• User interface• Battery management

• Software• User interface’s PIC18F2580

• Housing and mechanical integration of the hardware

Parts of the project

Dev. VersionFinal version

Functions.c / .hRemoteControl_GC.c / .h

Page 12: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

12

Functions (functions.c / .h)

• Registers operations• Getters and setters of various length

Page 13: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

13

Functions (functions.c / .h)

• Registers operations• Display functions

• Operations on the LCD (I2C)

Page 14: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

14

Functions (functions.c / .h)

• Registers operations• Display functions• Battery management

• Getters for the battery voltage, temperature and current (I2C)

Page 15: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

15

Functions (functions.c / .h)

• Registers operations• Display functions• Battery management• Robots locomotion

• Start, stop and update functions for each kind of robot

Page 16: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

16

Functions (functions.c / .h)

• Registers operations• Display functions• Battery management• Robots locomotion• User interface

• press_button(char button), display_menus(), …

Page 17: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

17

Functions (functions.c / .h)

• Registers operations• Display functions• Battery management• Robots locomotion• User interface• Misc

• sync(), err(), scan()

Page 18: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

18

Functions (functions.c / .h)

• Registers operations• Display functions• Battery management• Robots locomotion• User interface• Misc• Menu functions

• Functions to fill the menu table: void function(void)

Page 19: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

19

Menu

• INFOS RC• Battery voltage• Radio interface version• Reset radio interface microcontroller (PIC16F)• Reset user interface microcontroller (PIC18F)

Page 20: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

20

Menu

• SELECT ROBOT• Favorites• Enter channel number• Scan (improved function)

• ROBOT• Start robot• Stop robot• Start charging• Stop charging

Page 21: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

21

RemoteControl_GC.c / .h

• Interrupts routines• INT_RTCC : timer during robot control

call to update function every 104ms

• INT_EXT : ‘enter’ button• INT_EXT1 : ‘cancel’ button• INT_RB : ‘plus’ and ‘minus’ buttons

call to press_button(char button)

• void main()

Page 22: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

22

void main()

• Initialization sequence• Initialisation of the display• Synchronisation with the radio : sync()• Calibration of the joystick • Setting of the previous and current states• Enabling of the interrupts for the buttons

• Implementation of the state machine• Update the display according to the current

state if necessary.

Page 23: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

23

State machine

Actions during states:void main()

Changes between states:void press_button(char button)

Page 24: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

25

Indication of charge (RC)• Software implementation of the remote control

charge indication using LEDs• Indication only in RC_AUTONOMOUS state:

current state = previous state = RC_AUTONOMOUS• Current measurement (DS2764) :

signed 12 bits value

50 mA < I30 mA < I < 51 mA 0 mA < I < 31 mA

Page 25: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

26

• Hardware• User interface• Battery management

• Software• User interface’s PIC18F2580

• Housing and mechanical integration of the hardware

Parts of the project

Dev. VersionFinal version

Functions.c / .hRemoteControl_GC.c / .h

Page 26: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

27

Integration of the PCB

Page 27: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

28

Elevation

• Choice of the buttons

4.5 mm

1.6 mm

4.5 mm

19.5

mm

~2.8 mm

16.2

mm

Buttons height : 19 mm

Page 28: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

29

Elevation16

.2 m

m

~2.8 mm

0.8 mm2.2 mm

4.5 mm

1.6 mm

4.5 mm

19.5

mm

• Choice of the buttons, • Integration of the LCD

Page 29: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

30

Elevation

8.9 mm16.2

mm

~2.8 mm

0.8 mm2.2 mm

4.5 mm

1.6 mm

4.5 mm

19.5

mm

• Choice of the buttons, • Integration of the LCD and the battery

Height of the battery: ~8 mm

Page 30: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

31

Ergonomics of the user interface

• Inspiration from the Logitech gamepad

Page 31: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

32

Method• Use of « Solidworks » for modelling• Mechanical drawings of the two panels which were

drilled (cf. report)

Page 32: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

33

Result

Page 33: Remote control for CPG based robots

Remote control for CPG-based robots - Gabriel Cuendet

34

Acknowledgements

• Alessandro Crespi

• André Guignard

• Mathieu Porez

Page 34: Remote control for CPG based robots

Questions

Thank you for your attention