Here I go messing with timers and motion sensors again. I have a PIR motion sensor connected to a raspberry pi. I want to have the motion sensor have a cooldown of one minute before it checks for motion again. I’ve been messing around with threading some… but I don’t think I need that for this and would like to
Tag: raspberry-pi
how to update python in raspberry pi
I need python newest version in raspberry pi. I tried apt install python3 3.8 apt install python3 but this didnot work. And I also needed to update my raspberry pi python IDLE Answer First update the Raspbian. Then install the prerequisites that will make any further installation of Python and/or packages much smoother. And then install Python, maybe by downloading
Tkinter Python Auto Start on Raspberry Pi4
I am building my first tkinter application which works perfectly until I try to auto start it at boot. I have researched this topic and tried numerous things but nothing works correctly. I am running RPi4 with raspbian buster, python 3.7.3 and want this application to run on the RPI touch screen without requiring a user to login. I found
Kivy on_release not working on touchscreen – SDL issue?
I have developed a basic app with Kivy but on_release does not work properly on my button bind. I can get on_press to work every time but on_release works sporadically (maybe one in ten to twenty times) and sometimes on a different part of the screen than you’ve touched. I’m pretty confident it’s not a coding issue and one of
Why I can’t create a cups connection in my raspberry pi using python?
I want to use python code to print to my printer. I installed all the required module but it’s not running. The error I got is I got the code from the internet here’s the code my expected output is like this EPSON_LX-300 usb://EPSON/LX-300+?serial=L010209081 RICOH_Aficio_SP_100 usb://RICOH/ Aficio?serial=T382M977983 but I received an error. Answer you wouldn’t have installed cups instead of
How can i make OpenCV work fully on Raspberry Pi 4 (Raspbian Buster)?
I have tried many days to install OpenCV on my Raspberry Pi 4 with Raspbian Buster but i couldn’t get it done. The installation in most cases worked but when importing or using cv2 methods like cv2.imshow(), errors come up (see below). Did somebody get OpenCV working on a Raspberry Pi 4 or has an idea on how to get
How to embed machine learning python codes in hardware platform like raspberry pi?
I want to implement machine learning on hardware platform s which can learning by itself Is there any way to by which machine learning on hardware works seamlessly? Answer Python supports wide range of platforms, including arm-based. You raspberry pi supports Linux distros, just install Python and go on.
Why does Raspberry Pi need an OS to work?
I am just new to world of electronics. I was just looking about Raspberry Pi as I want to work on it, but a thing that I found that everyone is installing an OS first on the Raspberry Pi. I have worked upon PICs(16f) and Arduino board and it doesn’t need that I just write a code and make burn
How to trigger Python script on Raspberry Pi from Node-Red
I’m using Node-Red, hosted on a Raspberry Pi for an IoT project. How do I trigger a Python script that is on the raspi from Node-Red? I want to run a script that updates the text on an Adafruit LCD shield which is sitting on the Pi Should I be looking to expose the Python script as a web service
ImportError No module named pyaudio
I am writing a program in Python on RaspberryPi, But I am getting an error After that I tried but again get another Can you please guide me that how do I install PyAudio in RaspberryPi Answer Remove the directory PyAudio which already presen in /home/pi and then try these steps or also you can try this let us know