
Afficheur LCD Comme vous le savez j’ai récemment récupéré un RaspBerry Pi et du coup je me suis dis pourquoi ne pas essayé d’intéragir avec les pins GPIO (General Purpose Input Output). Je me suis donc donné pour projet de réaliser un petit programme qui affiche des informations systèmes sur un écran LCD connecté via les ports GPIO de mon RaspBerry Pi. Les GPIO du RaspBerry Pi Un RaspBerry Pi possède 26 pins GPIO qui permettent de connecter une multitude d’équipement et périphériques: LED, transistor, radio, cerveeau, afficheur lcd, dalle tactile, … Le schéma suivant détail l’utilisation de chacun des pins. La première chose à voir est la numérotation des ports GPIO. On note donc qu’il y a 2 pins servant à l’alimentation électrique (en 3.3V et en 5V) et un pin servant à la masse (en noir sur le schéma). Les pins en blanc ne doivent JAMAIS être utilisé. Les pins en vert sont les ports GPIO utilisables. Vous allez me dire que c’est dommage que seuls 8 ports GPIO soient utilisable directement.
[Résolu] Lancer TightVNC au démarrage Bonjour,J'ai installé TightVNC en suivant le tuto de chris57100 : ... y-via-vnc/ L'installation est OK, TightVNC fonctionne, mais impossible de le lancer au démarrage via la méthode du tuto...(J'ai d'ailleurs laissé un commentaire sur le blog.) En cherchant un peu j'ai trouvé une autre méthode pour le lancer au démarrage : Editer : sudo nano /etc/rc.localAjouter avant exit 0 : /usr/bin/sudo -u pi tightvncserver Ça fonctionne, mais par défaut la session VNC est lancé sur le port 1.Or, je voudrais la lancer sur le port 7 (par exemple). N'ayant pas trouver comment fonctionne le fichier de config par défaut de TightVNC (viewtopic.php? J'ai donc créé un script dans /etc/init.d dans lequel j'ai mis exactement ceci : Code: Select all #! J'ai ensuite défini les droits 755 sur le script.Problème, la commande "service MonScript start" me renvoi une erreur : vncserver: The HOME environment variable is not set.
FR Base Selon wikipedia, le Raspberry Pi est un ordinateur à processeur ARM conçu par l'inventeur de jeux David Braben, dans le cadre de sa fondation Raspberry Pi. L'ordinateur a la taille d'une carte de crédit, il permet l'exécution de plusieurs variantes du système d'exploitation libre GNU/Linux et des logiciels compatibles. Il est fourni nu (carte mère seule, sans boîtier, alimentation, clavier, souris ni écran) dans l'objectif de diminuer les coûts et de permettre l'utilisation de matériel de récupération. Cet ordinateur est destiné à encourager l'apprentissage de la programmation informatique. La webcam Bonjour à tous, Dans ce tuto, je vais vous expliquer comment installer la webcam afin que vous puissiez avoir une image à distance. Vous avez donc besoin d’une caméra (compatible avec le Raspberry Pi voici le lien de vérification. Si vous prenez un modèle non inscrit dans la liste, je ne garanti pas que cela fonctionne). sudo apt-get install guvcview Une fois installé, vous branchez la webcam sur un port USB (ou sur le hub USB, il se peut que certaines webcam requièrent plus de puissance). guvcview Vous pouvez rajouter les arguments que vous souhaitez. guvcview --help mais ils ne sont pas vraiment nécessaire puisque une interface graphique est proposée dans l’application. Like this: J'aime chargement…
Configuring I2C | Adafruit's Raspberry Pi Lesson 4. GPIO Setup The I2C bus allows multiple devices to be connected to your Raspberry Pi, each with a unique address, that can often be set by changing jumper settings on the module. It is very useful to be able to see which devices are connected to your Pi as a way of making sure everything is working. To do this, it is worth running the following commands in the Terminal to install the i2c-tools utility. sudo apt-get install python-smbus sudo apt-get install i2c-tools sudo apt-get install python-smbussudo apt-get install i2c-tools Run sudo raspi-config and follow the prompts to install i2c support for the ARM core and linux kernel Then reboot! We also recommend going through the steps below to manually check everything was added by raspi-config! If you are using Occidentalis, then your Pi is ready to go with I2C as far as enabling the hardware goes. sudo nano /etc/modules sudo nano /etc/modules and add these two lines to the end of the file: i2c-bcm2708 i2c-dev i2c-bcm2708 i2c-dev sudo reboot
prez PoBot Accueil > Robopedia > Constituants > Les ordinateurs embarqués > La carte Raspberry PI Attendue depuis de nombreuses années, la solution ARM / Linux à très bas coût est finalement disponible. Raspberry Pi révision B version 2012 La carte Raspberry Pi suscite de nombreux espoirs et de grandes illusions... Elle permet d’avoir accès à un environnement GNU/Linux bénéficiant d’un grand choix de langages de programmation et de logiciels existants, adaptés aussi bien à l’apprentissage de la micro-informatique (Python) qu’au développement d’algorithmes de vision pour nos robots (OpenCV). Nous vous proposons plus de cinquante articles pour bien débuter tant dans l’utilisation du matériel que dans le développement de logiciels embarqués, et découvrir tout ce que nous avons pu réaliser avec cette carte depuis son apparition.
Comment attacher votre Raspberry Pi avec votre iPhone 5 | DaveConroy.com Posted by dconroy on Jul 3, 2013 in How To's | 26 comments | 51,826 views If you have been reading my blog lately you know that I have done a lot of projects involving Raspberry Pi‘s, the $35 dollar credit card sized Linux computer. Because of its small size, I recently started of thinking of projects that would allow me to be mobile with the Pi. That led me to this post. There are plenty of resources online about tethering the iPhone 5 with the graphical interface, but I wanted to be able ‘hotswap’ my Raspberry Pi’s Internet connection without command line, and without the graphical interface. Plug and play, essentially. I was able to get this working last night using Raspian (a free operating system based on Debian optimized for the Raspberry Pi hardware) and a few scripts. Prerequisites Make sure your iPhone is disconnected and proceed to install the following iPhone and file system utilities. If you have a standard installation, you should see two interfaces, eth0 and lo. Command Line #!
Rpi : Configurer un réseau Wifi WPA2 | Zescientist Pouvoir gérer son Raspberry Pi à distance c’est bien, mais le faire sans avoir à se câbler via un câble réseau, c’est encore mieux! (Et c’est plus WAF aussi) Nous allons donc voir comment lui installer un petit dongle USB Wifi. C’est parti! Le choix de la clé : Première étape et pas la moindre, il faut choisir le dongle qui viendra s’interfacer sur notre machine. Raspberry Pi + dongle USB Wifi Hercules (port du bas) Vérification de la compatibilité du dongle : Après avoir branché le dongle sur le Raspberry Pi, on utilise la commande lsusb pour vérifier si celui-ci est bien reconnu. pi@Rpi ~ $ lsusb Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. Le périphérique est bien identifié et affiché sur la dernière ligne, cependant, pour obtenir plus d’informations, notamment sur la disposition d’un driver, on utilisera la commande dmesg Modifications des fichiers de configuration : J’ai mis en noir la partie à recopier, sachant que l’adresse IP est à adapter en fonction de vos besoins.
RPi SD cards - eLinux.org SD cards The SD card is a key part of the Raspberry Pi; it provides the initial storage for the Operating System and files. Storage can be extended through many types of USB connected peripherals. When the Raspberry Pi is 'switched on', i.e. connected to a power supply, a special piece of code called the bootloader is executed, which reads more special code from the SD card that is used to start up the Raspberry Pi. The SD card must be formatted, or written to, in a special way that means the Raspberry Pi can read the data it needs to start properly. One advantage to using an SD card like this is that you can have several SD cards, each with a different operating system, or a different purpose. Which SD card? SD cards come in three physical sizes (see picture). SD cards come in a range of storage sizes. There are other properties of SD cards that are not covered here. Other SD card content See the following links for other information: Preinstalled SD cards Verification Is this reliable?
Raspberry PI - Tutoriel pour installer et configurer un système sur une carte SD - www.octetmalin.net Linux AstucesRaspberry PI Tutoriel pour installer et configurer un système sur une carte SD Pour : Linux Ce tutoriel à pour but de montrer comment on installe un système Debian de type ARM sur une carte SD depuis un PC sous Linux. Sommaire 1- Accessoire nécessaire pour le Raspberry PI 2- Installation du système sur une carte SD 3- Configuration du système a- 1er démarrage (Menu raspi-config) b- 1ère connexion c- Configuration diverse 4- Comment arrêt ou redémarrer le Raspberry Pi en ligne de commande 5- Problème de résolution d'écran 6- Pas de son, aucune carte audio de détecté 7- Protection contre les surchauffes 8- Afficher la température du Raspberry Pi 1- Accessoire nécessaire pour le Raspberry PI Voici mon Raspberry PI grandeur réel. Voici une liste d'élément qui vous sera nécessaire pour utiliser votre Raspberry Pi: Une carte SD d'une capacité minimum 8 Go (4Go passe mais devient vite limite après l'installation de logiciel et l'ajout de données). Décomprésser le fichier: fdisk -l ... Ou
Réinitialisation du mot de passe root de pi directement sur la carte SD Réinitialisation du mot de passe root de pi directement sur la carte SD. Distribution de travail : Kubuntu 9.10 1) Créer un répertoire de montage : [~] ➔ sudo mkdir /media/raspi 2) Insérer la carte mémoire dans l’ordinateur 3) Vérification des partitions détectés : [~] ➔ sudo fdisk -l ... 4) Monter la partition root / de la carte sur /media/raspi [~] ➔ sudo mount /dev/mmcblk0p2 /media/raspi 5) Vérification : [~] ➔ ls -l /media/raspi/ total 92 drwxr-xr-x 2 root root 4096 2013-12-08 16:13 bin drwxr-xr-x 2 root root 4096 2013-09-25 22:26 boot ... drwxr-xr-x 10 root root 4096 2013-09-25 22:11 usr drwxr-xr-x 12 root root 4096 2013-12-08 14:38 var 6) Modifier le fichier des mots de passe : Ouvrir : Chercher : pi:$6$fJHBYcJu$B0Pr.f44HxZWcibfqsp6UtzRLo4VrsVlhLE.IPLFtA1oD5lGOWTiaUMzRcZfyHP7YommFM/YBL8B3pMuT/3bZ0:16047:0:99999:7::: Remplacer par : pi:$6$G51puwbE$iT/ijeT8KDhgmYFTeKfQBbCox.xz6yj736aPe7q8CYEVUTNxqz.g4jlag8osuwChqRc2ReoKNVukibU2Xg0ol/:15912:0:99999:7::: 7) Démonter la carte : 8) Retirer la carte.
JM programming debutant Want to learn how to write some apps for the Raspberry Pi? Today I’m going to kick off a new series of tutorials related to the Raspberry Pi and programming. This is a series that will be aimed at beginners, but seasoned programmers may want to take a look as well. The Raspberry Pi was created for education, tinkering and bringing technology to the far parts of the world. This is a mission I firmly stand behind, so I’m doing my part to throw some new stuff out there to get people excited about becoming a programmer with this awesome device. Why Python? Python is arguably the biggest programming language on the Pi right now, for good reason. Tools we’ll be using We are going to be using Python and IDLE for our first part of the tutorials, and these are already installed and present if you’re using the Raspian image. This is our Python console and editor. Let’s get started! Let’s get comfortable with the Python environment. 1. As you can see, it outputs the answer. and you’ll see 22. 2.
Assigning Static Ip Address to Ethernet and WLAN - Hosted on Simon's Raspberry Pi Assigning a static address would make managing the systems easy. Edit /etc/network/interfaces sudo nano /etc/network/interfaces Change the entries as below, auto lo iface lo inet loopback allow-hotplug wlan0 iface wlan0 inet manual wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf auto wlan0 iface wlan0 inet static address 192.168.1.40 gateway 192.168.1.1 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 auto eth0 iface eth0 inet static address 192.168.1.40 gateway 192.168.1.1 dns-nameservers 8.8.8.8 8.8.4.4 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 Also we need to edit /etc/wpa_supplicant/wpa_supplicant.conf to configure the WLAN athentication settings. sudo nano /etc/wpa_supplicant/wpa_supplicant.conf Change the values as below, ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="YOURWLANSSID" key_mgmt=NONE auth_alg=OPEN wep_key0=YOURWEPKEY } Reboot the machine. sudo reboot
Les raccourcis clavier dans Ubuntu Aujourd’hui je me suis dit qu’il fallait me faire un petit pense bête des différents raccourcis d’Ubuntu parce qu’à chaque fois je ne m’en rappelle pas. Si ça me sert à moi, cela vous servira également…. N’hésitez pas à me faire part de raccourcis-de-la-mort-ki-tu dans vos commentaires, je les rajouterais à la liste (sachant qu’elle n’est pas exhaustive, loin de là). Raccourcis Généraux Ctrl + A = Tout sélectionner (truc de dingue)Ctrl + C = Copier (trop ouf)Ctrl + V = Coller (en en plus ça colle !) Raccourcis Gnome Ctrl + Alt + F1 = Premier terminalCtrl + Alt + F2(F3)(F4)(F5)(F6) = Et les différents TerminauxCtrl + Alt + F7 = Revenir à sa session XCtrl + Alt + Backspace = Redémarre GNOMEAlt + Tab = Passer d’une appli à une autre Ctrl + Alt + L = Verrouiller la session (je dois l’utiliser au moins 20 fois par jour celui là)Alt + F1 = Ouvre le Menu Apllication (super intéressant)Alt + F2 = Ouvre le menu « Exécuter »Alt + F4 = Ferme la fenêtre (je te dis de la fermer, j’ai froid!) WordPress: