Тёмный
No video :(

ESC Basics: Read RC receivers with Arduino (updated) 

Team Panic
Подписаться 8 тыс.
Просмотров 7 тыс.
50% 1

Опубликовано:

 

28 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 26   
@hfe1833
@hfe1833 3 года назад
This video keeps me interested in rc car
@markxr1
@markxr1 3 года назад
Great, that is really interesting. Also, the Flysky i-bus signal is easier to decipher than s-bus, because a) its signals are the "correct" way up (active low) b) It uses a more typical bit rate c) it does not do any strange bit-twiddling to squeeze more channels into fewer bytes.
@TeamPanicRobotics
@TeamPanicRobotics 3 года назад
Oh cool, I'll have to check out i-bus, that sounds less complex then sbus and I want to custom code a bus based ESC in the near future so that will be handy
@markxr1
@markxr1 3 года назад
@@TeamPanicRobotics I wrote a thing about these protocols. marksverbiage.blogspot.com/2020/09/1-wire-radio-control-protocols.html
@derkeks3831
@derkeks3831 2 года назад
So how do you control a motor with this code using the l 298n motor controller? My motors are just doing really weird stuff and just spinning at 100% speed and then slow again?😅
@TeamPanicRobotics
@TeamPanicRobotics 2 года назад
you need to use interrupts to catch the timing of the pulses then you need to convert those timings into a PWM value which you output to the motor controller
@dr3d3d
@dr3d3d 2 года назад
@@TeamPanicRobotics if only someone would make a video about this ;)
@faridalexander5048
@faridalexander5048 8 месяцев назад
Thanks great explanation
@mishsmff
@mishsmff 3 года назад
I have an ESC that takes input with the standard 3 wires which I believe is called the "throttle lead" for rc cars (signal, red power wire, ground wire). Is it possible to control the esc with an MPU-6050 using its gyroscope data? I don't believe the MPU-6050 can take the rc throttle lead wires as input. However, can the sbus device turn those 3 wires into one, subsequently making the esc able to connect with an MPU-6050? I essentially want the most simple device that would simply take gyroscope data and convert it to motor spin for a robot to balance. Can it be done in the way I described?
@TeamPanicRobotics
@TeamPanicRobotics 3 года назад
Nope not at all The MPU-6050 has its own communications scheme You will need to have a microcontroller such as an Arduino, to convert signals from the MPU650 to the ESCs
@philotis1896
@philotis1896 2 года назад
sympathise with previous "achilles heel" Vision : RC control model railway could outperform traditional track delivered electrics DCS etc( advantages are apparent) BUT we only have hand me downs from other hobbys ( aircraft etc) So to get started HOW can I interrupt signals from a tx by a separate (track) triggered input to implement a function. ( eg controlled slow down to destination ) Seems every thing has to come from TX ? Idea of a remote "encountered interrupt ( eg hitting a micro switch in travel seems "No Go " ? Am I dreaming ? Ms Otis
@DeAtHaToMiC88
@DeAtHaToMiC88 3 года назад
I feel like this kinda stuff will be my achilles heel when it comes to my build, im not amazingly good with electrics... i know enough to get by but not intricate systems and as far as radio control/arduino code ive never even really gone into it. I assumed i could just buy ready made modules plug them in and then follow a tutorial or self learn how to make it work with the receiver.
@TeamPanicRobotics
@TeamPanicRobotics 3 года назад
You absolutely can just buy ESCs and plug them into a receiver and as long as you have the settings in the ESC right (or have bought ones set up already) you will be fine 90% of all robots I've built I've not had to worry about any of this or use a single line of code I have written This video is really more for people who want to build their own ESC or start to understand more about how the electronics in their robot works.
@EleanorPeterson
@EleanorPeterson 3 года назад
@@TeamPanicRobotics - Well said, Ben. THAT'S the way to encourage new roboteers! :-) Most aircraft pilots don't have university degrees in fluid dynamics, laminar flow and boundary-layer adhesion; lots of brilliant racing drivers don't know the first thing about designing a fuel injection system. They're too busy trying to win races to bother with all that technical stuff. It's interesting to browse through manuals or take a look under the bonnet from time to time, but it's far more important to get behind the wheel and drive. I'm mechanically-minded (i.e. simple!) and have a poor understanding of electronics; programming is still a mystery to me. Thankfully (as you say) you can get everything ready-to-run straight off the shelf these days.
@dr3d3d
@dr3d3d 2 года назад
whats the sbus rx model you have there?
@grzesiek1x
@grzesiek1x 2 года назад
what is the signal from the receiver when I control a dc motor (not servo! ) ? Is it still like 50 Hz (is it always 50 Hz ? signal)? So tell me if i am wrong but what ESC does is convert this signal of 50 Hz PWM into voltage which varies between lower and higher voltages which can control the speed of the motor? What I am interested in what is the exact output of the receiver signal for dc motor control and also what is the output of the ESC to the motor (example FLySky controller). Thanks. PS. I am planning to buy a FlySky controller but also I practice designing my own circuits this is why I wanted to know. I have already built some 27 MHz transmitter / receiver for my own (from the scratch) . Of course I am realistic and I know that my own design is even not 1 % close to the commercial transmitter like Flysky or even I don;t want to metion other more expensive equipement but I think my own ESC is a thing that I could do (it is cheaper than pay a lot every time when I want to change my project). PS2. What I build myself looks like those old school circuits from 60 ' or so ;)
@TeamPanicRobotics
@TeamPanicRobotics 2 года назад
A receiver you buy will always output the same type of servo signal PWM. If you want to make an ESC you need to read this servo signal and convert it to a motor PWM signal Motor PWM signals are usually a higher frequency and control the speed of the motor by varying the duty cycle, a 10% on 90% off will give a low speed from the motor, where a 90% on 10% off will give a high speed This works because the duty cycle of this kind of PWM is fast enough that the motor cant react to each induvial pulse so instead sees the signal as an approximate voltage. To know more look up tutorials for controlling motors with Arduino, there are some really great tutorials out there
@grzesiek1x
@grzesiek1x 2 года назад
@@TeamPanicRobotics thanks for the idea :)
@hmbiii9974
@hmbiii9974 2 года назад
Would this work with a Spektrum Receiver?
@TeamPanicRobotics
@TeamPanicRobotics 2 года назад
As long as the receiver has individual channels like this it should work The only thing this wont work for is receivers that only have a single output for all channels, those receivers use very different protocols
@hmbiii9974
@hmbiii9974 2 года назад
@@TeamPanicRobotics Yes but your receiver only has three lines out V G and signal.
@TeamPanicRobotics
@TeamPanicRobotics 2 года назад
It has V G and Signal per channel, I.E. it has 4 of them, one for each of the 4 channels out Some receivers only have 1 set of V G and Signal, but transmit 8 or 16 channels. If your receiver has V G and Signal per channel, then you can follow this video
@albon4038
@albon4038 2 года назад
Hi do you have any contact platform for pm. Email or Facebook? Sincerely
@TeamPanicRobotics
@TeamPanicRobotics 2 года назад
My email for business inquires is listed on the about tab of my channel page
Далее
How to use an RC Transmitter with Arduino (Lesson #18)
13:43
ESC Basics: Part 2 - Read PPM with Arduino
7:35
Просмотров 25 тыс.
Reading PWM Values from an RC Receiver using Arduino
4:06
DC motor PID speed control
15:29
Просмотров 231 тыс.
Arduino DRONE II   Part 1 receiver PWM read
10:22
Просмотров 57 тыс.