Back to All
Project

GPIO STEM Workshop

 

Skill Level Area of Focus Operating System
Beginner Education,IoT, Sensors Linux

A STEM workshop around the DragonBoard™ 410c from Arrow Electronics and LinkSprite starter kit that has various electronic components. The workshop gets students to write Python code to interact with electronics component via GPIO.

Objective

How can students aspire to jobs they don’t know exist? That is the challenge that the UK charity STEM Team East is trying to solve for students living in the east of England.

This workshop is designed to encourage students to take STEM related subjects in the UK. At the age of 13, UK students have choices over certain subjects and the number taking STEM related subjects has been dropping. Showing students how they can build projects that physically interact in the real world is our attempt to get them inspired to learn more.

The workshop starts off with some simple examples written in Python of how to use the some of the Linker kit modules. To help the student’s ramp up quickly, a wrapper library is used around the very good libsoc GPIO library. The wrapper library is called libsoc_zero which is a Python library designed to reduce the amount of ‘boilerplate’ code required to get up and running with some of the Linker kit modules.

Once the students have the basics understood, they are challenged to come up with ideas for how they can combine modules to solve a problem in a new way. The range of imaginative ideas the students come up with are impressive. One such project by two students prompts users to enter a phrase, which is then ‘displayed’ on the LED using Morse code. The message can be repeated by the user pressing the touch sensor, and has two speed settings by using the tilt sensor.

Build / Assembly Instructions

The GPIO Workshop Setup will take you through the steps of:

  • Installing Linux
  • Changing the keyboard layout
  • Loading the libsoc GPIO library
  • Adding one more library
  • Changing PYTHONPATH
  • Installing Python Editor (IDE)

Materials Required / Parts List / Tools

 

Usage Instructions

The Python experiments using the Linker mezzanine card starter kit for 96Boards use the following components:

  • Red LED module
  • Button module
  • Touch sensor module
  • Tilt module
  • Relay module
  • Linear/slide potentiometer module
  • Light sensor module
  • Thermal module
  • Joystick sensor module
Qualcomm-image
Qualcomm-image
Qualcomm-image
Qualcomm-image

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries ("Qualcomm"). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.

Project Authors
Barry Byford
Qualcomm

Sign up for the Developer Newsletter.

Get software and hardware tool resources to help optimize your development delivered to your inbox weekly.

© Qualcomm Technologies, Inc. and/or its affiliated companies.

Snapdragon and Qualcomm branded products are products of Qualcomm Technologies, Inc. and/or its subsidiaries. Qualcomm patents are licensed by Qualcomm Incorporated.

Note: Certain services and materials may require you to accept additional terms and conditions before accessing or using those items.

References to "Qualcomm" may mean Qualcomm Incorporated, or subsidiaries or business units within the Qualcomm corporate structure, as applicable.

Qualcomm Incorporated includes our licensing business, QTL, and the vast majority of our patent portfolio. Qualcomm Technologies, Inc., a subsidiary of Qualcomm Incorporated, operates, along with its subsidiaries, substantially all of our engineering, research and development functions, and substantially all of our products and services businesses, including our QCT semiconductor business.

Materials that are as of a specific date, including but not limited to press releases, presentations, blog posts and webcasts, may have been superseded by subsequent events or disclosures.

Nothing in these materials is an offer to sell or license any of the services or materials referenced herein.