EE by Karl
EE by Karl
  • Видео 11
  • Просмотров 164 267
How to use a Timer Callback to debounce a push button and more!
I see a handful of people in forums asking how to debounce a button. Then I see a few people replying saying never use external interrupts for a button. One person was saying rule #1 is not to use external interrupts, which i find bs. In my 20+ years of firmware programming I've never heard of this Rule #1, lol. Then those replying give brief explanation of using timers or Systick but don't give real examples that helps those in need of help.
Well in this video I will gladly share and show you my TimerCallback.c file and its many uses with examples.
Some of the uses are and not limited to are:
- Have callback call a function at a given time continuously or as a one shot
- Button debouncing
-...
Просмотров: 3 437

Видео

STM32F429I-DISCO & TouchGFX Setup
Просмотров 11 тыс.Год назад
It seems that some people are having trouble exporting a STM32F429I-DISCO project from TouchGFX and importing it into STM32CUBE-IDE. So in this video I will show you how to export the project from TouchGFX, rename the project to a useful name then import it into STM32CUBE-IDE. I will also show you how to link to the IOC file so you can open it up in STM32CUBE-IDE. In this tutorial I am using To...
Importing TouchGFX 4.16.0 project into STM32CubeIDE 1.6.1
Просмотров 16 тыс.3 года назад
When I first started this RUclips channel it was to help other Engineers get TouchGFX 4.13.0 to work with STM32CubeIDE 1.2.1 ST has recently acquired TouchGFX and they released version 4.13.0 and the generated files did not import very well with STM32CubeIDE 1.2.1 at the time of making that video. The project would compile with errors. I had to show you how to copy files, link to include folder...
Use toggle button to disable another button in TouchGFX
Просмотров 3,2 тыс.4 года назад
There was a question asked in ST's forum about using a toggle button to disable a next button from taking you to another screen. I wrote a reply to set the button touchable to true or false but I don't think he understood what to do. If you want to disable another button on a 2nd screen using a toggle button that's on the 1st screen, then check out this tutorial ruclips.net/video/dQoy4wQpcTI/ви...
Displaying analog voltage value on TouchGFX GUI using STM32F746G-DISCO kit.
Просмотров 36 тыс.4 года назад
In this tutorial i will show you how to use the ADC input of STM32F746G-DISCO and displaying the value on the display that uses a wildcard. The ADC conversion uses the DMA and Timer interrupt to save the values to an array for processing. I also show you how to use FreeRTOS to notify the View of a new ADC conversion and pass the value from the Model to the View. If you're using TouchGFX 4.13.0 ...
STM32CubeIDE and TouchFGX - How to control hardware from the GUI and send UART messages.
Просмотров 13 тыс.4 года назад
WARNING! This video is very long. 1 hour 38 minutes long! This is part 3 of my STM32CubeIDE v1.2.1 and TouchGFX v4.13.0 tutorial. I am using a STM32F746G-DISC0 board and a project from previous tutorial. See links below. In this tutorial I will show you how to enable/disable a toggle button inside a second screen from a toggle button on the 1st screen. If enabled, the toggle button will turn on...
TouchGFX - sending uart data to GUI on a STM32F746G-DISC0
Просмотров 18 тыс.4 года назад
In this tutorial I will show you how to save your uart data to a global variable to be access by the View. I'll show you how to notify the View that there is a message ready using a binary semaphore within a task. Here is the link to the project that is being using in this tutorial ruclips.net/video/12KXreXaLp0/видео.html You may want to see this video which explains more in detail how TouchGFX...
TouchGFX communication between hardware and GUI
Просмотров 6 тыс.4 года назад
In this tutorial i'll explain how TouchGFX generates code and what the View Model works. I'll also show you how to effectively access data between the hardware and GUI.
STM32CubeIDE 1.2.1 and TouchGFX 4.13.0 with STM32F746G-DISC0 kit
Просмотров 26 тыс.4 года назад
Update 05/04/2021 If you are using the latest version of TouchGFX 4.16.0 and STM32CubeIDE 1.6.1 then watch this video ruclips.net/video/Q-mfuzW6S-0/видео.html Please note that this is a old video using the older versions of TouchGFX and STM32CubeIDE. With the newer versions you don't have to follow this video to get a project up and running. I'll show you how to get a project up and running qui...
CANable open source CAN bus analyzer firmware
Просмотров 18 тыс.4 года назад
Here I will show you how to set up the CANable CAN bus adapter with custom firmware. Here is more information on the CANable device canable.io/ You can buy it here store.protofusion.org/ I've bought mine from Aliexpress.com You'll need STM32CubeIDE to compile and generate code from here www.st.com/en/development-tools/stm32cubeide.html And to program the CANable you'll need CubeProgrammer from ...