background preloader

Bcm2835: C library for Broadcom BCM 2835 as used in Raspberry Pi

Bcm2835: C library for Broadcom BCM 2835 as used in Raspberry Pi
This is a C library for Raspberry Pi (RPi). It provides access to GPIO and other IO functions on the Broadcom BCM 2835 chip, allowing access to the GPIO pins on the 26 pin IDE plug on the RPi board so you can control and interface with various external devices. It provides functions for reading digital inputs and setting digital outputs, using SPI and I2C, and for accessing the system timers. Pin event detection is supported by polling (interrupts are not supported). It is C++ compatible, and installs as a header file and non-shared library on any Linux-based distro (but clearly is no use except on Raspberry Pi or another board with BCM 2835). The version of the package that this documentation refers to can be downloaded from You can find the latest version at Several example programs are provided. Based on data in and and You can also find online help and discussion at Please use that group for all questions and discussions on this topic. Running as root Installation cd bcm2835-1.xx . make

Related:  RaspberryConfiguraciónraspberrypiRasberry Pi

Monitoring with the Raspberry Pi As most of my Raspberry Pi cards are used headless - i.e. without a keyboard or monitor - I wanted to monitor what was happening remotely. In addition to monitoring the NTP Server operation, I've added general SNMP support (Simple Network Management Protocol) which has allow monitoring of the network I/O, disk space, CPU temperature and, with a little additional hardware, ambient temperature monitoring. Adding SNMP support for general remote monitoring RasPi-3 Based on: and sudo apt-get updatesudo apt-get install snmpd snmp # for the SNMP server and client software

Raspberry pi – Setting up auto-login and auto-loading the gui Home > How To, Raspberry pi, Technology > Raspberry pi – Setting up auto-login and auto-loading the gui Setting up Auto-Login In the GUI left click in the bottom left hand corner on the blue cross to display the options menu (Like the start button in windows) Go up to “other” and then scroll down the list until you get to “terminal” and left click You should now see the “terminal” window which is just like a cmd box in windows and enter the following command How to Run Raspberry Pi with No Monitor or Network I went to the 4th Milton Keynes Raspberry Jam on Sunday. Now the thing with Raspberry Jams, is that you never know whether there’s going to be enough monitors to go round (some don’t have any at all). Last time I got one, this time there were not many laid out. I expect I could have had one if I’d have asked, but there was no need.

Download & Install WiringPi is now maintained under GIT for ease of change tracking, however there is a Plan B if you’re unable to use GIT for whatever reasons (usually your firewall will be blocking you, so do check that first!) If you do not have GIT installed, then under any of the Debian releases (e.g. Raspbian), you can install it with: sudo apt-get install git-core If you get any errors here, make sure your Pi is up to date with the latest versions of Raspbian: sudo apt-get update sudo apt-get upgrade Installing SNMP onto a Raspberry Pi While researching DHCP problems, I noticed someone was discussing monitoring DHCP from SNMP. That left me wondering what the Raspberri Pi MIB looks like, so I decided to install SNMP and find out. If you are not familiar with SNMP, it is an extensive monitoring protocol. I once used it heavily to monitor network performance across hundreds of routers. To best make use of SNMP, you need a SNMP Console such as SNMPc. SNMPc is rather spendy these days, but there are free SNMP consoles as well – they just take more work (from what I’ve seen) to get running.

GPIO Library Update: 14th May, 2013 wiringPi version 2 has been released and now has its own website ( to look after it. Most of the documentation on the projects site has been copied over to it the new site, but there may still be 1 or 2 pages that are still missing. I’d encourage you to use the new site if possible where there will be a forum and wiki (when I get time to implement them!) WiringPi is an Arduino wiring-like library written in C and released under the GNU LGPLv3 license which is usable from C and C++ and many other languages with suitable wrappers (See below) You may be familiar with the Arduino… Briefly; Arduino is really two things; one is a hardware platform, the other software, and part of the software is a package called Wiring. Bought for Raspberry PI. The power-socket will accept a standard 12v transformer plug 5mmx 2.5 plug (or CCTV socket), but it does come with an additional male socket with open ended red/black wires to connect to a 12v supply power supply, although you would have to supply your own in-line 1amp holder and glass fuse. I used a 12v 2amp transformer I had from an old USB disk drive. The TV consumes 3 watts (250ma). The RPi does overlap the screen slighltly and the fonts are like some MS word at point 6. Computer Laboratory: Computer Lab Raspberry Pi Tutorials Welcome to the tutorials page. This is where we showcase projects and tutorials created by students during the summer vacation. Each year the Raspberry Pi Foundation supports a number of summer vacation research opportunities for undergraduates (from a range of departments) involving projects with the Raspberry Pi. More tutorials will appear over time, so please check back often. We'd also be very grateful for feedback on the tutorials, from "I got lost" to "there's a typo here" to "you need a picture of this here".

SNMP Monitoring Box #!/usr/bin/env python print "PiFace SNMP Monitor (c) 2013 by Chris <gridrun> Burri @ Total Optical Networks AG" # configurationtempalert = 40.0sendtrap = "/home/pi/piface/python/piface/"readtemp = "/home/pi/piface/python/piface/"msgdieselengaged = "Diesel engaged"msgdieseldisengaged = "Diesel disengaged"msgdieselfault = "Diesel fault"msgdieselclear = "Diesel fault cleared"msgmainsfault = "Mains power lost"msgmainsclear = "Mains power restored"msgac1fault = "A/C unit 1 fault"msgac1clear = "A/C unit 1 fault cleared"msgac2fault = "A/C unit 2 fault"msgac2clear = "A/C unit 2 fault cleared"msgtempalert = "Temperature alert"msgtempclear = "Temperature normal" # importsfrom time import sleepfrom subprocess import callimport timeimport threadingimport subprocessimport signalimport sysimport piface.pfio as pfio

s Raspberry Pi Lesson 11. DS18B20 Temperature Sensing @Raspberry_Pi #raspberrypi January 29, 2013 AT 8:28 am Adafruit’s Raspberry Pi Lesson 11. DS18B20 Temperature Sensing @ The Adafruit Learning System. The Occidentalis Linux distribution for Raspberry Pi (and Raspbian as of Dec 2012) includes support for the DS18B20 1-wire temperature sensor. 4.3" TFT LCD Color Car Reverse Rear View Monitor for DVD VCR Camera UK Stock Please read the full listing. By clicking Confirm bid you commit to buy this item from the seller if you are the winning bidder. You will enter a binding contract.

Computer Laboratory – Raspberry Pi: Baking Pi – Operating Systems Development This course has not yet been updated to work with the Raspberry Pi models B+ and A+. Some elements may not work, in particular the first few lessons about the LED. It has also not been updated for Raspberry Pi v2. Welcome to Baking Pi: Operating Systems Development! GPIO Zero A simple interface to everyday GPIO components used with Raspberry Pi. Created by Ben Nuttall of the Raspberry Pi Foundation, Dave Jones, and other contributors. Latest release The latest release is v0.9.0 beta 4 released on 25th October 2015. Owners of a Raspberry PI, what do you use it for? : AskReddit Why are comment scores hidden? Click to find out. The current delay is - 60 -- minutes Check out our Wiki page for the rules and other info here 1) You must post a clear and direct question, and only the question, in your title. Any context or clarification should be posted in the text box.