Skip to content

Bootcamp: Zhonglin Wang#296

Open
ZhonglinGit wants to merge 4 commits into
UWARG:masterfrom
ZhonglinGit:zhonglin_BootCamp
Open

Bootcamp: Zhonglin Wang#296
ZhonglinGit wants to merge 4 commits into
UWARG:masterfrom
ZhonglinGit:zhonglin_BootCamp

Conversation

@ZhonglinGit
Copy link
Copy Markdown

I'm sorry that the people that commit is a differet github account. I'm using my brother's old laptop and I forget to change the account for github desktop.

Comment thread nucleof072rb/Core/Src/tim.c Outdated

/* USER CODE END TIM1_Init 1 */
htim1.Instance = TIM1;
htim1.Init.Prescaler = 47;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use optimal values for prescaler and period

Comment thread nucleof072rb/Core/Src/main.c Outdated
//duty is 0.05-0.1
//duty = 0.05 + adc/1023 *0.05

ccr = 1000 + (adcValue*1000)/1023;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try not to hard code 1000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants