
.
.
Servo Motor Position displayed on 0.96 inch 128X64 I2C OLED
WE were playing around already with OLED displays in previous tutorials <===> https://gustmees.wordpress.com/?s=oled <===> where WE created an Analog-Digital Clock a Temperature/Humidity Monitor with “Heat-Index” and Text messages on the OLED. In this tutorial WE will display the angle of a rotating Servo-Motor on an OLED.
This is actually very easy and WE will learn also (for those who want so…) the different coding for OLEDs here below:
.
The Code (Sketch)
There is an already existing sketch existing which WE will use, please use the link below to download the code:
The tutorial where the Sketch (Code) is located is in German, BUT that shouldn’t be a problem 😉
For those who want to experiment a bit around with OLEDs, here my recommendation with ready codes and very well explained tutorials:
.
The libraries
You might need to add certain libraries, see below please which ones will GET needed, please.
IF a newbie, please check the below tutorial for the How-To:
The Wiring
.
.
TIP
Fix the Servo-Motor on cardboard or on a wooden, plastic, plate. Glue a white paper on it and mark the angles on the paper. This would be a nice project for schools 😉
Play around with the code to add some more angles ===> LEARNing-By-Doing 😉
.
.
Prices and where to order
128 x 64 Pixel 0.96 Inch I2C OLED Display
Click image, please, to enlarge. |
Click image, please, to enlarge. |
|
6 x Servo for Arduino, Raspberry Pi, Drohnen SG90 9g Small Servo Motor Click image, please, to enlarge.
|
||
![]() The author Gust MEES is ICT Course Instructor, ”Member of the Advisory Board” from “Luxembourg Safer Internet” (LuSI), BEESECURE, Official Partner (Consultant) from the Ministry of Education in Luxembourg, project “MySecureIT“, Official Partner from the Ministry of Commerce in Luxembourg, project “CASES” (Cyberworld Awareness and Security Enhancement Structure). |
.
Stay tuned for next blog post(s) 😉
.
.
.
.
.