Hi, it's just going to be trial and error, so just work your way down the prescaler until stable and you have the suitable distance.
That might be just the next number down
HC-SR04 not working with ""Pic"" Anymore
-
- Matrix Staff
- Posts: 1676
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 587 times
- Been thanked: 557 times
-
- Posts: 64
- Joined: Thu Jun 16, 2022 6:16 pm
- Has thanked: 69 times
- Been thanked: 9 times
Re: HC-SR04 Working BUT NO VALUE
Hi, Martin
Seems something has gone wrong again with the component. ""AM NOT SURE""
No changes were made to my program. I am not seeing the values again.
It's strange cause I was using it Half an hour ago and it was showing its value.
BUT NOT ANYMORE.
>>I DIDNT DO ANY UPDATES
I have an OLD v5 Project that I made 2 years ago. works very GOOD. I used it to confirm IF My Project AND Circuit Still Works
It was Ok.
I have 2 images I attached one v5 and v10. IN the meantime, can anyone Esle confirm and tell me if there seeing Value's on their LCD SCREEN?
Please and Thanks to everyone
Seems something has gone wrong again with the component. ""AM NOT SURE""
No changes were made to my program. I am not seeing the values again.
It's strange cause I was using it Half an hour ago and it was showing its value.
BUT NOT ANYMORE.
>>I DIDNT DO ANY UPDATES
I have an OLD v5 Project that I made 2 years ago. works very GOOD. I used it to confirm IF My Project AND Circuit Still Works
It was Ok.
I have 2 images I attached one v5 and v10. IN the meantime, can anyone Esle confirm and tell me if there seeing Value's on their LCD SCREEN?
Please and Thanks to everyone
-
- Posts: 730
- Joined: Thu Dec 03, 2020 8:25 pm
- Location: Denmark
- Has thanked: 616 times
- Been thanked: 169 times
Re: HC-SR04 not working with ""Pic"" Anymore
Hi Martin and daddytime!
I have done many test today with an arduino uno and AJ-SR04 waterproof.
I have test all possible setting with the prescaler and postscaler, the maximum range I can get is 91 cm, no matter what I do. Again if I diable the timer function, I can measure distance up to 200cm. I think there is a problem with the timers?
@daddytime, yes I see the distance, have you tryed to disable the timer?
Br Jorgen
I have done many test today with an arduino uno and AJ-SR04 waterproof.
I have test all possible setting with the prescaler and postscaler, the maximum range I can get is 91 cm, no matter what I do. Again if I diable the timer function, I can measure distance up to 200cm. I think there is a problem with the timers?
@daddytime, yes I see the distance, have you tryed to disable the timer?
Br Jorgen
- Attachments
-
- SR04_WaterProofArduino.fcfx
- (11.58 KiB) Downloaded 160 times
-
- Disable.png (3.1 KiB) Viewed 3344 times
-
- Posts: 64
- Joined: Thu Jun 16, 2022 6:16 pm
- Has thanked: 69 times
- Been thanked: 9 times
Re: HC-SR04 not working with ""Pic"" Anymore
Hi
Martin,Br Jorgen
YES, I Change the TIMER INTERRUPT to YES/NO
Long Before the Summer it was working "PERFECTLY FINE" (v10) During that time When I just started using it with v10. I did some test and found out that when timer Interrupt it Disabled it Didn't work WITH "PIC" But WORKS BETTER WITH ARDUINO. So, what I did in v10 is Mimic the Inputs and outputs from v5.. an i got it WORKING in v10 BEFORE SUMMER.
I used the v5 Project to do 2 Different Project. In the image above that's one of them. I used the other to Do a crucial Project Detect when water level rises.
However, I want them to be on the Phone. I then upgraded to v10. So, I could be able to visual things on the phone. (HAVENT REACH THERE YET)
Now I got some time on my hand am ready to recreate it in v10. (So, when I ready to test it back the other day that's how I found out something is wrong with the component, "WE HAD ADDRESS IT" the other day. and it works.
up till this morning it works. All of a sudden there no value.
I evening change the ultrasonic Sensor just to see if it was it. Then I Revert back to v5 that's in the First image above. it works.
>> I have copy and relace the file inside the folder again.
>> Restart the Laptop
>> shut it down
>> I revert Back again to v5. to confirm if (Project/Circuit)
>> Print number wasn't disabled
>> I went back for the file that I posted on this topic. Still no work.
THIS IS VERY STRANGE
I find it Very odd.
Image of v5 Project just uploaded just now.
>> the external led outside indicates that the Inlet valve is Open.
THE ONLY THING THAT LEFT TO DO IS JUST TO UPGRADE THAT V5 PROJECT TO V10 AND SEE WHATS HAPPENING.
Regards
Ryan
Martin,Br Jorgen
YES, I Change the TIMER INTERRUPT to YES/NO
Long Before the Summer it was working "PERFECTLY FINE" (v10) During that time When I just started using it with v10. I did some test and found out that when timer Interrupt it Disabled it Didn't work WITH "PIC" But WORKS BETTER WITH ARDUINO. So, what I did in v10 is Mimic the Inputs and outputs from v5.. an i got it WORKING in v10 BEFORE SUMMER.
I used the v5 Project to do 2 Different Project. In the image above that's one of them. I used the other to Do a crucial Project Detect when water level rises.
However, I want them to be on the Phone. I then upgraded to v10. So, I could be able to visual things on the phone. (HAVENT REACH THERE YET)
Now I got some time on my hand am ready to recreate it in v10. (So, when I ready to test it back the other day that's how I found out something is wrong with the component, "WE HAD ADDRESS IT" the other day. and it works.
up till this morning it works. All of a sudden there no value.
I evening change the ultrasonic Sensor just to see if it was it. Then I Revert back to v5 that's in the First image above. it works.
>> I have copy and relace the file inside the folder again.
>> Restart the Laptop
>> shut it down
>> I revert Back again to v5. to confirm if (Project/Circuit)
>> Print number wasn't disabled
>> I went back for the file that I posted on this topic. Still no work.
THIS IS VERY STRANGE
I find it Very odd.
Image of v5 Project just uploaded just now.
>> the external led outside indicates that the Inlet valve is Open.
THE ONLY THING THAT LEFT TO DO IS JUST TO UPGRADE THAT V5 PROJECT TO V10 AND SEE WHATS HAPPENING.
Regards
Ryan
- Attachments
-
- Valve.jpg (126.12 KiB) Viewed 3287 times
-
- V5 Screen.jpg (146.04 KiB) Viewed 3287 times
-
- Matrix Staff
- Posts: 1676
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 587 times
- Been thanked: 557 times
Re: HC-SR04 not working with ""Pic"" Anymore
Have you checked the library update is still showing this
If just added the component to the components folder, have you restarted Flowcode?
If just added the component to the components folder, have you restarted Flowcode?
Martin
-
- Posts: 64
- Joined: Thu Jun 16, 2022 6:16 pm
- Has thanked: 69 times
- Been thanked: 9 times
Re: HC-SR04 not working with ""Pic"" Anymore
Hi
Martin
@ martin Yes, I did Check. and IT compiled, evening thou it's not showing any "VALUE"
HOWEVER, THE AUGUST FILE WAS SHOWING "VALUES" YESTERDAY MORNING. Until half an hour after that STOPPED
So basically, I cannot Create a "NEWLY PROJECT".
>>HAS ANYONE ENCOUNTERED ANY PROBLEMS LIKE THIS?
>>WHATS THE SOLUTION?
I Open a new project and decide to create over the project. (may be file can be corrupted that's why it's not showing any values).
When I create the new project with the "LCD ONLY" it didn't work "EITHER".
I had some email to respond to this morning, Somehow, I went in my Draft and found that I had save that same Project in "MARCH" there.
When I downloaded the MARCH one and test it... IT WORKING (v10)
BUT THE August, one Don't Work
I was planning on doing some test with different "uC" to see if the values are showing up.
But like how the MARCH one is working I will go ahead and finish it up.
Here's an image of the March one below.
Regards
Martin
@ martin Yes, I did Check. and IT compiled, evening thou it's not showing any "VALUE"
HOWEVER, THE AUGUST FILE WAS SHOWING "VALUES" YESTERDAY MORNING. Until half an hour after that STOPPED
So basically, I cannot Create a "NEWLY PROJECT".
>>HAS ANYONE ENCOUNTERED ANY PROBLEMS LIKE THIS?
>>WHATS THE SOLUTION?
I Open a new project and decide to create over the project. (may be file can be corrupted that's why it's not showing any values).
When I create the new project with the "LCD ONLY" it didn't work "EITHER".
I had some email to respond to this morning, Somehow, I went in my Draft and found that I had save that same Project in "MARCH" there.
When I downloaded the MARCH one and test it... IT WORKING (v10)
BUT THE August, one Don't Work
I was planning on doing some test with different "uC" to see if the values are showing up.
But like how the MARCH one is working I will go ahead and finish it up.
Here's an image of the March one below.
Regards
- Attachments
-
- March V10 SR04.jpg (158.14 KiB) Viewed 3204 times
-
- Posts: 64
- Joined: Thu Jun 16, 2022 6:16 pm
- Has thanked: 69 times
- Been thanked: 9 times
Re: HC-SR04 not working with ""Pic"" Anymore
Hi Martin
you have done an ""EXCEPTIONAL JOB"". with the Hc-SR04 my Readings are 10x Better than v5
>>READINGS ARE STABLED WELL DONE.
you have done an ""EXCEPTIONAL JOB"". with the Hc-SR04 my Readings are 10x Better than v5
>>READINGS ARE STABLED WELL DONE.
-
- Posts: 64
- Joined: Thu Jun 16, 2022 6:16 pm
- Has thanked: 69 times
- Been thanked: 9 times
Re: HC-SR04 not working with ""Pic"" Anymore
Hi Br Jorgen
I am still not sure what is Wrong. But the AUGUST File Is NOT WORKING. I Just Tried it again. No values.
I had saved this Project File sometime in March and I found it. This one is showing it value so am building on it.
I want to add the Map function to this project as well as using an esp01s, for the rest of the day. hopefully it doesn't give too much of a trouble.
regards
Ryan
I am still not sure what is Wrong. But the AUGUST File Is NOT WORKING. I Just Tried it again. No values.
I had saved this Project File sometime in March and I found it. This one is showing it value so am building on it.
I want to add the Map function to this project as well as using an esp01s, for the rest of the day. hopefully it doesn't give too much of a trouble.
regards
Ryan
-
- Posts: 730
- Joined: Thu Dec 03, 2020 8:25 pm
- Location: Denmark
- Has thanked: 616 times
- Been thanked: 169 times
Re: HC-SR04 not working with ""Pic"" Anymore
Hi Daddytims!
Thank´s for reply. I don´t know what is wrong, but the component is not 100%, I am sure Martin can fix it
Nice evening
Jorgen
Thank´s for reply. I don´t know what is wrong, but the component is not 100%, I am sure Martin can fix it
Nice evening
Jorgen