Ultrasonic 2 click with EasyPIC 7

General discussion on mikroElektronika development boards.
Author
Message
marcelog
Posts: 8
Joined: 05 Apr 2015 21:52

Re: Same Problem here :( .Ultrasonic 2 click with EasyPIC 7

#16 Post by marcelog » 12 Aug 2020 00:45

Same problem here :(
Not showing any reading.

Did you find the solution?

Any help??

User avatar
jovana.medakovic
mikroElektronika team
Posts: 986
Joined: 18 Dec 2018 10:36

Re: Ultrasonic 2 click with EasyPIC 7

#17 Post by jovana.medakovic » 12 Aug 2020 16:06

Hello,

Which result did you get?

Did you try to run the hex file which I sent?
The example works between 450mm-1300mm, so please try to place an object for example on 800mm and try to move it slowly.


Kind regards,
Jovana
Attachments
Ultrasonic2.zip
(176.11 KiB) Downloaded 59 times

keps
Posts: 3
Joined: 22 Feb 2012 19:48

Re: Ultrasonic 2 click with EasyPIC 7

#18 Post by keps » 29 Jan 2021 08:54

Dear Jovana,

i tried also but it doesn't work. It stuck in

Code: Select all

if(distance > _ULTRASONIC2_MIN_RANGE)

And distance is always lover than.
I tried to debug it and seems sensor doesn't answer correctly.

Without a deep reading of the datasheet of the sensor is impossible to understand the issue.

Some question :

I need to power the PIC from 3.3V or 5V? On the click module is written 3.3V
What about enable pin and test pin? Both are pull-up in the click board. I need to set low in some moment?
I tried your .hex but still no correct answer...

Thanks for the answer.

keps
Posts: 3
Joined: 22 Feb 2012 19:48

Re: Ultrasonic 2 click with EasyPIC 7

#19 Post by keps » 29 Jan 2021 09:28

I've tried your code but also for me it is not working.
It stuck in :

Code: Select all

if(distance > _ULTRASONIC2_MIN_RANGE)
Distance is always lower than ultrasonic2 min range. Also if i move my hand in front of it.
I've check and seems no correct distance back from the sensor... Is possible that we need to use TST or EN digital?

Is the board working with 3.3V digital output or 5V ?

I've check also with some logic level reader and sensor answer but wrong reading.

Image

Can you help me?

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

Re: Ultrasonic 2 click with EasyPIC 7

#20 Post by filip » 02 Feb 2021 11:24

Hi,

Which development system and MCU are you using ?
Can you post your project here ?

Regards,
Filip.

keps
Posts: 3
Joined: 22 Feb 2012 19:48

Re: Ultrasonic 2 click with EasyPIC 7

#21 Post by keps » 04 Feb 2021 16:41

filip wrote:
02 Feb 2021 11:24
Hi,

Which development system and MCU are you using ?
Can you post your project here ?

Regards,
Filip.
Dear Filip, i used the project posted from your collegue...

Post Reply

Return to “Development Boards”