Newest 'raspberry-pi' Questions - Stack Overflow

Questions tagged [raspberry-pi]

The Raspberry Pi is a small, inexpensive ARM-based PC device. PROGRAMMING QUESTIONS ONLY. Questions about using it should be asked on https://raspberrypi.stackexchange.com/

0
votes
0answers
5 views

Byte size mismatch with Tiny Yolov3 on raspberry pi3 and NCS2

I have a retrained tiny yolov3 model with I have converted to Openvino compatible IR models . I am running inference on these models on a laptop running on Intel i7-8750 with NCS2 and a Raspberry Pi3 ...
-3
votes
1answer
23 views

Raspberry Pi graph

I need to develop a graphical application for Raspberry Pi. This application would be to control a set of LEDs, very simple. In addition, this application should run on a 5 "touch screen, where only ...
0
votes
0answers
21 views

How i make a public ip for the Raspberry Pi Flask webserver?

i'm running flask webserver using raspberry pi. I'm using raspberry pi's ip address and the port 5000 to access to my flask webserver. Is it possible to access to my flask webserver from another ...
0
votes
0answers
15 views

What is the correct way to use /dev/gpiomem with mmap to get access to Raspberry PI3 peripherals

I'm implementing a pascal library to deal with RPI3 peripherals. My goal is to control GPIO pins' functions, pins' logical levels, pins' pull resistors, I2C and PWM, at least. To achieve this I'm ...
0
votes
0answers
6 views

overlay or split tv with stream from database

I am working on a project where I need to show some Realtime information (preferably from a firestore database) on a tv screen on one side of the screen while keeping the usual tv programming on the ...
0
votes
0answers
8 views

MQTT payload number vs size

I want to transfer real-time data from an Arduino to a Raspberry Pi. In this case the data comes from accelerometer. I don't have the exact number, but let's say the accelerometers (4 of them with x,...
0
votes
0answers
16 views

Can't locate libraries on raspberry pi [duplicate]

I've set up a Web App, where the Server is running on a Raspberry Pi via Flask. Here I stumbled upon a problem which I didn't have when I tested this on my PC. On one of my Html Pages it doesn't find ...
0
votes
0answers
7 views

Raspberrypi: Tensorflow: TypeError: Unexpected keyword argument passed to optimizer: name

I had built Tensorflow model a month ago and saved it on windows laptop as h5 file. When that file is moved to Raspberrypi 3, it runs all ok. However, i tried to train the model with new set of data ...
0
votes
0answers
12 views

How to fix the '[Network] module not found' error in Micropython on Raspberry Pi?

I recently installed Micropython on my Raspberry Pi model 3. I followed all the steps mentioned in the Raspberry pi - how to guide. https://www.raspberrypi.org/forums/viewtopic.php?t=191744 But, when ...
0
votes
0answers
16 views

DJI Onboard SDK to Mobile SDK communication - DJI sample not working. (Matrice 600- Raspberry Pi3 - iOS)

I want to send commands from mobile device with the mobile-SDK to the onboard computer (Raspberry Pi 3) on the drone (Matrice 600) running the onboard-SDK. Therefore I am trying to make the sample ...
0
votes
0answers
15 views

Mqtt “Software caused connection abort” error

I am trying to send data from nodemcu(esp32) to raspberry pi using mqtt. After connecting Wifi network this error occurs. Error : Attempting MQTT connection...[E][WiFiClient.cpp:365] write(): fail on ...
1
vote
0answers
24 views

Launch a node.js terminal application on a raspberry pi with a .desktop file

Soo... I thought this would be a easy task. Create a .desktop file that launch my node.js app and thats it... Nope. My .desktop file looks like this: [Desktop Entry] Name=NodeJS App Comment=My ...
-2
votes
0answers
20 views

MQTT broker on Raspberry PI vs MQTT broker on VM (AWS etc) [on hold]

For an IoT project,sensors, MQTT broker and backend Infrastructure can be integrated in following ways MQTT broker on Raspberry PI : Sensor publish the data to MQTT broker on Raspberry pi and create ...
0
votes
0answers
15 views

Processing real time data with raspberry pi using pandas

I'm working on a project which reads serial data from two different devices connected over USB to gather sensor data on Raspberry pi and do some analytics on it. I'm using two threads for this. On ...
0
votes
0answers
28 views

Microsecond pulses with Raspberry Pi

Trying to output 10 mhz pulses with Raspberry Pi/pi4j, wiringPi... No problem with millisecond pulses This works on Mac...doesn't work on Raspberry Pi with pi4j and wiringpi installed: final long ...
0
votes
0answers
8 views

VLC MJPEG stream not playing in Safari/WebKit

I have an MJPEG stream that I'm creating from a USB webcam connected to a Raspberry Pi using the following VLC command: cvlc v4l2:///dev/video0 --sout '#standard{access=http{mime=multipart/x-mixed-...
1
vote
0answers
61 views

Cannot send CAN messages between two arduino

I'm trying to set up local CAN bus between two Arduino boards (mega and pro micro). But I cannot make them receive any message from each other... For both boards, I'm using this CAN module: https://...
0
votes
0answers
22 views

Nodejs Zeromq Memory Issues

I'm having an issue with a set of nodejs applications which are using zeromq as the interprocess communication. I've stripped the applications down to a simple pub/sub client and am still having ...
0
votes
0answers
140 views

Dockerized Flask app throws error 400 on certain file uploads

I have the same dockerized flask app on a debian vm without this issue. It only throws error 400 Bad Request on my RPI 3B+. Both are limited to one core and 1 GB of memory. I can't understand why it ...
0
votes
0answers
13 views

Node Js UDP Network Broadcast Issues

I have this code I want to broadcast out to the network broadcast address using node js. It seems to work if client and server are running on the same devices. However, if I run the server code on a ...
1
vote
1answer
28 views

Finding the difference of 2 image's pixel values and then creating a new images based on the difference

I want to create a program that takes a picture of the same area at 2 different times and then compares the images, and then creates an entirely new image that has just the difference between the 2 ...
0
votes
1answer
26 views

Get Mac Adress on a Multitech (cellular router)

I'm working on bash script to get some information about an external network. I want to get mac address of a Raspberry connected to my cellular router but I can't access to raspberry due to company ...
0
votes
1answer
22 views

Topic does not match an authorized rule

the following code is what i used to publish data from my r-pi sense-hat to the IBM cloud topic = 'iot-2/evt/temperature/fmt/json' print("Publishing data from pito cloud",json.dumps(payload)) client....
0
votes
0answers
10 views

Clion Remote Pi: undefined reference to wiringPiSetup [duplicate]

I am trying to run a c-program via clion IDE using the wiringPi library. Hello world runs perfectly fine, so I can assure that the connection to the pi was established correctly. However, when I add ...
0
votes
1answer
31 views

Python-3 Run a While Loop for X Amount of Time [duplicate]

My program is for a raspberry pi project in which I give a user the option to record messages when they press a button. My current goal is to have a while loop give the option of recording by pressing ...
0
votes
0answers
23 views

List-Numpy: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

I have couple of face encodings and each has it's own json file. I want to collect them in one numpy array (which is converted to list afterwards) and send them to a face_recognition function. ...
0
votes
0answers
16 views

Where to use JSON.parse() in Node-RED mongodb2 node

I've been unable to get my mongodb2 node to store photo data, since the JSON node seems unable to parse the msg.payload objects. I'm not certain where to invoke JSON.parse() directly on the msg ...
0
votes
2answers
74 views

How to infinite loop inside function

I'm having problem to make code (I'm still learning) that will comunicate with MQTT server and check actual status of GPIO pin that I can control using local web page. My issue is that I don't know ...
0
votes
1answer
14 views

Paho-MQTT check message queue size

I'm publishing MQTT messages from an Arduino, and subscribing to those from a Raspberry Pi. Sometimes the publishing goes faster than the Raspberry can receive (and process). I'm looking for a way of ...
1
vote
1answer
29 views

Is it possible to access a smartphone's API on Raspberry PI via cabled connection?

For my company, we need a device to take pictures locally and store it locally as well. There are no internet or wireless connections available within this machine. This is an industrial setting where ...
0
votes
0answers
51 views

Sending commands to another terminal on Raspbian: ttyecho not behaving as expected

In theory, the retro gaming application RetroPie cannot run alongside the Raspbian PIXELS desktop environment. I found the following guide online which in theory works around this: http://www.aoakley....
0
votes
0answers
16 views

Node serialport does not list all ports

I am trying to open multiple serial ports on Rasbian GNU/Linux 8 (jessie) using the node module 'serialports'. When I connect two USB CDC devices to my system (raspberry pi), the following code only ...
0
votes
1answer
10 views

Thunar: Failed to open “smb://<address>”: The specified location is not supported

I am trying to setup a NAS server on my raspberry pi which can be accessed by my home linux machine running Arch. This is my config from /etc/samba/smb.conf on my raspberry pi [Cloud Pi] comment = ...
0
votes
1answer
32 views

Remembering angular position in a stepper motor

I am looking for suggestions about how to define an initial position for a motor so that I can keep track of my current angular position relative to that point. I am using a stepper motor so to move ...
1
vote
0answers
31 views

UART send no bytes

I'm trying to write test code for sending data via UART on my Raspberry PI 3 b+ , but I cannot receive back the data I've sent . Raspberry is connected via UART module to my laptop , so I can see in ...
0
votes
1answer
37 views

Create makefile in raspberry pi [duplicate]

I have developing an application in C for a raspberry pi. Until now I was cross-compiling this application in Eclipse and debugging in a raspberry. Now I have all the code working I want to create a ...
-1
votes
1answer
41 views

How to fix “open: No such file or directory” error(The file actually exists) after successfully using CMakeLists to make

I'm trying to install a motor driver C++ driver library from "https://github.com/barulicm/PiPCA9685" I followed the README guide to use CMakeLists to build the library in "build" folder. Since there ...
1
vote
1answer
29 views

How to control the volume of raspberry pi with python 3?

I have been looking up the web for any reference to control the volume of raspberry pi (b+) with python script . I come up with this thread previously asked but python-alsaaudio doesn't works with ...
-2
votes
1answer
32 views

How can I send data from a raspberry pi to my laptop?

I need a simple way of sending a string from my raspberry pi to my laptop (on the same WiFi network) and then store in a Sqlite database.
0
votes
2answers
74 views

Raspberry Pi 3 bare metal: unexpected behaviour from arrays and switch statements

I currently have a simple program that sets up a framebuffer that can be written to. I am encountering behaviour where values stored i arrays, once retrieved, come back as seemingly random values, ...
-1
votes
0answers
8 views

How to control two servo motors simultaneously with python

Can you help me control two servo motors at same time with python on raspberry-pi ? I use ... - servo motor of CYS - s8218 - Volt : 7.4 volt : Separate power supply - raspberry pi 3 model B+...
-1
votes
0answers
40 views

How do I write to files in my /etc directory from Python3 in Linux using FileInput on my Raspberry Pi?

I want to create a function in my Python3 script that will change the name of my raspberry pi by updating the references to the name in the /etc/hosts and /etc/hostname files. For a bit more context ...
0
votes
2answers
66 views

How to kill a python script through another script under condition

I want to call 2 python scripts using tcp Conditionally via another main script. So, when my data sent to the main script is "YES", the first script executed and when data = "No", the second script ...
2
votes
0answers
43 views
+50

Github unable to access… gnutls_handshake() failed:Close notify

When attempting to git clone any repository I get this error fatal: unable to access <repo url>: gnutls_handshake() failed: Close notify Just incase it helps I am on a Raspberry Pi Zero. Git ...
0
votes
0answers
27 views

stopping a process using python

i need to stop a specific process(in the script that included) on command that is running in the background on my raspberry pi using python...what code should i use? i tried different os commands but ...
0
votes
0answers
9 views

My printer don't print the document when setup printer server by raspberry pi

I'm setting up a printer server by raspberry pi zero w then i print on Windows. I installed cups and samba, add printer online, but when i print a document from Windows it doesn't print the document ...
0
votes
0answers
18 views

How can I make my android app interact with Flask server on raspberry pi 3?

I am trying to follow the MattRichardson's tutorial on "Serving Raspberry Pi with Flask" (http://mattrichardson.com/Raspberry-Pi-Flask/). Here is the code I got from the tutorial mentioned on this ...
0
votes
0answers
23 views

Raspberry Pi Out of Memory - Read Only SD card - tmpfs and overlay 100% used

I have a python script auto running at boot with a call in '/etc/profile` It starts fine and continues to run. I also have the SD card set to read-only mode. When I leave the program to run ...
0
votes
3answers
41 views

Rasberry Pi watchdoging C++ program

I have C++ app is running on my device which is a bit modidifed version of Raspberry PI. Application is reading data from serial port and I need a device to rebooted after some particular data is ...
2
votes
2answers
43 views

Storing accelerometer data in raspberry pi sd card

I am working on a project where my objective is to store acceleration data coming from a motor. For that I am using adafruit mma8451 acceleration sesnsor. Now to store the 3 axis acceleration data, I ...