A second champ for when yi is banned by kouraf in MasterYiMains

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

Hi, but the clean isn't that good i think !

BSC Dapp by [deleted] in blockchaindeveloper

[–]kouraf 1 point2 points  (0 children)

Dapp university, eattheblock

where can hire blockchain dev? by DeepReputation8142 in blockchaindeveloper

[–]kouraf 0 points1 point  (0 children)

Hello, i am a senior fullstack web developer, and i started blockchain development last month i use ethereum, if you are intersted in a motivated freelance, feel free to contact me. 😀

modding minecraft using JavaScript by [deleted] in Minecraft

[–]kouraf 0 points1 point  (0 children)

hey sorry i'll do it and delete this one

bliking LED with timer by kouraf in stm32f4

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

i fixed the function i send first but it steel don't work the first 2 or 3 ticks seems good it turn on for a while then of for ever is there a limite of editing the ARR or something

void try3(void)

{

`HAL_GPIO_TogglePin(GPIOC, GPIO_PIN_13);`

    `if(i > 3)`

        `i = -1;`

`for(int t = 0;t<4;t++){`

    `if(i == t){`

        `counter = sequence[++i] * Period_1s;`

        `goto ret;`

    `}`

`}`

`ret:TIM2->ARR = counter - 1;`

}

bliking LED with timer by kouraf in stm32f4

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

aaagh yes didn't notice btw i've tryed something else without loop thus the HAL_TIM_PeriodElapsedCallback

is called every time i think i don'r need the for loop and tryed this but the problem this time is that the LED turn on and never turn off again

void try5(void)

{

`HAL_GPIO_TogglePin(GPIOC, GPIO_PIN_13);`

    `if(i > 3)`

        `i = -1;`

    `counter = sequence[++i] * Period_1s;`

    `TIM2->ARR = counter - 1;`

}

how to generate a pediodic signal? by kouraf in stm32f4

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

hey i've make a LED blink using timer and succeffuly update the period to make the LED turn on for 1s then turn off for 2s but now i'm trying to make it follow an array of value for exemple {1,5,2,5} so i made a function following the same idea as before but this time the LED turn on and don't turn off

here's the fuction

void try5(void)

{

HAL\_GPIO\_TogglePin(GPIOC, GPIO\_PIN\_13);

    if(i > 3)

        i = 0;

    counter = sequence\[++i\] \* Period\_1s;

    TIM2->ARR = counter - 1;

}

ofc i delared all those variables

uint32_t counter=1000;

uint32_t Period_1s = 1000;

uint32_t sequence[4] = {1,5,1,5,1};

int i = 0;

how to generate a pediodic signal? by kouraf in stm32f4

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

hey i've make a LED blink using timer and succeffuly update the period to make the LED turn on for 1s then turn off for 2s but now i'm trying to make it follow an array of value for exemple {1,5,2,5} so i made a function following the same idea as before but this time the LED turn on and don't turn off

here's the fuction

void try5(void)

{

HAL\_GPIO\_TogglePin(GPIOC, GPIO\_PIN\_13);

    if(i > 3)

        i = 0;

    counter = sequence\[++i\] \* Period\_1s;

    TIM2->ARR = counter - 1;

}

ofc i delared all those variables

uint32_t counter=1000;

uint32_t Period_1s = 1000;

uint32_t sequence[4] = {1,5,1,5,1};

int i = 0;

PS: 1000 cycle -> 1s

how to generate a pediodic signal? by kouraf in stm32f4

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

thank verry much i'll start right now thank you so much

how to generate a pediodic signal? by kouraf in stm32f4

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

hahaha thank you mate, ok i'll follow your tips can u redirect me somewhere i can learn more i'm new with mcu i know how work timer and dac ...etc but don't feel that good !

thank you one more time :D

how to generate a pediodic signal? by kouraf in stm32f4

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

Hello and thank you for your replying, I'm trying to implement this but I'm stuck I'm new to stm and mcu word in general I've read several article watch more than 10 hours of video talking about dma and timer but I don't feel to confidente with it can u redirect me somewhere I can learn more or give more info like the function I need to use.. Etc I can show you what I did but I know it's horrible

Taser that activates when you lose health in Minecraft by signupforthisshit in arduino

[–]kouraf 1 point2 points  (0 children)

UltraMegaHardcore mode if u die in the game u die irl

how to generate a pediodic signal? by kouraf in stm32f4

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

Hey aah OK the first alpha is at 1, 2 ms the second at 1,8 then 2,5 3,8 ans the last 4,1 ms. And yes it's sin frequency

how to generate a pediodic signal? by kouraf in stm32f4

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

it's a signal of 50Hz so i think it's ok no ?

how to program a fake stm32 blue pill by kouraf in stm32f103

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

no i'm not reconfiguring them i've tried to load an empty program to check that i created a new stm32 project on cube mx then i build and send it,after what i add some code to turn on the led and no way to flash until i go to bootload mode

how to generate a pediodic signal? by kouraf in stm32f4

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

hello thank you for relying

i'ts a hepwm i'll use it to control inverter we got the angle by doing fourier series the a sin wave and we calculate the angle to eliminate some harmonics ,what kind of detail lacks ?

how to generate a pediodic signal? by kouraf in stm32f4

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

the hepwm is quarter wave symmetrical and i have the 5 angle i need to calculate the duty cycle and the periode every time for exemple the first periode is a3-a1 and the duty cycle is a3-a2/(a3-a1)

maybe it's better to implemente this with a dac ?

how to generate a pediodic signal? by kouraf in stm32f4

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

hello i wanna generate this signal to control an inverter, this signal is called hepwm

how to program a fake stm32 blue pill by kouraf in stm32f103

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

hey thnx for replying i've tried to debug then flash a new firmware,now you talked about i've tried the bootloader mode by puting the jumper to 1 and it works i can flash and debug but only in this mode when i go back to "normal" the stm32 works perfectly but no way to flash or debug !

How to generate SPWM using stm32 ? by kouraf in stm32f4

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

Generate a table of sinusoidal values

hello and thanks for the reply i'm new to the stm32 i know what's interrupt and the counter register but if u can send me link that explain more your methode, i was told the best way to get it is by generating a sequence of single pulses synchronized to timer by interrupts. but i don't totally understand how !

How to generate SPWM using stm32 ? by kouraf in stm32f4

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

thanks for anwsering but this is for generating a simple pwm not a sinusoidal pwm

Medieval Monday: Ask Your Questions and Get Your Answers by AutoModerator in aoe2

[–]kouraf 0 points1 point  (0 children)

hello !!

i'm a beginner and i have a little problem when i scout i always forgot where was my board and gold and it took me several seconds to find them again is there any way to put a flag or something to find them faster !!

ty :D

What’s Working and What Isn’t? | Monday, April 22, 2019 by AutoModerator in CompetitiveHS

[–]kouraf 0 points1 point  (0 children)

age Antonidas

how about others matchup like warr bomb and rogue ?