A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [pi-2]

This refers to the quad-core Raspberry Pi 2 (currently only available as a "B" model with Ethernet and four USB ports), with 1 gigabyte of RAM.

Filter by
Sorted by
Tagged with
1
vote
1answer
2k views

Headless pi SSH not working [closed]

So I tried setting up my headless pi with Raspbian like I usually do: Flash Raspbian to µSD (using Etcher) add zeroconf address to cmdline.txt (ip=169.254.10.1) add empty file 'ssh' to boot partition ...
1
vote
1answer
795 views

How to read two rotary encoder data using pigpio c++ library in raspberry pi?

#include <iostream> #include <pigpio.h> #include "rotary_encoder.hpp" void callback(int way) { static int pos = 0; pos += way; std::cout << "pos=" << pos << ...
4
votes
1answer
439 views

SMS API via Raspberry PI

I want to calculate the temperature and humidity via sense hat integrated with Raspberry Pi 3. Is there any free API for SMS available currently?
-1
votes
1answer
295 views

How can I move my normal c++ main() function code to qt main function?

I have created small normal c++ code to test in raspberry pi which is working perfectly fine on the terminal.Now I want to write it down in qt, the problem here I am facing is I can able to move my ...
1
vote
1answer
2k views

How can I install php5-pgsql on a Raspberry Pi 2?

I tried these commands to install php5-pgsql but I got an error: pi@raspberrypi:~ $ sudo apt-get install php5-pgsql php-pear Reading package lists... Done Building dependency tree Reading state ...
1
vote
0answers
2k views

Very slow serial port reading

I have the following code, used on an RPi2: import serial import time # Set up serial port ser = serial.Serial( port='/dev/ttyAMA0', baudrate=921600, parity=serial.PARITY_NONE, ...
-1
votes
1answer
150 views

Why does my Python scripts fail to run at boot? [duplicate]

I have a number of sensors connected to my pi 3 and i put the python scripts (7 of them) that starts the sensors at boot in the /etc/profile/ folder.. Of the 7 scripts, i noticed that only the scripts ...
2
votes
2answers
3k views

Setting up RaspAP

I have just downloaded RaspAP onto my Pi 2 Model B. Upon rebooting, I am now able to see the "raspi-webgui" network on my mobile phone. However, when I enter the default password ChangeMe, it does not ...
0
votes
1answer
527 views

Rotary encoder is giving less PPR reading

I am testing 400 PPR(Pulses Per Revolution) rotary encoder using code.I am rotating it by using the hand. I have connected Phase A and Phase B and also, ground and Vcc properly. The code is giving ...
1
vote
1answer
63 views

Using Pi Model B as an access point [closed]

I want to connect my Model B to my university network, which I can do using the ethernet connection; this should be simple to do. What I am unsure of is how I can then use the Pi to act as an access ...
0
votes
3answers
43 views

Raspberry Pi or Similar to Go [closed]

This question might be too broad, but I need a starting Point. I'm trying to find a little computer that can run with a battery for at least 24h, just using the cpu + wifi. Is raspberry suited for ...
2
votes
2answers
112 views

Headless Connection to Raspberry Pi [duplicate]

I have tried to create a headless connection to my (new) Raspberry Pi, since I do not have a HDMI cable at home. However- after trying everthing I have found as suggestions on Google etc.- I just ...
2
votes
1answer
457 views

What are the differences between the revisions v1.1 and v1.2 of the Pi 2 B?

The revision v1.2 of the Raspberry Pi 2B replaced the BCM2836-SoC (ARM Cortex-A7; ARMv7) with a BCM2837 (ARM Cortex-A53; ARMv8-A) known from the Pi 3 (Source, German website). It would seem that the ...
2
votes
1answer
276 views

sudo apt-get installation doesn't work

Whenever I try to use sudo apt-get install, or sudo apt-get update, for that matter, I will result in an error like this: Reading package lists... Error! E: Encountered a section with no Package: ...
2
votes
1answer
812 views

Problem connecting with D-link DWM-221 LTE not work

Has anyone managed to use the D-Link DWM-221 modem? Serial interface does not appear for use by Wvdial. cat /var/log/message Dec 19 11:40:19 host kernel: [ 528.228583] usb 1-1.4: new high-speed ...
0
votes
0answers
71 views

Would a raspberry pi lifetime decrease if used 24/7? [duplicate]

the topic technically says everything, I will be using Openmediavaults image on the raspberry pi. I will be using it as a home media server(Cause I have a spare Rpi2 doing nothing.) People are saying ...
2
votes
2answers
2k views

Can I connect two Pi's through GPIO?

Say if I had one GPIO pin. Could I connect it to another pin on a different Pi and have it pick up the first pin's signal as input? Would I need to connect both Pi's ground pins to each other?
1
vote
4answers
1k views

How long will powered by 2400 mAh powerbank work?

I found a cheap powerbank (it costs about 6 $) that has power of 2400 mAh. I need it for my Switch-like Rpi console. But is this powerboank worth buying? If you need more details, check these ...
1
vote
1answer
507 views

Raspberry PI GPIO add_event_detect triggering multiple channels on one button press

Project: I am creating a light switch panel to control my LIFX WiFi lights. I have 3 buttons hooked up to GPIO pins 6, 20 and 22 and I'm using the GPIO.add_event_detect to capture when the button is ...
0
votes
1answer
68 views

RaspberryPi 2 refuses to autologin

I’m running raspbian on my RaspberryPi 2 and until yesterday it logged in automatically into pi on boot without any problem. Today it didn’t. Luckily I had already changed root’s password so now I ...
1
vote
1answer
318 views

Kernel Development with Raspberry Pi

I want to start working and playing with linux kernel. Instead of trying on my own system, I want to do the same on raspberry pi. I want to compile my own kernel and start working on my first kernel ...
0
votes
1answer
269 views

I'm facing a problem while flashing the image of Raspbian stretch to my SD card

I Tried to boot Raspbian Stretch on my Raspberry pi Zero W headless. I followed the instructions as given in this link - How to Flash an SD Card for Raspberry Pi After running this Command sudo dd if=...
1
vote
2answers
3k views

No module named '_tkinter' in DEBIAN

I have some problems with tkinter. I want to use it with python 2.7.9 or python 3.4 with DEBIAN but it give me this error in both cases: Python 3.4.3 (default, Dec 1 2017, 16:25:43) [GCC 4.9.2] on ...
1
vote
0answers
3k views

A real time Spectrum analyser with pyaudio in python on Raspi [closed]

I am trying to get an fft plot on realtime audio using a USB microphone plugged into my raspi. I want to be able to activate an LED when a certain frequency is detected through the fft plot. I have so ...
1
vote
0answers
92 views

How to have a raspberry Pi automatically open up a program on boot? [duplicate]

I was wondering if their was a way for a Raspberry Pi to automatically open up a file on boot. (A scratch project)
2
votes
1answer
474 views

Raspberry PI - Apache Web server - 403 forbidden access only on some computers [closed]

Yes, I read through a lot of the related questions, but I can't seem to make sense of my problem. So, I successfully installed the latest Apache server along with PHP5 on a Pi. It works as it should, ...
0
votes
3answers
2k views

transfer files between raspberry pi-2 to pi-3 without using bluetooth

I have a pi-2 and a pi-3 and I am trying to transfer some files from the pi-2 to the pi-3. Is there a way besides using Bluetooth to do it?
1
vote
0answers
26 views

How to sym-link python3_dlib into cv environment in pi?

If I import cv2 into the Python3_dlib environment it can easily be found. But when I try to import dlib from the cv environment, it is giving "No module found". It may be for sym-link. But, when I was ...
1
vote
1answer
601 views

Installing Kvaser Drivers(Linuxcan) for RPI

I have been attempting to install Kvaser drivers onto a RPI 2B and have been follwing the instructions listed in the following link: https://www.kvaser.com/developer-blog/building-canlib-linuxcan-...
1
vote
1answer
1k views

Raspberry pi how to expose a port when a docker running a web server

I have the following configuration in Raspberry Pi for iptables pi@raspberrypi:~ $ sudo iptables --list Chain INPUT (policy ACCEPT) target prot opt source ...
0
votes
1answer
1k views

upgrade pi2 to pi3 without reinstalling? [duplicate]

I want to upgrade my rpi2 to a rpi3. I'm running openHabian with a zwave gateway (razberry2). Do I have to reinstall everything to be shure everything is fine or should the old setup work without ...
1
vote
0answers
192 views

w1thermsensor is not detected

I am using DS18B20 Temperature sensor on Raspberry Pi. For that I installed w1thermsensor library on my Raspberry Pi. My code is given below. import time from w1thermsensor import W1ThermSensor ...
1
vote
3answers
3k views

WiFi and Bluetooth is not found in raspberry pi 3 model b

i have raspberry pi 3 model b device in that installed raspbian OS. After installed the OS i check the blue-tooth and WiFi. while clicking the Bluetooth and WiFi it's shows Bluetooth adapter is not ...
1
vote
2answers
952 views

How can I power my magnetic switch?

Final edit: Got it working! Thank you all for your suggestions. The first issue was that my magnet was broken. I got a multimeter and tested the switch open and closed, and the meter was detecting ...
1
vote
0answers
236 views

arecord through subprocess works randomly in raspberry pi,how to solve?

I am using arecord through subprocess to record in raspberry pi : press joystick button to start recording and press button again to stop recording, It works randomly: when I press the button, the ...
1
vote
0answers
512 views

Failed to start default.target: Operation refused unit may not be isolated

I tried to start my Raspberry this morning and I have this error message: Failed to start default.target: Operation refused, unit may not be isolated. Yet last night I plugged my raspberry for the ...
0
votes
1answer
371 views

VirtualBox image z RPI

How can I convert rpi image to: Virtualbox image i386 live CD amd64 live CD i386 install CD amd64 install CD
1
vote
0answers
850 views

Build a custom Android ROM for the Raspberry Pi? [closed]

How to create a custom Android ROM for the Raspberry Pi from scratch? It can be from any source, it does not matter (like aosp, lineage os, resurrection remix, etc), but the system apps must be ...
4
votes
3answers
2k views

rPi2 model B v1.1 smoke comes out near power port

I am trying to control 2 motors using the E-gizmo Motor driver shield but suddenly smoke comes out near the power port of the raspberry pi 2 so I immediately unplugged the power supply. After that, I ...
5
votes
1answer
1k views

Share internet over USB

I have my Raspberry Pi 2 Model B connected to the internet via an ethernet cable. I now have a second device (It's an android phone, but that's not important) that I connect to the Raspberry Pi via ...
1
vote
0answers
322 views

Add delay to startup Watchdog on boot Raspberry

I set up the watchdog to reboot my Raspberry if : fails ping, overheating and if a file is not updated for more than 3 minutes. Now I have a problem: the watchdog start on boot of my Raspberry, but I ...
1
vote
1answer
116 views

Lost static wlan0 IP when unplug ethernet? [duplicate]

I do not know why, but when I unplug my ethernet cable, I have no more wifi connection. I use /etc/network/interfaces for configure my static IP auto lo iface lo inet loopback allow-hotplug eth0 ...
0
votes
1answer
105 views

error with imapclient library in raspberry pi

I'm getting these errors while running a program: > Traceback (most recent call last): > File "parseIMAPemail.py", line 5, in <module> from imapclient import IMAPClient File "/usr/...
1
vote
0answers
109 views

Raspberry auto reconnect with another IP

I configured the file /etc/network/interfaces with this as follows: auto eth0 allow-hotplug eth0 iface eth0 inet static address 192.168.1.111 gateway 192.168.1.254 netmask 255.255.255.0 dns-...
0
votes
1answer
288 views

Is there any way to find out which GPIO pin of raspberry pi busy?

We will get many times "Device or resource busy" error, when try to read or write GPIO pin of raspberry pi. So, Is there any way to find out which GPIO pin of raspberry pi busy? Thanks in advance.
1
vote
0answers
187 views

Kali not showing GUI when raspberry starts

When I turn on my Raspberry Pi 2 with Kali Linux, the screen is still off and does not receive any signal. But if I connect with SSH, log as root/toor, startxfce4 and reboot the screen turns on with ...
0
votes
1answer
88 views

Uninterrupted Power Supply needed for Raspberry Pi

We have designed multiple temperature sensors. its executed as well too. but we need external power supply or Uninterrupted Power supply for Rpi. I have chosen power bank ..but it works with only one ...
0
votes
2answers
2k views

function button.is_pressed from gpiozero do not work

Im working on a university project with raspberry and gpiozero. I need to manage the button response to take diferent actions. The problem is that de function button.is_pressed its always true (even ...
4
votes
1answer
623 views

Edimax EW-7811Un WiFi not working with RPi2 on cold-boot

I use a freshly installed Volumio (based on Debian) instance on a Raspberry Pi 2 Model B Rev 1.1 equipped with an Edimax EW-7811Un USB device to get WiFi. Power is supplied from a HifiBerry AMP+ sound ...
4
votes
1answer
2k views

How to install dotnet core 2 on Raspberry Pi

I followed the instructions found on https://www.databinding.net/2017/09/09/net-core-2-0-auf-dem-raspberry-pi/ sorry it's in german but the install part is: curl -sSL -o dotnet.tar.gz https://...