it is working good with free motion of servo with potentiometer but after pressing push-button it stops and does not record position need to be reset again
Sir i need your help any advice please// when i start pressing the button then the servo stop and not even can control.. any advice sir pelase .. thank you
Awesome Video mate, very helpful! I am currently trying a project similar to what you are explaining here. Currently using a small arm made from potentiometers to map values to a real arm with servos. This helped a ton on the code as I was thinking of a different way to do things. Thanks
Mr outaspaceman, can you please post me the working code of the project. It does not work for me after pressing the button for the first time for recording.
Thanks - great tutorial! (I love your work BTW!) I do a lot of work with servos and this learning function would really simplify things. When you switch off, my understanding is that you need to re-establish the servo movements again?
Thanks for sharing the knowledge. I have 2 questions 1. if you turn the servo with your fingers, will the setup still record the movements . . .I assume so, not sure 2. can you think of a way that the same principle can be applies to stepper motors with encoders? thanks for the help. John (camcompco)
Hey low memory error while verifying sketch and still when i press switch transfer led blinks but same time potentiometer stop responding and servo stops working please help
This is very nice, got to be one of the best tutorials i've seen! Please continue making them! I am gonna sub for sure! First time ive seen ur videos! 6+++/6 :)
Great to see your videos again! have a request, can you please make a video tutorial with wifi model ESP8266. I am trying to use it with ultrasonic distance sensor to read a value and tweet or txt me when activated. For example, using it to check when the garage was opened. Your videos are extremely easy to follow! Thanks
+Quoit1 Absolutely! Do you mind sending me a link to the one you purchased? I quickly googled the hardware and there seem to be different flavors and revisions. Sparkfun also released their own version of the board. Thank you for the kind comment.
+EEEnthusiast I have ESP-12-E (www.banggood.com/ESP8266-ESP-12E-Remote-Serial-Port-WIFI-Transceiver-Wireless-Module-p-980984.html). Its cost $4.65 CAD.
+EEEnthusiast I also have the FTDI usb to serial converter adapter module that has an option to pick 3.3V for ESP8266 (www.banggood.com/FT232RL-FTDI-USB-To-TTL-Serial-Converter-Adapter-Module-For-Arduino-p-917226.html)
Can servo data in the array be copied, logged and played back later along with other brief motion recordings to build complex behaviors ? I also wonder how data from 2 servos can be recorded, stored and played back.
Up to how many seconds/minutes can arduino record movement? is it only recording when you move the servo or anything that happens for a fixed amount of time?
how can I save the mapped position permanently even after plugging off the power source? do I need a SDcard or something? thank you in advanced. btw, great video :)
The program works for 1 servos however when I increase the amount of servos to 4 I find myself running out of Memory due to the large Array sizes. Do you know how I could get around this limitation?
while(1==1) looks pretty dumb because 1==1 equals boolean value true. You don't need to write while(1==1) or while(1+2+3+4==7) or while(65536/256 == 256) - you can just say "while(true)" - that it. Or, even while(1) which is shorter.
+EEEnthusiast Also, if (recording == 1) then you don't need to set recording = 1 - it's already = 1 ;) As well as you don't need to send same value again to servo when you do if (abs(NewAnalogOut - AnalogOut) > 2) because it does not change anything, it's already has this value, it's just excessive. I think you can improve your code a lot if you'll take a more precise look on it :) But except that - great job!
of course,it will not work. It went for an infinite loop again and again without changing the storage_loc. +EEEnthusiast I think there is something missing with the code
Hey, I am getting an error "Low memory available, stability problems may occur" in my program. On assembling the circuit and uploading the code, the servo motor keeps on moving arbitrarily without varying the potentiometer. Please help me out!
Hi, nice project. I want to ask, I have tried it and can control servo with pot, but why when I press the button for recording, servo can not be turned back and serial monitor displays the last position servo. I can not record the servo position with the button. Please help me to solve this problem
great feat, now what would you say are the diff between the analog servo which i see this done alot on by folks out here and your non analog servo ? in other words why would ppl pay extra money for a analog servo which are expensive rather then just use ordinary servos? my opinion this a lot better then those other videos. also is their a reason why your storage[800]; ? are you playing with some limitations ?
+jai Lopez The servo I'm using is a PWM servo. It is controlled through the Arduino servo library. You can use normal PWM, but there's no ned to implement that with the library.
+jai Lopez it was. The servo I'm using is analog. The answer to your second question is that 800 was the limit for the memory. I would have to optimize the program to store the information better in order to go beyond that, but it was just a proof of concept here.
ahhh ic, ok so now i thought analog servos had a 4rth wire which i dont think i noticed on the video? also where what memory are you referring to SD ? EEPROM ? EEEnthusiast
Hi! after i make it remember my movement, can i turn of the arduino and still get the same movement? and can i remove the button and poten after it remember? and how do i have 2 motors connected doing 2 different movement? Thank you in advance!!
heyyy i uploaded your code on arduino,its saying that stability may occur as the code uses more memory. Can you please also give the link to schematics
Hey EEEnthusiast i am using Mega 2560, the potentiometer is controlling the servo, but when is push the button nothing happens the servo stop moving, please help i need this thing working asap.
Hi, nice video but i have one problem, when i press the button then i cant control the motor anymore , it blocks so i had to load again the code to reset . And if it blocks it never goes to the state of "recording", i hope you can help me i really want to work this out.
As soon as the push button gets pressed, for the pullup resistor to go high, the board freezes. Looking at serial debug, it captures the las reading of the pot but nothing more... Thoughts anyone?? arduino 101 and running servo on a separate battery
This may be the best ever. But we will never know as the code is absolute drivel. At no time does the storage pointer get updated and several more faults occur. Perhaps you would be better having a GOOD look at your code. Instead of trying to show off. Your commentary makes me feel as if someone else wrote the code for you to see if you knew what you were talking about. It is patently obvious that you did no testing whatsoever. Those poor coders out there must be pulling their hair out. Perhaps if you fixed the code as so many folk have asked you might be helping them.
I'm not sure I understand your question. In my example, I'm registering a sweep over 10 seconds. You can expand that to whatever the memory allows you depending on your programming.
+Tom Evans +Tom Evans Here's where I bought mine. It's about 1 month for shipping though: www.aliexpress.com/item/32PC-Lot-Single-Rotary-Potentiometer-kit-B1K-B2K-B5K-B10K-B20K-B50K-B100K-B500K-B1M-Pots/32237941724.html
one other question, i think it would be cool if you could show how you could expand the 800 storage using a sim card ad don for arduino. people would be able to apply this to more "real life" experiments. Just a thought thanks again
+camcompco I agree that I should have shown a bit more for this project. I have taught of several ways on how to optimize this, but didn't take the time to actually put it in practice. I'll definitely consider it if there is enough demand.
Hi can anyone post a working code for this project. The code stops working once recording == 1, when pushbutton is pressed once. Neither does the motor turn nor does the value of NewAnalogOut gets updated in this mode. Motor jerks when serial monitor is opened.
Has anyone got this to work? If so could you please post what you did? I was so frustrated I broke down and tested each component one by one to make sure all items would work by themselves. Thank You.
Hi EEEnthusiast, its very pathetic that so many people have asked about the problem of not working of servo after pushing the recording button, just blinking the Tx led in arduino and you have not answered it yet
kailash kumar I have answered it many times and pointed people to the new tutorial with working code. It’s pathetic that people aren’t willing to do any work and expect everything to be given to them.
Thanks for your quick reply, and i beg your pardon if you answered it already somewhere, Can you please provide me the link to the working code tutorial, as i did not find it anywhere. I scrolled the full comments section .
i have 2 qustion 1 what does om of transistor 2 what type capacitor and how mush unit of capacitor because i ask store and he reply me then i dont know how can ask his the vdo dont clear any unit of any material. a picture is so small i cant see unit of capacity and transistor you should write and get it show with in clip
Hi, nice project. I want to ask, I have tried it and can control servo with pot, but why when I press the button for recording, servo can not be turned back and serial monitor displays the last position servo. I can not record the servo position with the button. Please help me to solve this problem
Very cool... took a look at your website too. Thanks, lots of good information.
+ramosel thank you.
it is working good with free motion of servo with potentiometer but after pressing push-button it stops and does not record position
need to be reset again
masha allah your project become very help ful for learning my experiments
Sir i need your help any advice please//
when i start pressing the button then the servo stop and not even can control..
any advice sir pelase .. thank you
Awesome presentation!!
Awesome Video mate, very helpful! I am currently trying a project similar to what you are explaining here.
Currently using a small arm made from potentiometers to map values to a real arm with servos. This helped a ton on the code as I was thinking of a different way to do things.
Thanks
hmmm,
I can adapt this to my purposes.
thanks, highly informative.
+outaspaceman Thank you for the comment!
Mr outaspaceman, can you please post me the working code of the project. It does not work for me after pressing the button for the first time for recording.
Err, probably best to ask Mr. EEEnthusiast that question as he knows what he's talking about.
Request publish 16 servo use with I2C type servo control board interfaced to Arduino memorizing the coordinates for repetitive action.
Really awesome video! Is there any way that this can be done with stepper Motors?
Thanks - great tutorial! (I love your work BTW!) I do a lot of work with servos and this learning function would really simplify things. When you switch off, my understanding is that you need to re-establish the servo movements again?
You are the best at explaining this .. good work :D
was always looking for a project like this. please do one with three axes control.
Thanks for sharing the knowledge.
I have 2 questions
1. if you turn the servo with your fingers, will the setup still record the movements . . .I assume so, not sure
2. can you think of a way that the same principle can be applies to stepper motors with encoders?
thanks for the help.
John (camcompco)
Hey low memory error while verifying sketch
and still when i press switch transfer led blinks but same time potentiometer stop responding and servo stops working
please help
This is So FUKING Amazing!!! (Excuse my language). Sir,... God Bless You MAN!!
You are Awesome..thanks..will try it soon
This is very nice, got to be one of the best tutorials i've seen! Please continue making them! I am gonna sub for sure! First time ive seen ur videos! 6+++/6 :)
It was awesome we loved it sir. BUT we want to use this for an application please help us
Great to see your videos again! have a request, can you please make a video tutorial with wifi model ESP8266. I am trying to use it with ultrasonic distance sensor to read a value and tweet or txt me when activated. For example, using it to check when the garage was opened. Your videos are extremely easy to follow! Thanks
+Quoit1 Absolutely! Do you mind sending me a link to the one you purchased? I quickly googled the hardware and there seem to be different flavors and revisions. Sparkfun also released their own version of the board. Thank you for the kind comment.
+EEEnthusiast I have ESP-12-E (www.banggood.com/ESP8266-ESP-12E-Remote-Serial-Port-WIFI-Transceiver-Wireless-Module-p-980984.html). Its cost $4.65 CAD.
+EEEnthusiast I also have the FTDI usb to serial converter adapter module that has an option to pick 3.3V for ESP8266 (www.banggood.com/FT232RL-FTDI-USB-To-TTL-Serial-Converter-Adapter-Module-For-Arduino-p-917226.html)
Can servo data in the array be copied, logged and played back later along with other brief motion recordings to build complex behaviors ? I also wonder how data from 2 servos can be recorded, stored and played back.
Up to how many seconds/minutes can arduino record movement? is it only recording when you move the servo or anything that happens for a fixed amount of time?
HI, I was wondering if you have done this same code but with Labview. Do you have any idea if It's possible to do that?
how can I save the mapped position permanently even after plugging off the power source? do I need a SDcard or something? thank you in advanced. btw, great video :)
The program works for 1 servos however when I increase the amount of servos to 4 I find myself running out of Memory due to the large Array sizes. Do you know how I could get around this limitation?
Really helpful
while(1==1) looks pretty dumb because 1==1 equals boolean value true. You don't need to write while(1==1) or while(1+2+3+4==7) or while(65536/256 == 256) - you can just say "while(true)" - that it. Or, even while(1) which is shorter.
Alex, good point. I'll correct it. I've seen it written both ways though.
+EEEnthusiast Also, if (recording == 1) then you don't need to set recording = 1 - it's already = 1 ;)
As well as you don't need to send same value again to servo when you do if (abs(NewAnalogOut - AnalogOut) > 2) because it does not change anything, it's already has this value, it's just excessive.
I think you can improve your code a lot if you'll take a more precise look on it :) But except that - great job!
Mr Alex, can you please post me the working code of the project. It does not work for me after pressing the button for the first time for recording.
of course,it will not work. It went for an infinite loop again and again without changing the storage_loc. +EEEnthusiast I think there is something missing with the code
you are the man i am going to share your link about that robot arm otomation videos thank you
how long it can record
Hey, I am getting an error "Low memory available, stability problems may occur" in my program. On assembling the circuit and uploading the code, the servo motor keeps on moving arbitrarily without varying the potentiometer. Please help me out!
Can it be done with Arduino nano with same coding
Is it possible to control a big step motor through a Potentiometer ?
hi
have you changed the code because it doesn't seem to work now,, could you post the original code please
Hi, nice project.
I want to ask, I have tried it and can control servo with pot, but why when I press the button for recording, servo can not be turned back and serial monitor displays the last position servo.
I can not record the servo position with the button.
Please help me to solve this problem
How would you adapt this to stepper motors? :)
good work!
THOROUGH!
great feat, now what would you say are the diff between the analog servo which i see this done alot on by folks out here and your non analog servo ? in other words why would ppl pay extra money for a analog servo which are expensive rather then just use ordinary servos? my opinion this a lot better then those other videos.
also is their a reason why your storage[800]; ? are you playing with some limitations ?
+jai Lopez The servo I'm using is a PWM servo. It is controlled through the Arduino servo library. You can use normal PWM, but there's no ned to implement that with the library.
EEEnthusiast
ummm i dont think you answer my questions, was your reply for my comment?
+jai Lopez it was. The servo I'm using is analog. The answer to your second question is that 800 was the limit for the memory. I would have to optimize the program to store the information better in order to go beyond that, but it was just a proof of concept here.
ahhh ic, ok so now i thought analog servos had a 4rth wire which i dont think i noticed on the video? also where what memory are you referring to SD ? EEPROM ? EEEnthusiast
hello when i push the buttom servo doesnt learn anythink can you help me with that pls
can you control a 3 phase hdd motor with the Arduino?
Can you give the code of reversing the memory .
Meaning the things that i did should reverse and come to its initial state
It says expected initializer before numeric constant and it highlights the Servo Servo 1; line. What do I do
Hi man! What can I do to control 5 servos with this code?
Hope your soon answer, thanks!
Hi! after i make it remember my movement, can i turn of the arduino and still get the same movement? and can i remove the button and poten after it remember? and how do i have 2 motors connected doing 2 different movement?
Thank you in advance!!
heyyy
i uploaded your code on arduino,its saying that stability may occur as the code uses more memory.
Can you please also give the link to schematics
Can't with SD cards?
Bro thanks for your help can i please get the schematics
m not able to control the servo thing using potentiometer .....what should i do!???
How can I do this with a stepper motor?
Thanks
Hey EEEnthusiast
i am using Mega 2560, the potentiometer is controlling the servo, but when is push the button nothing happens the servo stop moving, please help i need this thing working asap.
it doesn't work to me ... i used B500k potentiometer and 10k ohms resistor, is it ok to use this one ?
Hi, nice video but i have one problem, when i press the button then i cant control the motor anymore , it blocks so i had to load again the code to reset . And if it blocks it never goes to the state of "recording", i hope you can help me i really want to work this out.
As soon as the push button gets pressed, for the pullup resistor to go high, the board freezes. Looking at serial debug, it captures the las reading of the pot but nothing more... Thoughts anyone??
arduino 101 and running servo on a separate battery
This may be the best ever. But we will never know as the code is absolute drivel.
At no time does the storage pointer get updated and several more faults occur. Perhaps you would be better having a GOOD look at your code. Instead of trying to show off. Your commentary makes me feel as if someone else wrote the code for you to see if you knew what you were talking about. It is patently obvious that you did no testing whatsoever. Those poor coders out there must be pulling their hair out.
Perhaps if you fixed the code as so many folk have asked you might be helping them.
i think the he is not sincere to share the working code with public. This code is definitely not a working code as shown in his video
what is the max action time for the servo to remember?
I'm not sure I understand your question. In my example, I'm registering a sweep over 10 seconds. You can expand that to whatever the memory allows you depending on your programming.
Do you have a source for the breadboard pot?Thanks!
+Tom Evans do you mean where to buy them? Send me a message, I'll send you the link to where I bought mine.
Yes where you get them. I have search. Adafruit seems like the only source. I don't have a large enough order yet to but them.
+Tom Evans +Tom Evans Here's where I bought mine. It's about 1 month for shipping though: www.aliexpress.com/item/32PC-Lot-Single-Rotary-Potentiometer-kit-B1K-B2K-B5K-B10K-B20K-B50K-B100K-B500K-B1M-Pots/32237941724.html
how can i create a robotic arm using this code with servo.please give me the code.
one other question, i think it would be cool if you could show how you could expand the 800 storage using a sim card ad don for arduino. people would be able to apply this to more "real life" experiments. Just a thought
thanks again
+camcompco I agree that I should have shown a bit more for this project. I have taught of several ways on how to optimize this, but didn't take the time to actually put it in practice. I'll definitely consider it if there is enough demand.
can upload this program for 5 servo with memory
Is there a way to record movements in several parts and play them back as one motion?
Jo, think of the songs & dance rhythm of Shakira or other stars hahaha😎🤣🌈🎺🦜🌠⭐🤼♀️
Hi can anyone post a working code for this project. The code stops working once recording == 1, when pushbutton is pressed once. Neither does the motor turn nor does the value of NewAnalogOut gets updated in this mode. Motor jerks when serial monitor is opened.
can u tell me code and wiring intermitted mode, thanks sir
Has anyone got this to work? If so could you please post what you did? I was so frustrated I broke down and tested each component one by one to make sure all items would work by themselves. Thank You.
Diagram there is nothing in your website Sir 😭
COOL!
I want circuit daigram sir... plz can u help me
how to control 5 or 6 servo
The sketch doesn't work. It is a fake video... why did you post it?
a mémoire disponible faible, des problèmes de stabilité pourraient survenir.
Complete coding please
ok. I love you :-)
Vcan someone give me the schematic for 4 servo
unfortunately doesn't work. I was searching for an answer for half of the day. I didn't find it either in website or youtube...
Try this video: ruclips.net/video/vpiuc9c7dzE/видео.html
EEEnthusiast Thanks for reply,I will check it !:)
with different potentiometer
Hi EEEnthusiast, its very pathetic that so many people have asked about the problem of not working of servo after pushing the recording button, just blinking the Tx led in arduino and you have not answered it yet
kailash kumar I have answered it many times and pointed people to the new tutorial with working code. It’s pathetic that people aren’t willing to do any work and expect everything to be given to them.
Thanks for your quick reply, and i beg your pardon if you answered it already somewhere, Can you please provide me the link to the working code tutorial, as i did not find it anywhere. I scrolled the full comments section .
@@VladRomanov89 complete agree with that, people ned (including me)to work by themselves in order to learn
i have 2 qustion
1 what does om of transistor
2 what type capacitor and how mush unit of capacitor
because i ask store and he reply me then i dont know how can ask his
the vdo dont clear any unit of any material.
a picture is so small i cant see unit of capacity and transistor
you should write and get it show with in clip
Likeeeeeeeeeeeeee.....
Bed code. Hi hi hi......
When i uploaded the sketch and press the button the servo can't do any control and not record can any help me?
Hi, nice project.
I want to ask, I have tried it and can control servo with pot, but why when I press the button for recording, servo can not be turned back and serial monitor displays the last position servo.
I can not record the servo position with the button.
Please help me to solve this problem