Original text


Technical University of Iasi - Fac. Automation and Computers
Embedded Systems
Tuesday, January 29,
Time 14:14

Laboratory No. 3+

  • L3 + .1 Name

  • Embedded Linux Machine - Internet for Things Development Platform



  • L3.2 Overview, purpose

  • The lab work explores the possibilities for making extensions for Rpi through incoming / outgoing ports and serial interfaces using Python. At the end of the laboratory, there will be relevant information about how to make the active digital extensions for Rpi as well as how to interconnect the Rpi-ARM XMC


  • L3 + .3 Resources


  • Hardware: Platforms Raspberry pi, ByteDisplay Extension, XMC1100 Boot Kit


    Software: Linux Python for Rpi
    Infineon DAVE for PC


  • L3 + .4 Example programs

  • Python GPIO
    Button + LED
    Rpi to XMC
    DAVE XMC reception + display



  • L3 + .5 Running / tracing laboratory

    • - Install Rpi on Python for I / O pane control as follows:
      > sudo apt-get install python-rpi.gpio
      - Check the current version of GPIO modules as follows:
      >> print gpio.version
      >> quit
      The Rpi extension pins are represented in the following figure:
      - Analyze / realize the Rpi-XMC interconnection according to the scheme:



      - The GPIO lib extension contains the following functions:
      setting GPIO mode
      activation / deactivation PullUP / DOWN
      write write 1
      write 0
      import RPi.GPIO as GPIO
      GPIO.setmode (GPIO.BCM) or
      GPIO.setmode (GPIO.BOARD)

      Set as output:

      > GPIO.setup (11, GPIO.OUT) Writing 1:

      > GPIO.output (11, GPIO.HIGH)
      Write 0:

      > GPIO.output (11, GPIO.LOW)
      Set as input:

      > GPIO.setup (11, GPIO.IN)
      Enable resistance Pull_UP_down:

      > GPIO.setup (11, GPIO.IN, pull_up_down = GPIO.PUD_UP)
      > GPIO.setup (17, GPIO.IN, pull_up_down = GPIO .PUD_DOWN)

      Read port:
      > a = GPIO.input (11)
      Pin I / O Availability:
      > GPIO.cleanup ()
      After connecting the XMC1100 Boot Kit via USB cable, it is considered to enable serial communication as follows:
      > ls / dev / tty *
      The new serial port is called ttyACM0 visible as follows:



      Python call is as follows:
      import serial
      XMC = serial.Serial ( "/ dev / ttyAMA0" baudrate = 9600 timeout = 3.0)
      port.write ( "1")
      port.write ( "2")

      The kit Boot XMC1100 serial interface over USB uses P1.2 for transmission and P1.3 for reception.



    • L3.6 Proposed Problems
      • 1. Create a Python script that will enable the activation of a positive LED of the signal generated by a button;
      • 2. At the Rpi-XMC assembly, develop an application that will allow reading of XMC data;
      • 3. Create an application that will enable selective LED lighting on the XMC platform;
      • 4. Make a XMC reception program using Arduino XMC;
      • 5. Create a script that will display on the Byte Display on the XMC the token code of your PC using putty.

    • L3.7 The experiment may be extended to:


    • - Developing Internet of Things;
      - Develop Embeded Linux-based applications
      - Developing the Wearable Computing universe



    • L5.8 Collateral Information


    • © 2018 Fl.Pantilimonescu - Automatic Control and Computer Engineering Faculty - Technical University Iasi, Romania