This article is programming in Python to drive a robot moving with wheels. VisionRobo car is a robot kit that is equipped with a DC motor that is attached to a wheels gear set. It uses a circuit to drive a DC motor connected to Raspberry Pi Board and connect a USB WebCamera Module and Ultrasonic Sensor Module for image processing and calculate the distance of the robot to the surrounding objects.
Read MoreTag: Raspberry Pi
[EN] Raspberry Pi & Ultrasonic Sensor
This article discusses how to use an ultrasonic module with a Raspberry Pi board (the previous article applies to the ESP8266) in Python to show the distance from the sensor to the closest object found.
Read More[EN] QRCode Detected!
This article describes how to use OpenCV to find QRCode from an image from a Web Camera connected to the Raspberry Pi via a USB port. The example contains an example of reading the results from a web camera. And exit the program by pressing the ESC key, the QRCode search example and decoding the text within the image and storing the result in the image file.
Read More[EN] Data Science Ep1 Pandas
This article is an implementation of Python’s Pandas library using the Raspberry Pi 3 B+ board. It can be applied to Python of Windows, macOS or Linux operating systems. The article will be divided into several episodes like the previous ulab library. The article EP 1 discusses Pandas features, installation and data structure of Pandas.
Read More[EN] LAMP on Raspberry Pi
This article is a memoir about setting up the Raspberry Pi 3 B+ board as a LAMP-based web service or Linux + Apache + MySQL + PHP. We chose MariaDB instead of MySQL. We have discussed how to install and it was already set up in the previous article.
Read More[EN] Installing NumPy and Matplotlib on Raspberry Pi
This article guides on installing the NumPy and Matplotlib libraries on the Raspberry Pi board for computing (Read an example of using numpy for small devices in the ulab article) and shows results. The article discusses installation, upgrades and basic usage to guide further implementation. As for the use of Raspberry Pi with Python programming language, you can find more information from various knowledge sources or support our team by purchasing a book or finding a Raspberry Pi 4 4GB board that can be purchased from various retailers or from here, Though, we use a Raspberry Pi 3 B+.
Read More[TH] Python multi-threaded programming
บทความนี้กล่าวถึงการเขียนโปรแกรมแบบหลายเธรดของภาษาไพธอน โดยเรียบเรียงจากเว็บไซต์ tutorialspoint.com (ทำให้บทความนี้เป็นเสมือนบันทึกช่วยจำ) ซึ่งการเรียกใช้หลายเธรดเปรียบเสมือนการเรียกใช้โปรแกรมที่แตกต่างกันหลายโปรแกรมพร้อมกันแต่มีประโยชน์ดังนี้
- แต่ละเธรดสามารถใช้หน่วยความจำร่วมกันกับเธรดหลัก และสามารถสื่อสารระหว่างกันได้
- เธรดเป็นโปรเซสที่มีขนาดเล็กเนื่องจากไม่สิ้นเปลือง over head (หน่วยความจำ) ของการเรียกใช้เหมือนการเรียกโปรเซสเพิ่ม
[TH] PyGlet
pyglet เป็นไลบรารีสำหรับภาษาไพธอนเพื่อสร้างหน้าต่าง และมัลติมีเดียข้ามแพล็ตฟอร์มบนระบบปฏิบัติการวินโดวส์ (Windows) แมคโอเอส (macOS) และลินุกซ์ (Linux) สำหรับใช้พัฒนาเกมหรือแอปพลิเคชันเกี่ยวกับวิชวลไลเซชัน ตัวไลบรารีรองรับการสร้างหน้าต่าง การเชื่อมประสานกับผู้ใช้ผ่านทางระบบการทำงานตามเหตุการณ์ รองรับกราฟิกส์ของโอเพนจีแอล (OpenGL) รองรับการโหลดภาพ/วีดิทัศน์ และเล่นเสียงเพลง/ดนตรี โดยบทความนี้กล่าวถึงการติดตั้งและใช้งาน pyglet บน Raspberry Pi 3 B+ และ Raspberry Pi 4 เป็นอุปกรณ์ทดสอบบทความ
Read More[EN] Raspberry Pi 3 With Bootable SSD Drive
This article is a short memoir for getting the Raspberry Pi 3 to boot from an SSD connected to the USB port to make the Raspberry Pi 3 board run faster than using a micro SD-Card.
Read More