This should only be PROGRAMMING QUESTIONS ONLY. General questions about the device are off topic.
Questions tagged [raspberry-pi-zero]
207 questions
12
votes
1 answer
-bash: raspistill: command not found
I am trying to hook up my Raspberry Pi Zero W, running Raspberry Pi OS Lite, to a Raspberry Pi NoIR Camera Module V2. After running these commands:
sudo apt update
sudo apt upgrade
and enabling the camera in the raspi-config menu and rebooting per…

Nic Ceccanti
- 163
- 1
- 1
- 7
6
votes
2 answers
How to send real-time sensor data to PC from Raspberry Pi Zero?
I've written a Python3 script which runs on Raspberry Pi Zero W that collects data from an IMU sensor (MPU9250) and creates 3 different angle values; roll, pitch, yaw. Which looks like this:
def main():
while True:
dataAcc =…

daaarwiin
- 127
- 1
- 13
5
votes
2 answers
How can I get tomcat to auto-deploy WAR files from a directory, but still using the original appBase directory
I need to deploy my application in an embedded solution (running on a raspberry pi zero). As such, I only really can deploy things on localhost. I am not too familiar with virtual hosts, so I may be wrong on this.
My problem is that I want tomcat to…

MoustacheSpy
- 743
- 1
- 6
- 27
4
votes
0 answers
Raspberry Pi Zero - Turned into a Virtual Mouse is not working properly on Windows 10 build 1809 (Cursor is snapping back to the left upper corner)
I have a Raspberry Pi Zero which i have turned it into a virtual keyboard and virtual mouse. I've done it using this amazing (thank you, SeongTae Jeong!) repo on github - rasp_vusb. To shortly summarize how it works:
You connect the PI Zero to a…

Aleks
- 41
- 4
3
votes
0 answers
Plenty of reading errors in Python with Adafruit Library for DHT22 on a Raspberry Pi Zero W
I'm using a DHT22 temperature and humidity sensor with a Raspberry Pi Zero W V1.1 to log temperature and humidity. I use Python and Adafruit library (https://github.com/adafruit/Adafruit_CircuitPython_DHT) and even that I'm able to read the data, I…

jivaro
- 41
- 4
3
votes
0 answers
how to solve - oauthlib.oauth2.rfc6749.errors.MissingTokenError while authenticating GoogleAssistant oauth-tool URL
When i run the below command in my Raspberrypi for authenticating google assistant api
"google-oauthlib-tool --client-secrets /home/pi/client_secret_hsjkhdakjs.json --scope https://www.googleapis.com/auth/assistant-sdk-prototype --save…

Praneeth Reddy
- 31
- 2
3
votes
0 answers
Raspberry Pi - ALSA error when trying to record sound through an audio card and playback
Hello,
I am working on trying to play audio out of a raspberry pi zero W(ssh connection), and I bought an audio card, which led me to this Wiki tutorial to set it up.
[Wiki Page]
https://wiki.seeedstudio.com/ReSpeaker_2_Mics_Pi_HAT/
GitHub…

Hephaestion
- 65
- 6
3
votes
1 answer
Logging rainfall with Python
First post and I am at a dead end with this problem.
(some background)
I have a raspberry PiZero which I am developing a weather station with, so far it logs temp, humidity and pressure as well as sending the data to the windy.com API. Recently I…

DanF
- 47
- 6
3
votes
0 answers
Building Python wheels in Docker for Raspberry Pi Zero on x86_64 machine
I'm hoping this is an appropriate venue for my question. There's a lot of pieces to this puzzle.
I'm building a container using Docker that is destined to run on a Raspberry Pi Zero. The RPi Zero has an ARMv6 hard-float processor. The container will…

fdmillion
- 4,823
- 7
- 45
- 82
3
votes
1 answer
OpenCV on Raspberry Pi Zero W - Floating point exception
I am trying to utilise OpenCV 4 on the Raspberry Pi Zero W, running Raspbian Buster (10). When doing any transformations on a captured image, the application exits with a floating-point exception.
I have cross-compiled OpenCV with various options,…

bouwerp
- 303
- 2
- 12
3
votes
1 answer
Raspberry Pi Zero emulate mouse
I'm looking for a way to use my Raspberry Pi Zero as a HID mouse.
Goal: I put the Pi in my computer and it automatically starts to move the mouse quickly from top to bottom and from bottom to top.
So in principle like the USB Rubber Ducky, but as a…

Peppper
- 31
- 1
- 3
3
votes
1 answer
Pygame display init on headless Raspberry Pi Zero (Raspbian Buster Lite)
I have Pi Zero running Raspbian Buster Lite, there's no display attached. It runs a python program at startup (crontab @reboot entry), something like this:
@reboot sudo su username /home/username/launcher.sh >> /home/username/crontab.log 2>&1
I have…

Passiday
- 7,573
- 8
- 42
- 61
2
votes
1 answer
Can someone help me create a uf2 file, for a Raspberry Pi Pico w/ FreeRTOS?
first off i am on macbook. I am trying to create a uf2 file for my raspberry pi pico. This is for a swarm robot that i am working on and i get the following error: arm-none-eabi-gcc: fatal error: cannot read spec file 'nosys.specs': No such file or…

Neil Patel
- 21
- 1
2
votes
1 answer
How to deploy an object detection model on the Raspberry Pi Zero?
I am trying to deploy an object detection model on the Raspberry Pi Zero. We have chosen the Raspberry Pi Zero because cost is our main issue. When I was installing tensorflow lite on pi0, I came to know that there is no tensorflow lite support for…

Sushmita
- 21
- 2
2
votes
1 answer
Cannot get a RPi Zero to emulate _both_ a USB Keyboard _and_ Mouse
I am trying to get my RPi Zero W to emulate a keyboard and mouse. I can get it to emulate a keyboard or a mouse successfully, but not both at the same time.
I followed the instructions at iStickToIt and Key Mime Pi to successfully emulate a…

pointonn
- 81
- 4