Тёмный

Reading PWM Signal Using Arduino Interrupt 

Kamran Ahmad
Подписаться 698
Просмотров 33 тыс.
50% 1

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

 

29 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 35   
@lorinwingtips5290
@lorinwingtips5290 5 лет назад
Thank you! My evil plan to build robot minions had failed because I couldn't figure out how to convert a PWM signal to something useful. Now, thanks to this video and your library, I will soon have my army of evil robot minions! ;D
@Tintin-dm4ym
@Tintin-dm4ym 5 лет назад
Finally an Arduino video that isn’t like 8 mins long and full of waffle. Thanks!
@jonathandrwal3656
@jonathandrwal3656 7 лет назад
EXCELENT VIDEO, thank you so much this helped me alot! this has been such a headache lol. I have two channels from my RC RX wired up and giving input to arduino coming up on serial monitor, just need to figure out how a certain value will trigger a relay...
@whathefunctr
@whathefunctr 7 лет назад
woow 6 ch ,Its awesome and very easy Thanks for this video man
@kamranahmad6808
@kamranahmad6808 7 лет назад
+Maker - Gamer no problem.
@noahagnew6517
@noahagnew6517 5 лет назад
Awesome and super useful $1 is getting PayPaled to you you wonderful person Sorry I can't do more, I'm a broke college student
@arnoldschmucker9977
@arnoldschmucker9977 2 года назад
Excellent, still helpful.
@RollingRodent
@RollingRodent 4 года назад
it helps me a LOT, thanks man
@sbpcls
@sbpcls 3 года назад
thank you for adding the github link
@mckirkus
@mckirkus 5 лет назад
Won't compile on my two different UNOs. I'm thinking the GitHub summary page has outdated code: "undefined reference to `PWM::PWM(unsigned char)'"
@bgrant1512
@bgrant1512 10 месяцев назад
Will this work with the Nano 32 ? I need to have more than 6 channels and the Nano esp 32 seems to support interrupts on all pins.
@sebastiandelavega4978
@sebastiandelavega4978 4 года назад
EXCELENT VIDEO, thank you so much this helped me alot!
@mustafaalp3954
@mustafaalp3954 5 лет назад
Thank you very much, works perfect!!
@oncom81
@oncom81 3 года назад
hi Kamran, thanks for your tutorial, but I wanna know how to convert results to frequency and percent? your tutorial only show duration High for initial 1 and Low for initial 0. Thanks...
@Alex-ir9nx
@Alex-ir9nx 4 года назад
I get an error: no matching function for call to 'PWM::PWM()'
@icecreammms7487
@icecreammms7487 4 года назад
the library changed the method of initializing the pwm object check out the examples on the github :)
@johnleinberger7933
@johnleinberger7933 6 лет назад
I downloaded the library from github and copied the solo version of the code. I am getting a readout on the serial monitor and I connected my rc receiver ouput signal wire to pin 2 and get values in the window but am unable to change them when I move the joystick on my controller. Any advice?
@tomscietvirs2379
@tomscietvirs2379 4 года назад
i read with your code values ​​from the RC transmitter and changed it with the map function. To change the stepper motor (nema17) RPM. but I failed. can you please help me?
@royerickmelendez3408
@royerickmelendez3408 7 лет назад
Great Job Man! Thanks!
@krisharris4158
@krisharris4158 6 лет назад
Hey- Would it be possible to add an overflow timer of somesort so it has a failsafe incase the receiver becomes disconnected?
@mickthebass6086
@mickthebass6086 5 лет назад
Excellent job Kamram Ahmad, this has helped me on my way to working with ibus, on the flysky setup. I am building an RC Excavator and I need a minimum of 9 D.O.F. I understand this method is maxed out at 6 D.O.F, but with upgraded firmware, 10 D.O.F is possible using ibus. I'm not sure if the same applies to ppm signals, I have yet to test this theory. Thank you for the tutorials and the source code downloaded from your github.
@axelnjuegangnjouongoua9829
@axelnjuegangnjouongoua9829 6 лет назад
Hi Guy, i have a problem and i don´t know , if you can help. i have a generator , which gives a voltage from 0-5v out. i connected the output of the generator to an interrupt and i have another voltage always with the same range(0-5v). so i connected this one to another interrupt on my arduino Mega 2560. I main point i want to reach, is first of all to find the right zero of my signal, when he comes out. Because i have a rectangular signal. Secondly i need to know how the arduino could convert the tension in angle(with the first tension) and the with the second tension convert it in time. I need this tho control the a Optokoppler connected on a digital outputi will choose) steps to follow to solve the problem: 1)read a voltage for the angle 2)read the voltage for the time to set the optokoppler high or low 3)convert the voltage in angle 4)convert the voltage in zeit 5)wait according to the given angle==> optokoppler "HIGH" 6) wait according to the given Time ==> optokoppler "LOW" the given angle and time will be entered on a Graphical User Interface from Labview, later it would be converted in a voltage through the system of the compagny and the voltage will reach the arduino.. So i need to know , how the arduino will recognize , that the reading voltage at the interrupt correspond to the entered angle angle or this time given by the user at the bigining? I wanted to detect first of all the zero of my signal , so that the microcontroller arduino Mega 2560 can start at the same point to read the signal and send the command to set the optokoppler high or low..how to do this? PS: For the input= the angle i have 5v correspond to 360 degre and for the other input for the time i have 5v who corresponds to 60s. The rectangular signal has a frequency for 50 Hz and the period of 20ms. Please could someone help me? Regards!
@unboxing7599
@unboxing7599 3 года назад
Hey, the serial monitor show the HIGH time in microseconds. I want to read the PWM signal and reconstruct it, so i also need the LOW time. How can i do that ?
@Beansswtf
@Beansswtf 3 года назад
Did you ever figure this out? I also need the same haha!
@jayman8947
@jayman8947 5 лет назад
i want to map the value written in the monitor but where is the value in?
@KirtikSoni
@KirtikSoni 7 лет назад
Hey, Will using this on a uno board interfere with pwm? Also, What pins on the uno support attach interrupt?
@sbpcls
@sbpcls 3 года назад
what doesn't help is not to have description section on all your videos. looks like you do not have option on
@orange_tweleve
@orange_tweleve 11 месяцев назад
Subbed !
@ItaldesignSchigera
@ItaldesignSchigera 7 лет назад
my arduino is not able to compile the PWM.hpp
@Tintin-dm4ym
@Tintin-dm4ym 5 лет назад
Varun Nayak unlucks
@dronesvisionsaeriennes
@dronesvisionsaeriennes 6 лет назад
Hi Kamran, good video as usual....this help us ...but for the code, Arduino software says..." pwm does not name a type "...how could i find a similar to run program with no...error.....Thank's a lot.Phil
@RonyEfendy
@RonyEfendy 5 лет назад
Thank you. Your library is so useful! however error appears: ISR not in IRAM.
@mkvw277
@mkvw277 7 лет назад
nice job
@kamranahmad6808
@kamranahmad6808 7 лет назад
+M K thanks.
@codebeat4192
@codebeat4192 4 года назад
1000ms, that is pretty slow for most PWM.
Далее
Reading PWM Receiver Signal Using Arduino
15:34
Просмотров 68 тыс.
Optimizing Arduino Code: no setup(), no loop() ⛔
9:27
The Shocking Ease of Cracking Windows 11 Passwords
14:27
Converting an Arduino PWM Output to a DAC Output
18:48
Просмотров 110 тыс.
Reading PWM Values from an RC Receiver using Arduino
4:06
How I Would Learn To Code (If I Could Start Over)
23:50