×

Ricardo Moreno's video: Lesson 9 - Servo and the Rotary Encoder

@Lesson 9 - Servo and the Rotary Encoder
Lesson 9 – Servo and the Rotary Encoder SG90 Servo and the Rotary Encoder. Demonstrate the Elegoo sketch provided in the tutorial covering the SG90 Servo. Then I develop a sketch to adjust the servo using a rotary encoder to find the 180 degree rotation end points in microseconds. The adjustment circuit also included an OLDE and RGB LED. I had several setbacks, and discuss using interrupts, pin change interrupts and port registers to get the most out of the rotary encoder. Hello everyone, I'm Rick the Tech Enthusiast here with the next Elegoo Lesson. This is the next lesson on my Arduino UNO Series covering the Most Complete Starter Kit by Elegoo. I try to follow the included tutorial and will point out any changes or corrections as I find them. As mentioned before, I purchased this Elegoo starter kit and Elegoo isn't sponsoring me. I just thought it would be fun to do a video of each Lesson as I was learning the Arduino environment. We’ll need a few things from your Elegoo Arduino UNO kit. I’ll list the items below. About 12:15 in the video, I mixed up timers with interrupts. Timer 0 disables the serial port not interrupt zero. Sorry for the mix-up. If someone can tell how to add some text information to this section, that would be helpful. Parts you’ll need for the basic tutorial: * Elegoo Arduino UNO R3 board * Servo SG90 * Three male-to-male jumpers The Servo Adjustment circuit parts are: * Elegoo Arduino UNO R3 board * Servo SG90 * Rotary Encoder module * RGB LED * OLED (purchase separately) * Four 10K-ohm resistors * Three 220-ohm resistors * Two 22pF capacitors * One .01 uF capacitor * 5 female-to-male jumper wires * 11 male-to-male jumper wires * Various breadboard jumper wires * Breadboard The next lesson will be Lesson 10 – Ultrasonic Sensor Module Links: This lesson’s sketch and associated drawings can be found at Github: https://github.com/rmorenojr/ElegooTutorial (Note these are Amazon Associates links) (Full Disclosure: I get a little credit/$ if you purchase a linked item.) LCD1602 Module with 3.3V Backlight 16x2 Character White on Blue Background by SunFounder: https://amzn.to/2KtsWk4 Passive Buzzers, Cylewet 10Pcs 5V 2 Terminals, Arduino (Pack of 10) on Amazon’s web site: https://amzn.to/2z8SmhE Elegoo EL-KIT-001 UNO R3 Project Complete Starter Kit with Tutorial for Arduino (63 Items) on Amazon’s web site: https://amzn.to/2KxZ8mA Elegoo’s web site: https://www.elegoo.com/ https://www.elegoo.com/product/elegoo-uno-r3-project-complete-starter-kit/ Fritzing Software: http://fritzing.org/download/ Arduino Language Reference (English): https://www.arduino.cc/reference/en/ https://www.arduino.cc/reference/en/language/functions/external-interrupts/attachinterrupt/ Switch Case control: https://www.arduino.cc/reference/en/language/structure/control-structure/switchcase/ Pin Change Interrupt: http://playground.arduino.cc/Main/PinChangeInterrupt Port Registers: https://www.arduino.cc/en/Reference/PortManipulation How to Use a Rotary Encoder in an MCU-Based Project: https://www.allaboutcircuits.com/projects/how-to-use-a-rotary-encoder-in-a-mcu-based-project/ Efficiently Reading Quadrature with Interrupts BY MAKEATRONICS: http://makeatronics.blogspot.com/2013/02/efficiently-reading-quadrature-with.html Tutorial: Using Servo Motors and Analog Inputs with the Arduino: https://www.youtube.com/watch?v=qatqVNh9uj4 How Rotary Encoder Works and How To Use It with Arduino: https://www.youtube.com/watch?v=v4BbSzJ-hz4 Rotary Encoder Tutorial with Arduino Code: https://www.youtube.com/watch?v=HQuLZHsGZdI Arduino UNO Tutorial 6 - Rotary Encoder: http://www.hobbytronics.co.uk/arduino-tutorial6-rotary-encoder Hands On Arduino 5A: SPI Communication BY Robert Paz: https://www.youtube.com/watch?v=Fj8IuivkQWI Interrupts BY Nick Gammon: http://gammon.com.au/interrupts Affiliate Links that Help my channel: * Try Prime Discounted Monthly Offering: https://amzn.to/2PnVgSA * Try Amazon Prime 30-Day Free Trial: https://amzn.to/2E5Hy4O * Prime Student 6-month Trial: https://amzn.to/2ElxwNE * Join Amazon Prime - Watch Thousands of Movies & TV Shows Anytime - Start Free Trial Now: https://amzn.to/2PsEZvE * Give the Gift of Amazon Prime https://amzn.to/2EkFaYG * Kindle Unlimited Membership Plans: https://amzn.to/2QJl548 * Try Audible and Get Two Free Audiobooks: https://amzn.to/2QD2B5v * Amazon.com - Read eBooks using the FREE Kindle Reading App on Most Devices: https://amzn.to/2Ptpdkl Sign up and fund an M1 account using the link, and we'll both get $10 to invest: https://mbsy.co/tsrBR ♫♪ Credits ♪♫ Music provided by Free Music Archive, by artist Jahzzar Jahzzar_-_04_-_March_Madness http://freemusicarchive.org/music/Jahzzar/ This is another video for my Arduino tutorial series. If you like the series, be sure to rate and subscribe. Thanks for watching

136

16
Ricardo Moreno
Subscribers
12.3K
Total Post
45
Total Views
1.5M
Avg. Views
34.4K
View Profile
This video was published on 2018-02-17 21:55:06 GMT by @Ricardo-Moreno on Youtube. Ricardo Moreno has total 12.3K subscribers on Youtube and has a total of 45 video.This video has received 136 Likes which are lower than the average likes that Ricardo Moreno gets . @Ricardo-Moreno receives an average views of 34.4K per video on Youtube.This video has received 16 comments which are lower than the average comments that Ricardo Moreno gets . Overall the views for this video was lower than the average for the profile.

Other post by @Ricardo Moreno