Same problem here
Not showing any reading.
Did you find the solution?
Any help??
Ultrasonic 2 click with EasyPIC 7
- jovana.medakovic
- mikroElektronika team
- Posts: 986
- Joined: 18 Dec 2018 10:36
Re: Ultrasonic 2 click with EasyPIC 7
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
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
Re: Ultrasonic 2 click with EasyPIC 7
Dear Jovana,
i tried also but it doesn't work. It stuck in
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.
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.
Re: Ultrasonic 2 click with EasyPIC 7
I've tried your code but also for me it is not working.
It stuck in :
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.
Can you help me?
It stuck in :
Code: Select all
if(distance > _ULTRASONIC2_MIN_RANGE)
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.
Can you help me?
Re: Ultrasonic 2 click with EasyPIC 7
Hi,
Which development system and MCU are you using ?
Can you post your project here ?
Regards,
Filip.
Which development system and MCU are you using ?
Can you post your project here ?
Regards,
Filip.