background preloader

Beginners - Rasberry Pi

Beginners - Rasberry Pi
Back to the Hub Getting Started: Buying Guide - for advice on buying the Raspberry Pi. SD Card Setup - for information on how to prepare the SD Card used to boot your Raspberry Pi. Basic Setup - for help with buying / selecting other hardware and setting it up. Beginners Guide - you are up and running, now what can you do? Advanced Setup - for more extensive information on setting up. Trouble Shooting - some things to check if things don't work as expected. There is some restructuring going on , we are sorry for the inconvenience. Any easy question to ask, but a very difficult one to answer! If you are looking for any information related to SD Cards and setup look here If you need to get a RPi, the see the Buying Guide. References needed (idea for new section Living Without RPi, which can guide users or link to info to users who haven't got RPis) Link to emulation builds or live linux cds setup for beginners (RacyPy2 for example) For more information about Linux see Wikipedia sudo raspi-config Related:  RaspberryPi

Tasks - Rasberry Pi | eLinux.org Back to the Hub. Community Pages: Tutorials - a list of tutorials. Learn by doing. Guides - a list of informative guides. Projects - a list of community projects. Tasks - for advanced users to collaborate on software tasks. Datasheets - a frambozenier.org documentation project. Education - a place to share your group's project and find useful learning sites. Community - links to the community elsewhere on the web. Games - all kinds of computer games. About This page lists key functionality missing from Raspberry Pi Foundation's ultra-low-cost (~15UKP or 25USD) Linux computer for teaching computer programming to children, and encourages the community to provide a solution. The Raspberry Pi Foundation is a UK registered charity (Registration Number 1129409) which exists to promote the study of computer science and related topics, especially at school level, and to put the fun back into learning computing. It is intended that these tasks will be implemented by the Raspberry Pi community. mkcard.sh

Enregistrer des objets dans des fichiers - Python Dans beaucoup de langages de haut niveau, on peut enregistrer ses objets dans un fichier. Python ne fait pas exception. Grâce au module pickle que nous allons découvrir, on peut enregistrer n'importe quel objet et le récupérer par la suite, au prochain lancement du programme, par exemple. Enregistrer un objet dans un fichier Il nous faut naturellement d'abord importer le module pickle. On va ensuite utiliser deux classes incluses dans ce module : la classe Pickler et la classe Unpickler. C'est la première qui nous intéresse dans cette section. Pour créer notre objet Pickler, nous allons l'appeler en passant en paramètre le fichier dans lequel nous allons enregistrer notre objet. 1>>> with open('donnees', 'wb') as fichier: 2... mon_pickler = pickle.Pickler(fichier) 3... # enregistrement ... Quand nous allons enregistrer nos objets, ce sera dans le fichier donnees. Notez le mode d'ouverture : on ouvre le fichier donnees en mode d'écriture binaire. Bon. 1>>> score = { 2... 3... 4... 5... En résumé

Rasberry Pi | eLinux.org Notice: The Raspberry Pi Wiki pages on this site is collaborative work - the Raspberry Pi Foundation is not responsible for content on these pages. Now shipping to customers See the Buying Guide on how to order one, or visit the Raspberry Pi Foundation Home Page About The Raspberry Pi production board (model B Rev 2.0) 3D CAD Model of the Raspberry Pi 3 Model B (Download) The Raspberry Pi (short: RPi or RasPi) is an ultra-low-cost ($20-$35) credit-card sized Linux computer which was conceived with the primary goal of teaching computer programming to children. Raspberry Pi is manufactured and sold in partnership with the worldwide industrial distributors Premier Farnell/Element 14 and RS Components, and the Chinese distributor Egoman Technology Corp[1]. You can get the latest news from the Foundation Home Page, the Twitter Feed or in the forums. Products are RoHS, CE, FCC, CTick, CSA and WEEE compliant[2]. History Getting Started Resources Books Education Material Community About the RPi Wiki

Raspberry pi loves Sensors and LEDs make sure the tools are installed... to test if the tool are installed run the following command..sudo i2cdetect -y 0 this will scan all devices connected to the I2C bus. it should look like the pic below. if you see that i2ctools are not installed run the following comand sudo apt-get install i2c-tools also install sudo apt-get install python-smbus sudo apt-get install python-pip sudo pip install rpi.gpio sudo /home/pi/Desktop wget -O geekman-python-eeml.tar.gz tar zxvf geekman-python-eeml.tar.gz cd geekman-python-eeml* sudo python setup.py install note down the address of the I2C device that you have connected. in this case i have connected a temp. sensor PMODTEMP2 from digilent.we use the sumbus function for I2C communcation. Hardware Basic Setup - Rasberry Pi | eLinux.org Back to the Hub Getting Started: Buying Guide - for advice on buying the Raspberry Pi. SD Card Setup - for information on how to prepare the SD Card used to boot your Raspberry Pi. Basic Setup - for help with buying / selecting other hardware and setting it up. Beginners Guide - you are up and running, now what can you do? Advanced Setup - for more extensive information on setting up. Trouble Shooting - some things to check if things don't work as expected. You may have decided to buy a Raspberry Pi because you think it is great, it helps if you have an idea of what you want to do with it. The Raspberry Pi can be used in the conventional computer configuration, with a keyboard, mouse and display, or in a "headless" configuration where it is available on a network and is controlled from another computer on that network. IMPORTANT For USB devices other than a mouse and a simple wired keyboard (for USB devices drawing more than 100mA) a powered USB hub is strongly recommended. Power Supply Display

COSM Account and Feed | Send Raspberry Pi Data to COSM COSM (used to be Pachube) helps connect little devices like the raspberry pi to the internet. You will need to do the following to use COSM.Setup a AccountCreate a FeedSave the API_KEYSave the FEED ID You will need to create a COSM account. Click on the blue "Get Started" circle to create a new account. Click the blue plus to add a feed. Select Arduino Give your new feed a title and tags. Title: "Raspberry Pi Temperature" (or whatever you like)Tags: raspberry pi, temperature, adc (or make up your own) Select the "Create" button. You need to extract the API_KEY and FEEDID from the code sample that COSM provides. In this example the API_KEY is: 5RNOO3ShYJxYiq2V2sgSRtz3112SAKxFQjNDQmNXc0RScz0gThe FEEDID is: 68872 Do not use those numbers, use your own!

Expansion Boards - Rasberry Pi | eLinux.org 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 On the Raspberry Pi, there are several connections which can be used for expansion: The Rpi GPIO (General Purpose Input/Output) pins are exposed, that means that expansion boards are able to talk directly to the CPU. Expansion boards by functions Power Supply and Control See also Comparison of power supply & management hardware. BattBorg BattBorg is a power converter for your Raspberry Pi which allows you to power the Raspberry Pi off batteries. Meltwater's Switched Mode Power Supply Kit Pi Supply Switch Power Pi RemotePi Board

I2C Installation for Raspberry Pi – Step by Step Guide | SK Pang Electronics Ltd This is a step by step guide on installation I2C driver for the Raspberry Pi. It is for the Raspbian image. Raspberry Pi Starter Kits Make sure your Raspberry Pi is connected to the internet when installing the drivers. The new Raspbian distro already have the I2C driver installed but they are disabled by default. sudo nano /etc/modprobe.d/raspi-blacklist.conf then add a # on the 3rd line. Press CTRL X then y to save and exit. Next edit the modules file by: sudo nano /etc/modules Add i2c-dev to a new line. Now install the i2c-tools package by: sudo apt-get install i2c-tools If you get a 404 error do an update first: sudo apt-get update then run the install the i2c-tools again. Note : The installation could take a few minutes to do, depend on how busy the server is. Now add a new user to the i2c group: sudo adduser pi i2c Reboot the machine by: sudo shutdown -r now After the reboot test to see any device connected by: sudo i2cdetect -y 0 If your board is the Rev 2 type this: sudo i2cdetect -y 1 .

Low-level peripherals - Rasberry Pi | eLinux.org 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:

Casting Python integers into signed 32-bit equivalent When implementing bit-twiddling routines in C/C++, one frequently takes for granted the implicit convertibility between signed and unsigned values of the same bit pattern and bitwidth. For example, 0xFFFFFFFF, when cast to a signed 32-bit integer will return -1. In Python however, all integers are signed and when a positive integer exceeds the maximum possible 32-bit signed value, 2147483647, it is automatically promoted to a long, e.g. 2147483648L. The following routine will take any integer value up to 0xFFFFFFFF, treat it like it had the unsigned 32-bit integer bit pattern and return the equivalent signed twos-complement integer value much like the corresponding cast in C would. The return value is guaranteed to be <type 'int'> and not <type 'long'>. One application for this is in IronPython when calling .NET Framework APIs which want an Int32 for which you want to express the value as an unsigned 32-bit integer literal (e.g. color + alpha values - 0xRRGGBBAA).

Projects - Rasberry Pi | eLinux.org Back to the Hub. Community Pages: Tutorials - a list of tutorials. Guides - a list of informative guides. Projects - a list of community projects. Tasks - for advanced users to collaborate on software tasks. Datasheets - a frambozenier.org documentation project. Education - a place to share your group's project and find useful learning sites. Community - links to the community elsewhere on the web. Games - all kinds of computer games. Introduction This page contains a set of ongoing projects. The Raspberry Pi Forum has a list of Project Ideas & Links, to help people get started. Please add links to your projects (and ones you find interesting). Fill in each section: Project Title (as a link to the project webpage or connected wiki page) Project Description (including any additional links or information Skill Level/Ages it is aimed at (Any/Beginner/Intermediate/Advanced) Tags (Keywords related to the project, i.e. Community Project List

Related: