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
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.
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
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
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?
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)
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
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)
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 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.
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.
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
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 :)
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
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, 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 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?
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! 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!!
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.
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.
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 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.
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.
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
+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
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 .
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