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 .

raspberry-pi2
Filter by
Sorted by
Tagged with
70 votes
5 answers
50k views

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's user avatar
  • 62.5k
38 votes
1 answer
3k views

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's user avatar
  • 1,135
30 votes
3 answers
9k views

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 ...
Daniel Fath's user avatar
  • 17.3k
23 votes
2 answers
22k views

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 ...
DMEM's user avatar
  • 1,593
23 votes
16 answers
310k views

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 ...
user3748265's user avatar
23 votes
1 answer
19k views

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 (...
CESCO's user avatar
  • 7,488
23 votes
5 answers
24k views

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 /...
TiMESPLiNTER's user avatar
  • 5,829
21 votes
2 answers
4k views

(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's user avatar
  • 3,903
19 votes
5 answers
808 views

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 ...
Geoff Munn's user avatar
18 votes
3 answers
31k views

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 ...
Phidelux's user avatar
  • 2,113
18 votes
1 answer
4k views

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 ...
Paul Charlton's user avatar
16 votes
6 answers
28k views

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 ...
slim1801's user avatar
  • 531
16 votes
0 answers
8k views

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

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 -...
Choco Smith's user avatar
  • 1,668
15 votes
5 answers
26k views

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 ...
Vandal's user avatar
  • 903
12 votes
4 answers
30k views

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 ...
Wicket_IV's user avatar
  • 309
11 votes
3 answers
6k views

Tensorflow on Raspberry Pi

I'm trying to install Tensorflow on Raspberry Pi. The OS is Ubuntu Mate, python2.7 and PIP version is 7.1.2 When I run this pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-...
boje's user avatar
  • 870
11 votes
1 answer
2k views

Browse file system of Raspberry Pi from android via bluetooth

Use Case: I am working on a project which involves a android phone and Raspberry Pi. Raspberry Pi unit would be planted with sensors in the field and once in a while user would walk around with the ...
Aman Deep Gautam's user avatar
10 votes
2 answers
21k views

start node app from python script

Is it possible to start a node.js app from within a python script on a raspberry pi? On the command line I run sudo node myscript.js could I use a library like os?
user3316792's user avatar
10 votes
3 answers
4k views

How to get the processor serial number of Raspberry PI 2 with Windows IOT

I need to get the processor serial number of a Raspberry Pi2 that is running windows 10 IoT.
Juan Carlos Velez's user avatar
10 votes
1 answer
5k views

WinUSB driver on Windows 10 IoT

I'm trying to use the WinUsb.sys driver that comes with Windows (including Windows 10 IoT of Raspberry Pi 2). Using devcon.exe I can see that the USB I'm trying to use is connected (it is named USB\...
TheHvidsten's user avatar
  • 4,132
10 votes
2 answers
3k views

Raspberry PI mdns getaddrinfo 3008 error

I've this sample Node.js script: var mdns = require('mdns'); var browser = mdns.createBrowser(mdns.tcp('http')); browser.on('error', function (error) { console.log("error"); console.log(...
dhrm's user avatar
  • 14.7k
10 votes
2 answers
523 views

HDD temp won't show via web

I'm trying to display my PIs temperatures in a website that I can access anywhere at any time. So far I've been able to get the CPU and GPU temps working. However my HDD temp won't show in the ...
Rapid's user avatar
  • 1,472
10 votes
4 answers
2k views

Choosing a TSDB for one-off smart-home installation

I'm building a one-off smart-home data collection box. It's expected to run on a raspberry-pi-class machine (~1G RAM), handling about 200K data points per day (each a 64-bit int). We've been working ...
John Clements's user avatar
9 votes
3 answers
21k views

RFID RC522 Raspberry PI 2 Windows IOT

I'm looking for a way to use the RFID "RC522" on a Raspberry Pi 2.0 on Windows IOT. It is of course not offical compatible... The offical one (OM5577 demo board) is way to expensive in France (i ...
David's user avatar
  • 319
9 votes
4 answers
4k views

Windows 10 IoT Raspberry Pi 2: Autostart published Application

I'm starting making experience with the Raspberry Pi 2 Development with Windows 10 and I was wondering how can I configurate the Raspberry Pi 2 to autostart my own published application, I developed ...
Tobias Raphael Dieckmann's user avatar
9 votes
5 answers
26k views

ImportError: No module named boto3

Installed the boto3 and upgraded it to the latest release. I tried the easy install pip for installation. I have multiple versions of python installed so I even tried installing in virtualenv venv. ...
Anna23's user avatar
  • 690
9 votes
1 answer
3k views

Failed to open a handle to the device when opening GPIO pin

Everytime I open a GPIO pin I get this exception: WinRT information: Failed to open a handle to the device. A resource required for this operation is disabled. I can't seem to find much information ...
Arn Vanhoutte's user avatar
9 votes
1 answer
9k views

How to INSTALL & RUN QML QtWebEngine & QtWebKit on SBC using Yocto / Unable to fetch URL from any source

Environment Debian GNU/Linux 7.8 (wheezy) Linux marvin 3.16-0.bpo.2-amd64 #1 SMP Debian 3.16.3-2~bpo70+1 (2014-09-21) x86_64 GNU/Linux Raspberry Pi 2 Yocto Poky Qt5 My goal is to run Chromium ...
zabumba's user avatar
  • 12.2k
9 votes
2 answers
2k views

How can I get an interactive login with Windows 10 IoT Core running on a Raspberry Pi?

I just installed Windows 10 onto a Raspberry Pi. It started up fine and I can connect (using PowerShell) from my laptop. I can connect a keyboard and mouse to the Pi but I can't get a login window. ...
yamspog's user avatar
  • 18.3k
8 votes
3 answers
9k views

How to install PHP 5.6 on Raspbian wheezy?

I was wondering about how to install PHP 5.6.x on my Raspberry Pi. Currently version 5.4.41 is installed and because of the new specs i'd like to upgrade to 5.6.10. I've seen this tutorial but the ...
lenny.myr's user avatar
  • 913
8 votes
1 answer
3k views

GHCi on raspberry pi 2?

I'm working on a few haskell projects that run on a raspberry pi 2 and the version of ghc that you can install with apt-get from raspbian (7.4.1). It has no GHCi though, which prevents some vital ...
jhickner's user avatar
  • 1,053
8 votes
2 answers
5k views

ultrasonic sensor raspberry pi 2 c# .net

I'm trying to read the distance from an ultrasonic sensor (HC-SR04) but the only values I get is 0 and 265.xx. I am using an Raspberry Pi 2 with Windows 10 IoT Core installed. I've written the ...
Chris Westerhuis's user avatar
8 votes
3 answers
6k views

OpenCV Multi Core Support

I was wondering if there is multi core support for the OpenCV library. I am experimenting with Haar cascading and it's pretty slow on my Raspberry 2 which would have four cores, but my application is ...
salocinx's user avatar
  • 3,755
8 votes
2 answers
6k views

Intellij IDEA, java and remote development

How to configure Intellij IDEA for compile my java-application on remote machine? In netbeans I can configure it easily and remote development works perfectly but in Intellij IDEA I can't understand ...
xrk's user avatar
  • 99
8 votes
2 answers
12k views

eglfs on raspberry2 -- * failed to add service - already in use?

that's is my first post here. I'd like to keep it short... Following problem: i want to run a qt5/qtquickcontrols2 application utilising the eglfs backend on a raspberry-pi 2b, accelerated by vc4, ...
Armin Leghissa's user avatar
8 votes
1 answer
2k views

Windows iot/apps Programmatic Bluetooth Pairing

I'm trying to broadcast a bluetooth signal from a Raspberry Pi 2 running Windows Iot Core so that I can connect to it from smartphones and other devices, but I've been stuck for the last couple days ...
Felipe's user avatar
  • 11.4k
7 votes
6 answers
31k views

VNC on Raspberry Pi shows Cannot Currently Show the Desktop

I am trying to use VNC in a headless install on my Raspberry Pi 4, running Raspberry Pi OS, installed via Raspberry Imager. The install is more or less vanilla, as the only changes I have made are for ...
Martin Vinter's user avatar
7 votes
3 answers
41k views

Python GPIO code for DHT 11 temperature sensor fails in PI 2

I am facing issues running DHT 11 temperature sensor in PI 2 with Python2.7 GPIO 0.5.11. I am referring to http://www.uugear.com/portfolio/dht11-humidity-temperature-sensor-module/ sample code. Same ...
Bharadvaj Jayachandra's user avatar
7 votes
2 answers
11k views

OpenCV Python, reading video from named pipe

I am trying to achieve results as shown on the video (Method 3 using netcat) https://www.youtube.com/watch?v=sYGdge3T30o The point is to stream video from raspberry pi to ubuntu PC and process it ...
Richard Ludvigh's user avatar
7 votes
1 answer
5k views

changing update rate with gpsd and python

I'm using the adafruit ultimate GPS breakout with my Raspberry Pi 2 using python2.7.9, GPSD, and the python-gps package. I'm successfully getting gps updates at 1Hz over the serial port. This device ...
kjgregory's user avatar
  • 676
7 votes
1 answer
4k views

UWP - Streaming WebCam over Socket to MediaElement - Broken Picture?

Background The code I've written records video clips from a webcam, writes them to a memory stream, then transmits the data across a Socket connection where it's re-assembled into video and played ...
Detail's user avatar
  • 795
7 votes
1 answer
3k views

Raspberry Pi Cam with WebRTC & UV4l driver (Sourcecode closed?)

I use the UV4L driver (RasPiCam) from here with the WebRTC extension to get a continuous live view, streaming out from this HTTP server (RaspberryPi). I would like to examine the sourcecode running ...
andre's user avatar
  • 71
6 votes
5 answers
9k views

LIRC irsend: could not connect to socket irsend: No such file or directory

I am trying to configure LIRC to work with my Raspberry 2B and a circuit I build with a transistor and a IR transmitter as explained in this tutorial After the installation of LIRC, I followed all ...
muilpp's user avatar
  • 1,333
6 votes
2 answers
12k views

Qt Creator proper setup for cross-compilation and remote deployment for the Raspberry Pi 2 - producing binaries for wrong architecture

I just went through hell to setup my Qt Creator, Raspberry Pi and Debian 8 (for my notebook) and finally managed to configure everything. Or so I thought. What follows here is a description of what I ...
rbaleksandar's user avatar
  • 9,177
6 votes
2 answers
9k views

How GPIO is mapped in memory?

I am recently browsing GPIO driver for pi2, I found user space pi2 GPIO lib (like RPi.GPIO 0.5.11 of python) use /dev/mem for BCM2708 (begins at 0x20000000,and GPIO begins at 0x200000 relatively) to ...
ggaaooppeenngg's user avatar
6 votes
1 answer
12k views

Python logging module - output to text file when running from command line

I have a python program that uses the logging module to output data to a text file, the problem I have is that the output to the text file works fine when I run the script in PyCharm (the 1-10 values ...
AdamDynamic's user avatar
6 votes
2 answers
199 views

How do I name my deployed application?

I've successfully installed Windows 10 IoT on my Raspberry Pi 2. I wrote a test "Hello World" UAP app (simple text box and button, using Visual Studio Community 2015 RC) and can run it on the Pi and ...
Lee's user avatar
  • 464
6 votes
1 answer
642 views

Shiny Server does not start and returns Trace/breakpoint trap

I thought I had successfully installed Shiny Server on my Debian Wheezy (Raspbian). I got no errors in the cmake and all other required packages were also installed. I followed the instruction on ...
user2386786's user avatar
6 votes
2 answers
6k views

Raspberry Pi -fatal error: sys/cdefs.h: No such file or directory

I'm trying to compile gcc5.3.0 on my Raspberry Pi with latest Raspbian system image. $ ./configure --enbale-checking=release --enable-languages=c,c++,fortran --host=arm-cortexa7_neon-linux-gnueabihf ...
0xBBC's user avatar
  • 105
6 votes
0 answers
18k views

chromedriver unexpectedly exited. Status code was: 127 [duplicate]

On my raspberry pi I recently got some weird issues with using webdriver.Firefox so I decided to switch to chromedriver, which I am more used to anyway, as I use it when testing stuff on my desktop. I ...
Treehee's user avatar
  • 127

1
2 3 4 5
25