Overview

We will go through the steps to setup a Raspberry Pi Zero 2 and connect to it from our laptops.

Alt text Alt text

Details

Start with a Wi-Fi router that connects to the internet. The Raspberry Pi Zero 2 and the student's laptops (the "Devices") will connect to the router. Each device will get its own IP address from the router's DHCP server. The student devices can use Putty to SSH directly into the raspberry pi (RPI) and use Bash to configure it.

In the club's sandbox environment, a wifi router connects to the Internet so that OS updates and software can be installed on the RPI. The member's laptops will connect to the router to be "on" the same network as the RPI, then use Putty (SSH) to connect to the RPI.

Project

Ingredients

Start with these ingredients:

Prerequisites

Steps

Perform these steps:

sudo apt-get update
sudo apt install python3-opencv
python3 -c 'import cv2; print(cv2.__version__)'
  # --> 4.5.1

To copy a file from B to A while logged into B:

scp /path/to/file username@a:/path/to/destination

To copy a file from B to A while logged into A:

scp username@b:/path/to/file /path/to/destination

Camera

sudo raspi-config
raspistill -o raspistill.jpg

Additional things to try:

vcgencmd get_camera
--> supported=1 detected=1, libcamera interfaces=0

sudo modprobe bcm2835-v4l2
v4l2-ctl --all

Samba

sudo apt-get install samba
sudo nano /etc/samba/smb.conf
  [MyShare]
  path = /path/to/your/directory
  read only = no
  browsable = yes
sudo systemctl restart smbd
sudo smbpasswd -a yourusername
FILE EXPLORER: \\ip_address\MyShare