-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can connect my sensor hcsr04 to the raspberry 4b #83
Comments
I work several hours and here what I found … bought a bunch of hcsr04 sensor , none of them work also with the jst-04 sensor but led working ( wow) got proper voltage a vcc pin on sensor voltage divider is correct , I checked with power supply , got 3 volt at the end ( 1k ohm and 2 k ohm) trigger will not send signal , check with GPIO test, everything is right , code also , GPIO 17 output , GPIO 27 input send a 3 volt signal to echo pin when I make a test with hcsr04.py , got a reading … it look like a reading … well better than no echo any info will be appreciated tks OS 11 (legacy) 64 bit just in case it could make a issue |
Hi I havent tested with 64bit but it should not matter. I will have to test it in the next few days. Have you tried with 32 bit RaspiOS? This is not raspisump then if hcsr04.py is also not working. |
Ill try it this week and I’ll give you a report if it’s the 64bits OS create the issue .
Bastien Bisaillon
Le 23 août 2024 à 18:25, Al Audet ***@***.***> a écrit :
Hi I havent tested with 64bit but it should not matter. I will have to test it in the next few days. Have you tried with 32 bit RaspiOS?
—
Reply to this email directly, view it on GitHub<#83 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BKPXN77EV4QQAAXGZMWQI2DZS6ZHBAVCNFSM6AAAAABMM6ATMSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBXHA4DEOJWG4>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
ok, now using a code i can use my sensor and it work ... problem is when i make change raspisump in config file of raspi sump the sensor is not working! hcsr04.py failed also ? here the report of raspisump RaspiSump Service Aug 25 17:14:22 raspberrypi systemd[592]: raspisump.service: Scheduled restart job, restart counter is at 5. tks for your help |
Here the code who works for my sensor… if I’m correct it’s look it’s trigger at high first and then the low pulse after time sleep.Yours start with low impulse , then high , time sleep and low . Don’t know if it’s the issue why it’s not working … I’ll make some test and get you some news if I change the code . Here the code that work with hcsr04 on OS11 64bits Libraries |
I read a lot on your GitHub … change a bunch of sensor , wires , even change voltage divider (1k and 2k) (330ohms and 470ohms) .
I always received a error log
Signal not received. Possible cable or sensor problem
also did the command line
Hcsr04.py -t 17 -e 27
echo line not received any signal
I try to uninstall raspisump , no succes
I check in groups just to be sure GPIO are in my user … and yes it is
I’m not a advanced user . But I build a craft beer pi without any issue and I really need your project to monitor a closed sewage tank
Tks for your help
The text was updated successfully, but these errors were encountered: