background preloader

Raspberry Pi with Node.js and Arduino - Doc’ Alex

Hardware | Light Painting with Raspberry Pi Interfacing Adafruit’s Digital Addressable RGB LED strip to the Raspberry Pi is super simple, requiring just a few connections between the board, strip and a DC power jack. The board’s MOSI pin connects to the DI pin on the LED strip, and SCLK connects to the CI pin. Instead of supplying power to the Raspberry Pi’s Micro USB connector, a 5 Volt DC power supply is required because the LED strip draws significantly more current than the USB input can provide. A 2 Amp power supply is sufficient for a 1 meter LED strip, while our larger 10 Amp supply can power up to 5 meters of LED strip (plus the Raspberry Pi board, in both situations). +5V and ground from the power supply connect to the 5V and GND pins on both the LED strip and the Raspberry Pi GPIO header. An initial prototype was assembled using a Pi Cobbler breakout kit. To make connections easy to make/break for setup and take down, we also used two JST 4-pin inline cables (plug and receptacle) and to attach and detach the LED strip.

Un dissipateur thermique pour le Raspberry Pi | Underground Portables Michael Dornish nous présente son dissipateur de chaleur pour le Rasperry Pi. Comme vous pouvez le constater sur la photo ci dessus, réalisé par Remy de Geektopia à l’aide d’une caméra thermique, le Raspberry Pi peu chauffer de manière assez conséquente. Les températures enregistrées par ce dernier montent à 65° par exemple pour le processeur lors de l’utilisation à 100% du composant. En usage normal la température du régulateur de tension, du processeur et des contrôleurs USB et Ethernet tournent autour de 50°. Ce n’est bien sûr pas suffisant pour se bruler, mais ce sont des températures tout de même plutôt élevées. C’est la qu’on voit que la framboise est vraiment un appareil pour bidouilleur, un problème, une idée, une solution. Prenons quelques mesures, par chance le dissipateur, n’est pas très haut et n’affectera pas la hauteur du mini ordinateur. Place aux découpes, un mini dissipateur pour chaque composants dégageant de la chaleur. Source

Raspberry Pi Un article de Wikipédia, l'encyclopédie libre. Le Raspberry Pi est un nano-ordinateur monocarte à processeur ARM conçu par le créateur de jeux vidéo David Braben, dans le cadre de sa fondation Raspberry Pi[2]. Cet ordinateur, qui a la taille d'une carte de crédit, est destiné à encourager l'apprentissage de la programmation informatique[2] ; il permet l'exécution de plusieurs variantes du système d'exploitation libre GNU/Linux et des logiciels compatibles. Son prix de vente était estimé à 25 $, soit 19,09 €, début mai 2011. Historique[modifier | modifier le code] Conception[modifier | modifier le code] Version alpha de la carte. En 2006, les premiers prototypes du Raspberry Pi sont développés sur des microcontrôleurs Atmel ATmega 644. L'objectif de la fondation est alors de proposer deux versions, l'une à 25 $ US et une deuxième à 35 $ US. Prototype[modifier | modifier le code] En octobre 2011, une version de RISC OS 5 tournant sur la carte est présentée. Différences avec le A[59] :

AirPi – AirPlay audio sur Raspberry (FR) | trouch.com mise à jour J’ai toujours voulu utiliser mon baladeur pour diffuser de la musique dans ma maison en utilisant le réseau. Quand AirPlay est sorti, j’était tout fou, mais le prix de la borne AirPort (99€) ou d’un AppleTV m’a un peu refroidi, même si j’adore mon iPhone et mon MacBook. Heureusement que Free a rapidement intégré shairport dans sa freebox revolution. Mais je ne me vois pas mettre la freebox dans la salle de bain Avec le RaspberryPi, la fondation m’a apporté une solution low cost, pour environ 30€ en recyclant quelques périphériques optionnels. Si on a besoin de la vidéo, le plus simple est d’utiliser RaspBMC. Installer Raspbian “wheezy” Le plus simple est de suivre les instructions officielles. Premier démarrage and login Pour se logger sur le Pi avec SSH, on a besoin de connaître son adresse IP. Si le DNS ne trouve rien, essayez de vous connecter à l’interface d’administration de votre routeur pour consulter les allocations DHCP. pi@raspberrypi:~$ sudo raspi-config

RaspControl - The Raspberry Pi Control Centre - TalkTech If you have a RaspberryPi one of the things you may like to do with it, is monitor what it is doing. You can do this with just a couple of scripts witten in python, or you can use a package called Raspcontrol. Raspcontrol is an application written in PHP and HTML that you can place onto your RaspberryPI and then access via any web browser. I have only been using this for a few days, but it is a nice and simple to use. There are one or two issues however. To get this onto your RaspberryPi just follow the instructions from the repository here : Out of the box, the software is checking for your connection over WiFi. If you use a wired connection like me, then you will need to modify one file to make this work. Find the file “_network.php” on my device this lives raspcontrol/app/_lib/classes Then edit this file by changing the line $dataThroughput = exec("ifconfig wlan0| grep RX\ bytes", $out); To read An example of the Raspcontrol dashboard Related In "Online"

Utiliser votre Arduino comme voltmètre Pour un projet utilisant des batteries lithium, j’ai besoin de savoir lorsque mes batteries sont chargées à moins de 4V. Mon projet étant sous Arduino Uno je me suis demandé s’il était possible d’utiliser l’équation de diviseur de tension pour me servir de mon Arduino comme d’un voltmètre. L’équation de diviseur de tension consiste en un circuit composé de deux résistances qui change une tension élevée (Vin) en une tension plus petite (Vout). Voilà comment cela se traduit en schéma électronique: Pour réaliser mon voltmètre avec mon Arduino Uno, j’ai réutilisé l’afficheur LCD branché sur 3 pins. Sur le schéma on voit que j’utilise: 5 résistances de 10K ohms en série (R1)2 résistances de 2.2K ohms en série (R2) R1 et R2 me permettent de tester des tensions pouvant atteindre 50Volts puisque si l’on applique la formule du diviseur de tension, une tension de 50V en entrée me donnera 4V en sortie. Pour calculer vos résistances R1 et R2, je vous conseille d’utiliser ce calculateur.

WebIOPi | trouch.com After 2 months of hard work on my free time, I’m glad to release WebIOPi 0.6, with new exciting features. Taking grade of Internet of Thing framework, it becomes the perfect swiss-knife to make connected things with the Raspberry Pi by providing consistent libraries and API. From Arduino-like scripts to a full UART/I2C/SPI support and CoAP transport, discover new functionalities : The new Server configuration file allows to load customs Python scripts for advanced configuration or computation. The included GPIO native library has been modified to allow Arduino-like syntax using digitalRead and digitalWrite functions. import webiopi GPIO = webiopi . Anyone should be able to use the included library without changing their habits and extend WebIOPi without worrying about the Server. WebIOPi now supports all buses available on the Pi, using full Python custom lightweight drivers, compatible with both Python 2.7 and Python 3.2 , including I2C, with no dependency ! Eric / trouch.

Pi-Python-Prepa De MCHobby Wiki. Introduction Raspberry PI se programme en Python. Python est un langage de programmation interprété à la fois simple mais aussi extrêmement puissant. Le système d'exploitation Wheezy Raspbian (dérivé de Debian) & Occidentalis (Wheezy Raspbian améliorée à l'AdaFruit) disposent déjà tout deux d'un environnement de programmation Python. Cependant, pour pouvoir exploiter pleinement le port GPIO de votre Raspberry, vous aurez besoin de de faire quelques mise-à-jours. La mise-à-jour et l'ajout de nouveaux paquets se fait à l'aide d'un terminal. Ouverture d'un terminal Un terminal est une session de type texte qui permet d'entrer des commandes au clavier. Pour démarrer un terminal, vous avez plusieurs possibilités. Environnement graphique Sur la plupart des installations Raspberry, l'environnement graphique est démarré automatiquement. Si vous êtes dans l'environnement graphique (généralement XCFE), vous disposez d'un émulateur terminal dans le menu "démarrer | Accessoires". En SSH

Arduino Ce projet va vous permettre de réaliser un oscilloscope minimaliste et d'expérimenter la communication série avec un autre logiciel que celui d'Arduino, en l'occurrence, Processing. Un oscilloscope permet de visualiser les variations d'une tension dans le temps, sous forme d'une courbe. Le principe de fonctionnement de ce projet est le suivant : L'Arduino mesure une tension sur une entrée analogique. Précautions L'oscilloscope ainsi réalisé ne sera capable de mesurer que des tensions comprises entre 0 et 5 V. Éléments nécessaires Montage électronique Comme expliqué ci-dessus, le montage se résume à deux fils connectés à l'Arduino, qui vont servir à mesurer un autre montage soumis à une tension variable. Première étape Copiez le programme suivant dans Arduino. /* Ce programme consiste simplement à mesurer l'entrée analogique 0, et à transmettre le résultat via une communication série. Deuxième étape Après avoir téléchargé et installé Processing, copiez le programme suivant dans Processing.

RPi Low-level peripherals Back to the Hub Hardware & Peripherals: Hardware - detailed information about the Raspberry Pi boards. Hardware History - guide to the Raspberry Pi models. Low-level Peripherals - using the GPIO and other connectors. Expansion Boards - GPIO plug-in boards providing additional functionality. Screens - attaching a screen to the Raspberry Pi. Cases - lots of nice cases to protect the Raspberry Pi. Other Peripherals - all sorts of peripherals used with the Raspberry Pi. Introduction In addition to the familiar USB, Ethernet and HDMI ports, the Raspberry Pi offers the ability to connect directly to a variety of electronic devices. Digital outputs: turn lights, motors, or other devices on or off Digital inputs: read an on or off state from a button, switch, or other sensor Communication with chips or modules using low-level protocols: SPI, I²C, or serial UART Connections are made using GPIO ("General Purpose Input/Output") pins. Note that no analogue input or output is available. Links Useful P2 pins:

XBMC for Raspberry Pi | Michael Gorven - cocooncrash This page describes how to install XBMC on a Raspberry Pi running Raspbian. You can either install packages on an existing Raspbian installation, or you can download a prebuilt image and flash it to an SD card. I've published a Debian archive containing packages for Kodi/XBMC and some dependencies which it requires. This can be setup on an existing Raspbian installation (including the foundation image). Installing The easiest way to install the package is to add my archive to your system. deb wheezy contrib and import the archive signing key: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 5243CDED Then update the package lists: sudo apt-get update You can then install it as you would with any other package, for example, with apt-get: sudo apt-get install kodi The user which you're going to run Kodi as needs to be a member of the following groups: audio video input dialout plugdev tty If the input group doesn't exist, you need to create it: Running

Related: