Тёмный

Fix Servo Motor 180 Deg Only Turn 90 Deg MG995 Arduino Nodemcu ESP8266 

Obengplus com
Подписаться 24 тыс.
Просмотров 25 тыс.
50% 1

Load test, just for demo. Excessive weight, may damage the circuit
Test normal command, for Servo Motor 180 degree Arduino Uno or Arduino Nano
Below command without problem.
On Arduino Nano and Arduino Uno.
Servo Motor turn 180 degree, no need special command
Just put myservo.attach(7) // pin 7
And servo angle, example turn 180 degree
Command to be
my.servo.write(180)
Below example code
//Arduino Uno or Nano
Servo myservo;
void setup() {
Serial.begin(9600);
myservo.attach(7);
}
void loop() {
myservo.write(0);
Serial.println("Servo 0:");
delay(2000);
myservo.write(180);
Serial.println("Servo 180:");
delay(2000);
}
============================
NodeMCU like Lolin NodeMCU ESP32 and Servo Motor
Servo Motor 180 degree only turn 90 degree
Servo not start from 0 degree, but start 45 Deg angle
You can fix the servo 180 deg, only turn 90 deg. Add below command.
myservo.attach(14, 500, 2400) work on Tower Pro MG995 180 degree.
Other model may different range
Easy to fix, modify command inside Attach() to be
//NodeMCU Lolin ESP32 ESP8266
Servo myservo;
void setup() {
//myservo.attach(14);
myservo.attach(14, 500, 2400); // Change this code for ESP8266 Arduino board
}
void loop() {
myservo.write(0);
delay(3000);
myservo.write(180);
delay(5000);
}
============================
//Test for slow motion servo motor, can add Command delay
delay(15) slow
delay(1000) 1 second

Опубликовано:

 

3 сен 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 79   
@traviswood66
@traviswood66 Год назад
Thanks mate. This was a big help!
@ObengwareID
@ObengwareID Год назад
You are welcome Tra
@oguzhan8956
@oguzhan8956 Год назад
thank you so much! you saved me a lot of trouble 👍
@ObengwareID
@ObengwareID Год назад
You are welcome Ogu
@mohamedtharwat6360
@mohamedtharwat6360 Год назад
Thanks from egypt , it works great for SG90
@ObengwareID
@ObengwareID Год назад
You are welcome Moh
@prakashdutt1520
@prakashdutt1520 7 месяцев назад
Thank you brother i am searching for this problem every where finally you solved it.... I am using it with ESP-01.. 😊
@ObengwareID
@ObengwareID 7 месяцев назад
You are welcome Pra
@nurullahcsgn2779
@nurullahcsgn2779 Год назад
its working. thank you so much!
@ObengwareID
@ObengwareID Год назад
You are welcome Nur
@akshaybhawar842
@akshaybhawar842 7 месяцев назад
works i tried here is the code #include Servo servol; void setup() { servol.attach(D7, 500, 2400); // servol.attach(D7); } void loop() { servol.write(0); delay(1000); servol.write(90); delay(1000); servol.write(180); delay(1000); }
@ObengwareID
@ObengwareID 7 месяцев назад
Nice info Thank so much Aks
@luc6732
@luc6732 11 месяцев назад
life saver, thank you very much!👍
@ObengwareID
@ObengwareID 11 месяцев назад
You are welcome Luc
@tomaswhite9872
@tomaswhite9872 Год назад
Life saver!, worked with MG945 as well
@ObengwareID
@ObengwareID Год назад
Happy can help you :-)
@adisayanbose2176
@adisayanbose2176 2 месяца назад
Hello, can you provide me an idea how did you power mg945
@zipengsong6888
@zipengsong6888 3 месяца назад
thanks for you sharing. It resolves my issue. :)
@ObengwareID
@ObengwareID 3 месяца назад
You are welcoime Zip
@GuilhermeFerreira-po1ky
@GuilhermeFerreira-po1ky 4 месяца назад
Estava com este problema é o vídeo me ajudou a resolver
@ObengwareID
@ObengwareID 4 месяца назад
Fico feliz em ajudar! 😄
@rafael.sousa.9705
@rafael.sousa.9705 Год назад
Vc é um herói, cara. You are a hero, man. Tu es un héroe, amigo. Ты герой, друг.
@ObengwareID
@ObengwareID Год назад
Thank you Raf
@rafael.sousa.9705
@rafael.sousa.9705 Год назад
@@ObengwareID np man. I was thinking that my servo motor was damaged. You saved my day
@fixfix6815
@fixfix6815 Год назад
Большое спасибо!
@ObengwareID
@ObengwareID Год назад
Не за что!🙂
@rodrigoyaneznolasco5342
@rodrigoyaneznolasco5342 2 месяца назад
Very very very thank you :D
@ObengwareID
@ObengwareID 2 месяца назад
You are welcome Rod
Год назад
Very very very thank you.
@ObengwareID
@ObengwareID Год назад
You are welcome Do
@narutokun8970
@narutokun8970 6 месяцев назад
Waohhh thanks broo ,i can try this code
@ObengwareID
@ObengwareID 6 месяцев назад
🙂 you are welcome Nar
@conversationwithgod272
@conversationwithgod272 2 месяца назад
Thanks lots.it works fine.
@ObengwareID
@ObengwareID 2 месяца назад
You are welcome Co
@rphpycho7781
@rphpycho7781 11 месяцев назад
Thank you❤
@ObengwareID
@ObengwareID 11 месяцев назад
You are welcome Rp
@imanguha5244
@imanguha5244 10 месяцев назад
Extremely helpful!
@ObengwareID
@ObengwareID 10 месяцев назад
Thank you Im
@OnOff538
@OnOff538 День назад
Thank you!
@ObengwareID
@ObengwareID День назад
You are welcome On
@action-techq
@action-techq Год назад
Thanks a lot
@ObengwareID
@ObengwareID Год назад
You are welcome J
@mohamedusaid456
@mohamedusaid456 Год назад
But this is not working for sg90 servomotor , they don't complete 180 degree rotation . Tell me what to do
@AxelRoxenborg
@AxelRoxenborg Год назад
Thanks!!
@ObengwareID
@ObengwareID Год назад
You are welcome Ax
@manecior1
@manecior1 8 месяцев назад
Thank You
@ObengwareID
@ObengwareID 8 месяцев назад
You are welcime Man
@yuditsantoso9291
@yuditsantoso9291 5 месяцев назад
Mantap mas. Bangga deh. Terimakasih banyak
@ObengwareID
@ObengwareID 5 месяцев назад
Sama sama kak
@franksonate
@franksonate Месяц назад
is there anyone here solved the problem usign arduino uno?
@yucelyazc9489
@yucelyazc9489 4 месяца назад
bu sorunu yaşıyordum ve sizin sayenizde çözdüm. Neden herkes yaşamazken ben böyle bir sorun yaşadım ?
@ObengwareID
@ObengwareID 4 месяца назад
Rica ederim
@mmrx428
@mmrx428 7 месяцев назад
I know that the mg995 servo motor rotates 360 degrees, how do you move it between 0-180 degrees?
@ObengwareID
@ObengwareID 7 месяцев назад
Hi M Please check this howtomechatronics.com/how-it-works/how-servo-motors-work-how-to-control-servos-using-arduino/ Continues rotation only control position, but no sensor position. Like Step Motor, MCU send pulse signal I hope can help
@adisayanbose2176
@adisayanbose2176 2 месяца назад
how did you power the 5v servo mg995 with 3.3v from esp 8266??
@ObengwareID
@ObengwareID 2 месяца назад
Input PIN (VIN) Connect with +/- microUSB the same voltage VIN In the video, the servo power is taken from 5V (VIN), not 3.3V You can check first, the design of each board is different. But this is just a demo Correct The servo power voltage must not be taken from the PIN board Because the PCB track can easily be damaged, it cannot withstand the large current of the servo. Hopefully this information can help
@adisayanbose2176
@adisayanbose2176 2 месяца назад
@@ObengwareID yeah I failed to power mg 995 using Arduino then I tried using l293n motor driver 5v output even then I find no movement in the servo what kind of other external source should I prefer
@adisayanbose2176
@adisayanbose2176 2 месяца назад
hello brother can you please help me @@ObengwareID
@trix7450
@trix7450 9 месяцев назад
Hey, can you please make video or something how to connect that servo to esp directly without breadboard 🙏 i would really appreciate it.
@trix7450
@trix7450 9 месяцев назад
I tried multiple codes but it is now working
@ObengwareID
@ObengwareID 9 месяцев назад
Thank for ino Trix
@rmaul3128
@rmaul3128 6 месяцев назад
Mantap Gan... Auto subscribe... Buat mrogram hardware nya pake software apa ya? Saya belajar dari 0
@ObengwareID
@ObengwareID 6 месяцев назад
www.arduino.cc/en/software/ Belajar dari lampu kedap kedip. Ngak lama pasti ngerti fungsinya kak Selanjutnya, tinggal copy paste kode kalangan pro Semoga membantu
@rmaul3128
@rmaul3128 6 месяцев назад
@@ObengwareID Terimakasih Master OP...
@reskiandreresta7914
@reskiandreresta7914 11 месяцев назад
Wow literly i can do that ❤❤❤❤❤
@ObengwareID
@ObengwareID 11 месяцев назад
Good job Res 😁
@tanjunjie4428
@tanjunjie4428 7 месяцев назад
I am using uno i do flw the code but the servo motor keep rotate what is the problem ? i using to let my mg995 rotate 90 degree only but it keep rotate
@ObengwareID
@ObengwareID 7 месяцев назад
Server motor have 2 version,only 180deg. Other full rotatation 360 deg.C You can check the servo model More simple, in Arduino IDE program Have a few sample program, and usefull for check the servo too. I hope can help
@tanjunjie4428
@tanjunjie4428 7 месяцев назад
How do i check my model is 180deg or 360deg@@ObengwareID
@tanjunjie4428
@tanjunjie4428 7 месяцев назад
my model of servo is same as this video@@ObengwareID
@gilangtjahyadi826
@gilangtjahyadi826 Год назад
Mas/Mba/Bpk/Ibu saya mau nanya, kok saya punya bahkan engga berputar sama sekali ya? kalo di board arduino yg konek ke 5 volt dan ground nya bisa, tapi esp8266 yg konek ke pin 3v dan groundny engga berputar sama sekali ya? apa karna tegangannya kecil atau konek pin sumber tegangannya bukan di 3v esp8266? mohon pencerahannya. Terimakasih.
@ObengwareID
@ObengwareID Год назад
Pindahkan ke 5V saja kak.
@umamaheswari784
@umamaheswari784 9 месяцев назад
Bro which pin to connect servo
@ObengwareID
@ObengwareID 9 месяцев назад
During test myservo.attach(14) In video description Depend you board Specially, ESP8266 label pin diffrerent pin GPIO Please the graphic board too, like Lolin have different position between label number and GPIO number ESP32 board series, label pin the same name pin GPIO Arduino Nano (example), pin label the same pin GPIO number I hope can help
@PratikzEditz
@PratikzEditz 5 месяцев назад
Code for 360degree and again reverse till 0degree with 1 min delay code please
@ObengwareID
@ObengwareID 5 месяцев назад
Different command Ed 360 deg, command with pulse 180 deg, command myservo.write(pos); Pos is Position (deg position) www.makerguides.com/how-to-control-a-360-degree-servo-motor-with-arduino/ Just add delay on the program I hope can help your project
@PratikzEditz
@PratikzEditz 5 месяцев назад
@@ObengwareID can u give me Instagram id i am still having doubts
@awalramadhan7129
@awalramadhan7129 Год назад
Kak itu kalo servo dicopot dari arduino nya apakah nanti programjya masih tersimpan di servo atau sudah hilang kak
@ObengwareID
@ObengwareID Год назад
Motor hanya menerima sinyal dari MCU board Motor mendapat perintah sinyal, untuk sudut atau putaran. Program yang mengatur, disimpan di dalam board Dari program mengatur mau geser berapa derajat, mau cepat atau lambat dan lainnya Ada motor yang berputar sampai 180 derajat Yang lain berputar kontinue atau 360 derajat. Seperti itu kak
Далее
ХЕРЕЙД БОИТСЯ МОЕЙ СОБАКИ!
37:08
I built my own graphics card
15:34
Просмотров 1,4 млн
Control a Servomotor using the potentiometer!
5:05
Просмотров 163 тыс.
Arduino lessons - Servo control by arduino
11:17
Просмотров 846 тыс.
Arduino #9 - Servo Selection & Motion Control
10:14
Просмотров 488 тыс.
ХЕРЕЙД БОИТСЯ МОЕЙ СОБАКИ!
37:08