How to view 8CH ADC plus 4CH PWM using STM32CubeMonitor - STM32 Tutorial #7

Download link for CubeArrays v1.0 and CubeTrigger v1.0:
community.st.com/t5/stm32cube...
Feel free to ask questions in comments section. Let me know if you need any help understanding or a tutorial on some other topic similar to "How to view 8CH ADC plus 4CH PWM using STM32CubeMonitor - STM32 Tutorial #7.mp4".
MCU/board used:
STM32F103C8T6 generic board (8MHz crystal)

Пікірлер: 29

  • @domoledlight
    @domoledlightАй бұрын

    whoua 😃😃😃😃😃 I am really impressed by your work I have just finish designed a stm32h750 board for future project that involve big data your video sound really promessing

  • @ThundertronicsOfficial

    @ThundertronicsOfficial

    Ай бұрын

    Great 👍

  • @L2.Lagrange
    @L2.LagrangeАй бұрын

    Very interesting. I'm definitely going to have to look into this

  • @ThundertronicsOfficial

    @ThundertronicsOfficial

    Ай бұрын

    Good! I usually using CPP program with Sciter.JS GUI to show the data, compile it using CodeBlocks and use custom simple serial port protocol to transfer waveforms to the PC. Thinking about trying Web Serial API. CubeMonitor is fast but a bit clunky, especially on large data. I also surprised that CubeMonitor did not crash even once on my system.

  • @L2.Lagrange

    @L2.Lagrange

    Ай бұрын

    @@ThundertronicsOfficial Yeah I also really like the concept of displaying input data like that graphically. While i'm mostly messing around with STM32 cube IDE atm and STM32 microcontrollers, it appears to be very easy to implement a small HTML server on a raspberry pi pico. It would be interesting to set up measurement data like this which could be accessed anywhere

  • @ThundertronicsOfficial

    @ThundertronicsOfficial

    Ай бұрын

    One approach is to serve data through http server. Data can be fetched using JavaScript from virtual file on IP address. There are some examples which create index.html dynamically and send it through w5500 or esp8266 to web browser. The same way we can make any other data available to the browser and refresh it or fetch using more recent json approaches. It can even work on mobile browser. EDIT: forgot to add that data then can be displayed using HTML5 canvas

  • @hannanayub5360
    @hannanayub5360Ай бұрын

    Hello, I tried running the code for 3 ADC Channels connected to 3 Photo Interrupters (High Voltage when something passes through and low Voltage when nothing obstructs its path) and used debugger to view the value of the array elements but under live expression the values do not change and remain 0.

  • @ThundertronicsOfficial

    @ThundertronicsOfficial

    Ай бұрын

    A first step to troubleshoot it is to take a small wire and connect ADC input to GND or 3.3v and see if it changes. If ADC value is not changing, then second step is to check if ADC interrupts are called, e.g., by toggling GPIO led in interrupt. If ADC interrupts are not called, you can try to start small: use simplest ADC polling readout function which does not require interrupts and see if it reads ~0 for GND and ~4095 when 3.3v connected to ADC input pin. Idea is to start from simplest working code and move towards more complex design.

  • @hannanayub5360

    @hannanayub5360

    Ай бұрын

    @@ThundertronicsOfficial I will try using polling readout to see if it works for multichannel. I have no problem using single adc channel but whenever i switch to multiple channels I have issues. Do u mind if I can mail you?

  • @yeso8205
    @yeso82057 ай бұрын

    Thanks! would you share the monitor module json files?

  • @ThundertronicsOfficial

    @ThundertronicsOfficial

    7 ай бұрын

    Links updated, pls check description

  • @yeso8205

    @yeso8205

    7 ай бұрын

    @@ThundertronicsOfficial THANKS. HAPPY GETTING RICH!

  • @lslabs2005
    @lslabs20052 ай бұрын

    please post Fonts

  • @ThundertronicsOfficial

    @ThundertronicsOfficial

    2 ай бұрын

    What fonts? I may have used Bitstream Vera Sans Mono..

  • @maddipatisunilchowdary4411
    @maddipatisunilchowdary4411Ай бұрын

    Can you please check your inbox

  • @ThundertronicsOfficial

    @ThundertronicsOfficial

    Ай бұрын

    I have received your message, hope you found someone to help with your project

  • @maddipatisunilchowdary4411

    @maddipatisunilchowdary4411

    Ай бұрын

    @@ThundertronicsOfficial not yet

  • @maddipatisunilchowdary4411

    @maddipatisunilchowdary4411

    Ай бұрын

    it would be really helpful if you support

  • @maddipatisunilchowdary4411
    @maddipatisunilchowdary4411Ай бұрын

    Hello! I need your help in doing my project regarding a three-phase inverter using an STM32 controller. Can you please your email will talk about all the details?

  • @ThundertronicsOfficial

    @ThundertronicsOfficial

    Ай бұрын

    info@thundertronics.com

  • @ThundertronicsOfficial

    @ThundertronicsOfficial

    Ай бұрын

    I haven't received any emails, please reply here and let me know if you sent anything so I can check - maybe there are some mail delivery problem on my side

  • @maddipatisunilchowdary4411

    @maddipatisunilchowdary4411

    Ай бұрын

    @@ThundertronicsOfficial If you still didn't receive my email please let me know

  • @maddipatisunilchowdary4411

    @maddipatisunilchowdary4411

    Ай бұрын

    @@ThundertronicsOfficial Just now i have sent an email

  • @maddipatisunilchowdary4411

    @maddipatisunilchowdary4411

    Ай бұрын

    Can you please reply to my email

  • @sergbo3114
    @sergbo31142 ай бұрын

    Nice! but dont use magic numbers in code. Code like nState==0 better replace to #define MY_STATE_TRIGGER 0 if(nState==MY_STATE_TRIGGER)....

  • @ThundertronicsOfficial

    @ThundertronicsOfficial

    Ай бұрын

    Thanks, will do

Келесі