Arduino Servo Tutorial 1 of 2

preview_player
Показать описание
A basic tutorial on how to connect a hobby servo to an Arduino and then how to use a FlexiForce Pressure Sensor to have the servo move based on pressure applied to the sensor! Tutorial done with parts purchased from Adafruit and SparkFun.

Arduino CNC Supplies:

If you enjoy this NYC CNC video please hit the like button and share with a friend, it really goes a long way!

Recent Videos:

Рекомендации по теме
Комментарии
Автор

For someone is who interested in electronics and programming, this tutorial was very very helpful! :)

lukewood
Автор

It's supposed to be rather easy. the arduino code is available online.
However, electronics beyond an LM317 or code more complicated than HTML just perplexes me to no end. So a tutorial on how to put it all together would be awsome.
And thanks for the channel, I've learned so much watching your videos.

JoggingWithForks
Автор

I built a motorized camera slider a while ago using an arduino.. It works really nicely to get a super smooth pan! My setup has some mechanical flaws with how the wheels attach to the track and kept sliding off, so I've yet to fix it with a lack of time and money but for the most part it worked well. You need a decent stepper motor that has some strength or torque depending on camera and enclosure weight. Adafruit has a motorshield for arduino that worked great!

Themindforest
Автор

This is absolutely fantastic! You made my day! Very well explained. I'm new to all this and actually getting the code to work made me so happy!
Just a suggestion: Please indicate the value of the resistor that you are using. I'm using a 10K ohm resistor and the results are not significantly different. 
Is the value relevant?

anantikamehra
Автор

Great video! I liked the music...great explanation of detail. I had never heard of that map function I have always just scaled with ratios, but that seems simpler.

williamyoung
Автор

Thanks for the tutorial,

I plan to implement this code into my biped robot project. I am going to add the pressure sensors to the feet therefore I can make the robot walk over most obstacles with out falling over. The sensors will recognize when the feet hit the ground so if the sensor is triggered before the foot hits the ground, it will stop and the servo won't keep going.

Thanks

andresmendez
Автор

Yeah, I assumed so as well. I made a 6V power supply out of two toy car battery containers and everything works fine now, I can control multiple servos without any issues.

pavichokche
Автор

"(2^10 = 1024 (the exponent is the number of bits) But 0 is also a value in computing, so 1023 is the total number of values)"

Actually, 1023 is the highest value in the range. The total number of values is 1024.

You may be right about the servo's current draw being a potential problem (unless powered by a separate source). From a thread on Sparkfun's site, HobbyTronics stated "In normal operation (no load), these servos only need about 50mA when moving and virtually nothing when stationary."

utubeaccess
Автор

Nice video. I've been reading a lot into this hobby and this got me a little more excited.

experimancy
Автор

If you mean arduino the board, you can program it in (mainly) C/C++ with WinAVRStudio or the Arduino IDE. If you mean Arduino the programming environment, it is based on Processing and uses a variant of C/C++ for it's programming language with some hardware specific libraries and functions. The program structure is a bit different that it does not have a main loop but rather a setup function and a loop function being the basic functions instead of a main function in C/C++

DavidKirtley
Автор

Thank you. Very clear and understandable tutorial, I'm very glad to have found this channel!

salarycat
Автор

Good job,
I would recommend you to mention about PWM as well,
because I think it will work on PWM pins only.
Sorry if you already did but I didn't hear that.

PrakanPuvibunsuk
Автор

Arduino is an MCU(MicroController Unit) programming platform. The goal is to simplify the process of learning to program/use MCUs. There are many types/brands of MCUs like PIC, AVR...etc. Arduino belongs to the AVR type which was developed by Hardvard I think. In this video the Arduino is that greenish/blue-ish electronic board. you can simply think of it as a micro-computer which can serve a certain job and has no keyboard/mouse/monitor.

igrewold
Автор

I would like to add that servos for rc are now standardized in that the signal pin comes only in white, yellow or orange, blue was once used but has been fazed out. If yo look on Ebay or even Hobbyking servos no can be bought for as low as $3.00 with around 1 km of torque. Most standard servos now " unless stated " do not technically transverse 180 degree but turn 178 - 179 degree, this is to stop binding in model application when over reach on an arm can lock the servo into position. The servo used in this video is a exception. Just keep this in mind when buying.

gigabytex
Автор

thanks for the quick answer been surfin the net here and there seen a rotary motor with many contacts around it thinking its a "clock" style motor with the 1 sec jump between the contacts ..anyways building from scratch never comes eazy i'll look into steppers thanks again

freakyflow
Автор

Brilliant, came here for the Arduino stepper control, stayed for the metal work.

StevenVacher
Автор

Great video man, i wish i knew how to write my own codes.

AlienK
Автор

Hi, I just wanted to say thank you for uploading the Arduino Servo Tutorial videos on your channel. I'm starting to get into Arduino for a school project and your tutorial videos were really helpful! :)

I have one question though. What is the name of the music you play in the background of those videos? Contrary to what some people said in the comments section, I found the music quite relaxing to listen to while you went through the tutorial.

miceblue
Автор

Again something nice from nyccnc, cool video

rinimadeven
Автор

Very interesting. Just a quick question though. What would the intended purpose of something like this be?

TheManWithFirstName