Questions tagged [raspberry-pi2]

RPI QUESTIONS MUST BE PROGRAMMING RELATED. The Raspberry Pi 2 is a quad-core, ARMv7 instruction set CPU with 1GB of RAM. See the related StackExchange site at https://raspberrypi.stackexchange.com. Also see the first edition's tag at https://stackoverflow.com/questions/tagged/raspberry-pi .

RPI QUESTIONS MUST BE PROGRAMMING RELATED. The Raspberry Pi model 2 is a budget computer that fits in your hand. It has 4 cores, 1GB of RAM, and runs ARMv7-based CPUs.

If the question is not programming related then it may be on-topic at Raspberry Pi Stack Exchange, Internet of Things Stack Exchange or Unix & Linux Stack Exchange.

1237 questions
67
votes
5 answers

Docker Access to Raspberry Pi GPIO Pins

When running Docker on the Raspberry Pi 2, how can we expose the GPIO pins to the Docker container?
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
38
votes
1 answer

GStreamer encountered a general stream error in Qt5 raspberry pi

I'm trying to play a video using QtMediaPlayer in Raspberry pi 2 B. The source code is as follows: QMediaPlayer *media; QVideoWidget *video; ... ... media = new QMediaPlayer(parent); video = new…
Myanju
  • 1,135
  • 1
  • 11
  • 23
29
votes
3 answers

How can I compile Rust code to run on a Raspberry Pi 2?

I recently acquired a Raspberry PI 2 and I want to run a Rust program on it. Is there a guide/instructions how to cross compile Rust programs on Raspberry PI 2? I've heard about running Rust on RPi or Arduino, although not recently. I want a Hello…
Daniel Fath
  • 16,453
  • 7
  • 47
  • 82
23
votes
1 answer

How to install Pip on compiled from source Python

I'm on a raspberry pi running the latest Debian. It comes with 2.7.3 by default but I bought it to run a large Flask home automation app which was all written on 2.7.9 and I want no problems later on ( I know it is a minor version but I am a…
CESCO
  • 7,305
  • 8
  • 51
  • 83
23
votes
2 answers

VideoCapture.open(0) won't recognize pi cam

I have been working with my Raspberry Pi 2B for a while now. Testing the Pi cam using raspistill works great but trying to use OpenCV functions such as VideoCapture.open(); won't work. trying the same command with a USB camera works just fine. I…
DMEM
  • 1,573
  • 8
  • 25
  • 43
22
votes
15 answers

OpenCV NoneType object has no attribute shape

Hello I'm working on Raspberry Pi with OpenCV. I want to try a tutorial which is ball tracking in link http://www.pyimagesearch.com/2015/09/14/ball-tracking-with-opencv/ But when I compile it, i get an error: 'NoneType' object has no attribute…
user3748265
  • 379
  • 1
  • 2
  • 7
22
votes
5 answers

Access GPIO (/sys/class/gpio) as non-root

The /sys/class/gpio can only be accessed as root by default. So I like that a new group gpio can use the files and directories under /sys/class/gpio. To achieve that I added the following lines to /etc/rc.local (I'm on Debian): sudo chown root:gpio…
TiMESPLiNTER
  • 5,741
  • 2
  • 28
  • 64
21
votes
2 answers

(Cross-)Compiling Swift for Raspberry PI

Swift is now Open Source. Did anyone tried compiling Swift for a Raspberry PI? I started to do, but my 8 GB SD card seems to be too small for it ;) Is it possible to cross compile it from Ubuntu?
Lupurus
  • 3,618
  • 2
  • 29
  • 59
19
votes
5 answers

Database replication on Raspberry Pi mesh network

Does anyone have a good suggestion as to what database I should use, to achieve replication across a variable number of targets? I have a mesh network of Raspberry Pi servers, each of which can contain a database. I want the contents of each…
18
votes
1 answer

How to access Network Share from Raspberry Pi running IoT Core in UWP app

I have a c# UWP app that I'm intending to run on a Raspberry PI with Windows 10 IoT Core. The problem I have is when I try to connect to a UNC share to copy some files. The network is just a home network with local user credentials, share is on…
Paul Charlton
  • 371
  • 2
  • 10
18
votes
3 answers

How to emulate the Raspberry Pi 2 on QEMU?

Some time ago I emulated the Raspberry Pi following this article, but this approach has several problems: It is very slow. The display solution is limited to 800x600. You cannot emulate more than 256mb ram. Furthermore there is no emulation for…
Phidelux
  • 2,043
  • 1
  • 32
  • 50
16
votes
6 answers

Installing node.js on raspberry pi 2

I have installed Raspbian on my Raspberry Pi 2 and now I am trying to install node.js on it, however I am hitting an issue. I followed the instructions and typed these commands into the terminal wget…
slim1801
  • 531
  • 3
  • 8
  • 19
16
votes
0 answers

Will the Raspberry Pi 2, running windows 10, be able to run the .NET Framework?

As a .NET dev, the new raspberry pi 2 and "Windows 10 IoT Core Insider" mix sounds extremely interesting. Will I be able to run .NET applications on it? Which .NET profile would it be able to support - the Micro Framework or the full Framework? I'm…
Choco Smith
  • 1,658
  • 18
  • 24
15
votes
5 answers

Adjust audio volume level with CLI omxplayer - Raspberry Pi

I have a bash script that plays .mp3 files on my Raspberry Pi via omxplayer. But can not control the local (earphone) audio volume with the GUI. Is there a command for the CLI that I can implement in the bash script? I have searched quite a bit, but…
Vandal
  • 903
  • 1
  • 14
  • 27
11
votes
4 answers

Can't install zbar

I am trying to use the qrtools module with Python 3.4.2 on my Raspberry Pi 2, however it cannot run as I don't have the zbar module installed. Trying pip-3.2 install zbar Gives the error message shown in the picture sudo pip-3.2 install…
Wicket_IV
  • 199
  • 1
  • 1
  • 10
1
2 3
82 83