background preloader

Yoannheymann

Facebook Twitter

Yoann Heymann

Mon appartement Domotique. Jamie Jackson | Tinkering with Physical Computing. Raspberry Pi - Utiliser un capteur de température DS18B20. Fun with JavaFX on Raspberry Pi again... Hi there,Long time no post...I know...but today it's time for another blogpost. This time it's about a little lcd display for the Raspberry Pi that I've found on the web.

I really like the embedded computing scene with all it's nice little projects that solve little problems but what I don't like is all the loose wires and breadboards lying around. The reason for that is that it's really hard to take this stuff with you to conferences and show use them for demos. This stuff is just to fragile and I really don't want to take a soldering iron with me to fix problems before my conference session :)Long story short...I like everything that is small, robust and where I don't see many cables.With this on my mind I'm skimming the web from time to time searching for new gadgets that might be useful and in the beginning of last week I've found the following little lcd display The really nice thing about that display is it's size and that you can plug it directly on the Raspberry Pi.

Raspberry Pi 1- Wire Digital Thermometer Sensor. While searching for a simple way to measure temperature using my Raspberry Pi I came across the DS18B20 1-wire digital temperature sensor. This promised an accurate way of measuring temperature with a few wires and almost no external components. The device only cost a few pounds and it seemed too good to be true … So I bought one. Within a few minutes I was measuring the temperature with it. It is so simple to use and the perfect starting point for creating a Raspberry Pi based temperature data logger.

The diagram on the right shows the DS18B20 device. It has three pins and comes in a TO-92 package which means it looks similar to other devices you may have used such as transistors. Pin 1 is Ground. In my testing I didn’t have one of these so I used 2 x 2.2Kohm resistors in series. I used a small piece of breadboard and some jumper cables to connect it to the GPIO header on my Raspberry Pi. DS18B20 Temperature Sensor Pin 1 was connected to P1-06 (Ground) Pin 2 was connected to P1-07 (GPIO4) SB-Projects: Projects: Raspberry Pi. Temperature Measurements When you're backing a raspberry pie it is very important to keep a close eye on the temperature. This page explains some ways to measure the temperature with your Raspberry Pi. It won't show all possibilities though. I will stick to the easiest ways, reading directly from digital sensors, so we don't have to worry about Analog to Digital conversion or calibrating the sensors. Core Temperature By far the easiest temperature to measure is the internal CPU core temperature.

We don't need any extra hardware to do this. Vcgencmd measure_temp The temperature is shown in a nicely human readable way in degrees Celsius, like: temp=40.1'C The harder you make Raspberry Pi to work, the warmer it gets. 1-Wire Thermometers Dallas Semiconductors, now part of Maxim Integrated, has some very nice thermometer chips in their DS1820 series. In the diagram below you see how to connect one or more thermometers to the Raspberry Pi. Warning: Don't use the DS18x20-P versions! w1-gpio w1-therm. RFID and Raspberry PI. My first blog about some hardware hacking I am looking at, this article describes connecting the SainSmart RFID-RC522 module with the Raspberry PI.

It refers to work that others have done, please see the references at the end of the blog for the sources of information I have used. However by collecting together these sources and my own additions, this will help others. The SainSmart RFID-RC522 module works with the Mifare RFID tags and uses the RC522 chip. SainSmart have provided a module that can be used as a RFID Reader Card Proximity Module. The module uses the SPI bus to communicate with a controller. The Serial Peripheral Interface bus (SPI) bus is a synchronous serial data link which the Raspberry PI supports through its GPIO, the PI supports two slave devices using the CE (Chip enable) pins. Enable the SPI on the Raspberry PI sudo vi /etc/modprobe.d/raspi-blacklist.conf Add '#' in front of the line spi-bcm2708 to comment it out of the blacklist.

Connection Diagram SPI Code Resources. Ajouter un bouton d'arrêt. Si vous avez un Raspberry dans un coin, difficile d’accès et encore plus pour y brancher un écran, vous devez pouvoir l’arrêter proprement sans risque d’endommager le système de fichier. Voici une petite solution simple et peu couteuse. Le bouton est un composant simple et peu cher. Du coup il est vraiment facile à mettre en place et à lier à votre Raspberry. Le montage en place, il faut passer à la partie logiciel. Avec le bouton, j’ai choisi d’ajouter une LED pour indiquer quand le script est prêt. Vous pouvez désactiver le script qui tourne en arrière plan en arrêtant le service de manière classique. Voici donc le montage avec un bouton, une LED et une résistance 220Ω. Mettre à jour la distribution apt-get update && apt-get upgrade -yInstaller les paquets nécessaires apt-get install -y python python-rpi.gpioCréer le script Python qui va être utilisé lors de la séquence de boot.

Vous voilà prêt. RPi Low-level peripherals. Back to the Hub. Hardware & Peripherals: Hardware and Hardware History. Low-level Peripherals and Expansion Boards. Screens, Cases and Other Peripherals. Introduction In addition to the familiar USB, Ethernet and HDMI ports, the R-Pi offers lower-level interfaces intended to connect more directly with chips and subsystem modules. General Purpose Input/Output (GPIO) The layout of the Raspberry Pi P1 pin-header seen from the top, containing pins useable for general purpose I/O. General Purpose Input/Output (a.k.a. The Raspberry Pi allows peripherals and expansion boards (such as the Rpi Gertboard) to access the CPU by exposing the inputs and outputs. For further general information about GPIOs, see: the wikipedia article. The production Raspberry Pi board has a 26-pin 2.54 mm (100 mil)[1] expansion header, marked as P1, arranged in a 2x13 strip.

GPIO voltage levels are 3.3 V and are not 5 V tolerant. All the GPIO pins can be reconfigured to provide alternate functions, SPI, PWM, I²C and so. 7 – Module 4 – Ping de serveur. Si vous avez des serveurs, des NAS, ou n’importe quel autre type de machine dont vous souhaitez connaitre l’état (allumé/éteint, ou disponible/indisponible), ce type de module, encore une fois très simple, vous sera d’une grande utilité L’idée est d’afficher en vert les serveurs qui répondent correctement aux solicitations du module, et en rouge ceux qui ne répondent pas. Pour accentuer le caractère alarmant d’une machine qui ne répond pas, nous ajouterons une animation pour optenir ce résultat : Comme pour les autres modules, une seule <div> suffit. La balise reste vide, et sera « remplie » par la fonction JavaScript. Pour ce module, la feuille de style est à peine plus longue : Les noms des machines sont affichés dans un tableau <table> dont chaque case <td> peut soit utiliser le style « ping_up« , si la machine répond, soit « ping_down« si la machine ne répond pas.

La fonction javascript de ce module ne fait qu’une requête AJAX, et affiche le résultat dans la div de la page index.php : [TUTO] HomeDashScreen Réveil | kiwil's geek. Bonjour, aujourd'hui je vais faire un petit tuto sur la mise en place un dashboard qui est ni plus ni moins qu'une page web sur laquelle on va y mettre des module qui nous permette d'afficher se que l'ont souhaite, dans mon cas je suis partie sur un réveil donc la fonction principale pour moi était d'afficher l'heure :D et la météo. Pour se faire j'ai moi même suivi un tuto( qui est d’ailleurs très bien fait. Magdiblog.fr : Mon réveil : J'ai un peu remanier tout sa un peu à ma sauce car j'ai pris quelque raccourci car par exemple l'installation d'openbox que je ne fait pas car j'ai décidé de garder LXDE. C'est partie, installons dans un premier temps les composant utile à notre projet : apt-get install apache2 php5 php5-cli chromium xinit unclutter x11-xserver-utils -Trouver la ligne 1:2345:respawn:/sbin/getty 115200 tty1 1:2345:respawn:/bin/login -f pi tty1 /dev/tty1 2>&1 su -l pi -c startx @chromium -kiosk.

Lire un capteur ultrason HC-SR04 avec un Raspberry Pi. Bonjour à tous, Aujourd’hui, pour mon grand retour après les vacances, un tutos un peu plus orienté robotique. On va utiliser un capteur ultrason HC-SR04 avec notre raspberry chéri pou enregistrer une distance. Présentation du capteur Voici donc notre capteur : Le capteur de face Le capteur de dos Comme d’habitude, je vous conseille de commencer ce tutoriel en faisant un tour du coté de la fiche technique du capteur. On notera surtout les points suivants : Distance de lecture de 2 à 450cmTension d’entrée : 5VAngle de lecture : 15° maximumSignal d’initialisation : 10uSSignal de sortie : fonction de la distance Voila pour les données de base de ce petit bébé.

Le matériel Un raspberry Pi, évidemmentUn capteur ultrason HC-SR04 (données techniques ci dessus)Une planche de prototypage (ou breadboard)Quelques fils M/F et M/M1 résistance de 470 ohm1 résistance de 330 ohm Ces deux dernières résistances sont particulièrement importante ! En effet, la tension délivrée en sortie par ce capteur sera de 5V. . #! Framboise Pi. How To: Raspberry PI Web Cam Server | PingBin. The Raspberry PI is perfectly equipped to turn your USB based webcam into a fully functional IP webcam that you can have lots of fun with, from there you could use tools such as Python to make your project more unique, I’m having a go at counting passing traffic. If you’re wanting to something a bit more simple you could just have a webcam that can be accessed from anywhere with an internet connection, which is what you will end up with at the end of this guide.

Your shopping list… Raspberry Pi with an OS installedUSB Powered Hub – Amazon UK – Amazon USImportant; This one worked for me, however, it’s not worked for others, you will find this is the case with a lot of the powered USB hubs, research before buying.We need a hub because the camera’s draw more power than the Raspberry Pi can actually provide, you see the same with some keyboards and USB dongles.Web CamMicrosoft HD – Amazon UK – Amazon US 1. Get the software ready sudo apt-get update sudo apt-get upgrade 2. Lsusb .... 3. 4. 5. Installer une vidéosurveillance avec motion et une simple webcam : L'odyssée de Servus. Les fêtes de fin d’années sont passées, avec les nombreuses absences, les cambriolages sont fréquents. Sans empêcher les problèmes, une surveillance vidéo en notre absence permet au moins de savoir ce qui s’y passe.

C’est également un bon moyen de garder des traces de tous les mouvements détectés. Nous utiliserons ici le logiciel motion, qui enregistre des images à intervalle régulier lorsqu’un mouvement est détecté et permet une diffusion du flux vidéo via un mini serveur http. Cet article présentera comment exploiter motion pour recevoir par mail les images de tout mouvement repéré dans la zone de surveillance tout en ayant la possibilité de consulter le flux de la webcam via un accès sécurisé.

L’installation d’une vidéosurveillance implique quelques prérequis: Une webcam traînant au fond d’un tiroir. Pour obtenir toutes les images par mail à chaque détection de mouvement, il faut ajouter les éléments suivant: L’installation du paquet ‘sharutils’, pour l’usage de uuencode. Sudo motion. Comment transformer votre Raspberry Pi en serveur webcam ? | Épinglé. Vous n'utilisez pas votre Raspberry Pi en ce moment et vous souhaiteriez lui trouver un usage fonctionnel ?

Vous avez une vieille webcam dans un carton ? Alors je sais comment faire pour tirer parti de ces deux appareils : créer un serveur webcam à moindre coût. Que vous souhaitiez mettre en place une weathercam, ou un système de vidéo surveillance, le Rasperry Pi est parfaitement équipé pour transformer votre webcam USB en caméra IP accessible de n'importe où avec une connexion Internet. Pour cela, voici quatre méthodes plutôt simples à mettre en œuvre. Serveur webcam avec fswebcam fswebcam est le moyen le plus simple et rapide de capturer avec votre webcam des images uniques. . # sudo apt-get install fswebcam Il n'y a rien d'autre à faire, fswebcam est installé. La commande peut bien sûr être détaillée de paramètres personnalisés, par exemple : Ma première ligne de commande ressemblait à cela : C'est relativement "long" à taper et source d'erreur.

. # nano .fswebcam.conf Simple et efficace. Vidéo Surveillance avec Raspberry Pi | blueberry4pi. Raspberry PI, RPIDOM, Python & MySQL | Domotique. Cet article vous propose de mettre en place un collecteur Python de trame Téléinformation et d’envoyer l’information vers une base de données MySQL avec une carte Raspberry PI dotée d’une carte RPIDOM. La carte RPIDOM propose deux autres fonctionnalités comme l’horloge interne (RTC) et la gestion d’un bus 1-Wire facilement exploitable avec un serveur Owserver (OWFS). Pour rappel, les Raspberries PI n’ont pas d’horloge interne RTC (Real Time Clock), et sont donc incapable de conserver l’heure et la date (lorsque redémarré), s’ils n’ont pas de connexion internet disponible pour effectuer les mises à jours NTP (Network Time Protocol).

Raspberry PI, RPIDOM, Python & MySQL Pré-requis Avant de commencer la mise en place de la solution vous devrez réunir les éléments suivant : Spécifications La carte RPIDOM offre les fonctionnalités suivantes : Préparation de la SD du Raspberry Récupérer la dernière image officielle sur le site (fichier Wheezy Raspbian). Par : Diffuser une webcam à partir du Raspberry Pi (grace à motion) Comme je vous l'avais annoncé dans mon précédent article, mon objectif premier avec le Raspberry Pi était de mettre en place la diffusion d'une webcam pour surveiller mon bébé dans son lit (faire un visiophone du pauvre geek).

L'étape la plus longue a été les tests des différentes solutions et le choix du logiciel final. Une fois le logiciel choisi (motion), sa mise en place a été plutôt simple et rapide. Explications : I. Mon besoin était simple, diffuser une vidéo au moins sur mon réseau local afin de pouvoir surveiller mon bébé dans son lit. Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. J'ai commencé par tester une application ffserver couplée avec ffmpeg. II. L'application motion est packagée debian, donc comme j'utilise une distribution Raspbian, une simple ligne de commande suffit à l'installer : apt-get install motion III. Toute la configuration se fait dans un seul fichier : /etc/motion/motion.conf.

IV. Pour ma part, voici ce que j'ai fait : V. VI. Send SMS Using Gammu Command Line Tool. My teleco has provided Internet facility in which you can put data SIM card in a USB dongle and use Internet. Its call Ncell Connect. In neighboring country like India, some of them are called Reliance Netconnect+. In such data SIM card you can only use SMS and Internet. You can't make phone calls. Let us use awesome program called gammu. After pluging in the USB dongle open terminal and type: dmesg | grep tty This will tell you where your USB dongle is connected. Now run gammu-config to configure gammu. Press OK and now we are ready to run gammu. Your SMS are saved inside folders in you SIM card. To see the list of folders type: gammu sms getsmsfolder You need to note the folder number here. But if you want to get all SMS then run: gammu getallsms To delete all SMS from particular folder run: gammu deleteallsms folder-number To send SMS: echo "message" | gammu sendsms TEXT number You will see the following message indicating successful message send operation.

If you want break, press Ctrl+C... Skyduino - Le DIY à la française | Que serait le web sans bidouilleurs ! EXP TECH. Adafruit Industries, Unique & fun DIY electronics and kits. Vera: Alertes par SMS. Un script Python comme serveur SMS | Domotique. Evola. Envoyer des SMS depuis une clé 3G avec python et gammu - FlorianPaquet.com. Pi:comment-monitorer-son-raspberry. Ronanguilloux/temperature-pi. Installation de WebMatrix. Apache2. Bind9, un serveur DNS libre sous Linux » IDEALOGEEK. BIND9ServerHowto. Bind9. Vera3. Jetweb.free.fr/nabaztag_rpi/Tutoriel_OJN_RPi_v1-1.pdf. Installer_openjabnab - wiki openJabNab. Un serveur Nabaztag/tag maison avec le Raspberry Pi. Afficher le sujet - Tutoriels pour débutants pour programmer votre lapin. Rapsberry Pi. Framboise 314, le Raspberry Pi à la sauce française…. | Le Raspberry Pi, un ordinateur à 35€ ? Je demande à voir !

Sommaire : Raspberry PI & Arduino, domotique, robotique, et pleins de trucs en “ique” Accueil. Envoyer des SMS avec un Raspberry PI.