riothedev
June 24, 2024, 15:08

5V out on ESP32

Hey! I know this is a raspberry pi server but I didn't know any other place to ask. I have an ESP32-WROOM-32 and it seems to only have a 3.3v output and i need a 5v out to power my lcd, i've found that connecting it to the VIN pin gives me the 5v that i need but is that okay to do since its supposed to be the input? Thanks in advance.
matze15
June 24, 2024, 12:33

Raspberry pi pico w bluetooth connection with obd2 adapter

Hello, I have the raspberry pi pico w with bluetooth as well as a basic bluetooth obd2 reader. I will post the link to it as well. I was wondering if someone could help me with a basic python script so i can connect to the obd2 adapter via Bluetooth. That's the reader i got: https://www.amazon.de/gp/aw/d/B011NSX27A/? Kind regards
2h7
June 24, 2024, 04:09

using a 7 inch display on Pi 5 running Kali Linux forces res of 1080p

its a HDMI display
justaccsolol
June 23, 2024, 19:50

can't install flask over pip

need a response ASAP!!!
sebastian0093417
June 23, 2024, 15:27

Can sb help me connecting to my raspberry pi zero with ssh?

I tried a few times to connect to my raspberry pi zero and it had always the problem that the password was incorrect. I tried flashing the card a few times but now i can't even put in any password. Can sb tell me what i should do?
bellanyah
June 23, 2024, 02:43

I need a project help

Basically i. Have a rasbarry pi and need soemone really smart to help me set up a idea that transmits a counter to a small display from a airsoft tracer unit
bourdain
June 22, 2024, 23:32

Raspberry Pico W - Can't make a POST Request

Hey, I'm trying to code my Pico to make a POST with a server with an API I created, however, I can't seem to get it to send a post, here's what I have
import network
import socket
from time import sleep
import machine
import urequests as requests  # Use urequests as an alternative to requests in MicroPython
import usocket as socket
import ssl

# Wi-Fi credentials
ssid = 'WifiName'
password = 'abc123abc123'

# Humidity sensor configuration
sensor_pin = machine.ADC(26)
dry_value = 65535  # Adjust this based on completely dry sensor reading
wet_value = 0  # Adjust this based on completely wet sensor reading

# Function to connect to Wi-Fi
def connect_wifi(ssid, password):
    print("Connecting to Wi-Fi...")
    wlan = network.WLAN(network.STA_IF)
    wlan.active(True)
    wlan.connect(ssid, password)
    while not wlan.isconnected():
        print("Waiting for connection...")
        sleep(1)
    print('Connected to Wi-Fi:', wlan.ifconfig())
    return wlan

# Function to send HTTP POST request
def send_humidity(humidity):
    print(f"Sending humidity data: {humidity}%")
    url = f'https://ThisIsNotARealURL.zapto.org/api/humidity?humidity=0.0'
    try:
        print(f"Attempting to connect to {url}...")
        response = requests.post(url)
        print('POST response status code:', response.status_code)
        print('Response text:', response.text)
        response.close()
    except Exception as e:
        print("Failed to send HTTP POST request:", e)

# Main loop
while True:
    print("Reading sensor value...")
    sensor_value = sensor_pin.read_u16()
    print(f"Raw sensor value: {sensor_value}")

    dryness_percent = 100 - ((sensor_value - wet_value) / (dry_value - wet_value)) * 100
    print(f"Calculated dryness percent: {dryness_percent}")

    # Connect to Wi-Fi
    wlan = connect_wifi(ssid, password)
    
    # Send HTTP POST request
    send_humidity(dryness_percent)
    
    # Disconnect from Wi-Fi
    print("Disconnecting from Wi-Fi...")
    wlan.disconnect()
    wlan.active(False)
    print("Disconnected from Wi-Fi.")
    
    # Deep sleep for 1 minute (60000 milliseconds)
    print("Entering deep sleep for 1 minute...")
    
Reading sensor value... Raw sensor value: 65535 Calculated dryness percent: 0.0 Connecting to Wi-Fi... Connected to Wi-Fi: ('192.168.1.174', '255.255.255.0', '192.168.1.1', '192.168.1.1') Sending humidity data: 0.0% Attempting to connect to https://ThisIsNotARealURL.zapto.org/api/humidity?humidity=0.0... Failed to send HTTP POST request: no module named 'ussl' Disconnecting from Wi-Fi... Disconnected from Wi-Fi. Entering deep sleep for 1 minute... I've been going all around trying to figure this out, these are the packages I have on my build of MicroPython v1.23.0 on 2024-06-02; Raspberry Pi Pico W with RP2040 using
help('modules')
__main__          asyncio/__init__  hashlib           rp2
_asyncio          asyncio/core      heapq             select
_boot             asyncio/event     io                socket
_boot_fat         asyncio/funcs     json              ssl
_onewire          asyncio/lock      lwip              struct
_rp2              asyncio/stream    machine           sys
_thread           binascii          math              time
_webrepl          bluetooth         micropython       tls
aioble/__init__   builtins          mip/__init__      uasyncio
aioble/central    cmath             neopixel          uctypes
aioble/client     collections       network           urequests
aioble/core       cryptolib         ntptime           vfs
aioble/device     deflate           onewire           webrepl
aioble/l2cap      dht               os                webrepl_setup
aioble/peripheral ds18x20           platform          websocket
aioble/security   errno             random
aioble/server     framebuf          re
array             gc                requests/__init__
Why doesn't my build have USSL 😦 It's supposed to be the latest one, can anyone help me figure this out
mackagg
June 22, 2024, 15:26

libcamera-vid crashing after few seconds

5 seconds is max lenght before crash, I have rpi zero 2w with 2gb swap Ping me when you reply
goon3390
June 22, 2024, 00:16

Adding a Power Button

Previously I had set up a power button by having one pin connected to gpio 3 and another to GND and I had a script that ran in the background. I tried the same guide as previously and watched many more yet none seem to work.
goon3390
June 21, 2024, 18:53

Running Script on startup

Previously i used "sudo nano crontab -e" and pasted the command at the bottom, and this worked however now when i try do that on my new raspberry pi (same model) it does not work? is there another way i can do this?
dethress
June 20, 2024, 14:34

Need help with DHT11 with Raspberry Pi Pico

Hey, I just installed a DHT11 sensor on my breadboard, connected rp pico to my PC, installed dht.py library onto it and triet running a simple code to test if it works but all I get is :
MPY: soft reboot
Invalid pulse count error: Expected 84 but got 1 pulses
Invalid pulse count error: Expected 84 but got 1 pulses
GND is connected to GND, Data to GPIO26 and VCC to 3v3. Also here's the link where I got dht.py from: https://www.instructables.com/DHT11-With-Raspberry-Pi-Pico/
yhoseph00
June 19, 2024, 02:28

Help interpret this message on boot

I have no clue what this means or how to solve it. I assume that I messed something up with trying to install the os onto the microsd. Using a pi4
combustiblel3m0n
June 19, 2024, 02:11

Unable to SSH into rpi 0 WH via. USB

While attempting to SSH into rpi 0 wh on my Windows device, i noticed that my pi is showing "Network Cable Unplugged" in "Control Panel\Network and Internet\Network Connections", and when i try pinging raspberrypi.local, it says that the host is not found. i am following the guide hosted here: https://notenoughtech.com/featured/raspberry-pi-zero-ssh-usb/
geo4win
June 18, 2024, 14:29

pi zero WH wont change date/time

pi zero WH wont change date/time even with WiFi connection
nicole457
June 18, 2024, 12:39

Object Detection for Raspberry pi

Hi everyone, I am doing an object detection project using cvat and yolo, is it possible to put all these folders inside my raspberry pi so I can run object detection using my raspberry pi?
tkpersona
June 18, 2024, 05:52

why does raspberrypi 400 use the swap partition when ram isnt full

My raspberry pi has 4GB ram and usually when the available ram is down to about 1GB my raspberry pi just decided to not use the ~1GB avliable ram and start using the swap partition causing my system load to sky rocket to over 100 (due to high loads of IO) Any idea on how to fix this issue?
e_xie
June 18, 2024, 00:23

Using ATWINC1500 with Raspberry Pi

Hey everyone, I made a small HAT for the raspberry pi. It has an ATWINC1500 WiFi module. Any idea as to how to make it show up in ifconfig as a normal wifi interface? I've tried the WiFi101 libraries but ofc since they're intended for arduino, there's no makefile
pangolino30
June 17, 2024, 11:57

Stream Picamera module 3 over network

Hi, I am building a video surveillance system. I have a Raspberry PI 4 to which a Camera Module 3 Wide is connected. My goal is to recover the image from this camera on another Raspberry (PI5). I currently have a Python program that allows me to stream in MJPEG but the quality is not optimal. I would like to stream in RTSP but I haven't found a working method. Have any of you ever done this? Thank you in advance for your answers.
daowlie10
June 16, 2024, 21:39

RPi 5 on 4k HDMI TV

Raspberry Pi 5 Ubuntu 24.04 LTS LG 55uq7070zue TV (4K, 60Hz) The HDMI cord and adapter definitely work, but I can't get it to display on the TV. The TV gets input, but only displays a black screen. How can I get my Pi 5 to display on this TV?
dethress
June 16, 2024, 13:28

Need help with an I2C LCD display

I have a breadboard with Raspberry Pi Pico on it and connected an I2C LCD Display. I can't get the LCD to "work" though. Can't print anything on it despite having the libraries installed on the micro controller. I've tried .putstr and .putchar but neither work, although .backlight_on and .backlight_off work. If this makes things clearer, I have a 2x16 LCD with I2C LCM1602 converter
winikolo
June 16, 2024, 12:46

scp file from raspberrypi to windows

if anyone knows how to properly do it lemme know quickly please
philip.2000
June 16, 2024, 12:31

Can I log the free RAM on my Pico during runtime?

I am trying to log my ram usage on my Pico but I couldn't find any examples for the C SDK. Is there any viable way to do that? Thank you!
.jozekk
June 16, 2024, 09:03

HELP needed with a ultrasonic sensor on pico WH

check if all the pins are connected correctly
denis.1337
June 15, 2024, 16:50

Questions about OS

what is the "lightest" as in storage and resource wise OS i can install on a raspberry pi?
louisandthecat
June 15, 2024, 10:47

Updating pi pico directly or remotely

I’m just getting started with the pico. With the pi I’m used to uodsting it remotely so it doesn’t have to always be plugged into my computer. I just assumed the pico would be the same but after about a day of messing about trying to get WebREPL set up, telnet, ftp), all of which has just sent me round and round in circles) I wondered if I’m just approaching this wrong. Is the idea with the pico that you just have to take it out of whatever device it’s sitting in and update the code manually when you want to change it? I am a bit confused about this as it seems to be what most people do but that seems quite difficult to do if you want it embedded in something and don’t want to be endlessly unscrewing and taking everything apart. On the other hand maybe the idea is that these devices are supposed to be for one very simple bit of code and shouldn’t need changing a lot? I feel I’m missing something very simple here.
astrydax
June 14, 2024, 07:13

Displaying image on TFT display

I got this display with buttons https://www.waveshare.com/wiki/Pico-LCD-1.3 and I've been trying to use this driver https://github.com/russhughes/st7789_mpy I've been beating my head against this for several days an I'm making no progress. I'm trying to display an image file on the display using a rp pico w. The end goal is to make a simple tamagotchi like game for my neice.
.electrified
June 13, 2024, 20:37

Help Needed: Interfacing ST7302 LCD Display with Raspberry Pi Zero 2 W

Hello everyone, I'm currently working on a project where I need to interface an ST7302 LCD display with my Raspberry Pi Zero 2 W, and I'm running into some issues. I’ve tried following various guides and repositories, but haven’t been successful in getting the display to work properly. Project Setup: Display Model: ST7302 LCD Microcontroller: Raspberry Pi Zero 2 W Connection Type: SPI Connections: > GND - GND > VCC - 3.3V > SCL (SPI Clock) - GPIO 11 (SPI0 SCLK) > SDA (SPI Data In) - GPIO 10 (SPI0 MOSI) > RES (Reset) - GPIO 25 > DC (Data/Command) - GPIO 24 > CS (Chip Select) - GPIO 8 (SPI0 CE0) Problems Encountered: Initialisation Issues: The display does not seem to initialise properly. I suspect the initialisation sequence might be incorrect. Noise on Display: When running the code, the display shows noise for a few seconds and then goes blank. No Clear Output: Attempts to display patterns or text have been unsuccessful, resulting in either no output or random pixels.
import spidev
import RPi.GPIO as GPIO
import time

GPIO.setwarnings(False)
DC_PIN = 24
RESET_PIN = 25
CS_PIN = 8

spi = spidev.SpiDev()
spi.open(0, 0)
spi.max_speed_hz = 500000
spi.mode = 0b00

GPIO.setmode(GPIO.BCM)
GPIO.setup(DC_PIN, GPIO.OUT)
GPIO.setup(RESET_PIN, GPIO.OUT)
GPIO.setup(CS_PIN, GPIO.OUT)

def reset():
    GPIO.output(RESET_PIN, GPIO.HIGH)
    time.sleep(0.1)
    GPIO.output(RESET_PIN, GPIO.LOW)
    time.sleep(0.1)
    GPIO.output(RESET_PIN, GPIO.HIGH)
    time.sleep(0.1)

def write_command(command):
    GPIO.output(DC_PIN, GPIO.LOW)
    GPIO.output(CS_PIN, GPIO.LOW)
    spi.xfer([command])
    GPIO.output(CS_PIN, GPIO.HIGH)

def write_data(data):
    GPIO.output(DC_PIN, GPIO.HIGH)
    GPIO.output(CS_PIN, GPIO.LOW)
    spi.xfer([data])
    GPIO.output(CS_PIN, GPIO.HIGH)

reset()
write_command(0x01)  # Software reset
time.sleep(0.12)

write_command(0x11)  # Sleep out
time.sleep(0.12)

write_command(0x3A)  # Set color mode
write_data(0x05)  # 16-bit color

write_command(0x29)  # Display on

def clear_display():
    write_command(0x2C)  # Memory Write
    for i in range(250  122):
        write_data(0x00)

clear_display()

try:
    while True:
        time.sleep(1)
except KeyboardInterrupt:
    GPIO.cleanup()
    spi.close()
What I've Tried: Double-checked all connections. Verified GPIO pin numbers and corresponding functions. Attempted different SPI settings and initialisation sequences. Questions:* Is there anything obviously wrong with my code or connections? Can anyone provide a correct initialization sequence for the ST7302 display? Are there specific SPI settings that I should use for this display? Any help or suggestions would be greatly appreciated. Thank you!
fthg38
June 13, 2024, 12:38

i have raspberry pi 4 but its from a device, it doesnt have any usb port or hdmi (display)

i cant ssh to device i tried to setup os 32 bit when i try to ssh it says connection refused
gogipro
June 12, 2024, 14:17

would this screen work with a pi5?

sorry page is lithuainian just use google site translate https://www.anodas.lt/waveshare-ekranas-raspberry-pi-3-2-zero-mikrokompiuteriui-lcd-ips-7-1024x600px?utm_source=kaina24.lt&utm_medium=referral and i am gonna use this cable: https://www.anodas.lt/raspberry-pi-kabelis-ekranas-22-laidai-0-5-mm-zingsnis-15-laidu-1-mm-zingsnis-50-cm?utm_source=kaina24.lt&utm_medium=referral and i am going to buy the screen and a pi5 how suld i do it so that i can play retro pi but also have the browser?
sapu98
June 12, 2024, 13:39

rpi5 ssd boot HELP

Hi, I'm trying to install raspbian on a ssd m2 I just received. I don't have an adapter so I mounted the ssd on my laptop to use rpi imager. The problem is that the imager does not see the ssd when it's time to install the OS. I've tried to format the ssd but still doesnt popup in the list... https://share.ldflabs.com/XuYA5/ZUFUnesA60.png https://share.ldflabs.com/XuYA5/TAHuwUSe88.png Do you know how can I work around this problem?