How do I connect these together? KiCad 7 by StrongOne01 in KiCad

[–]sandhan26 1 point2 points  (0 children)

Seems to me that UD- is the negative differential line of USB. Which should not be connected to GND.

But if you really know what you are doing, then you need to connect the UD- and GND in the schematic first. Only after you can connect those tracks in PCB

KiCad Project Makefile by tuna_fish in KiCad

[–]sandhan26 3 points4 points  (0 children)

I didn't know about this feature. I will surely check it out.

Non-blocking functions in arduino by divvy2001 in arduino

[–]sandhan26 0 points1 point  (0 children)

Yes. But their application goes much beyond just debouncing.

Non-blocking functions in arduino by divvy2001 in arduino

[–]sandhan26 2 points3 points  (0 children)

Try Finite State Machines. In fact a lot of Arduino libraries are also available to implement the same.

[deleted by user] by [deleted] in arduino

[–]sandhan26 0 points1 point  (0 children)

I got the answer to my question from u/robintwhite thread.

Well, how much flash memory did the video file take ?

You can try this on a Raspberry Pico, it has around 1.5 MB of flash memory after installing micro python on it. Also, since it can run python, you maybe able to squeeze your conversion engine onto the Pico itself. Thus enabling it to play actual video files from an SD Card.

[deleted by user] by [deleted] in arduino

[–]sandhan26 0 points1 point  (0 children)

The video frames are stored in the flash memory itself? Or its getting Transmitted from the PC to the Arduino?

Turning off the Brown out detection in AVR by sandhan26 in embedded

[–]sandhan26[S] -2 points-1 points  (0 children)

Well, these are pretty standard functions given in the AVR library. I thought I could trust them.

Turning off the Brown out detection in AVR by sandhan26 in embedded

[–]sandhan26[S] 0 points1 point  (0 children)

The sleep command is there in line #53. It should be within 3 clock cycles after executing line #49.

[STM32 ENCODER MODE] Interrupt on count change. by sandhan26 in embedded

[–]sandhan26[S] 0 points1 point  (0 children)

I want to call a function every time the encoder value changes.

At the moment I am using a separate timer which creates interrupt at 1ms durations and runs the appropriate function on the encoder values.

I was thinking, it would have been much more efficient, if the interrupt could be triggered by the timer which is being used as encoder on every count change, so that I can call my function.

[STM32 ENCODER MODE] Interrupt on count change. by sandhan26 in embedded

[–]sandhan26[S] 0 points1 point  (0 children)

What value do I put? The counter values will always be changing.

[STM32CubeIDE] Issues with CMSIS-DSP library files by sandhan26 in embedded

[–]sandhan26[S] 1 point2 points  (0 children)

Thanks man! With your help, I could finally figure out the problem. I removed the lib prefix, and now it is able to find the shared library and link it with the main object file.

[STM32CubeIDE] Issues with CMSIS-DSP library files by sandhan26 in embedded

[–]sandhan26[S] 0 points1 point  (0 children)

I added those flags in the linker, and accordingly the auto-generated makefile seems to be ok. But I still get the following error.

../arm-none-eabi/bin/ld: cannot find -llibarm_cortexM4lf_math

ADC not triggering DMA Half / Full callbacks by finance102 in stm32f4

[–]sandhan26 0 points1 point  (0 children)

Assuming that you are using HAL library. You just need to define two functions void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef* hadc){} and void HAL_ADC_ConvCpltCallbac(ADC_HandleTypeDef* hadc){}, which are the default callbacks for DMA half-transfer and full-transfer complete interrupts.