ultrasonic 2 click with mikroC pro for arm

General discussion on mikroC PRO for ARM.
Post Reply
Author
Message
design4
Posts: 93
Joined: 29 Aug 2019 10:43

ultrasonic 2 click with mikroC pro for arm

#1 Post by design4 » 23 Feb 2021 11:00

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
Attachments
ultrasonic log .rar
(1.94 KiB) Downloaded 38 times

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: ultrasonic 2 click with mikroC pro for arm

#2 Post by filip » 25 Feb 2021 12:04

Hi,

Can you please attach detailed photos of your HW setup ?

Regards,
Filip.

design4
Posts: 93
Joined: 29 Aug 2019 10:43

Re: ultrasonic 2 click with mikroC pro for arm

#3 Post by design4 » 26 Feb 2021 02:24

filip wrote:
25 Feb 2021 12:04
Hi,

Can you please attach detailed photos of your HW setup ?

Regards,
Filip.
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)
If I just upload or push the easymxprov7 reset button, the values only constantly as below.

Code: Select all

(09:21:41.396) Object: 0 Distance: 11221.932(mm)
Thanks in advanced
Attachments
Board Condition.rar
(7.66 MiB) Downloaded 55 times

design4
Posts: 93
Joined: 29 Aug 2019 10:43

Re: ultrasonic 2 click with mikroC pro for arm

#4 Post by design4 » 08 Mar 2021 03:24

filip wrote:
25 Feb 2021 12:04
Hi,

Can you please attach detailed photos of your HW setup ?

Regards,
Filip.
Hi,

Can ask your team reply my problem?

Thanks in advanced.

Post Reply

Return to “mikroC PRO for ARM General”