Không có sản phẩm trong giỏ hàng!
![Control Servo and Display Sensor's Reading Using GUI on Raspberry Pi Control Servo and Display Sensor's Reading Using GUI on Raspberry Pi](https://static.cytron.io/image/tutorial/control-servo-and-display-sensors-reading-using-gui-on-raspberry-pi-2/RPi-Servo-Ultrasonic-GUI-1.jpg)
Control Servo and Display Sensor's Reading Using GUI on Raspberry Pi
- Idris Zainal Abidin
- 16 Jul 2019
- 687
Introduction
This time, we will try to include actuator control and sensor’s reading in GUI. From the interface, user is able to control servo motor position and reading sensor’s data.
Video
This video will show how to control servo and display sensor’s reading using GUI on Raspberry Pi.
Hardware Preparation
This is the list of items used in the video.
Sample Program
This is the sample code to control servo and display sensor’s reading using GUI on Raspberry Pi.
[gist https://gist.github.com/IdrisCytron/469f74c8504808707d2f96e14019cff1 ]
Thank You
References:
- E Raspberry Pi: Getting started with GUIs
- GUI library package – guizero
- Library to control GPIO on Raspberry Pi – gpiozero
Thanks for reading this tutorial. If you have any technical inquiries, please post at Cytron Technical Forum.
Related Products
3V-5.5V SR04P Ultrasonic Ranging Module
Không có sẵn
x 1 đơn vị
Analog Micro Servo 9g (3V-6V)
Không có sẵn
x 1 đơn vị
Maker pHAT: Simplifying Raspberry Pi for {Educa...
Không có sẵn
x 1 đơn vị