--- tags: Raspberry pi --- # Raspberry pi #### [our github repo](https://github.com/CarCarGroup05/RobotVacuum): please give us a star if you like!(❁´◡`❁) your support is our energy to devise better projects ## Setup 1. [setup Rpi](https://www.tomshardware.com/how-to/set-up-raspberry-pi) (raspberry pi imager) 2. [plus -XY](https://askubuntu.com/questions/35512/what-is-the-difference-between-ssh-y-trusted-x11-forwarding-and-ssh-x-u) when you connect to your Rpi with ssh e.g. ssh -XY pi@192.168.10.10(hostname -I to check ip) 3. [setup pi cam](https://youtu.be/Z8cs1cRrc5A) to capture image with ssh 4. [display an image via ssh](https://raspberrypi.stackexchange.com/questions/77895/how-to-display-an-image-via-ssh) 5. monitor [temperature](https://www.raspberrypi-spy.co.uk/2020/11/raspberry-pi-temperature-monitoring/) of rpi 6. [gpio pins](https://www.raspberrypi-spy.co.uk/2012/06/simple-guide-to-the-rpi-gpio-header-and-pins/) 7. install [mediapipe](https://pypi.org/project/mediapipe-rpi4/) on rpi 8. connect rpi through wire to laptop: <img src="https://hackmd.io/_uploads/rJMfFutw2.png" width="500"> 9. use [vncviewer](https://raspberrypi-guide.github.io/networking/connecting-via-VNC#:~:text=VNC%20(Virtual%20Network%20Computing)%20allows,which%20only%20provides%20terminal%20access.) to connect rpi and it enables us to control rpi with GUI without a monitor. (Windows, Mac, Ubuntu) ## Problems have been solved 1. [AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import)](https://stackoverflow.com/questions/72706073/attributeerror-partially-initialized-module-cv2-has-no-attribute-gapi-wip-gs) 2. [E:Package 'libopenexr23' has no installation candidate](https://forums.raspberrypi.com/viewtopic.php?t=343001) 3. Cannot currently show the desktop- [VNC viewer Raspberry Pi Problem Solved 100%vnc](https://youtu.be/sF7pWwvRGpo) ## Unsolved problems 1. I have installed picamera module but it popped out this error:![](https://hackmd.io/_uploads/HyCbxttD2.png) ## ML model 1. object detection with [tensorflow](https://youtu.be/mNjXEybFn98) on Rpi 2. [setup venv](https://github.com/mohan-mj/tflite-rock_paper_scissors) 3. tensorflow pose_estimation [README.md](https://github.com/tensorflow/examples/blob/master/lite/examples/pose_estimation/raspberry_pi/README.md) 4. [pip install mediapipe](https://pypi.org/project/mediapipe/) 5. [install picamera python module](https://picamera.readthedocs.io/en/release-1.13/install.html) ## Good idea 1. [Workout with AI](https://youtu.be/px6ubxYtvh4) 2. Playing Subway Surfers Game with Body Gestures using [Pose Detection | Mediapipe | OpenCV | Python](https://youtu.be/Z2EGhplFOHs) 3. [OpenAI chatGPT app](https://youtu.be/8GsLbNdbV6c) GrandmaCan -我阿嬤都會 4. Serial Communication between Raspberry Pi and Arduino [video](https://youtu.be/jU_b8WBTUew) & [article](https://reurl.cc/947r7Y) ## Commands 1. The Linux cp Command – [How to Copy Files in Linux](https://www.freecodecamp.org/news/the-linux-cp-command-how-to-copy-files-in-linux/#:~:text=You%20can%20copy%20files%20by,this%20using%20the%20cp%20command.) 2. [How to move one file to a folder using terminal?](https://askubuntu.com/questions/465877/how-to-move-one-file-to-a-folder-using-terminal) 3. learning [vim](https://linux.vbird.org/linux_basic/centos7/0310vi.php) ## Final project: Robot Vacuum <img src="https://hackmd.io/_uploads/B1ODwgJO2.jpg" width="400"> <img src="https://hackmd.io/_uploads/rkqPJll_h.png" width="200">