adminSxs

Results 16 comments of adminSxs

> `1` PWM cycle contains `(ARR+1)` ticks. You can take this number with `.get_max_duty()`. It is 100% of cycle. If you set 50Hz, it match 2ms. `Duty` is part of...

> ```rust let mut pwm = dp .TIM2 .pwm_hz::(pins, &mut afio.mapr, 50.Hz(), &clocks); let (mut c1) = pwm.split(); let max = c1.get_max_duty(); ``` why max =53333. then c1.set_period(50.Hz()); let max...

> `1` PWM cycle contains `(ARR+1)` ticks. You can take this number with `.get_max_duty()`. It is 100% of cycle. If you set 50Hz, it match 2ms. `Duty` is part of...

> `pwm_hz` automatically select values of `PRE` and `ARR` registers to make `ARR` as much big as possible. So you can't control them. > > Instead you could use .`pwm::(pins,...

> 1_000 is ~ lower limit use 1_000_000 for start. In this case max_duty will be 2000 thanks,programe right

> ![ticks](https://user-images.githubusercontent.com/3072754/184162330-48d16727-ade2-416c-aeed-3604d2d67bb2.svg) I have still some question: i'm try to drive steering engine steering engine requirement: - FREQ: 50Hz - Duty: (0.5- route to -90°, 1 - route to -45°,1.5...

> > ARR+1=20ms=20k Freq = 50Hz ~PSC=720000000-1~ > > Your C prject looks broken. You cannot get `ARR+1=20k` as you cannot get 10 MHz from 72 MHz on stm32f1 (you...

> i'm trying and i can't connect to firestore but after so long i got it with realtime database. To connect in realtime go to menu ![image](https://user-images.githubusercontent.com/1075628/183425950-57123d5a-1385-4a23-99bc-6f7f3625665e.png) > > copy...

> Can you please run a `cargo clean` and then do a `cargo build -vv` again and attach the output? [log.txt](https://github.com/twistedfall/opencv-rust/files/12581200/log.txt)

> The log has a lot of `Fresh ` so it doesn't look like a clean build when i create new project and add opencv crate,show same error log