Hi genius,
I just bought 2 ultrasonic click from mikroE. Both shows same results
Im using :-
- easymx v7 with stm32f107vc
- installed ultrasonic 2 click package from libstock
- refer to : https://www.mikroe.com/ultrasonic-2-click
After load example from package, found out the value from debug uart is not satisfied.
I also test changing uart baud & stop bit to TWO. The results also same.
Please help me. Your source code is private. I cant reach from scratch.
After I reset board by pushing button, the values unchanged. I need to switch off board or remove ultrasonic.
Example is from your website. I took from there directly unchanged.
kindly refer attachment
Regards
ultrasonic 2 click with mikroC pro for arm
ultrasonic 2 click with mikroC pro for arm
- Attachments
-
- ultrasonic log .rar
- (1.94 KiB) Downloaded 38 times
Re: ultrasonic 2 click with mikroC pro for arm
Hi,
Can you please attach detailed photos of your HW setup ?
Regards,
Filip.
Can you please attach detailed photos of your HW setup ?
Regards,
Filip.
Re: ultrasonic 2 click with mikroC pro for arm
Hi,
Kindly refer the attachment. Im using RS232 cable for debug port at PA9 & PA10.
There are two condition board image, both got same problem. I also read peak values & width. Also wrong.
Below is debug terminal . This is after I power on easymxprov7. Touching the sensor change some other garbage value.
Code: Select all
(09:17:02.358) Frequency (kHz): 8.130
(09:17:02.358) Decay Period (us): 1936.000
(09:17:02.358) Die Temperature (C): 28.667
(09:17:02.358) Noise Level : 3.000
(09:17:02.358) Object: 0 Distance: 12.348(mm)
(09:17:06.223) Object: 0 Distance: 12.348(mm)
(09:17:06.910) Object: 0 Distance: 12.348(mm)
(09:17:07.581) Object: 0 Distance: 7579.957(mm)
(09:17:08.269) Object: 0 Distance: 12.348(mm)
(09:17:08.955) Object: 0 Distance: 7579.957(mm)
(09:17:09.642) Object: 0 Distance: 12.348(mm)
(09:17:10.314) Object: 0 Distance: 7579.957(mm)
(09:17:11.001) Object: 0 Distance: 12.348(mm)
(09:17:11.688) Object: 0 Distance: 12.348(mm)
(09:17:12.359) Object: 0 Distance: 12.348(mm)
(09:17:13.047) Object: 0 Distance: 12.348(mm)
(09:17:13.733) Object: 0 Distance: 12.348(mm)
(09:17:14.405) Object: 0 Distance: 12.348(mm)
(09:17:15.092) Object: 0 Distance: 12.348(mm)
(09:17:15.778) Object: 0 Distance: 12.348(mm)
Code: Select all
(09:21:41.396) Object: 0 Distance: 11221.932(mm)
- Attachments
-
- Board Condition.rar
- (7.66 MiB) Downloaded 55 times