Categories
Raspberry Pi User Help

GPIO input, keep high after button press

Hi was just wondering if there was a way of making a GPIO INPUT (connected to a momentary switch) stay high (for a certain amount of time), no matter how long the switch has been pressed for? The problem I’ve got is, I’m using a geekwork X728 board (does battery charging, UPS, battery power and […]

Categories
Raspberry Pi User Help

RPI actual SPI communication speed

I tested my RPI 3B’s actual SPI communication speed using the time stamp and spidev of Python. Then, I got the 353.2k bitrate per second when I set the SPI clock as 30MHz. Then, the real SPI communication speed is just 1.18% of RPI hardware rate. Is it the limitation of RPI or any method […]

Categories
Raspberry Pi User Help

rc.local not able to execute python script with network code

(Disclaimer, this is a crosspost from my Unix & Linux Overflow question, however I got no answers) To introduce my problem, I’m running Raspbian Stretch on a RPi 3 model B+, and I have two scripts that I run in /etc/rc.local so that the pi can run completely headless and control a GoPro over wifi […]

Categories
Raspberry Pi User Help

USB tethering: Raspi loses it’s ip if the host is restarted

currently I’m playing with USB tethering between a raspi and a Linux PC. On the Linux pc I configured the USB interface to get a static ip once it’s connected. This is managed by the Networkmanager and works fine. On the raspi I configured a static ip via `/etc/network/interfaces` allow-hotplug usb0 iface usb0 inet static […]

Categories
Raspberry Pi User Help

Program stops running while accessing MongoDB in python program triggered using udev rules

I have udev rules file to run a program on usb mount. I am running a bash script automount.sh when USB is connected to Pi. #! /bin/sh cd cd /root chmod 777 /media/USB chmod 777 create_report.py python3 create_report.py umount Bash script is running fine and executing the python program, but the program stops running when […]

Categories
Raspberry Pi User Help

How to connect an Android phone and a raspberry pi through wifi direct programmatically

so I have been working on the task of connecting a pi to an android via wifi direct for a while, and I was able to get it to work, using the information given in this question: Issue connecting raspberry pi to android via Wifi p2p. I now want to write some code, preferably using […]

Categories
Raspberry Pi User Help

Raspberry pi won’t run Noobs installation

I bought a preinstalled sdcard with noobs, due to my manually created noobs sd not working and still have same problem with the pi. Without the sdcard it boots fine to the boot loader screen but when I turn it on with the noobs sd inserted it stay looping and only flashing a blue screen […]

Categories
Raspberry Pi User Help

Trouble getting sg-90 servo to work with R-PI 4

I have read several answers and approaches to controlling an SG-90 servo with a raspberry pi and I have tried the following approaches, with varying but never satisfactory results. Wiring Setup: Servo + to 5V external power Servo – to external ground External ground connected to R-PI ground R-PI PIN 13 (BCM 27) to servo […]

Categories
Raspberry Pi User Help

wiringPi.h not found by gcc. Works in Raspian, not Ubuntu Mate

This is my first time posting on stack exchange so I apologize if this is too much or not enough info on the problem. A few months ago I installed Ubuntu Mate 18.04 on a Raspberry Pi 3B+ and tried to compile the blink program found on the wiringPi website. I got the "No such […]

Categories
Raspberry Pi User Help

Power multiple add-ons on one 5v pin

I have multiple add-ons connected to my Pi that currently use all of the 5v pins. I want to run more add-ons to the Pi that need 5v power. The 5v pins are connected using male to female GPIO jumper cables such as this one Is there a cable which is similar to a headphone […]