Time Measurement via Arduino Timer

Поделиться
HTML-код
  • Опубликовано: 11 окт 2024

Комментарии • 12

  • @marcosgiovanni9682
    @marcosgiovanni9682 3 года назад +1

    Anas, very good, from the continuity of the series on Websocket.

  • @arnolduk123
    @arnolduk123 Год назад

    Another excellent video! This could be used as a single button password lock by using morse code tapping :) Why do you use a prescaler of 1024 in most of your timer videos, would it not be more accurate using a prescaler of 1 running at the chips clock speed.

  • @dannysiewziyang1044
    @dannysiewziyang1044 Год назад

    Hi Anas, thanks for the video, may I know are u using the extrnal library, because I use ur code to do the testing the library u use cant be recognise. Is it have the library coding

  • @josiasfokam4789
    @josiasfokam4789 2 года назад

    Hi Anas, thanks for the video. I'm looking your video without any Arduino background. I've started my Arduino journey with an ESP32, and I'm trying since several days to implement your example (time measurement via Timer1) on an ESP32 without success. Could you please provide something explaining how to measure the time between two rising edges with the Input Capture Interrupt on ESP32? Thanks

    • @AnasKuzechie
      @AnasKuzechie  2 года назад

      Thanks for your feedback. ESP32 is a totally different microcontroller. You have to refer to its data sheet in order to program its timers. May be in a future video I’ll do that. My advice is to focus on the Arduino since it uses a well known microcontroller ATmega328

  • @incxxxx
    @incxxxx Год назад

    super!

  • @emadjafari4315
    @emadjafari4315 3 года назад

    Hi Anas, thanks for the video, It’s my second day of learning Arduino with zero background, so my question is probably naive, if I have 2 different pwm input connected to the board, how can I tell the timer to measure the time of each separately? Looking at the code no where I see you specify the pin 8, so I assume the timer take whatever pulse it takes and if I have 2 inputs it may not differentiate between the pulses from different pins, am I correct?

    • @AnasKuzechie
      @AnasKuzechie  3 года назад

      Hello Emad, thanks for your feedback. I/O pin D8 on Uno & Nano can also be programmed as ICP1 pin (input capture for Timer1). In other words, you can only have one input capture at any time via pin D8.

  • @knowledge_seeker80
    @knowledge_seeker80 8 месяцев назад

    74LS00 or 74HC00 used?

  • @kostadinnedev8521
    @kostadinnedev8521 3 года назад

    How can we measure more than 4 seconds?

    • @AnasKuzechie
      @AnasKuzechie  3 года назад

      Please watch my part 2 video for any length time measurement: ruclips.net/video/2iKfdpwK2Pg/видео.html