Quantcast
Channel: Raspberry Pi Forums
Browsing all 4910 articles
Browse latest View live

C/C++ • Raspberry pi 4 mcp3008 C++ coding

I want to setup mcp3008 on raspberry pi 4. I took this codeCode: #include <wiringPi.h>#include <stdio.h>#include <unistd.h>int readMCP3008(int &channel);#define CHANNELS 4#define...

View Article


Troubleshooting • Trying to setting up Open-CV for Object Detection on a...

I try to follow these instructions but I am stuck at those first steps. After I enter: sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev, I receive the following error messages:...

View Article


General discussion • RPI Button Code

I am buying a button to attach to my RPI and I want it to run 1 python script when button is held down and 1 python script when button is let go. What should I do?Statistics: Posted by Henrik Gill —...

View Article

Camera board • Camera is not able to click the images

I am currently running the python script on Raspberry Pi 4 Model B Rev 1.2 and i have enabled the camera legacy in raspi configurationand the python script is:from time import sleepfrom datetime...

View Article

Beginners • I am looking to setup a pi zero in ad-hoc or access point mode...

As stated, I am looking to set up a pi zero in ad-hoc or access point mode... I am unable to find any newer guides on doing this with Pi OS, Bookworm. I am planning on placing this Pi Zero (with an...

View Article


Troubleshooting • Help Needed Newbie with Zero 2W with Camera v2

I am a newbie to the pi zero 2 w. I need guidance and help to understand what I am doing wrong. I have connected the camera module 2 to the zero 2 w and cannot get it to detect or work. Activating the...

View Article

Automation, sensing and robotics • Monitoring Multiple External Battery...

Hi,The scenario i am working on is I have a car in storage that has 2 lithium-ion batteries. I have dedicated chargers (one for each)but the manufacturer recommends that the chargers not be left on...

View Article

HATs and other add-ons • How to turn a PiJuice off?

I would like to be able to fully turn off a Pi with PiJuice attached. The reason is that it is a physical back up for another device and I need to store it but prefer not to pull the battery out - and...

View Article


Beginners • Can't blacklist Seagate drives for use w/ SmartMon

So, first of, thanks for the help. I had this exact setup working fine on my Pi4 and SmartMon worked fine. Bought a Pi5 and am transferring over my external Seagate drives and it doesn't see them....

View Article


Beginners • libcamera-vid fails when running headless

I’ve been using the legacy camera option to take bird videos with an HQ camera, a motion detector and a Raspberry Pi 3B+. I Run the code headless because the camera is out in the yard. I have not had...

View Article

Image may be NSFW.
Clik here to view.

Interfacing (DSI, CSI, I2C, etc.) • Pi5 - issue with display on SPI0 (CS0)...

I'm seeing an issue on Pi5 with an SPI display (http://www.lcdwiki.com/4.0inch_SPI_Module_ST7796) . The display module is connected to SPI0 and uses CS0.Code: # 480x320pixels 4in SPI...

View Article

Raspberry Pi OS • Why 32bit Bookworm Not Recommended in PI Imager for ZERO W

I was just nicely corrected in another post viewtopic.php?t=366764 on the fact that 32bit Bookworm will run on the Zero W.My question is that when I selected the ZERO W, on the latest PI Imager, why...

View Article

Raspberry Pi OS • rpi-update

I am a newbie in Raspberry Pi, I tried to update my firmware after flashing a new OS onto the SD card with the rpi-update command, somehow everything goes haywire and when I tried to click on the...

View Article


Interfacing (DSI, CSI, I2C, etc.) • BCM chip offset base /dev/gpiomem for...

Hello,There is an old code that runs fine on 32bit OSes.Code is not my own and from a MPL v2 licensed library. It is not developed any more.https://github.com/ultibohub/AsphyreNow, I am trying to run...

View Article

Camera board • raw .dng video and Pyqt5 ThreadPoolExecutor/QThreadPool?

Hi,A few months ago, therealdavidp helped me build a python script that allowed me to record uncompressed .dng files at a high enough framerate to turn them into a video sequence. Here's the code in...

View Article


Advanced users • How to connect two Raspberry Pi 5 devices together using PCI...

Hello,I wonder how to connect together two (or more) Raspberry Pi 5 by using faster link than gigabit ethernet. Rasperry Pi 5 has PCI Express, so I think there may be a way to achieve much faster...

View Article

Interfacing (DSI, CSI, I2C, etc.) • Adapting CEC from vchi to KMS

I have an implementation of CEC that monitors button presses from a TV remote over CEC and translates them to keypresses.It uses the old vchi interfaces such as:Code: vc_vchi_cec_init(vchiq,...

View Article


Compute Module • CM4 HDMI QUESTIONS

Hi!I am designing a hat with a CM4.The question is to the HDMI.I am trying to see if I need:1. ESD/EMI common mode filter on data / Clock, and if there is recommendation. I know the CM4 has some...

View Article

General discussion • NVME M.2 card from RPi Foundation

Good morning,Is there a planned release date for RPi5 NVME M.2 card from RPi Foundation ?Regards.Statistics: Posted by phil995511 — Mon Mar 04, 2024 4:19 pm — Replies 2 — Views 80

View Article

Bare metal, Assembly language • Need help with assembler OPcodes and gdb

I'm learning assembler programming on my Raspberry Pi 4 running RasPiOS Bookworm, 64bit, GUI.It's not easy to find reliable information.Here's the problem I'm having:Code: .global _start_start: mov...

View Article
Browsing all 4910 articles
Browse latest View live