FreshRSS

Zobrazení pro čtení

Jsou dostupné nové články, klikněte pro obnovení stránky.

Minecraft Chunk Loader

Sorry in advance if this is a basic question, I’m not knowledgeable in this area.

I play on a Minecraft Bedrock Edition Realm with a few of my friends often and I was curious if it would be possible to set up a raspberry pi to automatically log in and out of the game every day to load certain areas of our world where we have farms running.

I have a Raspberry Pi 3B from several years ago.

Very appreciative of any help at all

submitted by /u/Rowan22__ to r/RASPBERRY_PI_PROJECTS
[link] [comments]

raspberry pi drone

So, I was looking at how to build a drone and found out you can make a drone out of a pi so of course I really wanted to try this out for myself (here is what I am going off of to build it Raspberry Pi Drone | The Ultimate Project Drone (2021) (dojofordrones.com) ) what I need help with is that I don't want to buy a hole pixhawk I was wondering if I could use a 3DR Mini OSD MiniOSD Mavlink APM2.6 2.8 PIXHAWK Flight Control instead of the normal pixhawk. does anyone know.

submitted by /u/Revolutionary_Use_5 to r/RASPBERRY_PI_PROJECTS
[link] [comments]

Efficient Data Handling with Raspberry Pi Pico: Serial File Writing Tutorial

The Raspberry Pi Pico and Pico W can be used to write files to your local computer using Serial communication. This can be easily accomplished with a basic Python script on your PC, and then by implementing a simple MicroPython script on your Pico or Pico W.

This feature is especially useful for storing large amounts of data from sensors, which is a typical use for this microcontroller. It also facilitates the smooth transmission of existing files.

For a detailed tutorial and to access the code, check out my YouTube video linked here ⬇️

https://www.youtube.com/watch?v=OfJ5Y1FlW9

If you appreciate IoT-related content or find the video informative, please consider supporting the channel by liking, commenting, and subscribing. Thank you for your support!

submitted by /u/QuietRing5299 to r/RASPBERRY_PI_PROJECTS
[link] [comments]

My PiStation project

My PiStation project

This is my first Raspberry Pi project. I adapted a Raspberry pi 4 (4gb) inside this broken PSX. For the OSes, i made a multiboot with Recalbox, Android 13 AOSP and Raspberry Pi OS, via PINN OS. There are a few things that I still wanna do, like installing a touchscreen in the case lid and a power button in the GPIO pins (which I haven't figured out how to do in PINN OS yet).

submitted by /u/Revimaxinga to r/RASPBERRY_PI_PROJECTS
[link] [comments]

Help a newb: How to make a Raspberry Pi 4 run a video installation every night automatically

Hi everyone.

So we are making a rear projected video installation, and I have found a good projector and rear projection canvas. Now, I have a Raspberry Pi 4 that I want to use to feed the projector with a HDMI signal and play a collection of videos every night at a set time. Then, also at a set time, the whole shabang shuts down again/go to sleep.

The timeline would look something like this:

  1. At 8.00PM the Raspberry Pi 4 turns on/wakes from sleep.
  2. The projector wakes from sleep upon receiving the signal from the Pi over HDMI (solved!)
  3. The Pi begins playing a list of videos from a USB drive in full screen on repeat from the HDMI to the projector
  4. At 11PM the Pi goes to sleep again or shuts down (whatever is easiest)
  5. The projector powers of until the next evening where it all repeats (solved!).

Since I am not a programmer but just a IT savvy fellow - u know, the ones who help people with minor problems on their mac or pc - I don't know how to get the Pi to do this. Any pointers, help or otherwise is greatly appreciated!

submitted by /u/mobdk to r/RASPBERRY_PI_PROJECTS
[link] [comments]

Stream to YouTube Live from Raspberry Pi Camera in Python

https://www.youtube.com/watch?v=OcrY1MCQJkQ

Discover how to seamlessly set up a live video stream from your Raspberry Pi Camera to YouTube using Python and FFmpeg. This tutorial simplifies the process into just a few easy steps, making it an invaluable resource for anyone looking to broadcast live events or create continuous live feeds. Watch the video to master live streaming technology quickly and don't forget to subscribe for more helpful guides and updates!

Appreciate you Reddit

submitted by /u/QuietRing5299 to r/RASPBERRY_PI_PROJECTS
[link] [comments]

is it easy to Create a diy photo and video frame( sound optional) if it it's my first?

My dog died on Thursday so I want to create a digital frame of the pictures and videos i took on my Iphone 15 just for her. I want the diy frame to pictures and videos randomly if possible. So far this is all the parts i am looking to buy.

https://www.amazon.com/gp/product/B0BKGCB18T/ref=ox_sc_act_title_1?smid=A1PKC2PUMNR8VD&psc=1 7 Inch IPS LCD Touch Screen Raspberry Pi Monitor Display 1024×600 Capacitive Screen HDMI Monitor Compatible with Raspberry Pi 5/4B/3B+, BB Black, Windows 10 8 7

https://www.amazon.com/gp/product/B0CRSPKPNG/ref=ewc_pr_img_2?smid=A30ZYR2W3VAJ0A&th=1 Raspberry Pi 5 Starter Kit PRO - Turbine Black (128GB Edition) (4GB RAM)

I am planning to put the diy digital frame in a two way frame. That has her paw prints on one side and the frame on the other side. Is there anything else I need or need to know?

submitted by /u/TheDarkClaw to r/RASPBERRY_PI_PROJECTS
[link] [comments]

Cannot use Google Play Store with Android TV.

I just got Android TV on my Raspberry Pi using Konstakang and I am having trouble opening Google Play Store.

I followed this tutorial to install it, and used MindTheGapps 14.0.0.

For some reason whenever I open the Google Play Store app, it gives me the error "The version of the app isn't compatible with your device".

Please help, I have spent days trying to do this.

submitted by /u/_dark__mode_ to r/RASPBERRY_PI_PROJECTS
[link] [comments]

Cannot use Google Play Store with Android TV.

I just got Android TV on my Raspberry Pi using Konstakang and I am having trouble opening Google Play Store.

I followed this tutorial to install it, and used MindTheGapps 14.0.0.

For some reason whenever I open the Google Play Store app, it gives me the error "The version of the app isn't compatible with your device".

Please help, I have spent days trying to do this.

submitted by /u/_dark__mode_ to r/RASPBERRY_PI_PROJECTS
[link] [comments]

PI zero 2w 4g LTE rc car. Need a little help with some python and html coding!

PI zero 2w 4g LTE rc car. Need a little help with some python and html coding!

Hi there! I spent the past 3 days trying to make a 4g controlled fpv car. I used chat gpt to help write most of the code, but it seems quite difficult to get it to write a functioning program and not a "template".

My concept was to first make an rc car that is controlled over a wifi network and then use tailscale to make it work over internet. So far I have got mjpg-streamer up and running on startup with low latency over the internet and it works amazingly well! I had chatgpt write a python program that will set up a websocket server that will receive commands from an html page to control a servo motor and a brushless esc with a gaming controller. The html page works great and shows the video, and it's set up to also have a connection indicator for the websocket, which also shows "connected" when I connect to the pi. This is where I got stuck. When everything is up and running, and a servo is connected, the gaming controller does nothing. There is no sign of the commands even getting to the pi. I don't know much about python and html, so I don't know what chatgpt did wrong. I'll put both the html and python code in here if anyone knows how to get this working. Thanks!

https://preview.redd.it/biehs1m52pvc1.png?width=1915&format=png&auto=webp&s=b3200486e887ac58e340a170985bbd1e7116cca7

Here's the Python

import asyncio import websockets import RPi.GPIO as GPIO # Set up GPIO mode and pins GPIO.setmode(GPIO.BCM) SERVO_PIN = 13 # GPIO pin for servo control MOTOR_PIN = 11 # GPIO pin for motor control # Define the maximum and minimum duty cycles for servo and motor SERVO_MAX_DUTY_CYCLE = 12 # Example value, adjust as needed SERVO_MIN_DUTY_CYCLE = 2 # Example value, adjust as needed MOTOR_MAX_DUTY_CYCLE = 100 # Example value, adjust as needed MOTOR_MIN_DUTY_CYCLE = 0 # Example value, adjust as needed # Initialize GPIO pins GPIO.setup(SERVO_PIN, GPIO.OUT) GPIO.setup(MOTOR_PIN, GPIO.OUT) servo_pwm = GPIO.PWM(SERVO_PIN, 50) # PWM frequency for servo motor_pwm = GPIO.PWM(MOTOR_PIN, 50) # PWM frequency for motor servo_pwm.start(50) # Start PWM for servo motor_pwm.start(50) # Start PWM for motor async def control_rc_car(websocket, path): async for message in websocket: data = message.split(',') if len(data) == 2: steering_angle = int(data[0]) motor_speed = int(data[1]) # Map steering angle to duty cycle for servo servo_duty_cycle = map_servo_angle_to_duty_cycle(steering_angle) # Map motor speed to duty cycle for motor motor_duty_cycle = map_motor_speed_to_duty_cycle(motor_speed) # Set servo duty cycle servo_pwm.ChangeDutyCycle(servo_duty_cycle) # Set motor duty cycle motor_pwm.ChangeDutyCycle(motor_duty_cycle) # Output servo and motor controls print(f"Servo Duty Cycle: {servo_duty_cycle}, Motor Duty Cycle: {motor_duty_cycle}") else: print("Invalid message format") def map_servo_angle_to_duty_cycle(angle): # Map the servo angle to a duty cycle within the specified range duty_cycle = SERVO_MIN_DUTY_CYCLE + (angle / 180) * (SERVO_MAX_DUTY_CYCLE - SERVO_MIN_DUTY_CYCLE) return duty_cycle def map_motor_speed_to_duty_cycle(speed): # Map the motor speed to a duty cycle within the specified range duty_cycle = MOTOR_MIN_DUTY_CYCLE + (speed / 100) * (MOTOR_MAX_DUTY_CYCLE - MOTOR_MIN_DUTY_CYCLE) return duty_cycle async def main(): server = await websockets.serve(control_rc_car, "localhost", 8765) await server.wait_closed() asyncio.run(main()) 

Here's the HTML

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>RC Car Client</title> <style> /* Reset default margin and padding */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: Arial, sans-serif; background-color: #F5F5F5; color: #333; } .top-bar { background-color: #E21E24; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } h1 { color: #FFF; } .container { display: flex; flex-direction: column; align-items: center; background-color: #FFF; padding: 20px; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); margin-top: 20px; } label { font-weight: bold; margin-bottom: 10px; } input[type="text"], input[type="number"] { padding: 10px; margin-bottom: 20px; border: 1px solid #CCC; border-radius: 5px; box-shadow: none; } button { background-color: #FFF; color: #E21E24; border: 1px solid #E21E24; padding: 10px 20px; border-radius: 5px; cursor: pointer; transition: background-color 0.3s ease; } button:hover { background-color: #E21E24; color: #FFF; } video { width: 100%; max-width: 100%; height: auto; border-radius: 5px; margin-bottom: 20px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); border: 2px solid #333; } /* Side menu styles */ .side-menu { height: 100%; width: 0; position: fixed; top: 0; right: 0; background-color: #E21E24; overflow-x: hidden; transition: 0.5s; padding-top: 60px; z-index: 1000; } .side-menu a { padding: 10px 15px; text-decoration: none; font-size: 20px; color: #FFF; display: block; transition: 0.3s; } .side-menu a:hover { background-color: #B10E13; } .side-menu .close-btn { position: absolute; top: 10px; right: 10px; font-size: 36px; margin-left: 50px; } /* Hamburger menu icon */ .menu-icon { cursor: pointer; font-size: 24px; margin-right: 10px; } .menu-icon:hover { color: #FFF; } </style> </head> <body> <div class="top-bar"> <h1>RC Car Client</h1> <span id="status" class="status-indicator">Disconnected</span> <span id="fps" class="fps-meter">FPS: 0</span> <input type="text" id="pi_ip" placeholder="Raspberry Pi IP" style="width: auto;"> <button onclick="connect()">Connect</button> <div class="menu-icon" onclick="openSideMenu()">&#9776;</div> </div> <div id="side-menu" class="side-menu"> <a href="javascript:void(0)" class="close-btn" onclick="closeSideMenu()">&times;</a> <label for="servo_trim_pos">Servo Trim Positive:</label> <input type="number" id="servo_trim_pos" min="0" max="100" value="0"> <label for="servo_trim_neg">Servo Trim Negative:</label> <input type="number" id="servo_trim_neg" min="0" max="100" value="0"> <label for="max_speed">Max Speed:</label> <input type="number" id="max_speed" min="0" max="100" value="100"> <div class="checkbox"> <input type="checkbox" id="controller_checkbox"> <label for="controller_checkbox">Use Gaming Controller</label> </div> <button onclick="sendSettings()">Apply Settings</button> <button onclick="toggleFullScreen()">Fullscreen</button> </div> <div class="container"> <!-- Video element will be dynamically initialized after connection --> </div> <script> var ws; var lastIpAddress = localStorage.getItem("lastIpAddress"); if (lastIpAddress) { document.getElementById("pi_ip").value = lastIpAddress; } function openWebSocket(ip) { if (ws && ws.readyState === WebSocket.OPEN) { return; } ws = new WebSocket('ws://' + ip + ':8765'); ws.onopen = function() { updateStatus(true); initializeVideo(); startFPSCounter(); }; ws.onclose = function() { updateStatus(false); }; } function closeWebSocket() { if (ws) { ws.close(); } } function openSideMenu() { document.getElementById("side-menu").style.width = "250px"; } function closeSideMenu() { document.getElementById("side-menu").style.width = "0"; } function toggleFullScreen() { var video = document.getElementById("video"); if (video.requestFullscreen) { video.requestFullscreen(); } else if (video.mozRequestFullScreen) { video.mozRequestFullScreen(); } else if (video.webkitRequestFullscreen) { video.webkitRequestFullscreen(); } else if (video.msRequestFullscreen) { video.msRequestFullscreen(); } } function connect() { var ip = document.getElementById("pi_ip").value; localStorage.setItem("lastIpAddress", ip); openWebSocket(ip); } function initializeVideo() { var container = document.querySelector(".container"); var existingVideo = document.getElementById("video"); if (existingVideo) { container.removeChild(existingVideo); } var video = document.createElement("img"); // Use <img> element for MJPG Streamer video.id = "video"; video.src = "http://" + document.getElementById("pi_ip").value + ":8080/?action=stream"; // MJPG Streamer URL video.style.maxWidth = "100%"; container.appendChild(video); } function startFPSCounter() { var video = document.getElementById("video"); var fpsElement = document.getElementById("fps"); var fps = 0; var start = Date.now(); function countFPS() { fps++; var elapsed = Date.now() - start; if (elapsed >= 1000) { fpsElement.textContent = "FPS: " + fps; fps = 0; start = Date.now(); } requestAnimationFrame(countFPS); } countFPS(); } function updateStatus(connected) { var statusElement = document.getElementById("status"); if (connected) { statusElement.textContent = "Connected"; statusElement.style.color = "green"; } else { statusElement.textContent = "Disconnected"; statusElement.style.color = "red"; } } // Function to send settings to WebSocket server function sendSettings() { var servoTrimPos = document.getElementById("servo_trim_pos").value; var servoTrimNeg = document.getElementById("servo_trim_neg").value; var maxSpeed = document.getElementById("max_speed").value; var useController = document.getElementById("controller_checkbox").checked; var settings = { servoTrimPos: servoTrimPos, servoTrimNeg: servoTrimNeg, maxSpeed: maxSpeed, useController: useController }; ws.send(JSON.stringify(settings)); } </script> </body> </html> 
submitted by /u/RX_LOST to r/RASPBERRY_PI_PROJECTS
[link] [comments]

Pi + Flask Do I Need to Use Threading to Run my Script and Use the Web Server Just For Data Info, or is There Another Way?

Some Context:

I have a small greenhouse where I am growing some tomatoes. I have a DHT22 and a relay that controls the lights. My script runs on start up and at the moment I just write temp + humidity data and the status of the light to a txt file.

I want to have upgrade my project a bit and basically have a website that which displays the current status of the light, the current temp and the current humidity. I also will be adding sqlite3 and writing the data to the database, I then want to use this data in the website to track temp+humidity over time for instance.

I was doing some research about how I implement this. I chose flask as I have messed around with it before for this basic sort of thing. But where I am coming a bit stuck is currently my script "as most" runs with a while true loop, and flask has something similar.

Is it possible to run my app and the server within the same loop, or is it possible to do this without anything extra? I have also researched this a bit and found that I could implement this with threads, is this something that anyone would recommend?

I am looking for the simplest solution but happy to look into threading if it works, from what I have seen it looks like this would be the best option as I can run both scripts at the same time (at least I think thats how it works).

Any advise would be appreciate, thanks in advance.

submitted by /u/ChrisBez87 to r/RASPBERRY_PI_PROJECTS
[link] [comments]

Out of ideas for my Pi Zero 2 W

So i got a pi zero 2 w a couple years ago to run octoprint on an ender 3. Fell to the "mod to hell" on it, and never got around to using it extensively before i had to sell the ender 3. The new printer i'm saving up for has wireless print server stuff integrated, so i have this pi zero 2 w just hanging out. Been through the list and tried:

  1. pi-hole: setup went swimmingly until i realized that Xfinity dont let you modify dns settings on their routers and i dont feel like manual configuring every single device.

  2. Pivpn: didnt really work as planned. Idk how else to explain but i dont think its happening either.

  3. Briefly entertained a media server (dabbled with plex in the past) before coming to the conclusion that the lists that say that are probably liars considering the performance.

All the other responses i can find require additional components and i'm kinda looking for minimal, and possible with headless setup to keep things simple.

What projects if any would be possible with this Pi device beyond what i can find on google?

submitted by /u/ShittyPhoneSupport to r/RASPBERRY_PI_PROJECTS
[link] [comments]

Built a Raspberry Pi Sensor Panel for My PC - But can't get it to start with data pulled from the PC

Long winded title - sorry for that.

In short I built a Raspberry Pi Sensor Panel which displayed the Aida64 sensor data info for my PC on my desk.

This was working until I had some PC issues. the resulting reinstall of Windows killed my install of Aida64.

I have now reinstalled Aida64, and recreated the panel layout in the LCD Display and set the Pi back up, but the Pi refused to start Chronium and display the details from my PC

It also refuses to run unclutter (removing the mouse pointer)

Pi is current (last update / upgrade) was run today.

I have edited the autostart via

sudo nano /etc/xdg/lxsession/LXDE-pi/autostart 

and included the following:

@xset s off @xset -dpms @xset s noblank @chromium-browser --kiosk --disable-restore-session-state --ignore-certificate-errors http// PC IP ADDRESS 

yet when I restart the Pi it goes straight to the desktop.

I am not a programmer, though I can and do follow instructions (yolo is not for me when it comes to programing) so any directions on where I am going wrong here would be helpful

submitted by /u/rjtyler1869 to r/RASPBERRY_PI_PROJECTS
[link] [comments]

Raspberry pi project with multiple uses.

I would like to build a raspberry pi based project that incorporates some coding, some AI , machine learning and maybe a neural network. It doesn’t have to create world peace or solve the climate crisis but it must be useful in some simple ways. Something that a teams of kids who help build as a project. May for a computer club but must be simple enough for noobs like me. Any ideas please.

submitted by /u/sunchallenger to r/RASPBERRY_PI_PROJECTS
[link] [comments]

Rescue me from my idiocy -- I made USB gadget. Now what???

Rescue me from my idiocy -- I made USB gadget. Now what???

I always liked the idea of turning a Pi into a USB gadget. It just sounded cool to me. So when I got my hands on a Pi Zero (no W!) and a Zero Stem kit, I broke out the soldering iron and made a nice little USB gadget for myself.

Well, like the dog that caught the car, I am now confused. What the heck should I do with this thing???

https://preview.redd.it/zwppofcvlgvc1.jpg?width=3024&format=pjpg&auto=webp&s=2a64a0ef36bf54677016b5ff976e0793ff9bde71

submitted by /u/billydent to r/RASPBERRY_PI_PROJECTS
[link] [comments]

What RPI board should I use?

Forgive me, I am new to raspberry pi since our professor won't allow us to use arduino anymore for the reason that we are not in high school anymore. Anyways, what specific RPI board should I use having these sensors, AD8232 ECG sensor, MAX30102 PPG, and DSB1809 Temperature sensor. The data will be displayed to the OLED Display. Please recommend a cheaper board that can accommodate these sensors. I would be very glad to hear your inputs in my project :).

submitted by /u/bingboonk to r/RASPBERRY_PI_PROJECTS
[link] [comments]
❌