[Draft] Dans cet article he vais rapidement vous montrer comment configurer une camera thermique ARG8833 avec un Rasberry Pi B

Configuration de base de votre Rasberry

Téléchargement de l’OS, Rasbien

  1. Télécharger Rasbian Stretch Lite et enregistrer l’image sur votre carte SD avec Etcher (Mac) Rasbian Jessie
  2. Insérer la carte SD dans votre Raspberry
  3. Connecter votre Raspberry à un écran, une souris et un clavier et allumer le

Une fois votre rasppery a démmaré, il vous sera demandé de configurer votre localisation, votre clavier, votre WiFi et de mettre à jour votre OS.

Installation de base

Ouvrez un terminal et lancer les commandes suivantes:

  • Installation de git, vim, ntpdate
    $sudo apt-get update 
    $sudo apt-get upgrade
    $sudo apt-get install vim
    $sudo apt-get install ntpdate 
    $sudo apt-get install git
  • Création d’un nouvel utilisateur
    $sudo adduser ttn 
    $sudo adduser ttn sudo
  • L’utilisateur pi ne doit pas être supprimé

Installation de l’écran

Référence: https://learn.adafruit.com/adafruit-pitft-3-dot-5-touch-screen-for-raspberry-pi?view=all

https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/installing-circuitpython-on-raspberry-pi

#cd ~/Documents
#mkdir PiTFT
#cd PiTFT
#wget https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/adafruit-pitft.sh
#chmod +x adafruit-pitft.sh
#sudo ./adafruit-pitft.sh

Suivez les instructions

Select configuration:
1. PiTFT 2.4″, 2.8″ or 3.2″ resistive (240×320)
2. PiTFT 2.2″ no touch (240×320)
3. PiTFT 2.8″ capacitive touch (240×320)
4. PiTFT 3.5″ resistive touch (320×480)
5. Quit without installing

SELECT 1-5: 4
Select rotation:
1. 90 degrees (landscape)
2. 180 degrees (portait)
3. 270 degrees (landscape)
4. 0 degrees (portait)

SELECT 1-4: 1
[PITFT] Checking init system…
Found systemd
/boot is mounted
[PITFT] System update
Updating apt indexes…
………
Reading package lists…
………
[PITFT] Installing Python libraries & Software…
Installing Pre-requisite Software…This may take a few minutes!
[PITFT] Updating /boot/config.txt…
[PITFT] Updating SysFS rules for Touchscreen…
[PITFT] Updating TSLib default calibration…
Would you like the console to appear on the PiTFT display? [y/n] n
[PITFT] Making sure console doesn’t use PiTFT
Removing console fbcon map from /boot/cmdline.txt
Screen blanking time reset to 10 minutes
Would you like the HDMI display to mirror to the PiTFT display? [y/n] y
[PITFT] Adding FBCP support…
Installing cmake…
W: –force-yes is deprecated, use one of the options starting with –allow instead.
Downloading rpi-fbcp…
Uncompressing rpi-fbcp…
Building rpi-fbcp…
Installing rpi-fbcp…
Remove fbcp from /etc/rc.local, if it’s there…
We have systemd, so install fbcp systemd unit…
Created symlink /etc/systemd/system/multi-user.target.wants/fbcp.service → /etc/systemd/system/fbcp.service.
Setting raspi-config to boot to desktop w/o login…
Created symlink /etc/systemd/system/default.target → /lib/systemd/system/graphical.target.
Configuring boot/config.txt for forced HDMI
Using x1.5 resolution
[PITFT] Updating X11 default calibration…
[PITFT] Success!

Settings take effect on next boot.

REBOOT NOW? [y/N] y

Installation de la camera thermique

https://learn.adafruit.com/adafruit-amg8833-8×8-thermal-camera-sensor/raspberry-pi-thermal-camera

Connections

  •  Vin à la broche t3V ou 5V
  • GND à la broche GND
  • SDA  à la broche o SDA
  • SCL à la broche  SCL

Contrôler les connections:

pi@camera:~ $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- 69 -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --

Installation des soft

#sudo apt-get install libatlas-base-dev
#sudo pip3 install adafruit-circuitpython-amg88xx
#sudo apt-get install -y python3-scipy python3-pygame
#sudo pip3 install colour

Discussion

https://forums.adafruit.com/viewtopic.php?f=50&t=143684&p=709531&hilit=raspberry+numpy#p709531

 

Laisser un commentaire

*