Please enable JavaScript.
Coggle requires JavaScript to display documents.
IOT with Raspberry PI and Arduino - Coggle Diagram
IOT with Raspberry PI and Arduino
Raspberry Pi 4
= A mini computer with Linux
Install Raspberry Pi OS:
Download image file
Install OS to Memory Card using Raspberry Pi Imager
Plug Memory Card to Raspberry Pi and Start
Default username: pi
Default password: raspberry
Some Linux commands:
1.Display system info(Unix Name):
uname -a
2.Install python package manager:
apt install python3-pip
3.Install GPIO(General Purpose Input/Output) Zero:
pip3 install gpiozero
Add user named "student" to the system:
sudo adduser student
Make "student" as an "admin":
sudo adduser student sudo
Connect from your PC to Raspberry PI:
ssh
student@raspberrypi
Your windows 10 doesn't have ssh ?
Please install gitbash, OpenSSH,Cygwin..
You can install VNC Viewer to remotely connect to Raspberry Computer
Open Raspberry Pi Configurations:
sudo raspi-config
You can start VNC Server, ssh(Secured Shell)
Show detail GPIO pins:
pinout
GPIO: General Purpose Input/Output
Connect from your Mac to Rasp Computer:
Install sshfs and mount:
sshfs
student@raspberrypi
: ~/Desktop/mac_folder
Connect from Windows to Rasp Computer:
Connect Rapberry to Camera:
Enable camera through raspi-config
import library and create camera object:
Take one or many photos:
1 more item...
Python3 for Raspberry Pi
import GPIO:
import RPi.GPIO as GPIO
Set GPIO as Broadcom(NOT pin name) mode:
GPIO.setmode(GPIO.BCM)
Set GPIO23 = OUTPUT:
GPIO.setup(23, GPIO.OUT)
Turn on bit to True:
GPIO.output(23, 1)
Delay 2 sconds:
import time
time.sleep(2)
Check input pin's value:
Connect Raspberry PI to Sensor:
motion, ultrasonic, humidity,...
2 more items...
Connect Raspberry PI to Arduino
using I2C Bus
Inter-Integrated Circuit = I2C
1 more item...