PTC Sigma Tile V5 Manuel utilisateur

BUILD A SIGMA TILE
GUIDE
Sigma Tile: V5
05/07/2018

pg. 2
CONTENTS
Introduction ................................................................................................................................... 3
Requirements ................................................................................................................................ 3
Step 1 –Procuring Components & Materials............................................................................ 4
Step 2 –3D Printing Components............................................................................................... 5
Step 3 –Printing Stickers............................................................................................................... 6
Step 4 –Assembling Components ............................................................................................. 7
Step 5 –Understanding the Sigma Tile Python Script .............................................................. 8
Step 6 - Creating Micro-SD Card with Sigma Tile software..................................................... 8
Step 7 –Testing The Sigma Tile .................................................................................................... 9
Appendix A: Understanding the Sigma Tile ............................................................................ 12
Appendix B: Technical Support ................................................................................................ 14
Appendix C: Augmented Reality Assembly Template ......................................................... 15
Appendix D: Creating your own Sigma Tile Disk Image........................................................ 16
Appendix E: Updating the Sigma Tile code from GitHub .................................................... 25

pg. 3
INTRODUCTION
In this guide you will learn how to build a Sigma Tile using simple, easy to procure,
proven components such as a Raspberry Pi and a Sense Hat and by following simple
instructions leveraging augmented reality for the mechanical assembly steps.
The PTC Sigma Tile runs on a Raspberry Pi with a Sense Hat using several Python
programs. You will also learn how to install these programs on the Raspberry Pi of your
Sigma Tile.
If you are new to the Sigma Tile and want to better understand what it is and intended
application, go to Appendix A.
REQUIREMENTS
In order to build your Sigma Tile, you will need a computer with the following programs
and peripherals:
Software Requirements
PuTTY terminal emulator to remotely communicate with Raspberry-Pi.
7-Zip for extracting archive files.
WinSCP or other similar programs to transfer files between your computer and
Raspberry Pi.
Win32 Disk Imager for writing to a bootable USB drive or micro SD on a windows
host.

pg. 4
Helpful Peripherals
USB mouse and keyboard
Monitor with HDMI input
Micro USB power supply (5V, 2.4A)
STEP 1 –PROCURING COMPONENTS & MATERIALS
1. Review the key components of the Sigma Tile:
In order to build the Sigma Tile, you will need the following minimum required
electronic components:
Raspberry Pi 3 Model B
Raspberry Pi Sense Hat
16GB MicroSD card
MicroUSB cable
Note: The Raspberry Pi Sense HAT is an add-on board for Raspberry Pi. It has an 8X8 RGB
LED matrix, a five-button joystick and includes the following sensors:
Gyroscope
Accelerometer
Magnetometer
Temperature Sensor
Barometric Pressure Sensor
Humidity Sensor

pg. 5
It also comes with Python library.
To create a complete experience with the Sigma Tile, you will need additional
components. You will also need some basic tools.
The electronics components, fasteners and tools can be easily ordered online
from various electronics and hardware suppliers. The enclosure can be 3d-
printed using the STL file provided.
Below is the complete Bill of Materials for the Sigma Tile with estimated cost:
Tools
1. You will need a M2 Hex key and a Philips screwdriver
STEP 2 –3D PRINTING COMPONENTS

pg. 6
Using the provided STL files or the Creo models, 3d-print the following parts:
SigmaTile_Body_v5.stl
SigmaTile_Cover.stl
SigmaTile_Spacer.stl
SigmaTile_Joystick.stl
STEP 3 –PRINTING STICKERS
Using the PDF files provided, print, on adhesive paper, and cut the following:
Sigma Tile ThingMark Print 1365-50.pdf

pg. 7
Sigma Tile Legend Sticker Print.pdf
STEP 4 –ASSEMBLING COMPONENTS
Using your smart phone or tablet, download the ThingWorx View app, scan the
ThingMark located in Appendix D of this guide and follow the “Assembly” instructions to
assemble your Sigma Tile.
NOTE: for best results, you may want to print Appendix D and place it on a desk to
visualize the Augmented Reality assembly work instructions.
CAUTION:Raspberry Pi –Sense HAT is Electrostatic Sensitive Devices (ESD). Proper care
must be observed protecting it from any damage. Best practices include using wrist
straps and/or electrostatic grounding mat, keeping the electronic parts in protective
bags, etc.

pg. 8
STEP 5 –UNDERSTANDING THE SI GMA TILE PYTHON SCRI PT
The heart of the Sigma Tile is the SigmaTile_SenseHat_V5.py Python script which can be
found in the ThingWorx Developer Portal. This script reads the Sense Hat sensors and
uses the MODBUS protocol to communicate between Raspberry Pi and Kepware.
Modbus is a serial communication protocol developed in 1979 for use in Programmable
Logic Controllers (PLCs). You can find the details about this protocol at modbus.org.
Raspberry Pi will act as the server and Kepware will be a client. The python scripts will
simply initialize the Modbus server and update the values from the Sense HAT when it
receives the request from the client. We use pymodbus libraries, the details of which
can be found at https://github.com/bashwork/pymodbus. Other libraries and protocols
are available which are not in the scope of this documentation.
Other aspects of the code include the reading of the Sense HAT’s joystick position to
trigger various events: change of the LED Display mode and change of the Error Code
values as illustrated in the picture below:
For more details on the functional aspect of the Sigma Tile python script, please refer to
the Learn KepServerEX Using a Sigma Tile guide and the Learn ThingWorx
Manufacturing Apps Using a Sigma Tile guide.
STEP 6 - CREATING MICRO-SD CARD WITH SIGMA TILE SOFTWARE

pg. 9
The easiest and fastest way to get your Sigma Tile running is for you to use our premade
disk image of the Raspberry Pi software with the proper scripts and configuration. If you
want to create your own image, see Appendix D.
USING A PREMADE DISK IMAGE
1. Download the Sigma Tile SD card disk image for your Raspberry Pi. (Please note
that this image is around 15GB)
2. Insert your microSD card, and format it using SDFormatter.
a. Format Type: Full (erase)
b. Format Size Adjustment: On
3. Write the Sigma Tile disk image to the SD card using Win32DiskImager.
4. Insert the microSD card into the Raspberry Pi
STEP 7 –TESTING THE SIGMA TILE

pg. 10
1. Power your Sigma Tile with the Micro-USB cable. Within about 15 seconds a Wi-Fi
symbol will be displayed on the LED display, indicating that the Sigma Tile is
searching for a network.
2. If you see the WIFI symbols: Congratulations! You have completed this guide
and built your own Sigma Tile. The next step will be to connect your Sigma Tile to
a network and to further connect it with Kepware KepServerEX. You will learn
how to do that in the Learn KepServerEX Using a Sigma Tile guide.
3. If you did not see the WIFI symbols, continue to the troubleshooting section.
TROUBLESHOOTING:
1. If the LED Display shows a rainbow and stays on that image, try the following:
oOpen the Sigma Tile Cover and try adjusting the SenseHat as the
connection between the Raspberry Pi and the SenseHat may be
improper with some possible Pins misalignments or false contacts
oEnsure that the Sense Hat is level with the Raspberry Pi and the
SenseHat is fully placed on the lip of the Spacer.
Table des matières
Autres manuels PTC Contrôleurs



















