Différences entre versions de « Rasp-Os-Occidentalis-v0.1 »

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche
Ligne 2 : Ligne 2 :
  
 
{{traduction}}
 
{{traduction}}
 +
 +
== Limite de traduction ==
  
 
{{ambox | text = Nous n'allons pas traduire les notes d'installation puisque la version 0.2 contient ces informations.<br />Nous allons uniquement nous concentrer sur les caractéristiques spécifiques de la version 0.1. }}
 
{{ambox | text = Nous n'allons pas traduire les notes d'installation puisque la version 0.2 contient ces informations.<br />Nous allons uniquement nous concentrer sur les caractéristiques spécifiques de la version 0.1. }}

Version du 20 février 2013 à 12:57

Limite de traduction

Support I2C

I2C support is on SDA and SCL pins. To test, connect any I2C device to power, ground, SDA and SCL. Then run i2cdetect -y 0 (as root) to detect which addresses are on the bus

For more ideas, check out this post (by the most awesome cboot) and others on the Raspberry Pi forums

      • GRAS ***

Our ***LINK*** BMP085, ***LINK*** MCP4725, ***LINK*** Servo Driver, and ***LINK*** 7-segment breakout tutorials cover using I2C via Python on the Pi - so please check those out and read the code examples for I2C interfacing ideas!

      • GRAS ***

SPI Support

SPI support is on the CLK/MOSI/MISO/CS0/CS1 pins. To test, connect your logic analyser/scope to the pins and run echo "testtext" > /dev/spidev0.0 to send some dummy data to the SPI port. You can simply read/write the /dev/spidev files to read/write from SPI

      • GRAS***

Our Light Painting tutorial uses the hardware SPI system to write to digital LED strip, ***LINK MCP3008*** we also have a 'bitbanging' software SPI tutorial here if you need such a thing

      • GRAS***

One Wire Support

One wire is most commonly used for DS18B20 temp sensors. The Pi does not have 'hardware' 1-wire support but it can bitbang it with some success. Connect a DS18B20 with VCC to 3V, ground to ground and Data to GPIO #4. Then connect a 4.7K resistor from Data to VCC.

Then run as root: modprobe w1-gpio and then modprobe w1-therm to attach the temperature submodule. Then you can run cat /sys/bus/w1/devices/28-*/w1_slave to read the temperature data from the bus

The first line has the CRC, if its "NO" then the data is corrupted. If you get a good CRC check, the second line has t=temperature in 1/1000 of a degree Centigrade. For example, below, the temperature is 24.5°C

Since 1-wire is bitbanged, its flakier than SPI or I2C. ***LINK*** We have a short tutorial on using a DS18B20 sensor (http://learn.adafruit.com/adafruits-raspberry-pi-lesson-11-ds18b20-temperature-sensing)

Occidentals-1wire.jpg

Wifi Support

To DO

Bonjour Support

Bonjour is what Apple uses to make it easier to find new devices on a LAN. Instead of having to look up the IP address, there's a local name. This distro uses raspberrypi.local by default. All Apple machines have Bonjour servers. If you have ever installed iTunes, it comes with it. Other Windows users can get it from here - its called the print server but its what you want

Test by trying to ping raspberrypi.local when the Pi is booted and connected to Ethernet (or WiFi once you have configured WiFi)

sshd on Boot

This image has sshd on boot - that means you can immediately ssh in using raspberrypi.local! The ssh keys are generated on boot but since the user/pass is simply pi/raspberry you should not put this on an accessible network until you've changed the password


Source: [1]

Traduit avec l'autorisation d'AdaFruit Industries - Translated with the permission from Adafruit Industries - www.adafruit.com

Toute référence, mention ou extrait de cette traduction doit être explicitement accompagné du texte suivant : «  Traduction par MCHobby (www.MCHobby.be) - Vente de kit et composants » avec un lien vers la source (donc cette page) et ce quelque soit le média utilisé.

L'utilisation commercial de la traduction (texte) et/ou réalisation, même partielle, pourrait être soumis à redevance. Dans tous les cas de figures, vous devez également obtenir l'accord du(des) détenteur initial des droits. Celui de MC Hobby s'arrêtant au travail de traduction proprement dit.