Application-Note PiXtend Python Library

Size: px
Start display at page:

Download "Application-Note PiXtend Python Library"

Transcription

1 Application-Note PiXtend Python Library Installation, Orientation and Programming APP-PX-401 Status: , V1.01 Qube Solutions UG (haftungsbeschränkt) Arbachtalstr. 6, Eningen, Germany Copyright by Qube Solutions UG (haftungsbeschränkt) 1 / 32

2 Change History Version Description Sign 1.00 Document created RT 1.01 Link for download changed to PPL-Version zip file RT Table of contents 1. Introduction Installation with PiXtend Image Installation on original Raspbian Python Version PiXtend Python Library Programming Tool SSH-Client WinSCP (Windows Secure Copy) Programming The PiXtend Python Library (PPL) First program Further information Available PiXtend I/Os Dealing with the auto(matic) mode Start Python automatically Using the serial interface Using the CAN bus Frequently Asked Questions (FAQ) Appendix A Copyright by Qube Solutions UG (haftungsbeschränkt) 2 / 32

3 1. Introduction We are pleased to present you a further possibility for programming PiXtend, and for opening the door to the world of Python at the same time. (Image source: The Python Brochure) The programming language Python is described as a universal and interpretable language. It should have a short and readable form to make programming easier. For instance, a key feature of Python is that the programming code is structured by the indention of the code 1. The enthusiasm and spread of Python is not only due to a very large library base you can find something for nearly every application but also the large community that has developed around Python makes this language very popular. Furthermore, Python is freely available to everyone and can thus be used for professional training, studies, at home, as well as commercially. The programming language can be used by beginners as well as advanced programmers to create computer programs for different systems. Therefore, it is not surprising that the Raspberry Pi Foundation has decided to integrate Python directly into their Raspbian Image 2. Immediately after the first start, you can begin programming with Python, everything is already pre-installed. Access to the on-board GPIOs or SPI bus, for example, works Out of the Box. Raspberry Pi, PiXtend, and Python are a perfect match. 1 Source: Wikipedia April 2017: and Copyright by Qube Solutions UG (haftungsbeschränkt) 3 / 32

4 Hence we have decided to make PiXtend available in combination with Raspberry Pi to the Python Community, and we have launched our own Python module, the PiXtend Python Library (PPL). The PPL is open-source and therefore can be used, modified, and extended by anyone. We would be pleased if you post your PPL version in the forum. In this application note, we would like to show you step by step how quickly and easily you can set up the PiXtend Python Library (PPL) on your PiXtend system and create your first Python program. We hope you enjoy testing, programming, and experimenting as much as we do! For further information, tips and tricks visit our support forum at: The latest versions of all documents and software components can be found in the download section of our website: Copyright by Qube Solutions UG (haftungsbeschränkt) 4 / 32

5 1.1 Requirements The driver supports PiXtend with Python and later versions (not Python 3) as well as PiXtend V1.2 und V1.3. You can use any PiXtend system. Moreover, you are not set on for a particular model of Raspberry Pi. However, we recommend one of the following models: B, B+, 2 B, 3 B. Download the PiXtend Image - PiXtend Python Library SD card image from our download section and use it as the initial point for your projects. Alternatively, you can also use the original Raspbian Jessie image. You will find the appropriate installation steps in chapter 3. You can either access the Raspberry Pi by cable-connected keyboard and monitor, or by SSH (TeraTerm / Putty) from a computer. If you are using an original Raspbian Image directly, the Raspberry Pi needs an active Internet connection to carry out the steps shown in this document. We further recommend keeping the app notes Control- and Status-Bytes ready as well as the Process Data of PiXtend ready. These documents contain information on the configuration of the PWM-outputs and analogue inputs as well as interesting facts about the GPIOs, the digital in- and outputs, and the PiXtend relays. 1.2 Disclaimer Qube Solutions UG cannot be held responsible for any damages that may result from the use of the provided software, hardware, drivers or the steps described in this application note or software by third-party manufacturers. 1.3 Safety instructions PiXtend must not be used in safety-critical systems. Before use, please check the suitability of Raspberry Pi and PiXtend for your application. Copyright by Qube Solutions UG (haftungsbeschränkt) 5 / 32

6 2. Installation with PiXtend Image In the PiXtend Image PiXtend Python Library SD card image, the PiXtend Python Library is already pre-installed and can be used immediately. On the Raspberry Pi, you will find all the files in folder /home/pi/ppl/. You can therefore skip the beginning of chapter 3 and continue directly with chapter 3.3 Programming Tool. If you have already installed an SSH client, and a program to transfer files to the Raspberry Pi, or you are working directly on the Raspberry Pi with a monitor and keyboard, you can go straight to Chapter 4. Programming. Copyright by Qube Solutions UG (haftungsbeschränkt) 6 / 32

7 3. Installation on original Raspbian The installation of the required software is explained below: We start with an original Raspbian Jessie Image (Release: ). With this image, the new PIXEL interface automatically starts after the first booting. We disable the interface because we do not need it here. The subsequent steps require a monitor, keyboard and mouse. Logging via Ethernet using SSH does not work, because the SSH server is disabled by default. Click on the terminal icon in the PIXEL interface's menu bar and open a console window. It s best to maximize the window. Now we can open the configuration on the Raspberry Pi: sudo raspi-config The configuration program for the RPi is started. In the "3 Boot Options" menu item, select "B1 Desktop / CLI" and then in the sub menu "B2 Console Autologin". Answer the following question with <Yes> and then go back to the main menu with <Ok>. 3 Boot Options B1 Desktop / CLI B2 Console Autologin <Yes> <Ok> We can also use this opportunity to activate the SPI bus. This is also done in the configuration program raspi-config: 5 Interfacing Options P4 SPI <Yes> <Ok> In order to be able to access the Raspberry Pi over the network via SSH to run your own Python program for example, the SSH server must be activated at this point: 5 Interfacing Options P2 SSH <Yes> <Ok> Copyright by Qube Solutions UG (haftungsbeschränkt) 7 / 32

8 Now we can leave the configuration program. Simply press the Tab key twice, until the word <Finish> is highlighted in red and then press the Enter key. After these changes a reboot must be carried out. If raspi-config should not offer this when leaving the program, enter the following command: sudo reboot Now we can download and install the required components in the next steps. To download the necessary files from the Internet, the Raspberry Pi must have an active Internet connection. 3.1 Python Version The PiXtend Python Library (PPL) requires Python version or later, but not Python 3. Python is already pre-installed in Raspbian, the version is easy to find: python --version Python should report version For the PPL to have access to the GPOs and the SPI bus of the Raspberry Pi, two other Python packages must be installed. The packages are called RPi.GPIO 3 and spidev 4 and can be found easily with the pip program: pip freeze The program prints a list of all installed Python packages, and in this list you should find RPi.GPIO in the upper part and spidev in the lower part. Please note: If you are using the Raspbian Lite image to start off your programming with Python, you have to install it first as it is not included. Use the following command to install Python on your Raspberry Pi using: sudo apt-get install python-dev 3 RPi.GPIO is installed in Version spidev is available in Version Copyright by Qube Solutions UG (haftungsbeschränkt) 8 / 32

9 3.2 PiXtend Python Library Since all requirements for the installation of the PPL are fulfilled, in the first step we create a directory for the PPL package, then download the package and unpack it into the created directory. In the last step we install the PPL package. Once this is done, the PiXtend Python Library can be used globally in all Python programs. The installation of a Python package can produce a lot of output on the console, this is completely normal. Execute the followings steps in sequence: mkdir ppl wget unzip ppl_v0.1.1.zip -d./ppl/ cd ppl sudo python setup.py install If the last command was successfully executed, the PiXtend Python Library is now installed and can be used in your own Python programs. The installation of the PPL package can be verified with pip freeze as shown in the previous chapter. The entry pixtendlib == can now be found in the list of installed packages. All we need now is an editor to write Python programs, one to transfer the created programs to the Raspberry Pi and execute them. NOTE: The functions and features of the PPL must not be called faster than every 100 ms! Copyright by Qube Solutions UG (haftungsbeschränkt) 9 / 32

10 3.3 Programming Tool There are a great number of program and programming environments to create Python programs. We have picked one program out of this multitude of programs and show all examples using this program. In this manual, we use Notepad ++ for Windows to create Python programs. The 32Bit version of the program is completely sufficient and provides everything which is necessary to write our first Python programs. You can download the program from the following website: (Image source: Run the Notepad ++ installation program and follow the steps shown by the installation wizard. Usually, the installation does not have to be customized and all steps can be simply confirmed with Next. After the first start, Notepad ++ shows the program modifications compared to the previous version. This editor window can be closed by clicking on the white X in the red rectangle. The text in the window disappears and you get an empty editor window. Copyright by Qube Solutions UG (haftungsbeschränkt) 10 / 32

11 If you do not like using Windows, and prefer to work directly on the Raspberry Pi with monitor and keyboard, you can use the pre-installed text editor nano. For more information on this and other editors, please visit the Raspberry Pi Org website: or the nano website at: Chapters 3.4 and 3.5 can be skipped in this case, since no SSH client is required and the program WinSCP is also omitted. All advanced users and programmers who already have a lot of experience and are looking for a more comprehensive solution, can look at the program PyCharm of the Czech company JetBrains. This is a complete Python development environment with many additional features. For more information on this tool, please visit: SSH-Client A SSH client (Secure Shell Client) is necessary to run commands on the Raspberry Pi over the network. Further information about SSH can be found on Wikipedia for example: Such a SSH client is, for example, the program PuTTY.exe In the following chapters we will use this program to connect to the Raspberry Pi via network and to execute commands. On the programs homepage you will find a setup program, which allows a comfortable installation under Microsoft Windows. Copyright by Qube Solutions UG (haftungsbeschränkt) 11 / 32

12 3.5 WinSCP (Windows Secure Copy) WinSCP allows you to transfer files from one computer to another using different data transfer protocols, including the SSH protocol, which is also used by PuTTY. Compared with PuTTY, WinSCP offers the possibility to load files on or take files from the Raspberry Pi using a graphical user interface (GUI). The reason we use two programs is, within WinSCP the built-in console or rather the SSH client to send commands to the Raspberry Pi is not as convenient as using PuTTY. We have now prepared all software components. The next chapter is about testing and programming! Copyright by Qube Solutions UG (haftungsbeschränkt) 12 / 32

13 4. Programming The first step is to use a sample program that is already on the Raspberry Pi. It is part of the PiXtend Python Library and is located in the folder /home/pi/ppl/examples. Those working directly with the Raspberry Pi can skip the first step and start directly with the second. All those who want to connect to the Raspberry Pi via network, using SSH with PuTTY start with step Login Start PuTTY and enter the name or the IP address of the Raspberry Pi under host name (or IP address). Ensure that the port is set to Port 22 and SSH is selected under Connection type. Clicking on Open will initiate the connection to the Raspberry Pi. The username is "pi" and the password is "raspberry" without quotes. Copyright by Qube Solutions UG (haftungsbeschränkt) 13 / 32

14 2. Example directory After the login, we are in the pi-user home directory (/home/pi). Here is already the folder ppl that was created in the beginning and where the source code of the PiXtend Python Library and the sub-folder examples with the examples are located. We change to the directory with the examples: cd./ppl/examples/ 3. Starting an example In order to see something happening on the PiXtend Board, we start the example for the digital outputs and relays. The switching of the relays can be heard quite well and the LEDs indicate the status additionally. We use the following command: sudo python px_digital_output_demo.py Copyright by Qube Solutions UG (haftungsbeschränkt) 14 / 32

15 After the program has started, the digital outputs and the relays change their states about every 2.5 seconds. In the console, the current state is displayed in text form, with 0 meaning Off and 1 meaning On. There is also a cycle counter that increases by one every 100 ms. Not that someone thinks the program is standing still. With the keys Ctrl + C you can end the Python program. 4. Done If the Python program has been ended with the keystroke Ctrl + C, we have completed the first test with Python and the PiXtend Board successfully, and can continue with the programming in the next chapter and start to create our first program. Copyright by Qube Solutions UG (haftungsbeschränkt) 15 / 32

16 4.1 The PiXtend Python Library (PPL) So far, we have used the PiXtend Python Library together with an example. In order to create a program, some knowledge about the PPL itself is necessary, namely what properties are there and which functions must be used so that something is working at all. The following is a brief description of the most important functions and properties that are required to work with the digital inputs and outputs. A complete overview of all properties and functions can be found in Appendix A of this document. We also recommend using the WinSCP program to download the Python examples from the Raspberry Pi and to look at them, e.g. if you would like to use the analog inputs and outputs, GPIOs or model-building servomotors. In the PPL folder on the Raspberry Pi is a folder named doc, here you will find a HTML file created with the Python program pydoc. This is a purely technical (automatically generated) documentation of the entire PPL package, which shows all public functions and properties along with comments from the source code. The PPL essentially contains one Python class: the 'Pixtend' class derived from a Python object. This class offers the user a set of properties and functions to configure the microcontroller on the PiXtend board and to work with the digital and analog inputs and outputs as well as the GPIOs. The following table shows the most important functions and properties: 5 Name Type Description open function The open function starts the Python SPI driver, opens the SPI master 0 with chip select line 0, and sets the transfer speed to100 khz required for the micro-controller. The open function must be called right after the creation of the PiXtend object, if another function or property is used, an IOError will be thrown. Example: p = Pixtend() p.open() auto_mode function The auto_mode function facilitates the communication with the micro-controller and should be called next after the open function, preferably in an infinite loop or until the function returns 0 and the uc_status property has the value 1. From this point on, the auto_mode function can also be called sporadically, e.g. whenever new values are required or an output needs to be set. A cyclic call is recommended but is not mandatory. There is one restriction: The auto_mode function must not be called faster than every 100 ms. Example: if p.auto_mode() == 0: p.relay0 = p.on close function If the Python program is to be closed, it is recommended to call the close function first and then delete the PiXtend object subsequently. The close function resets all internal variables and objects and closes the SPI driver. This approach is to help to prevent memory leaks and to end the Python program "cleanly". This way you can restart your Python program immediately without an error message. 5 The meaning of (r) and (rw) behind a property: = read only and rw = read and write Copyright by Qube Solutions UG (haftungsbeschränkt) 16 / 32

17 Example: p.close() p = None digital_input0.. 7 Property (r) With these 8 read only properties (digital_input0 to digital_input7), the states of the digital inputs can be read from the PiXtend board. The properties provide either the value 0 for OFF or the value 1 for ON. digital_output0.. 5 Property (rw) The 6 digital outputs can be read as well as written to via the properties digital_output0 to digital_output5. If the property is assigned the value 0, the corresponding digital output turns OFF or when the value 1 is assigned, the output turns ON. relay0.. 3 Property (rw) The 4 relays on the PiXtend board can be read as well as written to via the properties relay0 to relay3. If the property is assigned the value 0, the corresponding relay turns OFF or when the value 1 is assigned, the relay turns ON. uc_board_version Property (r) The PiXtend Board version can be read from this read-only property. The value 12 denotes board version 1.2.x, 13 for board version 1.3.x etc. uc_fw_version Property (r) Using this read-only property, the firmware version of the microcontroller on the PiXtend board can be read. uc_status Property (r) The uc_status property provides the current state of the microcontroller on the PiXtend board. A 0 means OFF or Auto mode is not active. In contrast, a 1 indicates that the MC is operating in Auto mode and has the status Run. ON Constant Corresponds to decimal value 1. OFF Constant Corresponds to decimal value 0. Copyright by Qube Solutions UG (haftungsbeschränkt) 17 / 32

18 4.2 First program The basics for programming the PiXtend with the PPL in Python are covered, now we can write our first program. The following steps show you how to create your own Python programs. 1. Start First, we need a text editor, under Windows the aforementioned Notepad++ for example or under Linux the editor nano, into which we can enter our program. The following steps are done under Windows, and the programs Notepad++, WinSCP and PuTTY mentioned in the beginning are used. 2. Open the editor Start the Notepad++ editor and create a new blank text file. The file should be stored immediately, e.g. program1.py. The saving of the file causes Notepad++ to automatically set the editors language to Python and enables syntax highlighting for this language, which helps us when programming. Copyright by Qube Solutions UG (haftungsbeschränkt) 18 / 32

19 3. Writing the program Everything is ready, now we can start with the Python programming. As our first program we let relay 0 cyclically turn on and off every second. The following program will do this task for us. Simply enter the program in Notepad++ or copy it over and save it. For manual input please pay attention to the indentation and do not mix blanks with tabulators, otherwise the program does not run later on and there will be error messages, for Python this is not a joke. The first program: #!/usr/bin/env python from pixtendlib import Pixtend import time p = Pixtend() p.open() while True: if p.auto_mode() == 0: if p.relay0 == p.off: p.relay0 = p.on else: p.relay0 = p.off time.sleep(1) Program explanation: In the first line we declare that this is a Python program, this will run later on the Raspberry Pi. To wait at the end of the program we import the time class, too. Then the Pixtend class has to be imported, so we get access to the mentioned properties and functions, and a communication with the micro-controller and DAC on the PiXtend board will be possible. In a while loop, we call the auto_mode function, which in Python we can combine with an if query, that gives us a short code line. We compare the response of the auto_mode function to the number 0 (zero), i.e. we check if everything is working. If the function returns the value -1, there is a problem with the communication with the micro-controller. CAUTION: Do not call the auto_mode function faster than 100 ms (0,1 second) If the query was successful, we can turn the relay 0 cyclically on and off for example. Copyright by Qube Solutions UG (haftungsbeschränkt) 19 / 32

20 The constants ON and OFF can be substituted with1 and 0. Working with names helps to illustrate the actual procedure. At the end, we wait a second to avoid overstretching relay 0. As mentioned above, waiting is a must! 4.Program transfer to Raspberry Pi With the WinSCP program, we transfer or copy the program (the Python file) to the Raspberry Pi. If you work directly on the RPi, you can skip this step and continue with step 5. After the start of the program, a new connection (site) must be created, we choose SCP as protocol, and we can also specify the Raspberry Pi user pi and the password. Clicking on Save will setup the new connection, then clicking on Login will connect to the Raspberry Pi. WinSCP Login Screen Copyright by Qube Solutions UG (haftungsbeschränkt) 20 / 32

21 If this is the first connection with WinSCP to the Raspberry Pi, a security question will appear, which must be confirmed. If the connection has been established, the Python file program1.py can be transferred / copied to the Raspberry Pi. This can be done in WinSCP simply by drag & drop, and with the small file size the transfer takes only a moment to complete. 5. Execute the program With the PuTTY program, we can establish a SSH connection to the Raspberry Pi and run commands via a text-based console, such as our Python program. Simply enter the name or the IP address for a connection to the RPi, set the Port to 22 and select SSH as the connection type. Click on Open to connect to the minicomputer. If this is the first connection made with the Raspberry Pi, a warning or note will appear, which must be confirmed. Then we get a prompt, where we first enter the user pi and then the corresponding password. Each input must be confirmed with the Enter key. If the login works, a few texts, notes, and the prompt from the Linux operating system on the Raspberry Pi will be displayed. We start our program with the following command: sudo python program1.py Copyright by Qube Solutions UG (haftungsbeschränkt) 21 / 32

22 After 1 second or so, the relay 0 starts to turn on and off. As programmed by us, this happens now every second. As long as we run the program or the Raspberry Pi is powered, the relay 0 will click every second. The Python program can be terminated with the key combination Ctrl + C. The error message which appears and states that the program has been interrupted, that's okay. We did not integrate / setup any error handling in our program, which deals with this special keyboard input. The examples for the PPL show how such an error handling can be accomplished. Congratulations! You have started your first Python program on PiXtend. The first Python program is done, now you can change it, expand it or re-start it completely as you like. Now you have access to the PiXtend board with Python and the PPL. We hope you have lots of fun and success with the programming! Copyright by Qube Solutions UG (haftungsbeschränkt) 22 / 32

23 5. Further information In this chapter, we would like to give you further information so you can use more PiXtend features in your Python programs. 5.1 Available PiXtend I/Os The current version of the PPL (as of April 2017) supports all digital and analog inputs and outputs of the PiXtend board. Since the analog outputs run via a DAC and this depends on the SPI bus on Chip Select 1, this must be taken into account in the Python program. There is another function called open_dac to start the communication with the chip. The 4 GPIOs on the PiXtend board can either be used directly or each can be used as a DHT11 / 22 sensor input. The two PWMs are also available. Information on the various modes of the PWMs, analog inputs and GPIOs can be found in the download area at after you have selected your PiXtend version. See also the app notes Control- and Status-Bytes and Process data of PiXtend. 5.2 Dealing with the auto(matic) mode Auto mode is the most efficient way to use the functions of PiXtend in Python. Here one can get new values every 100 ms, e.g. from the analog inputs, or one can turn the digital inputs and outputs on or off. This function must be called at the latest whenever the state of the PiXtend board is to be changed. A cyclic call is recommended, but not mandatory. However, if you do not want to use this part or if a slow response of the PiXtend board is sufficient, you can leave the auto mode aside and use all properties in the so-called manual mode. The required call to the auto_mode function can therefore be omitted. The manual mode, however, is very slow because a complete SPI data transfer takes place with every change of a property and the data must be processed by the micro-controller. Copyright by Qube Solutions UG (haftungsbeschränkt) 23 / 32

24 5.3 Start Python automatically After a reboot / power-up of the Raspberry Pi, a Python program does not start automatically. As already mentioned, a Python program can be started with the following command, please replace the myprogram.py with your own program name: sudo python myprogram.py We can also run this command automatically when the Linux system is booted. After all, we are Automators! The change is done quickly in the Linux console: sudo nano /etc/rc.local The file "rc.local" opens with some content. We insert two new lines before the line "exit 0" with the assumption that the program to be started is located in the home directory: cd /home/pi/ sudo python myprogram.py & The "&" is not a typo. This starts the Python program as a process in the background. Save and exit with Ctrl + X Reboot CAUTION: Please test the program well beforehand! If the program has an error, e.g. that the digital outputs are activated uncontrolled or very fast, this may damage the connected peripherals, and because the defective program is set up as an "Autostart program", a restart also does not help to solve the problem. Copyright by Qube Solutions UG (haftungsbeschränkt) 24 / 32

25 5.4 Using the serial interface The use of the serial interface is not included in the PPL package, for that you can use the pyserial module for example, because this is more a Raspberry Pi and Python topic and is not directly related to the PiXtend board. For the Raspbian version used in this app note, the serial interface runs via the Linux device /dev/ttys0. It is also important to note that the outputs of the Linux console are displayed there, so you have to edit the /boot/cmdline.txt file before you use it and remove the part console=serial0, from the first line. A note: The PiXtend board runs the serial interface of the RPi to the outside and the RS232 interface is addressed by default. Since there is also a RS485 interface, a switch over must take place. This switching can be done with the PPL. The switch to RS485 can be done like this: # RS232 mode (default) p.serial_mode = p.rs232 # switch on RS485 mode p.serial_mode = p.rs Using the CAN bus The use of the CAN bus is not covered by the PPL, as this is part of the Raspberry Pi in conjunction with PiXtend and requires additional preparation steps. In our download area you will find an app note on starting the CAN bus on the Raspberry Pi, so that the MCP2515 CAN chip can be used on PiXtend. Although the app note was created for the CODESYS V3 runtime, the introductory steps up until to the end of Chapter 3 are generally valid, the part related to CODESYS V3 can be simply ignored. Direct link to app note (German only): Copyright by Qube Solutions UG (haftungsbeschränkt) 25 / 32

26 6. Frequently Asked Questions (FAQ) I cannot start my program, Python displays an error message about an invalid indentation? There is probably a problem with the indentation of the different code lines in the program. Look again thoroughly that each line has the correct indentation. We use e.g. always 4 blanks per indentation level, if only one blank is missing, or blanks and tabs have been mixed, Python displays an error message. In Notepad ++ e.g. you can have the "nonprintable" characters displayed, so you can see very fast where something is wrong, furthermore Python says itself in which line it has detected the error. Can I run my program without sudo? This seems to be possible with Python in conjunction with Raspbian as shown in this App- Note, but we still recommend using sudo, so Python can also perform system functions. Otherwise, problems can occur, whose cause may not be explained very easily. The stated 100 ms cycle time is too slow for me, can't PiXtend be accessed faster? Yes! This is possible. The 100 ms is a suggestion from us, so that all functions of PiXtend can be used. If you do not use DHT11 / 22 sensors on the GPIO0 - GPIO3, you can communicate with the PiXtend in a 25 ms cycle time, i.e. four times faster. But you cannot not go faster then this. We would like to invite you to the Qube Solutions forums for information exchange: Copyright by Qube Solutions UG (haftungsbeschränkt) 26 / 32

27 7. Appendix A Following is a table showing all the public properties and functions of the PiXtend Python Library which an end user can use. name type data type access 6 values description auto_mode() function int - 0 = OK, -1 = Error close() function - - Activation of the auto mode and communication with the micro-controller on the PiXtend board, should be called cyclically, minimum is 100ms. Close the SPI driver and reset all internal variables and objects. Call up before the end of your own program. open() function - - open_dac() function - - pwm_ctrl_configure() function - - set_dac_output() function - - update_rtc() function - - analog_input0 property float R 0 V.. 5 V/10 V Open the SPI master 0 with Chip Select 0 to communicate with the micro-controller on the PiXtend board. May only be called once. Open the SPI master 0 with Chip Select 1 to communicate with the DAC. Configuration of the PWM channels, must be called up after every change of the PWM settings. Transfer of the configuration and analog values for DAC A and DAC B. Before calling, define dac_selection target DAC. Write Linux system time into the RTC on the PiXtend board. Analog input on the PiXtend, provides values always in the unit Volt. Value range depending on analog_input0_10volts_jumper. analog_input0_10volts_ jumper property int R / W 0 = OFF, 1 = ON Information whether the 5V / 10V jumper on the PiXtend board is physically plugged in. analog_input0_nos property int R / W 1, 5, 10, 50 analog_input0_raw property int R 16 bit value analog_input1 property float R 0 V.. 5 V/10 V Number of samples to be taken by the MC. The default value is 10. Raw value from the micro-controller without conversion. Analog input on the PiXtend board, always supplies values in the unit Volt. Value range depending on analog_input1_10volts_jumper. analog_input1_10volts_ jumper property int R / W 0 = OFF, 1 = ON Information whether the 5V / 10V jumper on the PiXtend board is physically plugged in. analog_input1_nos property int R / W 1, 5, 10, 50 analog_input1_raw property int R 16 bit value analog_input2 property float R 0 ma.. 20 ma Number of samples to be taken by the MC. The default value is 10. Raw value from micro-controller without conversion. Converted analog value from the microcontroller in 0 to 20 milliamps. 6 R = Reading, W = Writing, R / W = Reading and Writing Copyright by Qube Solutions UG (haftungsbeschränkt) 27 / 32

28 name type data type access values description analog_input2_nos property int R / W 1, 5, 10, 50 Number of samples to be taken by the MC. The default value is 10. analog_input2_raw property int R 16 bit value analog_input3 property float R 0 ma.. 20 ma analog_input3_nos property int R / W 1, 5, 10, 50 analog_input3_raw property int R 16 bit value Raw value from micro-controller without conversion. Converted analog value from micro-controller in 0 to 20 milliamps. Number of samples to be taken by the MC. The default value is 10. Raw value of micro-controller without conversion. analog_input_nos_freq property float R / W 0.125, 0.250, 0.500, 1.0, 2.0, 4.0, 8.0 MHz Sampling frequency of the analog inputs. dac_selection property int R / W 0 = DAC A, 1 = DAC B dht0 property int R / W 0 = OFF, 1 = ON dht1 property int R / W 0 = OFF, 1 = ON dht2 property int R / W 0 = OFF, 1 = ON dht3 property int R / W 0 = OFF, 1 = ON Selection of the DAC that is to be changed. DAC A = AO 0, DAC B = AO 1. Configuration of GPIO 0 as DHT11/22 input. If 1 (ON), all other GPIO settings are ignored. Configuration of GPIO 1 as DHT11/22 input. If 1 (ON), all other GPIO settings are ignored. Configuration of GPIO 2 as DHT11/22 input. If 1 (ON), all other GPIO settings are ignored. Configuration of GPIO 3 as DHT11/22 input. If 1 (ON), all other GPIO settings are ignored. di0 property int R 0 = OFF, 1 = ON State of the digital input in abbreviated form. di1 property int R 0 = OFF, 1 = ON State of the digital input in abbreviated form. di2 property int R 0 = OFF, 1 = ON State of the digital input in abbreviated form. di3 property int R 0 = OFF, 1 = ON State of the digital input in abbreviated form. di4 property int R 0 = OFF, 1 = ON State of the digital input in abbreviated form. di5 property int R 0 = OFF, 1 = ON State of the digital input in abbreviated form. di6 property int R 0 = OFF, 1 = ON State of the digital input in abbreviated form. di7 property int R 0 = OFF, 1 = ON State of the digital input in abbreviated form. digital_input0 property int R 0 = OFF, 1 = ON State of the digital input. digital_input1 property int R 0 = OFF, 1 = ON State of the digital input. digital_input2 property int R 0 = OFF, 1 = ON State of the digital input. digital_input3 property int R 0 = OFF, 1 = ON State of the digital input. digital_input4 property int R 0 = OFF, 1 = ON State of the digital input. digital_input5 property int R 0 = OFF, 1 = ON State of the digital input. digital_input6 property int R 0 = OFF, 1 = ON State of the digital input. Copyright by Qube Solutions UG (haftungsbeschränkt) 28 / 32

29 name type data type access values description digital_input7 property int R 0 = OFF, 1 = ON State of the digital input. digital_output0 property int R / W 0 = OFF, 1 = ON digital_output1 property int R / W 0 = OFF, 1 = ON digital_output2 property int R / W 0 = OFF, 1 = ON digital_output3 property int R / W 0 = OFF, 1 = ON digital_output4 property int R / W 0 = OFF, 1 = ON digital_output5 property int R / W 0 = OFF, 1 = ON do0 property int R / W 0 = OFF, 1 = ON do1 property int R / W 0 = OFF, 1 = ON do2 property int R / W 0 = OFF, 1 = ON do3 property int R / W 0 = OFF, 1 = ON do4 property int R / W 0 = OFF, 1 = ON do5 property int R / W 0 = OFF, 1 = ON gpio0 property int R / W 0 = OFF, 1 = ON gpio0_direction property int R / W 0 = input, 1 = output gpio1 property int R / W 0 = OFF, 1 = ON gpio1_direction property int R / W 0 = input, 1 = output State of the digital output. Reading and writing are always possible. State of the digital output. Reading and writing are always possible. State of the digital output. Reading and writing are always possible. State of the digital output. Reading and writing are always possible. State of the digital output. Reading and writing are always possible. State of the digital output. Reading and writing are always possible. State of the digital output. Reading and writing are always possible. This is an abbreviated form of the corresponding digital output and not a further output. State of the digital output. Reading and writing are always possible. This is an abbreviated form of the corresponding digital output and not a further output. State of the digital output. Reading and writing are always possible. This is an abbreviated form of the corresponding digital output and not a further output.. State of the digital output. Reading and writing are always possible. This is an abbreviated form of the corresponding digital output and not a further output. State of the digital output. Reading and writing are always possible. This is an abbreviated form of the corresponding digital output and not a further output. State of the digital output. Reading and writing are always possible. This is an abbreviated form of the corresponding digital output and not a further output. State of the GPIO, Attention! The "setting" of this property is only possible if the GPIO is configured as "output", otherwise there will be an IOError. Configuration of the GPIO either as input (default) or as output. State of the GPIO, Attention! The "setting" of this property is only possible if the GPIO is configured as "output", otherwise there will be an IOError. Configuration of the GPIO either as input (default) or as output. Copyright by Qube Solutions UG (haftungsbeschränkt) 29 / 32

30 name type data type access values description gpio2 property int R / W 0 = OFF, 1 = ON State of the GPIO, Attention! The "setting" of this property is only possible if the GPIO is configured as "output", otherwise there will be an IOError. gpio2_direction property int R / W 0 = input, 1 = output gpio3 property int R / W 0 = OFF, 1 = ON gpio3_direction property int R / W 0 = input, 1 = output h0_dht11 property float R rel. humidity in % h0_dht22 property float R rel. humidity in % h1_dht11 property float R rel. humidity in % h1_dht22 property float R rel. humidity in % h2_dht11 property float R rel. humidity in % h2_dht22 property float R rel. humidity in % h3_dht11 property float R rel. humidity in % h3_dht22 property float R rel. humidity in % Configuration of the GPIO either as input (default) or as output. State of the GPIO, Attention! The "setting" of this property is only possible if the GPIO is configured as "output", otherwise there will be an IOError. Configuration of the GPIO either as input (default) or as output. Converted value from the sensor according to the specifications of the data sheet of the sensor. Converted value from the sensor according to the specifications of the data sheet of the sensor. Converted value from the sensor according to the specifications of the data sheet of the sensor. Converted value from the sensor according to the specifications of the data sheet of the sensor. Converted value from the sensor according to the specifications of the data sheet of the sensor. Converted value from the sensor according to the specifications of the data sheet of the sensor. Converted value from the sensor according to the specifications of the data sheet of the sensor. Converted value from the sensor according to the specifications of the data sheet of the sensor. hum_input0_raw property int R hum_input1_raw property int R hum_input2_raw property int R hum_input3_raw property int R 16-bit integer value from the sensor 16-bit integer value from the sensor 16-bit integer value from the sensor 16-bit integer value from the sensor This property supplies only the raw value of the sensor without conversion. This property supplies only the raw value of the sensor without conversion. This property supplies only the raw value of the sensor without conversion. This property supplies only the raw value of the sensor without conversion. pwm0 property int R / W PWM 0 duty cycle. pwm1 property int R / W PWM 1 duty cycle. pwm_ctrl_cs0 property int R / W 0 = OFF, 1 = ON PWM clock select bit 0. Copyright by Qube Solutions UG (haftungsbeschränkt) 30 / 32

31 name type data type access values description pwm_ctrl_cs1 property int R / W 0 = OFF, 1 = ON PWM clock select bit 1. pwm_ctrl_cs2 property int R / W 0 = OFF, 1 = ON PWM clock select bit 2. pwm_ctrl_mode property int R / W 0 = Servo Mode, 1 = PWM Mode Operating mode of the PWM outputs. pwm_ctrl_od0 property int R / W 0 = OFF, 1 = ON Overdrive setting for PWM 0. pwm_ctrl_od1 property int R / W 0 = OFF, 1 = ON Overdrive setting for PWM 1. pwm_ctrl_period property int R / W Frequency of PWM's. relay0 property int R / W 0 = OFF, 1 = ON State of relay 0. relay1 property int R / W 0 = OFF, 1 = ON State of relay 1. relay2 property int R / W 0 = OFF, 1 = ON State of relay 2. relay3 property int R / W 0 = OFF, 1 = ON State of relay 3. serial_mode property bool R / W False = RS232, True = RS485 Define the mode of the serial interface on the PiXtend board. servo0 property int R / W servo1 property int R / W Unit for setting the motor position of the model-building servomotor. Unit for setting the motor position of the model-building servomotor. t0_dht11 property float R temperature in degrees Celsius, e.g. 9.0 Values from a DHT11 sensor connected to GPIO0. t0_dht22 property float R temperature in degrees Celsius, e.g. 9.5 Values from a DHT22 sensor connected to GPIO0. t1_dht11 property float R temperature in degrees Celsius, e.g. 9.0 Values from a DHT11 sensor connected to GPIO1. t1_dht22 property float R temperature in degrees Celsius, e.g. 9.5 Values from a DHT22 sensor connected to GPIO1. t2_dht11 property float R temperature in degrees Celsius, e.g. 9.0 Values from a DHT11 sensor connected to GPIO2. t2_dht22 property float R temperature in degrees Celsius, e.g. 9.5 Values from a DHT22 sensor connected to GPIO2. t3_dht11 property float R temperature in degrees Celsius, e.g. 9.0 Values from a DHT11 sensor connected to GPIO3. t3_dht22 property float R temperature in degrees Celsius, e.g. 9.5 Values from a DHT22 sensor connected to GPIO3. Copyright by Qube Solutions UG (haftungsbeschränkt) 31 / 32

32 name type data type access values description temp_input0_raw property int R 16-bit integer value from the sensor Direct raw value from the sensor without conversion. temp_input1_raw property int R temp_input2_raw property int R temp_input3_raw property int R 16-bit integer value from the sensor 16-bit integer value from the sensor 16-bit integer value from the sensor Direct raw value from the sensor without conversion. Direct raw value from the sensor without conversion. Direct raw value from the sensor without conversion. uc_board_version property int R 12 = 1.2.x, 13 = 1.3.x Hardware version of the PiXtend board, e.g. Ver. 1.2.x which can not read back the digital outputs and relays states. uc_control property int R uc_fw_version property int R 0 = Man. Mode, 16 = Auto Mode 1, 2, 3, 4, 5 equates firmware version Setting the operating mode of the microcontroller on the PiXtend board. Firmware version of the micro-controller on the PiXtend board. uc_status property int R 0 = Init, 1 = Run State of the micro-controller. use_fahrenheit property bool R / W False = C, True = F The temperatures from T0 to T3 are given in C by default, if this value is "True", you get F. Copyright by Qube Solutions UG (haftungsbeschränkt) 32 / 32

PiXtend with CODESYS Digital-Analog-Converter

PiXtend with CODESYS Digital-Analog-Converter PiXtend with CODESYS Digital-Analog-Converter Creating a new CODESYS Project Adding PiXtend DAC as a CODESYS Device Creating a simple DAC Test Program Creating a simple Web Visualization Date 18/08/2016,

More information

PiXtend with CODESYS Create Project

PiXtend with CODESYS Create Project Creating a new CODESYS Project Adding PiXtend as a CODESYS Device Creating a simple Test Program Creating a simple Web Visualization Date 13/02/2018, V1.03 Qube Solutions UG (haftungsbeschränkt) Arbachtalstr.

More information

Manual of ET-LCD SW HAT

Manual of ET-LCD SW HAT ET- LCD SW HAT ET-LCD SW HAT is Board I/O that is specifically designed for connection with Board Raspberry Pi through Connector 40-PIN; this board includes LCD 16x2, SW, Buzzer, RTC DS3231 with Connector

More information

Adafruit's Raspberry Pi Lesson 6. Using SSH

Adafruit's Raspberry Pi Lesson 6. Using SSH Adafruit's Raspberry Pi Lesson 6. Using SSH Created by Simon Monk Last updated on 2017-08-16 01:12:07 AM UTC Guide Contents Guide Contents Overview Enabling SSH Using a blank boot file Using Raspi-Config

More information

XLink Kai Raspberry Pi Beginners Tutorial

XLink Kai Raspberry Pi Beginners Tutorial XLink-Kai-Raspberry-Pi-Beginners-Tutorial.md XLink Kai Raspberry Pi Beginners Tutorial Hi! This tutorial will guide you through setting up XLink Kai on a Raspberry Pi to play multiplayer system link Xbox

More information

Gooligum Electronics 2015

Gooligum Electronics 2015 The Wombat Prototyping Board for Raspberry Pi Operation and Software Guide This prototyping board is intended to make it easy to experiment and try out ideas for building electronic devices that connect

More information

Raspberry Pi NTP Clock Setup Guide

Raspberry Pi NTP Clock Setup Guide Raspberry Pi NTP Clock Setup Guide Several steps are involved in getting your Raspberry Pi to operate as a NTP Clock. To begin with, you must obtain a LCD Plate (www.adafruit.com) and build it. You must

More information

CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup

CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup Purpose: The purpose of this lab is to setup software that you will be using throughout the term for learning about Python

More information

RETROPIE INSTALLATION GUIDE

RETROPIE INSTALLATION GUIDE RETROPIE INSTALLATION GUIDE CONTENTS THE FOLLOWING GUIDE WILL COVER THE INSTALLATION, SETUP AND CONFIGURATION OF THE RASPBERRY PI, RASPBIAN OS AND RETROPIE Author: http://rpiarcadebuild.wordpress.com/

More information

RaspiDigiHamClock. Raspberry Pi Amateur Radio Digital Clock. v WA4EFH R.Grokett

RaspiDigiHamClock. Raspberry Pi Amateur Radio Digital Clock. v WA4EFH R.Grokett RaspiDigiHamClock Raspberry Pi Amateur Radio Digital Clock v2018-07-08 WA4EFH R.Grokett Overview Amateur Radio Operators (aka HAM Radio) use 24 hour UTC (Universal Coordinated Time) for much of their operation.

More information

ECE471: Embedded Systems Homework 7 SPI, A/D and Temperature Probe. Due: Friday, 2 November 2018, 10:00am

ECE471: Embedded Systems Homework 7 SPI, A/D and Temperature Probe. Due: Friday, 2 November 2018, 10:00am ECE471: Embedded Systems Homework 7 SPI, A/D and Temperature Probe Due: Friday, 2 November 2018, 10:00am 1. You may work in groups of two on this homework. You will need an MCP3008 SPI A/D converter as

More information

Getting Started with Python and the PyCharm IDE

Getting Started with Python and the PyCharm IDE New York University School of Continuing and Professional Studies Division of Programs in Information Technology Getting Started with Python and the PyCharm IDE Please note that if you already know how

More information

Getting started with Raspberry Pi (and WebIoPi framework)

Getting started with Raspberry Pi (and WebIoPi framework) Getting started with Raspberry Pi (and WebIoPi framework) 1. Installing the OS on the Raspberry Pi Download the image file from the Raspberry Pi website. It ll be a zip file as shown below: Unzip the file

More information

PiCAN 2 GPS Rev B V1.0. PiCAN GPS USER GUIDE V1.0. PiCAN GPS CAN-Bus Board for Raspberry Pi. SK Pang Electronics Ltd

PiCAN 2 GPS Rev B V1.0. PiCAN GPS USER GUIDE V1.0. PiCAN GPS CAN-Bus Board for Raspberry Pi. SK Pang Electronics Ltd PiCAN GPS USER GUIDE V1.0 Product name Model number Manufacturer PiCAN GPS CAN-Bus Board for Raspberry Pi RSP-PICANGPS SK Pang Electronics Ltd 1 Contents Table of Contents 1. Introduction... 3 1.1. Features...

More information

Lab 0: Intro to running Jupyter Notebook on a Raspberry Pi

Lab 0: Intro to running Jupyter Notebook on a Raspberry Pi Lab 0: Intro to running Jupyter Notebook on a Raspberry Pi Nick Antipa, Li-Hao Yeh, based on labs by Jon Tamir and Frank Ong January 24, 2018 This lab will walk you through setting up your Raspberry Pi

More information

AlaMode User Manual Revision

AlaMode User Manual Revision AlaMode User Manual Revision 1.0 www.wyolum.com info@wyolum.com 1 Introduction The AlaMode is an integrated Arduino compatible board. It is designed as versatile, general purpose data acquisition and control

More information

PiXtend V2. fast. reliable. versatile. powered by Raspberry Pi

PiXtend V2. fast. reliable. versatile. powered by Raspberry Pi PiXtend V2 -S- fast. reliable. versatile. powered by Raspberry Pi PiXtend fast, About us In Dezember 2014 PiXtend V1 was released - the first Raspberry Pi based programmable logic controller (PLC). The

More information

Atmel 328-Processor for RaspberryPi

Atmel 328-Processor for RaspberryPi Atmel 328-Processor for RaspberryPi Ultrasonic HC-SR04 Gerhard Hepp, March 2015 Content Overview...3 Setup...5 Parts list...5 Setup procedure...5 Install software on Raspberry Pi...6 Verify hardware and

More information

Sigma Tile Workshop Guide. This guide describes the initial configuration steps to get started with the Sigma Tile.

Sigma Tile Workshop Guide. This guide describes the initial configuration steps to get started with the Sigma Tile. Sigma Tile Workshop Guide This guide describes the initial configuration steps to get started with the Sigma Tile. 1 Contents Contents... 2 Chapter 1: System Requirements... 3 Chapter 2: Configure Your

More information

ROBOTLINKING THE POWER SUPPLY LEARNING KIT TUTORIAL

ROBOTLINKING THE POWER SUPPLY LEARNING KIT TUTORIAL ROBOTLINKING THE POWER SUPPLY LEARNING KIT TUTORIAL 1 Preface About RobotLinking RobotLinking is a technology company focused on 3D Printer, Raspberry Pi and Arduino open source community development.

More information

Introduction to Linux

Introduction to Linux Introduction to Linux The command-line interface A command-line interface (CLI) is a type of interface, that is, a way to interact with a computer. Window systems, punched cards or a bunch of dials, buttons

More information

Adafruit NFC/RFID on Raspberry Pi

Adafruit NFC/RFID on Raspberry Pi Adafruit NFC/RFID on Raspberry Pi Created by Kevin Townsend Last updated on 2018-08-22 03:31:24 PM UTC Guide Contents Guide Contents Overview Freeing UART on the Pi Step One: Run raspi-conf Step Two: Disable

More information

Adafruit PiUART - USB Console and Power Add-on for Raspberry Pi

Adafruit PiUART - USB Console and Power Add-on for Raspberry Pi Adafruit PiUART - USB Console and Power Add-on for Raspberry Pi Created by lady ada Last updated on 2017-08-29 10:20:23 PM UTC Guide Contents Guide Contents Overview Pinouts Enabling Serial Console Option

More information

Raspberry Pi Setup Tutorial

Raspberry Pi Setup Tutorial Raspberry Pi Setup Tutorial The Raspberry Pi is basically a miniature linux- based computer. It has an ARM processor on it, specifically the ARM1176JZF- S 700 MHz processor. This is the main reason why

More information

Raspberry Pi 3 Model B+ and JMRI with WiFi Access Point for Pi- SPROG One and Pi-SPROG Nano raspian-stretch build

Raspberry Pi 3 Model B+ and JMRI with WiFi Access Point for Pi- SPROG One and Pi-SPROG Nano raspian-stretch build Raspberry Pi 3 Model B+ and JMRI with WiFi Access Point for Pi- SPROG One and Pi-SPROG Nano 2018-03-13-raspian-stretch build May 2018 SPROG DCC These instructions describe the process of setting up a Raspberry

More information

Adafruit NFC/RFID on Raspberry Pi

Adafruit NFC/RFID on Raspberry Pi Adafruit NFC/RFID on Raspberry Pi Created by Kevin Townsend Last updated on 2016-11-03 06:36:54 AM UTC Guide Contents Guide Contents Overview Freeing UART on the Pi Step One: Run raspi-conf Step Two: Disable

More information

Helsinki 19 Jan Practical course in genome bioinformatics DAY 0

Helsinki 19 Jan Practical course in genome bioinformatics DAY 0 Helsinki 19 Jan 2017 529028 Practical course in genome bioinformatics DAY 0 This document can be downloaded at: http://ekhidna.biocenter.helsinki.fi/downloads/teaching/spring2017/exercises_day0.pdf The

More information

What is EV3DEV? Send commands to the EV3 Upload programs and run them on the EV3

What is EV3DEV? Send commands to the EV3 Upload programs and run them on the EV3 PYTHON ON EV3DEV What is EV3DEV? A Linux-based operating system that runs on the Lego EV3 Runs from a microsd card Can run programs written in Python, Javascript, Java, Go, C++, C, and many others After

More information

Preparing SD card for Pi

Preparing SD card for Pi Preparing SD card for Pi Sarwan Singh Assistant Director(S) NIELIT Chandigarh Education is the kindling of a flame, not the filling of a vessel. - Socrates 1 sarwan@nielit Using NOOBS- New Out Of Box Software

More information

Adding a Real Time Clock to Raspberry Pi

Adding a Real Time Clock to Raspberry Pi Adding a Real Time Clock to Raspberry Pi Created by lady ada Last updated on 2016-11-03 01:44:48 AM UTC Guide Contents Guide Contents Overview Wiring the RTC Adafruit DS1307 Real Time Clock Assembled Breakout

More information

Using the BMP085/180 with Raspberry Pi or Beaglebone Black

Using the BMP085/180 with Raspberry Pi or Beaglebone Black Using the BMP085/180 with Raspberry Pi or Beaglebone Black Created by Kevin Townsend Last updated on 2014-06-28 08:31:07 PM EDT Guide Contents Guide Contents Overview A Note on Distributions Configuring

More information

Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi

Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi Created by Simon Monk Last updated on 2013-07-08 12:15:38 PM EDT Guide Contents Guide Contents Overview You Will Need Downloading

More information

Connect the GSM-DSA to a router where the network is configured to x with a mask

Connect the GSM-DSA to a router where the network is configured to x with a mask GSM-DSA Application note Summary Preparing the raspberry pi environment In order to make the most out of your GSM-DSA, it is best to make sure that the operation system is up to date. To do this we need

More information

PiCAN2 DUO ISO USER GUIDE V1.1. PiCAN 2 DUO ISO Rev B V1.1. PiCAN2 DUO CAN-Bus ISO Board for Raspberry Pi

PiCAN2 DUO ISO USER GUIDE V1.1. PiCAN 2 DUO ISO Rev B V1.1. PiCAN2 DUO CAN-Bus ISO Board for Raspberry Pi PiCAN2 DUO ISO USER GUIDE V1.1 Product name Model number Manufacturer PiCAN2 DUO CAN-Bus ISO Board for Raspberry Pi RSP-PICAN2DUO-ISO SK Pang Electronics Ltd 1 Contents Table of Contents 1. Introduction...

More information

Lesson 4: Who Goes There?

Lesson 4: Who Goes There? Lesson 4: Who Goes There? In this lesson we will write a program that asks for your name and a password, and prints a secret message if you give the right password. While doing this we will learn: 1. What

More information

Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi

Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi Created by Simon Monk Last updated on 2016-12-03 03:20:15 AM UTC Guide Contents Guide Contents Overview You Will Need Downloading

More information

Index. Jeff Cicolani 2018 J. Cicolani, Beginning Robotics with Raspberry Pi and Arduino,

Index. Jeff Cicolani 2018 J. Cicolani, Beginning Robotics with Raspberry Pi and Arduino, A Accessor methods, 92 Adafruit, 9 Adafruit DC & Stepper Motor HAT assembling board adjustment, 199 circuit board, 199 kit, 197 pins, 197 preparation, 197 Raspberry Pi, 198, 204 removal, 201 rotation,

More information

iridium Server for Raspberry Pi

iridium Server for Raspberry Pi Эта страница является переводом страницы Rpi. Перевод выполнен на 100%. Другие языки: English русский iridium Server for Raspberry Pi Installing and setting up a server in a project i3 lite iridium Sever

More information

Experimental Procedure. Frequently Asked Questions (FAQ) Kit General Questions. Setting Up and Using Your Raspberry Pi Projects Kit

Experimental Procedure. Frequently Asked Questions (FAQ) Kit General Questions. Setting Up and Using Your Raspberry Pi Projects Kit 1 of 11 9/13/2018, 2:31 PM https://www.sciencebuddies.org/science-fair-projects/project-ideas/compsci_p059/computer-science/design-your-own-video-game (http://www.sciencebuddies.org/science-fairprojects/project-ideas/compsci_p059/computer-science/design-your-own-video-game)

More information

#Uncomment the second line to enable any form of FTP write command. #write_enable=yes

#Uncomment the second line to enable any form of FTP write command. #write_enable=yes Installing and configuring Apache 2 in Linux Please note that dashes (-) are used to indicate what you should type, they should not be included in the command. Install Linux on an old desktop, dual core

More information

Operating Systems Linux 1-2 Measurements Background material

Operating Systems Linux 1-2 Measurements Background material Operating Systems Linux 1-2 Measurements Background material Introduction The Linux measurements were designed to allow you to have an impression about the administration of Linux severs along with providing

More information

Installation guide. Step1. Install the OS for Raspberry Pi 3. Go to to download Raspbian to the PC.

Installation guide. Step1. Install the OS for Raspberry Pi 3. Go to   to download Raspbian to the PC. Installation guide Step1. Install the OS for Raspberry Pi 3 Go to https://www.raspberrypi.org/downloads/ to download Raspbian to the PC. Unzip 2017-01-11-raspbian-jessie.zip and you will get a disc image

More information

Adafruit PiOLED - 128x32 Mini OLED for Raspberry Pi

Adafruit PiOLED - 128x32 Mini OLED for Raspberry Pi Adafruit PiOLED - 128x32 Mini OLED for Raspberry Pi Created by lady ada Last updated on 2017-06-02 04:28:36 AM UTC Guide Contents Guide Contents Overview Usage Step 1. Dependencies Step 2. Enable i2c Step

More information

Contents. Crave Masternode Setup Guides. Single / Multiple Local Masternode(s) Single Masternode using a VPS. Multiple Masternodes using a VPS

Contents. Crave Masternode Setup Guides. Single / Multiple Local Masternode(s) Single Masternode using a VPS. Multiple Masternodes using a VPS Contents Crave Masternode Setup Guides Single / Multiple Local Masternode(s) 1 Requirements...1 2 Preparing Masternodes...1 3 Preparing Controller Wallet...2 4 Masternode Configuration...3 5 Starting Masternodes...3

More information

Partner Integration Portal (PIP) Installation Guide

Partner Integration Portal (PIP) Installation Guide Partner Integration Portal (PIP) Installation Guide Last Update: 12/3/13 Digital Gateway, Inc. All rights reserved Page 1 TABLE OF CONTENTS INSTALLING PARTNER INTEGRATION PORTAL (PIP)... 3 DOWNLOADING

More information

Quick instructions: Programming of SmartPLC AC14/AC4S with CODESYS V3

Quick instructions: Programming of SmartPLC AC14/AC4S with CODESYS V3 This document is valid for the software bundle: CODESYS V3.5.4.2 AC4S-Package: >= V1.3.2.2 AC4S-Firmware: >= V4.0.2 VNC-rk Page 1 of 32 V1.3 Important note: These instructions are structured so that all

More information

I2C and SPI Foundation

I2C and SPI Foundation Revision 30 September 2010 Release I2C and SPI Foundation 17 March 2018 changed ref: command f to x Introduction I2C (I squared C) and SPI (Serial peripheral Interface) are two main ways that microcontrollers

More information

MABEL, PiTone and Control Functions Installation Procedure for hamvoip.org version 1.5 Allstar Distribution

MABEL, PiTone and Control Functions Installation Procedure for hamvoip.org version 1.5 Allstar Distribution MABEL, PiTone and Control Functions Installation Procedure for hamvoip.org version 1.5 Allstar Distribution Overview and preparation These installation instructions describe a method of adding MABEL and

More information

Construction manual. (Almost Ready To Control) Stand , V1.05

Construction manual. (Almost Ready To Control) Stand , V1.05 V.3 ARTC Construction manual V.3 ARTC (Almost Ready To Control) Stand 5.08.206, V.05 Qube Solutions UG (limited liability) Arbachtalstr. 6, 72800 Eningen, GERMANY http://www.qube-solutions.de/ http://

More information

Davide Cavaliere 18 th February 2017

Davide Cavaliere  18 th February 2017 Davide Cavaliere www.monocilindro.com dadez87@gmail.com 18 th February 2017 This guide explains how to set in read mode your Raspberry Pi 3, running the latest Raspbian Jessie (January 2017). This feature

More information

COOKING WITH TEAM 279

COOKING WITH TEAM 279 COOKING WITH TEAM 279 ANALOG SIGNALS WITH MCP3002/MCP3008 ADC The RPi does not have analog input pins. To read analog signals, and Analog to Digital Converter (ADC) should be used. The MCP3002 and MCP3008

More information

Wallet Installation Guide for Staking on Raspberry PI

Wallet Installation Guide for Staking on Raspberry PI Wallet Installation Guide for Staking on Raspberry PI V2.1 November 2018 CONTENTS 01. Version History... 13 02. Introduction... 3 03. Prerequisites... 13 04. Installation Steps... 6 05. Add an address

More information

CircuitPython with Jupyter Notebooks

CircuitPython with Jupyter Notebooks CircuitPython with Jupyter Notebooks Created by Brent Rubell Last updated on 2018-08-22 04:08:47 PM UTC Guide Contents Guide Contents Overview What's a Jupyter Notebook? The Jupyter Notebook is an open-source

More information

Using the Zoo Workstations

Using the Zoo Workstations Using the Zoo Workstations Version 1.86: January 16, 2014 If you ve used Linux before, you can probably skip many of these instructions, but skim just in case. Please direct corrections and suggestions

More information

Raspberry Pi 3 Model B and JMRI with WiFi Access Point for Pi-SPROG One and Pi-SPROG Nano raspian-jessie build

Raspberry Pi 3 Model B and JMRI with WiFi Access Point for Pi-SPROG One and Pi-SPROG Nano raspian-jessie build Raspberry Pi 3 Model B and JMRI with WiFi Access Point for Pi-SPROG One and Pi-SPROG Nano 2017-04-10-raspian-jessie build June 2017 SPROG DCC These instructions describe the process of setting up a Raspberry

More information

High Voltage Module Raspberry Pi Documentation Page 1

High Voltage Module Raspberry Pi Documentation Page 1 Raspberry Pi Setup High Voltage Documentation Instrumentation Development Lab Department of Physics and Astronomy University of Hawaii at Manoa AUTHOR: Cameron Asaoka DATE: 7/6/2017 High Voltage Module

More information

IT Essentials v6.0 Windows 10 Software Labs

IT Essentials v6.0 Windows 10 Software Labs IT Essentials v6.0 Windows 10 Software Labs 5.2.1.7 Install Windows 10... 1 5.2.1.10 Check for Updates in Windows 10... 10 5.2.4.7 Create a Partition in Windows 10... 16 6.1.1.5 Task Manager in Windows

More information

Topics. What is a RaspberryPi? Why should I want one? What is Raspbian? What is SSH? What is FTP? What is LAMP? Making a LAMP Stack!

Topics. What is a RaspberryPi? Why should I want one? What is Raspbian? What is SSH? What is FTP? What is LAMP? Making a LAMP Stack! Topics What is a RaspberryPi? Why should I want one? What is Raspbian? What is SSH? What is FTP? What is LAMP? Making a LAMP Stack! What is a Raspberry Pi? The Raspberry Pi is a Credit Card sized computer.

More information

PiCAN GPS + Gyro +Accelerometer USER GUIDE V1.0

PiCAN GPS + Gyro +Accelerometer USER GUIDE V1.0 PiCAN GPS + Gyro +Accelerometer USER GUIDE V1.0 Product name Model number Manufacturer PiCAN GPS + Gyro + Accelerometer CAN-Bus Board for Raspberry Pi RSP-PICANGPSACC SK Pang Electronics Ltd 1 Contents

More information

Power over Ethernet (PoE) Adaptor

Power over Ethernet (PoE) Adaptor Power over Ethernet (PoE) Adaptor For the Raspberry Pi model B+, Pi2 and Pi3 User Manual www.circuitsurgery.com Page 1 of 6 Description N.B.: In this manual the term "Raspberry Pi" will refer to the Raspberry

More information

Digital Free Library. Created by Kirby Griese. Last updated on :35:15 PM UTC

Digital Free Library. Created by Kirby Griese. Last updated on :35:15 PM UTC Digital Free Library Created by Kirby Griese Last updated on 2018-01-04 04:35:15 PM UTC Guide Contents Guide Contents Overview Parts Needed Preparation Prepare Micro SD Card Install Apache Configure Access

More information

Quick instructions: Programming of SmartPLC AC14/AC4S with CODESYS V3

Quick instructions: Programming of SmartPLC AC14/AC4S with CODESYS V3 This document is valid for the software bundle: CODESYS V3.5.4.2 AC4S-Package: >= V1.3.2.2 AC4S-Firmware: >= V4.0.2 VNC-rk Page 1 of 28 V1.1 Important note: These instructions are structured so that all

More information

SANOG VI IP Services Workshop: FreeBSD Install

SANOG VI IP Services Workshop: FreeBSD Install SANOG VI IP Services Workshop: FreeBSD Install FreeBSD is designed to be a server operating system. This becomes apparent during the installation process. The FreeBSD installer is a console-based (not

More information

Setting up my Dev Environment ECS 030

Setting up my Dev Environment ECS 030 Setting up my Dev Environment ECS 030 1 Command for SSHing into a CSIF Machine If you already have a terminal and already have a working ssh program (That is, you type ssh into the terminal and it doesn

More information

Windows XP. A Quick Tour of Windows XP Features

Windows XP. A Quick Tour of Windows XP Features Windows XP A Quick Tour of Windows XP Features Windows XP Windows XP is an operating system, which comes in several versions: Home, Media, Professional. The Windows XP computer uses a graphics-based operating

More information

Spring 2017 Gabriel Kuri

Spring 2017 Gabriel Kuri Lab 2 ECE 431L Spring 2017 Gabriel Kuri This lab is made up of two parts. Part 1 will consist of familiarizing yourself with the Raspberry Pi (RPi). It includes running Unix/Linux commands to become somewhat

More information

All rights reserved by Waveshare Electronics Co., Ltd. Not allow to modify, distribute, or copy without permission.

All rights reserved by Waveshare Electronics Co., Ltd. Not allow to modify, distribute, or copy without permission. DVK512 User Manual Copyright All rights reserved by Electronics Co., Ltd. Not allow to modify, distribute, or copy without permission. Revision History Revision Date Description V1.0 Aug. 18, 2014 Initial

More information

Pianoteq 6 Raspberry Pi 3 Station. By Edgar Bustamante

Pianoteq 6 Raspberry Pi 3 Station. By Edgar Bustamante Pianoteq 6 Raspberry Pi 3 Station By Edgar Bustamante 1 Contents 1 Introduction...4 2 Parts...5 2.1 Raspberry Pi 3...5 2.2 Fan/Heat Sinks...5 2.3 Digital to Analog Converter (DAC)...5 2.4 Micro SD Card

More information

MadLab JellyBean. version 1.0. Written by James Hutchby Copyright MadLab Ltd All Rights Reserved.

MadLab JellyBean. version 1.0. Written by James Hutchby Copyright MadLab Ltd All Rights Reserved. MadLab JellyBean version 1.0 Written by James Hutchby Copyright MadLab Ltd. 2010 All Rights Reserved info@madlab.org www.madlab.org MadLab is a registered service mark of MadLab Ltd. in the UK. PIC is

More information

Ultra Short Installation Procedure of the UPS PIco HV3.0 Daemons. and UPS PIco HV3.0 broadcasting System

Ultra Short Installation Procedure of the UPS PIco HV3.0 Daemons. and UPS PIco HV3.0  broadcasting System Ultra Short Installation Procedure of the UPS PIco HV3.0 Daemons and UPS PIco HV3.0 email broadcasting System 1. Install Raspberry Pi Operation System (i.e. NOOBs) Disable the serial port (only if you

More information

GETTING STARTED WITH RASPBERRY PI

GETTING STARTED WITH RASPBERRY PI GETTING STARTED WITH RASPBERRY PI Workshop Handout Created by Furtherfield Commissioned by Southend Education Trust GETTING STARTED WITH RASPBERRY PI INTRODUCTION Introduce Raspberry Pi and answer some

More information

Semester 2, 2018: Lab 1

Semester 2, 2018: Lab 1 Semester 2, 2018: Lab 1 S2 2018 Lab 1 This lab has two parts. Part A is intended to help you familiarise yourself with the computing environment found on the CSIT lab computers which you will be using

More information

PiCAN 2 USER GUIDE V1.2

PiCAN 2 USER GUIDE V1.2 PiCAN 2 USER GUIDE V1.2 Product name Model number Manufacturer PICAN CAN-Bus Board for Raspberry Pi RSP-PICAN2 SK Pang Electronics Ltd 1 Contents Table of Contents 1. Introduction... 3 1.1. Features...

More information

You can use the WinSCP program to load or copy (FTP) files from your computer onto the Codd server.

You can use the WinSCP program to load or copy (FTP) files from your computer onto the Codd server. CODD SERVER ACCESS INSTRUCTIONS OVERVIEW Codd (codd.franklin.edu) is a server that is used for many Computer Science (COMP) courses. To access the Franklin University Linux Server called Codd, an SSH connection

More information

The Broadband Ham Net community has had a need for a stand alone time server for their meshes. This document will attempt to fill in this need.

The Broadband Ham Net community has had a need for a stand alone time server for their meshes. This document will attempt to fill in this need. Introduction: The Broadband Ham Net community has had a need for a stand alone time server for their meshes. This document will attempt to fill in this need. Some caveats to consider before embark on a

More information

U90 Ladder Software Manual. Version 3.50, 6/03

U90 Ladder Software Manual. Version 3.50, 6/03 U90 Ladder Software Manual Version 3.50, 6/03 Table Of Contents Welcome to U90 Ladder... 1 Program Editors... 1 Project Navigation Tree...1 Browse Sequences...1 Printing Documentation...2 Interface Language...

More information

Building a standalone access point using a Raspberry Pi Zero W

Building a standalone access point using a Raspberry Pi Zero W Building a standalone access point using a Raspberry Pi Zero W by Barry Robinson The Raspberry Pi Zero W is a small, single board computer (SBC) that has WiFi and Bluetooth connectivity built-in. It is

More information

Introduction to Internet of Things Prof. Sudip Misra Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur

Introduction to Internet of Things Prof. Sudip Misra Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Introduction to Internet of Things Prof. Sudip Misra Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Lecture - 30 Implementation of IoT with Raspberry Pi- I In the

More information

RASPBERRY PI EXAMPLES WITH CLICK BOARDS

RASPBERRY PI EXAMPLES WITH CLICK BOARDS RASPBERRY PI EXAMPLES WITH CLICK BOARDS Pi 3 click shield connects the world largest collection of add-on boards click boards with one of the today s most popular embedded platforms Raspberry Pi. Here

More information

Sun VirtualBox Installation Tutorial

Sun VirtualBox Installation Tutorial Sun VirtualBox Installation Tutorial Installing Linux Mint 5 LTS Guest OS By Dennis Berry Welcome to the world of virtualization and Linux. This tutorial is intended to help users who are new to the world

More information

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX This handout very briefly describes how to use Unix and how to use the Linux server and client machines in the EECS labs that dual boot

More information

Rs-Pi 7 USB- Hub & I2C 1-Wire User Manual

Rs-Pi 7 USB- Hub & I2C 1-Wire User Manual Rs-Pi 7 USB- Hub & I2C 1-Wire User Manual 1. U8 RTC DS1307 with CR2032 Battery 2. U7 TMP102 Temperature Sensor 3. U9 24C32 32Kbit EEPROM JP10 Disable Jumper 4. U6 MCP4725 12bit Digital-to-Analog Converter,

More information

The instructions in this document are applicable to personal computers running the following Operating Systems:

The instructions in this document are applicable to personal computers running the following Operating Systems: Preliminary Notes The instructions in this document are applicable to personal computers running the following Operating Systems: Microsoft Windows from version 7 up to 10 Apple Mac OS X from versions

More information

1 Getting Started with Linux.

1 Getting Started with Linux. PHYS-4007/5007: omputational Physics Tutorial #1 Using Linux for the First Time 1 Getting Started with Linux. The information of logging in on the Linux side of the computers in Brown Hall 264 can be found

More information

Assembled FreqEZ enclosure prior to cable installation

Assembled FreqEZ enclosure prior to cable installation FreqEZ Band Decoder A Versatile Band Decoder FreqEZ is a Do-It-Yourself hardware/software project that provides highly configurable Band Decoding and Remote Antenna selection. For amateurs who use N1MM+

More information

Datathon 2018 Connecting to MicroStrategy on AWS Cloud

Datathon 2018 Connecting to MicroStrategy on AWS Cloud Datathon 2018 Connecting to MicroStrategy on AWS Cloud Introduction This document describes how to connect to MicroStrategy on AWS cloud. The first part will show screenshots and introduction to the MicroStrategy

More information

TROVIS-VIEW 4 Software TROVIS Operating Instructions EB 6661 EN. Electronics from SAMSON

TROVIS-VIEW 4 Software TROVIS Operating Instructions EB 6661 EN. Electronics from SAMSON TROVIS-VIEW 4 Software TROVIS 6661 Operating Instructions Electronics from SAMSON EB 6661 EN Edition August 2017 Definition of signal words DANGER! Hazardous situations which, if not avoided, will result

More information

Relarium (RLM) Masternode Guide for VPS

Relarium (RLM) Masternode Guide for VPS Relarium (RLM) Masternode Guide for VPS Table of Contents Requirements 2 VPS Set-up 2 Create a MasterNode Address (ALIAS) & send collateral 4 MasterNode private key & Index ID 5 Edit Configuration files

More information

Type Operating Instructions - Software. Bedienungsanleitung - Software Manuel d utilisation - Logiciel

Type Operating Instructions - Software. Bedienungsanleitung - Software Manuel d utilisation - Logiciel Software of configuration Software der -Konfiguration Logiciel de configuration Operating Instructions - Software Bedienungsanleitung - Software Manuel d utilisation - Logiciel We reserve the right to

More information

LinX Software Suite v3 Getting Started

LinX Software Suite v3 Getting Started 2018-03-19 LinX Software Suite v3 Getting Started Product revision: V3.0.2 Document revision: 1.0 www.crosscontrol.com Contents Revision history...2 1. Brief Introduction...3 2. Components and Installation...3

More information

Setting up a Chaincoin Masternode

Setting up a Chaincoin Masternode Setting up a Chaincoin Masternode Introduction So you want to set up your own Chaincoin Masternode? You ve come to the right place! These instructions are correct as of April, 2017, and relate to version

More information

Introduction to the Raspberry Pi AND LINUX FOR DUMMIES

Introduction to the Raspberry Pi AND LINUX FOR DUMMIES Introduction to the Raspberry Pi AND LINUX FOR DUMMIES 700Mhz ARM v6 Broadcomm CPU+GPU 512 MB RAM (256MB on Model A) Boots off SD card for filesystem USB, Audio out, LAN (Model B only) HDMI + Composite

More information

ToF T1 User Guide. a module solution provider. Date: 2017/02/13. Hardware Test Supervisor. Software Test Engineer. Center Supervisor Rex

ToF T1 User Guide. a module solution provider. Date: 2017/02/13. Hardware Test Supervisor. Software Test Engineer. Center Supervisor Rex a module solution provider ToF T1 User Guide Date: 2017/02/13 Software Test Engineer Hardware Test Supervisor Test Supervisor Center Supervisor Rex Copyright JORJIN TECHNOLOGIES INC. LIMITED 2014 Version

More information

5inch HDMI LCD (B) User Manual

5inch HDMI LCD (B) User Manual 5inch HDMI LCD (B) User Manual Description 5 inch Resistive Touch Screen LCD, HDMI interface, supports various systems Features 800 480 high resolution, touch control Supports Raspberry Pi, and driver

More information

BASIC USER TRAINING PROGRAM Module 5: Test Case Development

BASIC USER TRAINING PROGRAM Module 5: Test Case Development BASIC USER TRAINING PROGRAM Module 5: Test Case Development Objective Student will have an understanding of how to create, edit and execute a Test Case from Develop a Test Case Activity Page. Student will

More information

MULTIPROG QUICK START GUIDE

MULTIPROG QUICK START GUIDE MULTIPROG QUICK START GUIDE Manual issue date: April 2002 Windows is a trademark of Microsoft Corporation. Copyright 2002 by KW-Software GmbH All rights reserved. KW-Software GmbH Lagesche Straße 32 32657

More information

Programming. We will be introducing various new elements of Python and using them to solve increasingly interesting and complex problems.

Programming. We will be introducing various new elements of Python and using them to solve increasingly interesting and complex problems. Plan for the rest of the semester: Programming We will be introducing various new elements of Python and using them to solve increasingly interesting and complex problems. We saw earlier that computers

More information

Getting Started Guide XC9010 Raspberry Pi Starter Kit

Getting Started Guide XC9010 Raspberry Pi Starter Kit Getting Started Guide XC9010 Raspberry Pi Starter Kit The Raspberry Pi has been designed as a computer that anyone can use. If you want to get started with a Raspberry Pi, but don t know where to start,

More information

Microprocessor-Based Systems (E155)

Microprocessor-Based Systems (E155) Microprocessor-Based Systems (E155) D. Harris and M. Spencer Fall 2017 Lab 4: Life of Pi Requirement 1) Set up your Raspberry Pi 2) Write an assembly-language program to sort an array of 12 signed bytes

More information

Windows 2000 Professional

Windows 2000 Professional The American University in Cairo Academic Computing Services Windows 2000 Professional prepared by Soumaia Ahmed Al Ayyat 4 August 2003 Table of Contents Starting Up the Computer Windows Environment Start

More information