Control of a robotic arm using an Omega2+ module









jQuery UI Library

jQuery UI est une bibliothèque JavaScript basée sur jQuery
jquery ui library fr


Performance Center Quick Start Guide

Technical Data for Commercial Items are licensed to the U.S. Government under vendor's standard What does the Performance Test Run page display?
quick start


Control of a robotic arm using an Omega2+ module

.center { display: inline-block; width: 25%; height: 450px} jquery.ui.datepicker.css jquery.ui.dialog.css
tfg annex daniel v zquez


jquery-ui-library.pdf

Modal dialogs create an overlay below the dialog but above other page elements. position. (Object) [Default: { my: "center" at: "center"
jquery ui library





shinyjqui: 'jQuery UI' Interactions and Effects for Shiny

3 févr. 2022 jqui_show(): Display the matched element(s) with animation effect. ... A modified shiny modal dialog UI with its content draggable.
shinyjqui


Cisco Webex Contact Center 1.0 Campaign Manager User Guide

2 déc. 2020 Directory paths. For example: C:Program FilesAdobe window font. Cisco Webex Contact Center 1.0 Campaign Manager User Guide.
webexcc b campaign manager user guide


Cisco Webex Contact Center Setup and Administration Guide

2 déc. 2020 https://www.cisco.com/c/en/us/about/legal/trademarks.html. ... IVR and CVA Dialog Flow Report in Analyzer 349 ... https://jquery.com:443.
b mp release


Cisco DNA Center Platform User Guide Release 2.2.3

4 août 2021 https://www.cisco.com/c/en/us/about/legal/trademarks.html. ... If you want to skip this screen in the future check the Don't show this to ...
b dnac platform ug





Connect CDC SQData - Control Center Reference

jQuery - Used to make requests from Javascript to the back end The Control Center supports user defined Display and Notification Groups independent of ...
V Control Center Reference


Cisco DNA Center Platform User Guide Release 2.2.2

23 avr. 2021 Configurations: Access to a window to configure global settings for a single bundle or across multiple bundles for a custom platform experience.
b dnac platform ug


215021 Control of a robotic arm using an Omega2  module Bachelor's Degree in Industrial Technology Engineering

Control of a robotic arm using an

Omega2+ module

ANNEX

Author: Daniel Vázquez Navarro

Director: Manuel Moreno Eguilaz

Term: 2017/2018 ± Autumn semester

Barcelona School of Industrial Engineering

Control of a robotic arm using an Omega2+ module Page 1

Summary

SUMMARY ___________________________________________________ 1

1. ANNEX A: OMEGA BOARDS ________________________________ 2

1.1. Expansion Dock ............................................................................................. 2

1.2. Power Dock .................................................................................................... 3

1.3. Mini Dock ........................................................................................................ 4

1.4. Arduino Dock 2 ............................................................................................... 4

1.5. Breadboard Dock ........................................................................................... 5

1.6. Expansions ..................................................................................................... 6

2. ANNEX B: PYTHON CODE __________________________________ 8

2.1. robot.py ........................................................................................................... 8

2.2. baseservos.py .............................................................................................. 10

2.3. servo.py ........................................................................................................ 13

2.4. mecanisme.py .............................................................................................. 21

2.5. PCA9685.py ................................................................................................. 26

2.6. interpolacions.py ........................................................................................... 28

3. ANNEX C: API CODE ______________________________________ 31

3.1. index.html ..................................................................................................... 31

3.2. css/ mystyle.css ............................................................................................ 35

3.3. css/ jquery-ui.css .......................................................................................... 37

3.4. css/ jquery-ui-slider-pips.css ........................................................................ 59

3.5. css/ roundslider.min.css ............................................................................... 65

3.6. js/ roundslider.min.js ..................................................................................... 67

3.7. js/ jquery-ui-slider-pips.js .............................................................................. 76

Pàg. 2 ANNEX

1. ANNEX A: Omega Boards

1.1. Expansion Dock

The Expansion dock is a powerful piece of hardware that simplifies the usage of your Omega. It allows you to power the Omega and communicate with it via serial through the Micro-USB port, and makes it incredibly easy to use the GPIOs and Onion Expansions. The Expansion Dock is powered by the Micro-USB port that supplies 5V to the Dock. This voltage is stepped down to the required 3.3V required to power the Omega, and also provides 5V to the Expansions and USB Host port. you can control through the command-line interface (will be explained below).

Figure 1 - View of the Expansion Dock

GPIOs, and allows you to connect Onion Expansions directly. The Expansion Header is labelled to show you what GPIO is connected to each section. multiplexing options: Control of a robotic arm using an Omega2+ module Page 3

Figure 2 - Expansion dock pinout diagram

By default, the Serial, SPI, and I2C pins implement these communication protocols and cannot be used as GPIOs. Similarly, the I2S and PWM pins are set to GPIO mode by default. storage device to extend the storage space of your Omega. The USB port supports USB 2.0, and is a type A connector. The Power switch will cut power to the Omega, but not the serial chip. This means your computer will still detect a USB serial device, but will not be able to communicate with the

Omega.

And finally, the

GPIO. Pressing this button do one of two things: reboot (momentarily pressing), or factory restore (Pressing and holding the reset button for 10 seconds).

1.2. Power Dock

This Dock allows you to recharge and monitor battery levels, while providing a header to connect Onion Expansions. It works like the Expansion Dock with an extra option to power it by a 3.7V LiPo Battery with a standard 2-pin JST-PH connector and indicator

LEDs for the battery level

Pàg. 4 ANNEX

Figure 3 - View of the Power Dock

1.3. Mini Dock

The Mini Dock functions very similarly to the Expansion Dock. It supplies your Omega with power and allows you to communicate serially via a Micro-USB port. It also has a USB type A connector for you to use. All of this with a fraction of the size of an Expansion Dock.

Figure 4 - View of the Mini Dock

1.4. Arduino Dock 2

The Arduino Dock 2 is the supercharged version of an Arduino Uno R3 board. These two boards share the same microcontroller, the ATmel ATmega328P microcontroller (MCU), and the Arduino Uno R3 with the Arduino Dock and the Omega. The Arduino Dock includes an In-Circuit Serial Programming (ICSP) header to break out the programmer. Additionally, there is a USB-host port that is connected to the Omega which can be used for any sort of USB type application. Control of a robotic arm using an Omega2+ module Page 5

Figure 5 - View of the Arduino Dock 2

1.5. Breadboard Dock

The Breadboard Dock is the perfect solution for building breadboard circuits with the Omega. This Dock can be plugged into a breadboard, and the pins of the dock are mapped 1-to-1 as on the Omega. It provides power to the Omega via a Micro-USB port that takes in 5V. This voltage is stepped down to the 3.3V required to power the

Omega.

with your own circuits and custom embedded applications.

Figure 6 - View of the Breadboard Dock

Figure 7 - Breadboard Dock pluged in a breadboard

Pàg. 6 ANNEX

1.6. Expansions

In addition to the Docks view above, there are also some expansions for the Omega2 that fit into the Expansion Dock, Power Dock, Mini Dock and Arduino Dock. Relay Expansion: allows you to control two other independent, external circuits using the Omega. These circuits are safely isolated from the Omega and can be either lower or higher voltage

Figure 8 - View of the Relay Expansion

PWM Expansion: allows you to generate up to 16 different Pulse Width Modulated (PWM) signals to control anything from Servo Motors (servos), DC Motor speed, LED brightness, etc.

Figure 9 - View of the PWM Expansion

monochrome (black and white) OLED display for your Omega. With a resolution of

128×64, it is very handy for displaying text, drawing images, and even animations.

Control of a robotic arm using an Omega2+ module Page 7

Figure 10 - View of the OLED Expansion

Figure 11 - OLED Expansion plugged in a Expansion Dock Ethernet Expansion: adds an Ethernet port to the Omega. With this expansion you can add reliable, wired network access to your Omega, without affecting its wireless capabilities.

Figure 12 - View of the Ethernet Expansion

GPS Expansion: is a USB-based expansion that allows your Omega to pinpoint its chip sends the GPS data to the Omega via the USB connection It comes with an on- board GPS antenna as well as a built-in u.FL connector to attach your own antenna.

It features:

1.8m accuracy

66 search channels

22 tracking channels

-165 dBM sensitivity

Pàg. 8 ANNEX

up to 10Hz update rate

Figure 13 - View of the GPS Expansion

2. ANNEX B: Python code

Figure 14 Files structure

2.1. robot.py

1. """

2. ------------------------------------------------------

3. ------------------------------------------------------

4. Control of a robotic arm using an Omega2+ module Page 9

5. EoBD: Control of a robotic arm using an Omega2+ module

6.

7. Autor: Daniel Vazquez Navarro

8.

9. ------------------------------------------------------

10. ------------------------------------------------------

11.

12. """

13.

14. """ Imports """

15.

16. import tornado.ioloop

17. import tornado.websocket

Bachelor's Degree in Industrial Technology Engineering

Control of a robotic arm using an

Omega2+ module

ANNEX

Author: Daniel Vázquez Navarro

Director: Manuel Moreno Eguilaz

Term: 2017/2018 ± Autumn semester

Barcelona School of Industrial Engineering

Control of a robotic arm using an Omega2+ module Page 1

Summary

SUMMARY ___________________________________________________ 1

1. ANNEX A: OMEGA BOARDS ________________________________ 2

1.1. Expansion Dock ............................................................................................. 2

1.2. Power Dock .................................................................................................... 3

1.3. Mini Dock ........................................................................................................ 4

1.4. Arduino Dock 2 ............................................................................................... 4

1.5. Breadboard Dock ........................................................................................... 5

1.6. Expansions ..................................................................................................... 6

2. ANNEX B: PYTHON CODE __________________________________ 8

2.1. robot.py ........................................................................................................... 8

2.2. baseservos.py .............................................................................................. 10

2.3. servo.py ........................................................................................................ 13

2.4. mecanisme.py .............................................................................................. 21

2.5. PCA9685.py ................................................................................................. 26

2.6. interpolacions.py ........................................................................................... 28

3. ANNEX C: API CODE ______________________________________ 31

3.1. index.html ..................................................................................................... 31

3.2. css/ mystyle.css ............................................................................................ 35

3.3. css/ jquery-ui.css .......................................................................................... 37

3.4. css/ jquery-ui-slider-pips.css ........................................................................ 59

3.5. css/ roundslider.min.css ............................................................................... 65

3.6. js/ roundslider.min.js ..................................................................................... 67

3.7. js/ jquery-ui-slider-pips.js .............................................................................. 76

Pàg. 2 ANNEX

1. ANNEX A: Omega Boards

1.1. Expansion Dock

The Expansion dock is a powerful piece of hardware that simplifies the usage of your Omega. It allows you to power the Omega and communicate with it via serial through the Micro-USB port, and makes it incredibly easy to use the GPIOs and Onion Expansions. The Expansion Dock is powered by the Micro-USB port that supplies 5V to the Dock. This voltage is stepped down to the required 3.3V required to power the Omega, and also provides 5V to the Expansions and USB Host port. you can control through the command-line interface (will be explained below).

Figure 1 - View of the Expansion Dock

GPIOs, and allows you to connect Onion Expansions directly. The Expansion Header is labelled to show you what GPIO is connected to each section. multiplexing options: Control of a robotic arm using an Omega2+ module Page 3

Figure 2 - Expansion dock pinout diagram

By default, the Serial, SPI, and I2C pins implement these communication protocols and cannot be used as GPIOs. Similarly, the I2S and PWM pins are set to GPIO mode by default. storage device to extend the storage space of your Omega. The USB port supports USB 2.0, and is a type A connector. The Power switch will cut power to the Omega, but not the serial chip. This means your computer will still detect a USB serial device, but will not be able to communicate with the

Omega.

And finally, the

GPIO. Pressing this button do one of two things: reboot (momentarily pressing), or factory restore (Pressing and holding the reset button for 10 seconds).

1.2. Power Dock

This Dock allows you to recharge and monitor battery levels, while providing a header to connect Onion Expansions. It works like the Expansion Dock with an extra option to power it by a 3.7V LiPo Battery with a standard 2-pin JST-PH connector and indicator

LEDs for the battery level

Pàg. 4 ANNEX

Figure 3 - View of the Power Dock

1.3. Mini Dock

The Mini Dock functions very similarly to the Expansion Dock. It supplies your Omega with power and allows you to communicate serially via a Micro-USB port. It also has a USB type A connector for you to use. All of this with a fraction of the size of an Expansion Dock.

Figure 4 - View of the Mini Dock

1.4. Arduino Dock 2

The Arduino Dock 2 is the supercharged version of an Arduino Uno R3 board. These two boards share the same microcontroller, the ATmel ATmega328P microcontroller (MCU), and the Arduino Uno R3 with the Arduino Dock and the Omega. The Arduino Dock includes an In-Circuit Serial Programming (ICSP) header to break out the programmer. Additionally, there is a USB-host port that is connected to the Omega which can be used for any sort of USB type application. Control of a robotic arm using an Omega2+ module Page 5

Figure 5 - View of the Arduino Dock 2

1.5. Breadboard Dock

The Breadboard Dock is the perfect solution for building breadboard circuits with the Omega. This Dock can be plugged into a breadboard, and the pins of the dock are mapped 1-to-1 as on the Omega. It provides power to the Omega via a Micro-USB port that takes in 5V. This voltage is stepped down to the 3.3V required to power the

Omega.

with your own circuits and custom embedded applications.

Figure 6 - View of the Breadboard Dock

Figure 7 - Breadboard Dock pluged in a breadboard

Pàg. 6 ANNEX

1.6. Expansions

In addition to the Docks view above, there are also some expansions for the Omega2 that fit into the Expansion Dock, Power Dock, Mini Dock and Arduino Dock. Relay Expansion: allows you to control two other independent, external circuits using the Omega. These circuits are safely isolated from the Omega and can be either lower or higher voltage

Figure 8 - View of the Relay Expansion

PWM Expansion: allows you to generate up to 16 different Pulse Width Modulated (PWM) signals to control anything from Servo Motors (servos), DC Motor speed, LED brightness, etc.

Figure 9 - View of the PWM Expansion

monochrome (black and white) OLED display for your Omega. With a resolution of

128×64, it is very handy for displaying text, drawing images, and even animations.

Control of a robotic arm using an Omega2+ module Page 7

Figure 10 - View of the OLED Expansion

Figure 11 - OLED Expansion plugged in a Expansion Dock Ethernet Expansion: adds an Ethernet port to the Omega. With this expansion you can add reliable, wired network access to your Omega, without affecting its wireless capabilities.

Figure 12 - View of the Ethernet Expansion

GPS Expansion: is a USB-based expansion that allows your Omega to pinpoint its chip sends the GPS data to the Omega via the USB connection It comes with an on- board GPS antenna as well as a built-in u.FL connector to attach your own antenna.

It features:

1.8m accuracy

66 search channels

22 tracking channels

-165 dBM sensitivity

Pàg. 8 ANNEX

up to 10Hz update rate

Figure 13 - View of the GPS Expansion

2. ANNEX B: Python code

Figure 14 Files structure

2.1. robot.py

1. """

2. ------------------------------------------------------

3. ------------------------------------------------------

4. Control of a robotic arm using an Omega2+ module Page 9

5. EoBD: Control of a robotic arm using an Omega2+ module

6.

7. Autor: Daniel Vazquez Navarro

8.

9. ------------------------------------------------------

10. ------------------------------------------------------

11.

12. """

13.

14. """ Imports """

15.

16. import tornado.ioloop

17. import tornado.websocket