Arduino Servo Test with LCD Display

Welcome to all technology science lover in this website.
How to check a Servo Motor Angel?
How to test Servo Motor?

Problem solved! Servo Motor come with fixed angel 180 degree. You can modifies the Servo Motor to 360 degree by using 1k resistance. Today we make a Servo Angel checker using Arduino.
Simply LCD to Arduino pins connect using the main "Hello World" program (D2,D3,D4,D5,D11,D12,) and Servo Pin 10 PWM . The Circuit is very simple and basic for us. 
I use 5V for my Servo Motor. The Servo starts from 0 degree to 180 degree clockwise to 180 degree to 0 degree anti-clock wise and this cycle continuously began because the code make with high loop and  the statement is compulsory . I am changed something in this system. Connect HC-05 and change for control servo using Bluetooth . This is totally work very well.
Circuit Diagram 

The circuit is very simple for everyone connect on breadboard . I am choose Servo in PWM capable 10. You can also changed the voltage of Servo .

The Code
#include <Arduino.h>
#include <LiquidCrystal.h>
#include <Servo.h>
 
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
Servo myservo;

void write_angle_lcd(int pos){
 lcd.setCursor(0, 1);
 lcd.print(pos);
 lcd.print(" ");
}

void setup(){
 myservo.attach(10);
 lcd.begin(16, 2);
 lcd.print("SERVO ANGLE");
 lcd.setCursor(0, 1);
}
void loop(){
 int pos; 
 for(pos = 0; pos <= 180; pos += 1){
 myservo.write(pos);
 write_angle_lcd(pos);
 delay(50);
 } 
 for(pos = 180; pos >= 0; pos -= 1){                       
 myservo.write(pos);
 write_angle_lcd(pos);
 delay(50);
 } 
}
Thanks For Supporting Us.
Save Tree. Save Life