How to move the robot using raspberry pi? - python

I used a raspberry pi 3 model B and a camera to make a robot detect fire, using https://www.youtube.com/watch?v=-ZyFYniGUsw However I am not sure how to make this robot move after it detects fire. The L298N motor driver (DC motors are connected to this motor driver) and a logitech camera of this robot are connected to the raspberry pi of this robot. I know that it maybe better to use fire sensors to detect fire, however for my project I decided to use a camera.
My last lines of code in the raspberry pi terminal are (these are similar to the lines of code at about 10:41 in the youtube link above except instead of using android.tflite, fire.tflite is used):
source tflite/bin/activate
cd examples/lite/examples/object_detection/raspberry_pi/
cp ~/Downloads/fire.tflite .
python detect.py --model fire.tflite
So is there a way to make the robot move using raspberry pi each time it detects fire?

Related

Can you recreate Cronus zen with a raspberry PI

Is it possible to recreate the Cronus zen with a Raspberry pi, since the Raspberry pi can send and receive data using Bluetooth id figure it has the power to do that, I’m curious. If it’s possible, how?
I’ve searched google and found a python package that can detect controller buttons on pressed and released but it doesn’t have a send data feature.

Raspberry Pi web server that controls hardware

First, thank you all for your useful posts. I can usually find what I need from SE without needing to make a post.
I'm hoping to make a timer/sensor device that I can control from a web browser.
I'm planning to hook up a set of sensors by USB or pinouts to a Raspberry pi, then having the Pi host a web server. I have experience writing web servers from scratch in python, so I intend to use python as my programming language for this application as well.
I want to be able to visit the server from another device that will run at a time-keeper's station. By selecting options on the web site, you could control the display portion of the timer or the values of variables (timer reset) also the sensors could trigger update events to show information on the web page.
My primary obstacle in this case is the hardware interface. I imagine I would need to look up how sites like OMSI allow users to control the motors that move their webcam, or other online control of hardware.
What should my search terms be, or do you know of any libraries for python to read and write to external (adafruit-style) sensors?
Thanks!
Anthony
(https://i.stack.imgur./RzWIl.png)
"Raspberry pi python gpio" "Raspberry pi python i2c" "Raspberry pi python spi"

Connect Raspberry Pi to PS4 as Controller [Python]

I know we can use ds4drv to pair and receive DualShock 4 inputs from Raspberry Pi, but I actually want to make Raspberry Pi act as a DualShock 4 controller and send outputs to PS4. I want to do that by Python. Is there any library or source code that helps me?!

Find wifi strength using python

I am writing software for a Raspberry Pi based robot device.
I want the robot to stop and react when it moves too far from the wifi transmitter before it loses signal completely.
Is there an easy way in Python to get a value of the strength or quality of the current wifi connection so I can monitor this?

Send Data And Get Response between (Python on Raspberry pi) and (Matlab on PC)

i want to perform communication between (Python on raspberrypi) and (Matlab on PC). Raspberry pi performs face detection and crop faces. i need to send these faces to matlab on pc for processing (face recognition) and retrieve back the label from matlab to python on raspi i have searched all over the internet but couldn't find a detail explaination.
The easiest alternative is using TCP/IP socekts:
There's also the Serial Port, but the RPI doesn't come with a usb2com adaptor, so you'll need to purchase one.
You could also transmit over USB by configuring the usb port as a virutal serial port. I've only done it on bare metal ARM cortex, but it should be possible to do that on the RPI too.

Categories