Using an RC controller with an Arduino - Part 2
HTML-код
- Опубликовано: 6 июл 2024
- Using an RC controller with an Arduino - Part 2
Part 2: Refine and Translate RC Controller Input
This video adds the following features to the code we made in part 1:
0:00 Intro
2:45 Failsafe - if the RC controller goes out of range, react
5:03 Inversion - if your control stick goes the wrong way we can handle it
6:37 Deadzone - don't react until the sticks are intentionally pushed
9:10 Translation - map our values to a sensible range like -100 to 100
11:20 Servos - using our newly translated values to drive a servo
All the code for this video is available for free on my website.
Main Website: www.andyvickers.net
Accompanying Blog Article: www.andyvickers.net/2022/11/1...
Product / Affiliate links - It costs you no more, but I will get a small amount money if you use them to buy something:
------------------------------------------------------------------------------------------
Radiolink AT10II 12 Channels RC Transmitter and Receiver - amzn.to/3tLM9l9
HiLetgo 3pcs Arduino Pro Micro Atmega32U4 amzn.to/3XhSu5s
Reference
------------------------------------------------------------------------------------------
Here is a link to the Arduino article about interrupts
www.arduino.cc/reference/en/l...
I accept no liability for any damage you do to yourself or your property. Do your research, use your common sense. This shows I assembled my machine and what worked for me. your mileage may vary
Thanks, Andy 😁
Thanks so much Andy! Was waiting eagerly for this one. 👍
You’re welcome! I wish I could have made it sooner!
very nice tutorial, thanks, the safety focus is great
Thanks! I'm building a full size R2-D2 and decided to use a RC controller so this helps a lot.
Glad I could help!
buen video, has pensado en utilizar la salida PPM para leer y controlar todos los canales con solo un cable conectado del receptor al arduino? esto seria muy bueno para controlar por ejemplo unos motores de hoverboard con la placa ZS-X11H y algunos servos y mas componentes para hacer una gran construcción
Thanks Andy.. I am beginner and indeed the code helps a lot on my project.. by the way ,is the any chance can we smooth out the servos ? By adding VarSpeed?
Was thinking about this problem and somehow Google read my brainwaves and passed on your link... wonder how that works. Anywho, thanks for excellent video :)
I sure do see you into all this Arduino open source stuff. Why not Radio Master as for radio? Open source lot of configuration you can do unlimited. By the way I'm gonna browse you're channel :) I love robots and Arduino also rc.
Thanks Andy, by the way i have recently sent you a DM on Facebook. Regarding Brushless DC motors and RC controller
Hi Andy, would you be able to help me code for a sbus receiver? I am trying to make a sketch to control a starwars D-O droid with 2 main drive motors. See matt denton at mantis hacks RUclips channel.
Hi, do you have a wiring diagram?