No video

Arduino Prototyping Outputs #85: Servos

  Рет қаралды 361

Marc de Vinck

Marc de Vinck

Күн бұрын

Servos are just geared motors with a feedback loop. The trick is how you interpret the feedback and control the DC motor. Arduino makes it simple with the built-in library for servos.
Don't forget to like and subscribe if you'd like me to make more videos!
Prototyping Supplies:
• Inexpensive Arduino Compatible Kit -- amzn.to/2Dfqs5U
• A More Deluxe Starter Kit -- amzn.to/3g9nFtR
• Jumper Wire Kit - amzn.to/3f9rtK4
• Breadboard Kit - amzn.to/3hIEPib
• Amazing Perfboard -- amzn.to/30Sj6O9
• WaveShield Kit -- amzn.to/3g9vMq6
• Motor Shield Kit -- amzn.to/3hISQfL
• Adafruit Circuit Playground Kit -- amzn.to/39yBfo9
• Makers Notebook -- amzn.to/3jHOYh3
My Camera Equipment:
• Primary Camera -- amzn.to/3fewxgA
• Camera Kit -- amzn.to/3jQvaI8
• Primary Lens -- amzn.to/3jQvaI8
• Macro Probe Lens -- amzn.to/3jQvaI8
• Main Light -- amzn.to/2X1SwB6
• Secondary (RGB) Lights -- amzn.to/3jQvaI8
• Mini Lights -- amzn.to/3jQvaI8
A few other FREE sensor tutorials you might like: (I have 100's!)
• Cellular Data shield - • Arduino Prototyping Te... z
• Capacitive Sensing - • Arduino Prototyping In...
• Luminosity Sensors - • Arduino Prototyping In...
• Thermocouples - • Arduino Prototyping In...
• Sensing Vibration - • Arduino Prototyping In...
A few other sensor tutorials you might like: (I have 100's!)
• Cellular Data shield - • Arduino Prototyping Te... z
• Capacitive Sensing - • Arduino Prototyping In...
• Luminosity Sensors - • Arduino Prototyping In...
• Thermocouples - • Arduino Prototyping In...
• Sensing Vibration - • Arduino Prototyping In...
And some playlists on prototyping with Arduino:
• The Basics - • Arduino Prototyping: T...
• Inputs - • Arduino Prototyping: I...
• Outputs - Arduino Prototyping, Techniques - • Arduino Prototyping Ba...
• Complete Prototyping Series! - • Arduino Prototyping: T...
Instagram - / marcdevinck
Twitter - / devinck
My company, Panoptic Labs - www.panopticlab...

Пікірлер: 4
@pharaohboy8657
@pharaohboy8657 4 жыл бұрын
Thanks, I made a code that combines dimming led, potentiometer and servo (as an indicator for voltage) but the problem is tha my led turns on when brightness gets to 255 it act like digitalWrite not analogWrite............ also the servo keeping on going back and forth...the code worked perfectly when I made it for dimming led only without the servo but when I included the servo both of them began to act strange any solution?
@MarcdeVinck
@MarcdeVinck 4 жыл бұрын
Without seeing the code, it could be a couple of things. Make sure the analog read is working fine (potentiometer input), then use that value to control the LED and servo. May want to use the "map" function to get the values you want. Also, make sure you have the servo and the LED on dedicated PWM pins. (this is most likely the issue, but again without seeing the code, schematic, and actual Arduino it's hard to diagnose. Good luck! Hope that helps.
@pharaohboy8657
@pharaohboy8657 4 жыл бұрын
@@MarcdeVinck #include int Redled = 9; int Potpin = A0; int Servopin = 10; int PotVal; int Servopos; float Voltage; int Brightness; Servo Vservo; void setup() { // put your setup code here, to run once: Serial.begin(115200); pinMode(Redled, OUTPUT); pinMode(Potpin, INPUT); Vservo.attach (Servopin); } void loop() { // put your main code here, to run repeatedly: PotVal = analogRead(Potpin); Brightness = (255./1023.)*PotVal; analogWrite (Redled, Brightness); Servopos = (140./1023.)*PotVal; Vservo.write(Servopos); Voltage = (5./1023.)*PotVal; Serial.print(" Voltage = "); Serial.print(Voltage); Serial.print(" Servo angle = "); Serial.print(Servopos); Serial.print(" Brightness = "); Serial.println(Brightness); }
@pharaohboy8657
@pharaohboy8657 4 жыл бұрын
@@MarcdeVinck I did every thing you said already and I made it no line ending too so my servo won't make that issue but I still got that problem
Arduino Prototyping Outputs #86: Continuous Rotation Servos
12:03
Marc de Vinck
Рет қаралды 4,4 М.
Arduino Prototyping Techniques #105: ATtiny Programming
10:53
Marc de Vinck
Рет қаралды 3,1 М.
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 51 МЛН
女孩妒忌小丑女? #小丑#shorts
00:34
好人小丑
Рет қаралды 62 МЛН
wow so cute 🥰
00:20
dednahype
Рет қаралды 20 МЛН
Arduino Prototyping Techniques #92: BlueTooth LE (BLE)
11:10
Marc de Vinck
Рет қаралды 6 М.
Arduino Prototyping Techniques #98: Conductive Materials
6:24
Marc de Vinck
Рет қаралды 729
Motion-activated Servo Motors with Arduino and PIR Sensor
25:20
Rachel De Barros
Рет қаралды 28 М.
How to Control a 12V Motor with Arduino: Easy Wiring & Code Examples
44:13
Using Servo Motors with Arduino
43:06
DroneBot Workshop
Рет қаралды 1,4 МЛН
Sensors - which one to use
17:06
Electronoobs
Рет қаралды 1,3 МЛН
How This New Battery is Changing the Game
12:07
Undecided with Matt Ferrell
Рет қаралды 217 М.
Stepper Motors and Arduino - The Ultimate Guide
29:57
How To Mechatronics
Рет қаралды 1,1 МЛН
74HC595 & 74HC165 Shift Registers with Arduino
40:38
DroneBot Workshop
Рет қаралды 397 М.
Arduino Prototyping Techniques #94: Memory Management
5:42
Marc de Vinck
Рет қаралды 1,1 М.