No video

Ep.53 Arduino Projects - Potentiometer Servo Control & Memory

  Рет қаралды 61,086

EEEnthusiast

EEEnthusiast

Күн бұрын

Пікірлер: 115
@vaibhavgosavi7817
@vaibhavgosavi7817 7 жыл бұрын
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
@ramosel
@ramosel 8 жыл бұрын
Very cool... took a look at your website too. Thanks, lots of good information.
@EEEnthusiast
@EEEnthusiast 8 жыл бұрын
+ramosel thank you.
@franciscruz5553
@franciscruz5553 8 жыл бұрын
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
@shaikfiroz7716
@shaikfiroz7716 8 жыл бұрын
masha allah your project become very help ful for learning my experiments
@outaspaceman
@outaspaceman 8 жыл бұрын
hmmm, I can adapt this to my purposes. thanks, highly informative.
@EEEnthusiast
@EEEnthusiast 8 жыл бұрын
+outaspaceman Thank you for the comment!
@rangaswamy8604
@rangaswamy8604 8 жыл бұрын
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.
@outaspaceman
@outaspaceman 8 жыл бұрын
Err, probably best to ask Mr. EEEnthusiast that question as he knows what he's talking about.
@douglashales3982
@douglashales3982 8 жыл бұрын
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
@user-vq4lo7qj3d
@user-vq4lo7qj3d 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.
@EEEnthusiast
@EEEnthusiast 8 жыл бұрын
Alex, good point. I'll correct it. I've seen it written both ways though.
@user-vq4lo7qj3d
@user-vq4lo7qj3d 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!
@rangaswamy8604
@rangaswamy8604 8 жыл бұрын
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.
@muhdsafwan401
@muhdsafwan401 7 жыл бұрын
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
@dezzodarling
@dezzodarling 8 жыл бұрын
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?
@MrJefferson105
@MrJefferson105 8 жыл бұрын
You are the best at explaining this .. good work :D
@rangaswamy8604
@rangaswamy8604 8 жыл бұрын
was always looking for a project like this. please do one with three axes control.
@jeffmarlowe2727
@jeffmarlowe2727 2 жыл бұрын
Awesome presentation!!
@PatnaikUC
@PatnaikUC 3 жыл бұрын
Request publish 16 servo use with I2C type servo control board interfaced to Arduino memorizing the coordinates for repetitive action.
@Quoit1
@Quoit1 8 жыл бұрын
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
@EEEnthusiast
@EEEnthusiast 8 жыл бұрын
+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.
@Quoit1
@Quoit1 8 жыл бұрын
+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.
@Quoit1
@Quoit1 8 жыл бұрын
+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)
@asuroyal
@asuroyal 8 жыл бұрын
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
@camcompco
@camcompco 8 жыл бұрын
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)
@jamiewilliams8469
@jamiewilliams8469 6 жыл бұрын
Really awesome video! Is there any way that this can be done with stepper Motors?
@jimmym2719
@jimmym2719 5 жыл бұрын
You are Awesome..thanks..will try it soon
@camcompco
@camcompco 8 жыл бұрын
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
@EEEnthusiast
@EEEnthusiast 8 жыл бұрын
+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.
@fritskayadoe2726
@fritskayadoe2726 8 жыл бұрын
This is So FUKING Amazing!!! (Excuse my language). Sir,... God Bless You MAN!!
@onurkarakaya5640
@onurkarakaya5640 7 жыл бұрын
you are the man i am going to share your link about that robot arm otomation videos thank you
@electricmic
@electricmic 7 жыл бұрын
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.
@shantasagarmarol9115
@shantasagarmarol9115 7 жыл бұрын
It was awesome we loved it sir. BUT we want to use this for an application please help us
@treereaverjones6535
@treereaverjones6535 7 жыл бұрын
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.
@liewck2487
@liewck2487 4 жыл бұрын
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
@offloadcreativity
@offloadcreativity 8 жыл бұрын
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
@willyding100
@willyding100 8 жыл бұрын
hi have you changed the code because it doesn't seem to work now,, could you post the original code please
@jonyjohan8958
@jonyjohan8958 5 жыл бұрын
Really helpful
@phuuuur
@phuuuur 6 жыл бұрын
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 :)
@fernoratube
@fernoratube 7 жыл бұрын
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
@mariogayoso
@mariogayoso 6 жыл бұрын
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?
@ArduinoCreatively
@ArduinoCreatively 4 жыл бұрын
When i uploaded the sketch and press the button the servo can't do any control and not record can any help me?
@stefanb.933
@stefanb.933 8 жыл бұрын
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
@sairahlenpalti_786
@sairahlenpalti_786 6 жыл бұрын
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 :)
@firelord943107
@firelord943107 8 жыл бұрын
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?
@Ripsticker45
@Ripsticker45 7 жыл бұрын
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?
@divacreator259
@divacreator259 4 жыл бұрын
Can't with SD cards?
@RT-ke3jc
@RT-ke3jc 8 жыл бұрын
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!
@floridaboy037
@floridaboy037 7 жыл бұрын
It says expected initializer before numeric constant and it highlights the Servo Servo 1; line. What do I do
@williamwilliams6558
@williamwilliams6558 7 жыл бұрын
good work! THOROUGH!
@themimiday
@themimiday 7 жыл бұрын
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!!
@michalmelich9185
@michalmelich9185 6 жыл бұрын
hello when i push the buttom servo doesnt learn anythink can you help me with that pls
@hazimzaid3071
@hazimzaid3071 8 жыл бұрын
Is it possible to control a big step motor through a Potentiometer ?
@arjuna6044
@arjuna6044 7 жыл бұрын
Can you give the code of reversing the memory . Meaning the things that i did should reverse and come to its initial state
@vghayathre3996
@vghayathre3996 5 жыл бұрын
m not able to control the servo thing using potentiometer .....what should i do!???
@xeradKing
@xeradKing 6 жыл бұрын
how long it can record
@alpaccinoisles8144
@alpaccinoisles8144 8 жыл бұрын
it doesn't work to me ... i used B500k potentiometer and 10k ohms resistor, is it ok to use this one ?
@julioluna2014
@julioluna2014 8 жыл бұрын
Hi man! What can I do to control 5 servos with this code? Hope your soon answer, thanks!
@boowonder888
@boowonder888 7 жыл бұрын
can you control a 3 phase hdd motor with the Arduino?
@bereketassefa7796
@bereketassefa7796 2 жыл бұрын
Bro thanks for your help can i please get the schematics
@koreislove1243
@koreislove1243 6 жыл бұрын
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.
@mohammadwasim2067
@mohammadwasim2067 5 жыл бұрын
Can it be done with Arduino nano with same coding
@tarakmakwana
@tarakmakwana 6 жыл бұрын
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.
@antoniobugarin
@antoniobugarin 7 жыл бұрын
How can I do this with a stepper motor? Thanks
@TorIvanBoine
@TorIvanBoine 5 жыл бұрын
How would you adapt this to stepper motors? :)
@MadScienceHacksTV
@MadScienceHacksTV 7 жыл бұрын
Is there a way to record movements in several parts and play them back as one motion?
@superabbasalmani6079
@superabbasalmani6079 4 жыл бұрын
Jo, think of the songs & dance rhythm of Shakira or other stars hahaha😎🤣🌈🎺🦜🌠⭐🤼‍♀️
@Jai_Lopez
@Jai_Lopez 8 жыл бұрын
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 ?
@EEEnthusiast
@EEEnthusiast 8 жыл бұрын
+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
@Jai_Lopez 8 жыл бұрын
EEEnthusiast ummm i dont think you answer my questions, was your reply for my comment?
@EEEnthusiast
@EEEnthusiast 8 жыл бұрын
+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_Lopez
@Jai_Lopez 8 жыл бұрын
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
@dekimbe3874
@dekimbe3874 7 жыл бұрын
COOL!
@rangaswamy8604
@rangaswamy8604 8 жыл бұрын
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.
@prasannavenkatesh333
@prasannavenkatesh333 8 жыл бұрын
can upload this program for 5 servo with memory
@riotanone8381
@riotanone8381 7 жыл бұрын
can u tell me code and wiring intermitted mode, thanks sir
@dougb802
@dougb802 7 жыл бұрын
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.
@calrustad5746
@calrustad5746 6 жыл бұрын
what is the max action time for the servo to remember?
@EEEnthusiast
@EEEnthusiast 6 жыл бұрын
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.
@FoxMelody123
@FoxMelody123 5 жыл бұрын
how can i create a robotic arm using this code with servo.please give me the code.
@ariezumalitv4244
@ariezumalitv4244 2 жыл бұрын
Diagram there is nothing in your website Sir 😭
@newtonsingh2188
@newtonsingh2188 7 жыл бұрын
how to control 5 or 6 servo
@saidanimohamedamine1378
@saidanimohamedamine1378 7 жыл бұрын
a mémoire disponible faible, des problèmes de stabilité pourraient survenir.
@amithosur6880
@amithosur6880 6 жыл бұрын
I want circuit daigram sir... plz can u help me
@AlexanderWEtrust
@AlexanderWEtrust 6 жыл бұрын
ok. I love you :-)
@samiqra1538
@samiqra1538 4 жыл бұрын
Complete coding please
@tooltoyou5474
@tooltoyou5474 5 жыл бұрын
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
@tomevans1481
@tomevans1481 8 жыл бұрын
Do you have a source for the breadboard pot?Thanks!
@EEEnthusiast
@EEEnthusiast 8 жыл бұрын
+Tom Evans do you mean where to buy them? Send me a message, I'll send you the link to where I bought mine.
@tomevans1481
@tomevans1481 8 жыл бұрын
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.
@EEEnthusiast
@EEEnthusiast 8 жыл бұрын
+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
@newtonsingh2188
@newtonsingh2188 7 жыл бұрын
with different potentiometer
@samuelruben8726
@samuelruben8726 7 жыл бұрын
Vcan someone give me the schematic for 4 servo
@uazice
@uazice 6 жыл бұрын
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...
@EEEnthusiast
@EEEnthusiast 6 жыл бұрын
Try this video: kzfaq.info/get/bejne/rNaZqMZqyJ3Iqnk.html
@uazice
@uazice 6 жыл бұрын
EEEnthusiast Thanks for reply,I will check it !:)
@kailashkumar-cn8fu
@kailashkumar-cn8fu 6 жыл бұрын
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
@EEEnthusiast
@EEEnthusiast 6 жыл бұрын
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-cn8fu
@kailashkumar-cn8fu 6 жыл бұрын
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 .
@autodidactamm7625
@autodidactamm7625 4 жыл бұрын
@@EEEnthusiast complete agree with that, people ned (including me)to work by themselves in order to learn
@MarcoRizzinelli
@MarcoRizzinelli 5 жыл бұрын
The sketch doesn't work. It is a fake video... why did you post it?
@automatedtradingforex3879
@automatedtradingforex3879 8 жыл бұрын
Likeeeeeeeeeeeeee.....
@MakeHere
@MakeHere 6 жыл бұрын
Bed code. Hi hi hi......
@abduhkidz7168
@abduhkidz7168 8 жыл бұрын
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
The Ultimate Guide to using Motors in Robotics (including ROS, Raspberry Pi)
25:56
王子原来是假正经#艾莎
00:39
在逃的公主
Рет қаралды 16 МЛН
Big Stepper Motors with Arduino
29:43
DroneBot Workshop
Рет қаралды 1,2 МЛН
Make your own Retro Nixie Clock with an RTC!
10:54
GreatScott!
Рет қаралды 1 МЛН
Robotics Programming: Servo Control for Arduino
22:15
Coding Coach
Рет қаралды 3,7 М.
Beginners Guide To Using Large Stepper Motors: #087
19:49
Jeremy Fielding
Рет қаралды 289 М.
Using EEPROM with Arduino - Internal & External
31:54
DroneBot Workshop
Рет қаралды 195 М.
Controlling 3 Stepper Motors with the AccelStepper Library for Arduino
11:49
VESC (Best Open Source ESC) || DIY or Buy
10:42
GreatScott!
Рет қаралды 618 М.
Hack everything: re-purposing everyday devices - Matt Evans
50:39
Linux.conf.au 2012 -- Ballarat, Australia
Рет қаралды 803 М.
【For Beginner】How to start electronics and what item is needed
18:16