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
@franciscruz55538 жыл бұрын
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
@Лёха83-щ1ш8 жыл бұрын
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.
@EEEnthusiast8 жыл бұрын
Alex, good point. I'll correct it. I've seen it written both ways though.
@Лёха83-щ1ш8 жыл бұрын
+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!
@rangaswamy86048 жыл бұрын
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.
@muhdsafwan4017 жыл бұрын
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
@treereaverjones65357 жыл бұрын
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.
@liewck24874 жыл бұрын
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
@ramosel8 жыл бұрын
Very cool... took a look at your website too. Thanks, lots of good information.
@EEEnthusiast8 жыл бұрын
+ramosel thank you.
@asuroyal8 жыл бұрын
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
@outaspaceman8 жыл бұрын
hmmm, I can adapt this to my purposes. thanks, highly informative.
@EEEnthusiast8 жыл бұрын
+outaspaceman Thank you for the comment!
@rangaswamy86048 жыл бұрын
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.
@outaspaceman8 жыл бұрын
Err, probably best to ask Mr. EEEnthusiast that question as he knows what he's talking about.
@fernoratube7 жыл бұрын
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
@PatnaikUC3 жыл бұрын
Request publish 16 servo use with I2C type servo control board interfaced to Arduino memorizing the coordinates for repetitive action.
@shaikfiroz77168 жыл бұрын
masha allah your project become very help ful for learning my experiments
@Quoit18 жыл бұрын
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
@EEEnthusiast8 жыл бұрын
+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.
@Quoit18 жыл бұрын
+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.
@Quoit18 жыл бұрын
+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)
@ariezumalitv42442 жыл бұрын
Diagram there is nothing in your website Sir 😭
@offloadcreativity8 жыл бұрын
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
@willyding1008 жыл бұрын
hi have you changed the code because it doesn't seem to work now,, could you post the original code please
@bereketassefa77962 жыл бұрын
Bro thanks for your help can i please get the schematics
@stefanb.9338 жыл бұрын
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
@electricmic7 жыл бұрын
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.
@RT-ke3jc8 жыл бұрын
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!
@rangaswamy86048 жыл бұрын
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.
@tarakmakwana7 жыл бұрын
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.
@MarcoRizzinelli5 жыл бұрын
The sketch doesn't work. It is a fake video... why did you post it?
@Ripsticker457 жыл бұрын
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?
@sairahlenpalti_7866 жыл бұрын
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 :)
@abduhkidz71688 жыл бұрын
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
@dougb8027 жыл бұрын
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.
@firelord9431078 жыл бұрын
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?
@floridaboy0377 жыл бұрын
It says expected initializer before numeric constant and it highlights the Servo Servo 1; line. What do I do
@divacreator2594 жыл бұрын
Can't with SD cards?
@ArduinoCreatively4 жыл бұрын
When i uploaded the sketch and press the button the servo can't do any control and not record can any help me?
@camcompco8 жыл бұрын
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)
@mariogayoso6 жыл бұрын
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?
@koreislove12436 жыл бұрын
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.
@samiqra15384 жыл бұрын
Complete coding please
@dezzodarling8 жыл бұрын
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?
@fritskayadoe27268 жыл бұрын
This is So FUKING Amazing!!! (Excuse my language). Sir,... God Bless You MAN!!
@vghayathre39965 жыл бұрын
m not able to control the servo thing using potentiometer .....what should i do!???
@julioluna20148 жыл бұрын
Hi man! What can I do to control 5 servos with this code? Hope your soon answer, thanks!
@themimiday7 жыл бұрын
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!!
@alpaccinoisles81448 жыл бұрын
it doesn't work to me ... i used B500k potentiometer and 10k ohms resistor, is it ok to use this one ?
@FoxMelody1235 жыл бұрын
how can i create a robotic arm using this code with servo.please give me the code.
@saidanimohamedamine13787 жыл бұрын
a mémoire disponible faible, des problèmes de stabilité pourraient survenir.
@xeradKing6 жыл бұрын
how long it can record
@shantasagarmarol91157 жыл бұрын
It was awesome we loved it sir. BUT we want to use this for an application please help us
@phuuuur6 жыл бұрын
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 :)
@douglashales39828 жыл бұрын
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
@michalmelich91856 жыл бұрын
hello when i push the buttom servo doesnt learn anythink can you help me with that pls
@MrJefferson1058 жыл бұрын
You are the best at explaining this .. good work :D
@jamiewilliams84696 жыл бұрын
Really awesome video! Is there any way that this can be done with stepper Motors?
@arjuna60447 жыл бұрын
Can you give the code of reversing the memory . Meaning the things that i did should reverse and come to its initial state
@jimmym27195 жыл бұрын
You are Awesome..thanks..will try it soon
@amithosur68806 жыл бұрын
I want circuit daigram sir... plz can u help me
@onurkarakaya56407 жыл бұрын
you are the man i am going to share your link about that robot arm otomation videos thank you
@hazimzaid30718 жыл бұрын
Is it possible to control a big step motor through a Potentiometer ?
@prasannavenkatesh3338 жыл бұрын
can upload this program for 5 servo with memory
@rangaswamy86048 жыл бұрын
was always looking for a project like this. please do one with three axes control.
@TorIvanBoine6 жыл бұрын
How would you adapt this to stepper motors? :)
@mohammadwasim20675 жыл бұрын
Can it be done with Arduino nano with same coding
@boowonder8887 жыл бұрын
can you control a 3 phase hdd motor with the Arduino?
@antoniobugarin7 жыл бұрын
How can I do this with a stepper motor? Thanks
@riotanone83818 жыл бұрын
can u tell me code and wiring intermitted mode, thanks sir
@samuelruben87267 жыл бұрын
Vcan someone give me the schematic for 4 servo
@MadScienceHacksTV7 жыл бұрын
Is there a way to record movements in several parts and play them back as one motion?
@superabbasalmani60794 жыл бұрын
Jo, think of the songs & dance rhythm of Shakira or other stars hahaha😎🤣🌈🎺🦜🌠⭐🤼♀️
@uazice6 жыл бұрын
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...
@EEEnthusiast6 жыл бұрын
Try this video: kzbin.info/www/bejne/rKHMppZvmJyXsKc
@uazice6 жыл бұрын
EEEnthusiast Thanks for reply,I will check it !:)
@kailashkumar-cn8fu6 жыл бұрын
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
@EEEnthusiast6 жыл бұрын
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.
@kailashkumar-cn8fu6 жыл бұрын
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 .
@autodidactamm76254 жыл бұрын
@@EEEnthusiast complete agree with that, people ned (including me)to work by themselves in order to learn
@jeffmarlowe27272 жыл бұрын
Awesome presentation!!
@camcompco8 жыл бұрын
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
@EEEnthusiast8 жыл бұрын
+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.
@calrustad57466 жыл бұрын
what is the max action time for the servo to remember?
@EEEnthusiast6 жыл бұрын
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.
@newtonsingh21887 жыл бұрын
with different potentiometer
@newtonsingh21887 жыл бұрын
how to control 5 or 6 servo
@MakeHere6 жыл бұрын
Bed code. Hi hi hi......
@Jai_Lopez8 жыл бұрын
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 ?
@EEEnthusiast8 жыл бұрын
+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_Lopez8 жыл бұрын
EEEnthusiast ummm i dont think you answer my questions, was your reply for my comment?
@EEEnthusiast8 жыл бұрын
+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.
@Jai_Lopez8 жыл бұрын
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
@tooltoyou54745 жыл бұрын
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
@3D-Typist6 жыл бұрын
ok. I love you :-)
@williamwilliams65588 жыл бұрын
good work! THOROUGH!
@jonyjohan89585 жыл бұрын
Really helpful
@dekimbe38748 жыл бұрын
COOL!
@tomevans14818 жыл бұрын
Do you have a source for the breadboard pot?Thanks!
@EEEnthusiast8 жыл бұрын
+Tom Evans do you mean where to buy them? Send me a message, I'll send you the link to where I bought mine.
@tomevans14818 жыл бұрын
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.
@EEEnthusiast8 жыл бұрын
+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