I have implemented a driver (chibios 2.6) for the HC-SR04 based on PWM for pulse generation and ICU for response measure,
it works well without hacking CH_FREQUENCY, and with minimal cpu usage.
Can post the source if interested.
Alexandre
We will appreciate!
Can you check also my code?
for PWM ...
Search found 2 matches
- Wed Sep 16, 2015 12:59 pm
- Forum: STM32 Support
- Topic: Set the EXT for HC-SR04
- Replies: 14
- Views: 6797
- Tue Sep 15, 2015 6:25 pm
- Forum: STM32 Support
- Topic: Set the EXT for HC-SR04
- Replies: 14
- Views: 6797
Re: Set the EXT for HC-SR04
Same problem with the use of EXT. i've checked also the example in testhal but it is not so simple to understand what's wrong.