rpi.lol https://rpi.lol Raspberry Pi Fun Wed, 22 Nov 2023 21:05:48 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.1 https://porkbun-media.s3-us-west-2.amazonaws.com/misc/android-icon-192x192.png rpi.lol https://rpi.lol 32 32 Use an Old Android phone as a media reader https://rpi.lol/use-an-old-android-phone-as-a-media-reader/ Sat, 29 Apr 2023 19:13:10 +0000 https://rpi.lol/?p=38 Cool project davidhampgonsalves.com/junk-drawer-phone-as-a-music-streaming-server/
What projects have you done with an old phone? Would love to see projects that interface to the real world. ]]>
Raspberry Pi based drone https://rpi.lol/raspberry-pi-based-drone/ Tue, 25 Apr 2023 00:08:53 +0000 https://rpi.lol/?p=37 The lawn gnomes over at all3dp have it all laid out.
all3dp.com/2/raspbery-pi-drone-simply-explained/ ]]>
RPI Weather Station https://rpi.lol/rpi-weather-station/ Sun, 23 Apr 2023 20:07:51 +0000 https://rpi.lol/?p=36 Instructables has a nice tutorial on building a weather station. It uses a DHT22 for temp and humidity and a DS18B20 for temp and a BMP180 for pressure and altitude.
There is also a UV Sensor.
Optionally you can add an anemometer.
Al the data is sent to ThinkSpeak.
www.instructables.com/RPi-IoT-Weather-Station/ ]]>
JagerMachine (RPI that pours shots) https://rpi.lol/jagermachine-rpi-that-pours-shots/ Wed, 19 Apr 2023 18:14:11 +0000 https://rpi.lol/?p=35 This is quite amazing and would be entertaining if you like drinking shots.
gitlab.com/_Pegor/jagermachine ]]>
Raspberry Pi video doorbell https://rpi.lol/raspberry-pi-video-doorbell/ Wed, 19 Apr 2023 17:57:09 +0000 https://rpi.lol/?p=34 An intermediate project to keep an eye on who is at your front door.
www.hackster.io/sneaky/fast-video-doorbell-intercom-on-raspberry-pi-63b063 ]]>
RPI Photo Booth https://rpi.lol/rpi-photo-booth/ Tue, 28 Feb 2023 21:43:46 +0000 https://rpi.lol/?p=32 There are many plans out there for an RPI Photo Booth
Pick the one best for you and give us your rating.
developers.redhat.com/blog/2019/06/03/how-to-build-a-raspberry-pi-photo-booth# www.wikihow.com/Create-a-Photo-Booth-with-the-Raspberry-Pi steele.blue/photo-booth/ ]]>
Pi Hole https://rpi.lol/pi-hole/ Sat, 25 Feb 2023 19:08:15 +0000 https://rpi.lol/?p=31 Continue reading Pi Hole]]> Have you ever heard the phrase shut your pie hole?
Pi Hole is a DNS Server that can be used to block ads and unwanted domains. It runs on a raspberry pi (rpi). It acts as a DNS Sinkhole as some may say.
Think of it like shutting bad stuff using Pi Hole, or shut your pi hole.
LOL ]]>
OpenWrt on Raspberry Pi https://rpi.lol/openwrt-on-raspberry-pi/ Sat, 04 Feb 2023 20:06:31 +0000 https://rpi.lol/?p=30 Install OpenWrt on Raspberry Pi
Use your RPI as a router. All the details: openwrt.org/toh/raspberry_pi_foundation/raspberry_pi ]]>
We be jammin’ https://rpi.lol/we-be-jammin/ Sat, 30 Apr 2022 18:57:56 +0000 https://rpi.lol/?p=28 Continue reading We be jammin’]]>

Cobbled some code together from a few places. This be it.

  #! /usr/bin/python

# set lights based on ultrasonic sensor
# merge the adeept ultrasonic code w/ jamhat code
#JAM hat pin usage
# Component     GPIO.BCM    GPIO.BOARD  GPIO Zero object    Notes
# LED1          GPIO 5      Pin 29  lights_1.red    
# LED2          GPIO 6      Pin 31  lights_2.red    
# LED3          GPIO 12     Pin 32  lights_1.yellow     
# LED4          GPIO 13     Pin 33  lights_2.yellow     
# LED5          GPIO 16     Pin 36  lights_1.green  
# LED6          GPIO 17     Pin 11  lights_2.green  
# Button 1      GPIO 19     Pin 35  button_1    Connected to R8/R10
# Button 2      GPIO 18     Pin 12  button_2    Connected to R7/R9
# Buzzer        GPIO 20     Pin 38  buzzer  

# do the needful https://thepihut.com/blogs/raspberry-pi-tutorials/getting-started-with-the-jam-hat
# 
# sudo apt-get update
# sudo apt-get install python3-gpiozero python-gpiozero
# https://github.com/adeept/Adeept_Ultimate_Starter_Kit_Python_Code_for_RPi/blob/master/14_distance.py
# 
# if u r missing stuff, might want to run this: https://raw.githubusercontent.com/adeept/Adeept_RaspTank/master/setup.py
# for ultra, connect trigger to pin 16 (gpio23) and echo to pin 18 (gpio24)
# connect power to pin 4 and ground to pin 6
#
# for the ultrasonic sensor
# https://www.adeept.com/ultrasonic-sr04_p0047.html
# Power supply: 5V DC, quiescent current : <2mA,effectualangle: <15 ranging distance : 2cm~500 cm resolution : 0.3 cm

# 343 m/s * 39.37 inch/m = 13504 inches/s
import RPi.GPIO as GPIO
import time
from gpiozero import JamHat
from random import sample


def checkdist():
    GPIO.output(23, GPIO.HIGH)
    time.sleep(0.000015)
    GPIO.output(23, GPIO.LOW)
    while not GPIO.input(24):
        pass
    t1 = time.time()
    while GPIO.input(24):
        pass
    t2 = time.time()
    return (t2-t1)*13504/2

# batteries to power, turbines to speed
jamhat = JamHat()

jamhat.lights_1.blink()
time.sleep(0.5)
jamhat.lights_2.blink()
jamhat.buzzer.play('C4')
time.sleep(0.5)
#ready to move out
jamhat.off()

GPIO.setmode(GPIO.BCM)
#I guess jamhat sets to BCM?
GPIO.setup(23,GPIO.OUT,initial=GPIO.LOW)
GPIO.setup(24,GPIO.IN)
time.sleep(0.5)
print('Checking distance..')
dist = 999
try:
    while True:
        jamhat.off()
        dist = checkdist()
        print('Distance: %0.2f inches' %dist)
        #print 'Distance: %0.2f m' %checkdist()
        if dist > 20:
            jamhat.lights_1.green.on()
            jamhat.lights_2.green.on()
        if dist > 10 and dist <=20:
            jamhat.lights_1.yellow.on()
            jamhat.lights_2.yellow.on()
        if dist <=10:
            jamhat.lights_1.red.on()
            jamhat.lights_2.red.on()
            jamhat.buzzer.play('C4')
        time.sleep(0.5)
except KeyboardInterrupt:
    GPIO.cleanup()

]]>
naturebytes camera case https://rpi.lol/naturebytes-camera-case/ Thu, 28 Apr 2022 02:12:26 +0000 https://rpi.lol/?p=26 mightneed this thepihut.com/collections/raspberry-pi-camera-cases/products/naturebytes-wildlife-camera-case ]]>