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

  • @Graham1904
    @Graham1904 4 года назад +3

    Great tutorial. Why declare adcValArray as 8-bit in the setup and then cast it to a 32-bit array in the HAL ADC command?

  • @OhGee7809
    @OhGee7809 5 лет назад +11

    Can you please do a tutorial on how to implement DSP functions (FFT, FIR filter, etc)

  • @msh6783
    @msh6783 4 года назад +1

    ممنونم محمد عزیز. بسیار آموزنده بود.

  • @WalidIssa
    @WalidIssa 4 года назад +1

    Does enabling FIFO speed it up ?

    • @mutexembedded2206
      @mutexembedded2206 4 года назад

      Yes, in the sense that you no more need to poll for each channel.

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

      I know im asking the wrong place but does any of you know a method to get back into an Instagram account??
      I was dumb lost the login password. I would love any tips you can give me!

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

      @Isaac Cesar Instablaster :)

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

      @Landry Dominic thanks so much for your reply. I got to the site through google and I'm waiting for the hacking stuff atm.
      Seems to take a while so I will reply here later when my account password hopefully is recovered.

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

      @Landry Dominic it did the trick and I actually got access to my account again. I am so happy:D
      Thank you so much, you saved my ass!

  • @gerarddonnelly5092
    @gerarddonnelly5092 4 года назад

    I've copied this exactly. the program compiles and downloads without errors. When I add the array to watch it doesn't give me the option to expand and when I move the POT it doesn't change the value of the visible Channel 0. Any advise? If I change the declaration from uint8_t to uint32_t it works fine but the results I get are weird...

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

    Just a general question.... What is the maximum Sampling time that is possible? I experience a nice output converted at a sampling frequency below 20kHz, but I got a pile of rubbish at a sampling frequency above that... All I work with 8-bit means the Tconv_c is around 9 Clk and APBH frequency of 84MHz...

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

      You can get very fast sampling time, just need to make sure it is sufficient for Sample/Hold circuit to do its job with the given capacitance value and PCB impedance. There is a simple RC 1st order ODE that you can solve for.

  • @alvianauditio8175
    @alvianauditio8175 4 года назад

    Hey thanks for the tutorial, its very helpful :)). I want to ask a question though. I'm currently working on a project to drive a firing angle of 3 thyristor through 3 IC's for 3 phase project and i need the DAC to drive theese 3 IC's. Instead of using 3 DAC's port can i use just one DAC port and parallel it to create 3 more DAC output with same level of voltage?? And if not, how to add more DAC output port??
    Thanks

  • @coolchriss
    @coolchriss 5 месяцев назад

    Cool, I have the MCU stm32f030k6t6, the configuration in stm32cubemx is a little different, can you help!?😊❤

  • @mesesamboby
    @mesesamboby 6 лет назад

    Hi, I am trying to read data from 4 sensors using a 12-bit resolution, therefore my adcArray[] is of type uint16_t. Additionally, that means that my DMA reading was changed to: HAL_ADC_Start_DMA(&hadc1, (uint32_t *)adcValArray, 8);
    I also tried connecting only one channel, and while i was debugging, the other 3 channels had readings(erronate ones).
    The thing is: the reading seems to be incorrect. What can i do in this situation?

  • @pagedavid4344
    @pagedavid4344 4 года назад

    At 18:17, DMA_HandleTypeDef myDMAtypeDef; should be defined as global. Otherwise, this handle is not accessible in HAL_ADC_Start_DMA(). This is corrected in source code in description, also at 22:41 of the video.

  • @RixtronixLAB
    @RixtronixLAB 2 года назад +1

    Nice video, keep it up, thank you :)

  • @k7iq
    @k7iq 5 лет назад +1

    This is kind of interesting, maybe. Working on ADCs on STM32F446 and I see this in the user manual. Do you think they made a typo error on DISABLED vs. ENABLED ?
    Bit 10 ADC3EN: ADC3 clock enable
    This bit is set and cleared by software.
    0: ADC3 clock disabled
    1: ADC3 clock disabled
    Bit 9 ADC2EN: ADC2 clock enable
    This bit is set and cleared by software.
    0: ADC2 clock disabled
    1: ADC2 clock disabled
    Bit 8 ADC1EN: ADC1 clock enable
    This bit is set and cleared by software.
    0: ADC1 clock disabled
    1: ADC1 clock disabled
    Bits 7:6 Reserved, must be kept at reset value.
    Bit 5 USART6EN: USART6 clock enable
    This bit is set and cleared by software.
    0: USART6 clock disabled
    1: USART6 clock enabled

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

    Can we do ADC multi channel using interrupt (without DMA and Pol)

  • @fehimkus5658
    @fehimkus5658 6 лет назад

    hello mohammed
    I just want to ask about my problem. When I try the watch in debug session, my second and third potentiometer changing between 0-7 something like that. What should I do? Please help :)

    • @mutexembedded2206
      @mutexembedded2206 6 лет назад

      Hi Fehim,
      Can you give me more information about your set up and some screenshots for your cubemx pinout and ADC configuration tab.

    • @fehimkus5658
      @fehimkus5658 6 лет назад

      I did not use cubemx. My board is STM32F429ZIT and I used a x-y joystick you can find in file which i attach below. Main code and a screenshot also there.
      1drv.ms/f/s!AhdWh9r7qarIgYZmfydJQsl-Us1FCg
      please ask me if something not clear for you. Thank you for all

  • @user-qp4gs4ky8h
    @user-qp4gs4ky8h 6 лет назад

    Hi Mohamed! Could you please tell me what HandleTypeDef means @13:30? I'm an MCU beginner and find your tutorials very helpful. But I still can't understand what HandleTpyeDef is. Thank you for your help!

    • @mutexembedded2206
      @mutexembedded2206 6 лет назад +1

      邱晓杰
      Hi mate,
      HandleTypeDef acts similar to a structure in C. It just holds values for certain fields. For example Struct student
      {
      int StudentID;
      int SeatNo;
      };
      Then
      Student.SeatNo= 34; and so on just review Structure in C programming.
      A typeDef works in a similar way.
      Hope this clarifies it a bit more.

  • @VishalVerma-sz2zu
    @VishalVerma-sz2zu 6 лет назад +1

    can you please post a tutorial on how to interface a camera and record & playback of sound using the discovery board.

  • @manjurohila4248
    @manjurohila4248 5 лет назад

    dear yaqoob first thanks for your video . I am using stm32f030k6t6 . tried your code single Chanel is working good but multiple channel get same value on both variable . and CubeMx setting I haven't find rank1 rank2. please help me. thanx .

  • @cristobalcanarte7262
    @cristobalcanarte7262 6 лет назад

    Hi, first of all excellent video, and I have a doubt, I want to know if its possible to fill up a buffer, 4095 values, variable, using just one ADC channel with the DMA, how could I configure that?

    • @mutexembedded2206
      @mutexembedded2206 6 лет назад +2

      Hi Cristobal,
      Thanks!
      Yes, it is possible; you need to set the DMA to normal mode (i.e. not circular), enable memory increment and simply start DMA asking for 4095 data size. This will get you 4095 consecutive data points of your single channel and store them in your array/buffer.
      All the best :)

  • @RahulSingh-wq3sr
    @RahulSingh-wq3sr 5 лет назад

    Great videos sir. one doubt, why don't you define dma irqHandler here as you do in Uart tutorial video.

  • @benahmedabdelmalek9008
    @benahmedabdelmalek9008 4 месяца назад

    how many ohms for potentiometer ?

  • @BudiKustamtomo
    @BudiKustamtomo 5 лет назад

    how to change resolution bit adc if i use stmcubemx 5.1

  • @viveksrivastava1506
    @viveksrivastava1506 4 года назад +1

    Thank you for sharing this video.
    I'm using 10 bit ADC resolution but still my result is coming in 8 bit range.
    I'm using 16 bit variable to store the adc result: uint16_t ADC_Value[2];
    and below DMA settings.
    myDMA.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
    myDMA.Init.PeriphDataAlignment = DMA_MDATAALIGN_HALFWORD;

    • @mutexembedded2206
      @mutexembedded2206 4 года назад

      Alright, that could some sort of casting problem.
      make sure your end destination variable is uint16_t

  • @hasanyahyaoglu9168
    @hasanyahyaoglu9168 5 лет назад +1

    Hi,
    Is it possible to get multiple values with dma and timer?
    Thanks

  • @aryosandi
    @aryosandi 4 года назад

    Exusme why not get value?

  • @arunkumarretech4983
    @arunkumarretech4983 5 лет назад

    @MYaqoobEmbedded. I had been trying to use multichannel analog for two analog channels but in the end, I get the first channel is reaching the maximum value of 255, not the second channel. could you help me, please?

    • @mutexembedded2206
      @mutexembedded2206 5 лет назад

      Hi,
      do you still have this issue?

    • @arunkumarretech4983
      @arunkumarretech4983 5 лет назад

      @@mutexembedded2206 Yeah. I tried your code also but it's also having the same issue.

    • @mutexembedded2206
      @mutexembedded2206 5 лет назад

      Can you describe the hardware and the issue in more details

    • @arunkumarretech4983
      @arunkumarretech4983 5 лет назад

      @@mutexembedded2206 I'm using STM32F429 discovery board. I'm trying to read multiple analog inputs. There is no issue with code and it's flow. Everything seems to be good. The 0th index of the array shows maximum value and it varies when the pot varies but the 1tn index of the array is not showing the maximum value and doesn't vary when the pot varies.

    • @mutexembedded2206
      @mutexembedded2206 5 лет назад

      First thing to check is conversion rank settings at 04:45

  • @bysanilikhitha4265
    @bysanilikhitha4265 6 лет назад

    how do I just store just one adc values for 0-3v into array without cubeMX or HAL

    • @mutexembedded2206
      @mutexembedded2206 6 лет назад

      bysani likhitha
      Hi,
      Did you watch the last part of Tutorial 3? There I've shown how to use ADC without CubeMX nor HAL. For 0 to 3v, you need to scale the decimal value according to resolution; for 8 bits, 0 to 255 convert it to 0 to 3 volts range. Good Luck

  • @bysanilikhitha4265
    @bysanilikhitha4265 6 лет назад +1

    Can I get the text file for the code please..

    • @mutexembedded2206
      @mutexembedded2206 6 лет назад

      Just updated it,, you should see the source code down in the description. good luck :)