Raspberry Pi: Difference between revisions

From wikiluntti
Line 68: Line 68:
* MH-Z19 IR infrared Carbon Dioxide Gas Sensor For Air CO2 Concentration Monitor
* MH-Z19 IR infrared Carbon Dioxide Gas Sensor For Air CO2 Concentration Monitor
* Environment Sensor HAT für Raspberry Pi Zero 2 W WH A 3 Model B Plus 4 2GB 8GB
* Environment Sensor HAT für Raspberry Pi Zero 2 W WH A 3 Model B Plus 4 2GB 8GB
* S[[Scd30 co2 sensor|CD30 Air Quality Sensors Module]] for CO2 and RH/T Measurements I2C PWM Modbus
* [[Scd30 co2 sensor|CD30 Air Quality Sensors Module]] for CO2 and RH/T Measurements I2C PWM Modbus


== Bluetooth ==  
== Bluetooth ==  

Revision as of 09:27, 4 September 2022

Simple things used in every Project

Raspistill

raspistill -w 2592 -h 1944 -o name.jpg


Take a photo and send it to an external server Template:GithubDownload

<script src="https://emgithub.com/embed.js?target=https%3A%2F%2Fgithub.com%2Fpytorch%2Fpytorch%2Fblob%2Fmaster%2Ftorch%2Fnn%2Fcpp.py&style=github&showBorder=on&showLineNumbers=on&showFileMeta=on"></script>

Crontab

Sshpass

Server side

Finding the IP address

The SSH is disable by default after 2016. Below is show how to enable without using keyboard.

Use nmap -F 192.168.8.1-254 to fast scan all devices in the local network. The default passwords are listed at Raspberry pi default login-password.

Try ping raspberrypi.local.

Enable ssh

On another computer, mount the Raspian boot SD card, navigate to the boot folder cd /Volumes/boot, create a blank file called ssh touch ssh. That's all.


Using the Raspian GUI: Preferences -> Raspberry Pi Configuration -> Interfaces -> SSH.

Using the terminal: sudo raspi-config or use systemctl:

sudo systemctl enable ssh
sudo systemctl start ssh

Project Ideas

Peripherals

Sensors

  • MG-811 MG811 CO2 Carbon Dioxide Sensor For Arduino UNO R3 Raspberry Pi
  • CCS811 CO2 Carbon Dioxide Detector Air Quality Monitor Meter Sensor for Arduino
  • MQ-2 Kohlenmonoxid Sensor CO Gas-Sensor, Rauch-Sensor, Raspberry Pi, Arduino
  • CJMCU MICS 6814 Kohlenmonoxid Stickstoff Sauerstoff Sensor Co No2 Nh3 Arduino
  • MH-Z19 IR infrared Carbon Dioxide Gas Sensor For Air CO2 Concentration Monitor
  • Environment Sensor HAT für Raspberry Pi Zero 2 W WH A 3 Model B Plus 4 2GB 8GB
  • CD30 Air Quality Sensors Module for CO2 and RH/T Measurements I2C PWM Modbus

Bluetooth

Setting up the Raspberry Pi.

Raspberry Pi and EV3-G

Raspberry Pi and Ev3Dev

Erase the SD card

Use camera to format the SD card, or see https://www.raspberrypi.org/forums/viewtopic.php?t=204167 .

Bluetooth on Raspi 3

sudo apt update
sudo apt upgrade
sudo apt-get install python-bluez
#sudo apt install bluetooth pi-bluetooth bluez blueman

sudo nano /etc/systemd/system/dbus-org.bluez.service. Modify ExecStart=/usr/lib/bluetooth/bluetoothd –C

sudo sdptool add SP

sudo reboot

sudo apt-get install bluetooth bluez libbluetooth-dev
sudo python3 -m pip install pybluez