Robot Control using Raspberry Pi

Lecture 3 - A minimal introduction to Raspberry Pi 4

Li Bai

Temple University

September 14, 2023

What is a Raspberry Pi?

Rapberry Pi Family

  • Rapsberry Pi Pico ($4)

  • No OS

  • raspberry pi 4 computing module

  • $25 -$200

  • raspberry 4B
  • $35 - $200

Mangdang Minpuppers

  • raspberry pi 4

  • motors are older, ROS1 and ROS2

  • raspberry 4 computing module
  • better motors, ROS2 support mainly

Software needed …

Windows Setup

  • Copy the image and place it on a micro-SD card

  • Insert the microSD card into raspberry Pi 4B

Use Etcher to copy image to MicroSD card

Use Etcher to copy image to MicroSD card

Use Etcher to copy image to MicroSD card

Use Etcher to copy image to MicroSD card

Use Etcher to copy image to MicroSD card

Connect to a laptop

  • If you have a Windows system, you will need to setup RNDIS driver Click here
  • Mac Users, continue to Jupyter Lab Setup

Jupyter-Lab setup

  • type http://10.55.0.1:8888 in your browser
  • type mangdang as your login password

Jupyter-Lab Interface

  • open a terminal in Jupyter lab

Jupyter-Lab Terminal

  • check wifi ip address
ifconfig wlan0
  • Open a wifi password file if no ip address is shown
sudo nano /etc/netplan/50-cloud-init.yaml
  • Ctlr-X, Y and Enter to save the file

content in 50-cloud-init.yaml

  • need to access cloud 9 ubunut instance to create a new hash using your Wifi password

Cloud instance

  • Open your cloud 9 instance, run the command in a terminal window
docker image list

Cloud instance

  • open a new docker instance
docker run -it bionic-bai:latest /bin/bash

- Enter your password to generate a new hash

echo -n password | iconv -t UTF-16LE | openssl md4 

Insert Hash

  • Inser the hash back in the configuration file
  • Use Ctrl-W and Ctrl-X to save and exit, then reboot
sudo reboot

Windows RNDIS Setup

  • find USB Port (COM/LPT)

  • Update driver

Windows RNDIS Driver

  • find USB Port (COM/LPT)

  • Update driver

Windows RNDIS Driver

  • find USB Port (COM/LPT)

  • Update driver

Windows RNDIS Driver

  • Driver Installer for RNDIS

  • Network Adapter shows RNDIS, now you can go back to Jupyter-lab setup click here