Purchase your Raspberry Pi Kit
Tip
To set up and connect this device using the AWS Greengrass Lite SDK, refer to this QuickStart Guide
- Introduction
- Requirements
- Hardware Setup
- Image Flashing
- Device Setup
- Onboard Device
- Using the Demo
- Resources
This guide is designed to walk through the steps to connect the Raspberry Pi (4 or 5) to the Avnet /IOTCONNECT platform and demonstrate the standard IoT function of telemetry collection.
Any of these Raspberry Pi variants will work for this demo:
-
Raspberry Pi 5 (4GB RAM) Purchase | User Manual | All Resources
-
Raspberry Pi 5 (8GB RAM) Purchase | User Manual | All Resources
-
Raspberry Pi 4 (4GB RAM) Purchase | User Manual | All Resources
-
Raspberry Pi 4 (8GB RAM) Purchase | User Manual | All Resources
-
1x Micro-HDMI to HDMI Cable (must be purchased separately, this is the cable used by Avnet's engineer
-
1x USB Type-C Cable
-
1x Micro-SD card (16GB+ recommended) and hardware to connect the Micro-SD card to your PC for image flashing
-
1x Ethernet Cable or Wi-Fi Network SSID and Password
-
1x USB Keyboard
- A serial terminal such as TeraTerm or PuTTY
- Raspberry Pi Imager for image flashing to Micro-SD card
See the reference image below for cable connections (image shows a Raspberry Pi 5 but the connections are the same on the Raspberry Pi 4).
- Connect a USB-C cable from a 5V power source (such as your PC) to the USB-C port on your board.
- (OPTIONAL) Connect an ethernet cable from your LAN (router/switch) to the ethernet port on the board.
- Connect a USB keyboard to one of the USB ports on your board.
- Connect the HDMI0 port of your Raspberry Pi to an external monitor using a Micro-HDMI to HDMI cable
- Insert the Micro-SD card into your computer (use an adapter if your computer does not have an SD card port).
- Open the Raspberry Pi Imager application.
- Select the version of your Raspberry Pi.
- Click "Choose OS" and select "Other general-purpose OS", "Ubuntu" then "Ubuntu Server 24.04.3 LTS"
- Select the Micro-SD card for storage and click "Next"
- When prompted, select the option for "OS Customisation"
- Set a non-root username eg
demoand password egdemo
Important
The username must be something other than root or else you will face login issues.
- Optionally, set your wireless LAN information with your Wi-Fi SSID and password.
- On the "Services" tab, enable SSH and "Use password authentication"
- Accept the warning prompts and flash the image.
- After the flash is complete, insert the Micro-SD card into the Micro-SD card slot on the board.
- After plugin in your Raspberry Pi, you should see a login prompt on your monitor. Enter the username and then the password that you created before the image flashing.
- Execute the command
ip ato get the network connection info. Note the IP address listed under theeth0interface.
Note
If you only have one keyboard between your Raspberry Pi and your host PC, to avoid having to repeatedly connect and
disconnect it you can just connect to the Raspberry Pi via SSH from your host PC using the eth0 IP address with the
command ssh username@x.x.x.x where username is the username you created for your Raspberry Pi and x.x.x.xis the eth0` IP address.
- Run these commands on your Raspberry Pi to update the core board packages and install necessary /IOTCONNECT packages:
sudo apt-get update
python3 -m pip install iotconnect-sdk-lite requests --break-system-packages
- Run this command to create and move into a directory for your demo files:
sudo mkdir -p /opt/demo && cd /opt/demo
- Run this command to ensure your user has ownership of the new directory (use your created username for
username)
sudo chown -R username:username /opt/demo
For example if your username was TestUser your command would be
sudo chown -R TestUser:TestUser /opt/demo
Tip
To gain access to "copy" and "paste" functions inside of a PuTTY terminal window, you can CTRL+RIGHTCLICK within the window to utilize a dropdown menu with these commands. This is very helpful for copying/pasting between your browser and the terminal.
The next step is to onboard your device into /IOTCONNECT. This will be done via the online /IOTCONNECT user interface.
Follow this guide to walk you through the process.
Run the basic demo with this command:
python3 app.py
Note
Always make sure you are in the /opt/demo directory before running the demo. You can move to this
directory with the command: cd /opt/demo
View the random-integer telemetry data under the "Live Data" tab for your device on /IOTCONNECT.
- Explore connecting the Raspberry Pi through the AWS Greengrass Lite SDK QuickStart
- Purchase the Raspberry Pi:
- /IOTCONNECT Overview
- /IOTCONNECT Knowledgebase


