I'm working on an object detection project for IoT using a webcam and servo. In short, when the object detected by the webcam matches the data in the system, the servo will move. Can the webcam be connected to the laptop, and the servo on the Raspberry Pi? So the input is from the laptop and the output is on the Raspberry Pi using pi-gpio (Remote GPIO). How to? Thanks.
Remote GPIO (Pigpio) with input from laptop and output from Raspberry Pi
333 Views Asked by Irham Khalifah Putra At
2
There are 2 best solutions below
0
elbashmubarmeg
On
A quick way is to use the Python socket library. Both devices need to be connected to the same network, and the sender needs to know the IP address of the receiver.
Related Questions in PYTHON
- How to store a date/time in sqlite (or something similar to a date)
- Instagrapi recently showing HTTPError and UnknownError
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to create a regular expression to partition a string that terminates in either ": 45" or ",", without the ": "
- Python Geopandas unable to convert latitude longitude to points
- Influence of Unused FFN on Model Accuracy in PyTorch
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- Problem with add new attribute in table with BOTO3 on python
- Can't install packages in python conda environment
- Setting diagonal of a matrix to zero
- List of numbers converted to list of strings to iterate over it. But receiving TypeError messages
- Basic Python Question: Shortening If Statements
- Python and regex, can't understand why some words are left out of the match
Related Questions in RASPBERRY-PI
- Raspberry Pi Sense Hat with Pyinstaller
- Waiting for several hours before resuming execution
- Using compositor in Gstreamer to merge imagesequence with video/audio stream
- How to make this sensor keep taking readings once its when_in_range function has been activated?
- Emulating an HID device with a raspberry pi 5
- How to stream PCM audio to a speakers both on mac and linux in Node.js?
- I want to use NRF24L01 transceiver with raspberry pi but some GPIO pins are already occupied by 3.5 inch display how do i connect transceiver
- voron 2.4 mainsail kiauh error install crowsnest (solved problem)
- Pi4J minimal example's LED doesn't blink
- How can I connect and send data from react-native to raspberry pi
- Xpt 2046 Display with Pn532 RFID reader
- Google SDK for Raspberry pi
- How to use a RaspberryPi camera with the cv2.videoCapture() function?
- How do I capture audio from the system bus in a node app (or from sox) on a raspberry pi?
- Can't open /dev/mem: Operation not permitted Raspberry Pi
Related Questions in IOT
- thingsboard: reformat shared attribute JSON before publishing via MQTT
- Not able to recieve message sent from mobile to GSM SIM900 but other functionalities working
- Python: Cannot Run Linux Terminal Commands With Scripts
- How to run Zephyr Echo Client-Server sample using nrf52840dk & nrf52840dongle?
- Communication between the Neo6m GPS and the Esp32
- Turn phone with an IR blaster into wifi enabled IR hub
- Unable to start the Coap server in a Spring boot application
- How to create a photo gallery widget/database?
- AWS IoT Self-managed certificate signing with CreateCertificateFromCsr API
- Azure IOT central command/NodeRed
- PyFirmata servo control issue (Arduino with Python)
- How to connect bluetooth devices using flutter blue plus?
- Does CdiCenteroutput support in lipari-mid & kiska - mid (55ppm)
- "Blynk Connection Issue with Arduino and ESP8266 in IoT Project"
- How to control Tuya API device with an HTML request
Related Questions in GPIOZERO
- asyncio only running first gpiozero coroutine
- Can't access GPIO on Python from Docker container on Raspberry Pi 5
- I am having a major issue with the GPIO in virtual env
- VLC module for python, video not always start fullscreen
- Controlling GPIO from a Docker container in Raspberry Pi 5
- I tried to include gpiozero in my custom build with yocto project with raspberry pi 3
- Can't install approxeng.input==2.6.3
- If I run on Raspberry Pi some Python commands from the shell they are executed, but not from scripts
- Passing data to GPIO pins in python on Raspberry Pi
- Remote Control of Continuous (360) Servo
- Servo jittering and not turning fully
- Nested while patterns in Python
- No output when using the shell_exec() function in php to run a python script that imports a gpio library
- Have a button table instead of a lot of variables
- Remote GPIO (Pigpio) with input from laptop and output from Raspberry Pi
Related Questions in PIGPIO
- VSCode remote debug raspberry pi with pigpio needs sudo
- The pigpio C library can't be loaded on this machine and any | | attempt to use it will fail. Error: "Module did not self-register"
- With Raspberry Pi 4B as a I2C slave how do I split read/write in event handler?
- Trying to call a pigpio function while clicking on a button of TKinter
- Why is sched_yield() necessary to bitbang GPIO output on Rasperry Pi
- Can't pass object into function
- PIGPIO won't compile in CLion on Windows
- Passing data to GPIO pins in python on Raspberry Pi
- Minimize CPU usage for software PWM in the Raspberry PI
- Raspberry Pi having issues sending multiple bytes over I2C as slave
- Why is my IR signal not powering on my TV
- Using PigPIO library with Windows .NET application
- Remote GPIO (Pigpio) with input from laptop and output from Raspberry Pi
- PIGPIO fails on startup, works on program relaunch
- Code exits without error or exception at sleep
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
This link shows the GPIO Zero library being used with pigpio to allow remote control of the GPIO pins, from either another raspberry pi - or a PC. Once you configure GPIO Zero to use the pigpio library and connect, I believe you can just use the GPIO Zero libraries as per normal to control the Servo. (though I have not tried this myself!)
However I would probably use MQTT to decouple the two systems. If you run an MQTT broker on the Raspberry Pi (eg. Mosquitto) then the webcam software can publish a message to the MQTT broker, and the raspberry pi software can subscribe and act accordingly.
You can also run this with a cloud based MQTT system (eg. HiveMQ) so the Raspberry Pi and the PC with the Webcam don't even have to be in the same location.