-
-
Notifications
You must be signed in to change notification settings - Fork 137
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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 it run on RPi 3? #66
Comments
Hello! Thanks for your interest! I'm sorry I cannot answer this with any real certainty since I've not been able to test on a RPi3 myself yet and do not know. I do think BirdNET-Pi would run on the RPi 3B+. So long as the ARM64 version of RaspiOS is the operating system, the TFLite pre-built binaries ought to run, which is the only part that might fuss. You will want to enable the zRAM swapping to compensate for the 3B+'s small memory. There is a tool for this under See the screen shots below for how to use the tool: You'll have to reboot for the swap partition to be available. Please give it a try, OR you are welcome to test the new pre-installed image HERE to save a little time. (You'll still want to do the zRAM options above if you choose this method.) Please let me know if you encounter any trouble or have any other questions and I will be more than happy to assist you! |
Hello, @joknjokn -- I hope this update finds you well. We have been working on this for you and tests are looking quite promising:
I am more than happy to help out with any of the above suggestions, simply let me know where you'd like guidance and I will provide what I can! My best regards, PS |
@mcguirepr89 , thank you so much! I hope to get time for it soon, but since I can't find my RPi3-fan (ordering new one), I can't try yet. If the RPi3 gives me too much trouble, I'll probably order a RPi4. Also, I was actually inspired by your project and managed to make a Flutter-app (Android only at the moment) that uses the BirdNet-model and also runs "live" and collects the results, without saving recordings though. Kind of like a portable mini-version of yours. Not nearly done, and I'm unsure if it will be, but the live-BirdNet functionality is really fun! |
That's awesome! I don't have any Android devices (as much as I love me some Linux), otherwise I would be eager to check this out. Please feel invited to share that project on this page's Discussions if you'd like -- I think it sounds very cool. I actually have been able to successfully integrate a live detection stream from the BMBF InnoTruck demonstration source code that can utilize the same TFLite pre-built binaries that BirdNET-Pi uses for BirdNET-Lite. The full stack offers a live audio stream, a live spectorgram, and photos, but I've only been able to get the live detections and photos to work properly. Please take a look here in hopes that you might be able to help out with getting this firmly integrated into BirdNET-Pi, for which I would be very grateful!!! My best regards |
Hello again -- I haven't had the time to work on this, so please let me know how it goes for you. I'm happy to help you figure out how to get the resource requests to match up to what the RPi3 can offer, but I didn't want you to expect more updates from me at this moment as I'm focused elsewhere for the time being. My best, |
Sorry, forgot to reply. The flutter/android-project is too messy to share at the moment. I had to mess up a third tflite-plugin to get it to work. Regarding BirdNet-PiRPi3, it's more of a "long term" project for me, with slow progress. I think my next step is to see if I can grab a cheap RPi4 at black friday, before I spend too much time experimenting. But thanks a lot for the help - I'm sure I'm not the only one interested in getting it to work on RPi3 also. Really appreciate the help :) |
It may be worth considering the new Raspberry Pi 2 Zero W -- it has a comparable ARM processor to the RPi3B with less power-consumption and MUCH cheaper. If I could get BirdNET-Pi running on one of those, then we would be in pretty exciting territory being able to edge compute deep neural networks on a $15 computer!! I'll certainly keep you posted on any headway I make for either device. |
That's interesting. Also probably better for portability with powerbank+solar, if that's ever going to happen! |
I surely hope someone has the resources and know-how to put that together -- it would be really exciting to Frankenstein a BirdNET-Pi that could live forever in the woods (like Frankenstein's real monster). 🧟 |
HI, thanks for the hints. I tried to install without desktop and everything went fine. I also activated zram. But i cannot connect to http://birdnet.local Thanks for the help |
Hello, @gitalm and thank you so much for your interest in BirdNET-Pi. Sorry I wasn't able to get back to you yesterday, but it was Thanksgiving here in the US and I had a lot going on. Running on a RPi3 is somewhat tricky due to resource constraints, but I'm happy to work with you on getting things working as best as possible. To begin, I wanted to be sure you're attempting to access the correct web page. Your comment mentions not being able to reach the web interface at "http://birdnet.local," but the web interfaces is actually at http://birdnetpi.local -- notice the 'pi' tucked in between .local and birdnet. Could you check for me to see if you are able to access the web interface at http://birdnetpi.local? Thank you and I will be around today to help out as much as I can -- |
Hi, @gitalm -- I just wanted to follow up with you to see if you've had an opportunity to revisit the web interface at http://birdnetpi.local with any success? Wishing you a great weekend, |
Could you show a screenshot of the "BirdNET-Lite Log" under "System Links"? That will likely tell a bit more about what is going on. With that said, I believe the problem will be due to no audio data input. I suspect that the spectrograms are black? Please confirm this for me. This is because the 3.5mm audio jack that is built into the pi does not support audio input. What I would recommend to see what is going on are the following, which I will describe better below.
To Temporarily stop the
To Remove all of the recordings your system has created so far, issue:
To *Grab some extracted sound files from @CaiusX's installation to populate today's directory on your system, find a sound from a bird that has a very high confidence score (they're embedded in the file name, so you can sort by file name to get a file with a high confidence score) and right-click the file to save it. Place it in the *Note: @CaiusX's installation is set for very different latitude and longitude than you are likely to have, so your system might not have the best chance of making a detection with exotic sounding birds. If using one of those files does not lead to a detection, we should still see it at least get processed successfully, so the test is not worthless. **Note also that the RPi3 cannot keep up with realtime running all services, so you will still see files accumulate where the same installation will have no more than 2-3 files at a time on an RPi4. OR To Plug in a USB audio input device for testing, simply plug in the new device and navigate to the "Tools" link under "System Links," enter the user After those things, Watch the "BirdNET-Lite Log" found under "System Links" on http://birdnetpi.local to see if recordings are being analyzed. I'll be out for the rest of the day, but I will certainly respond as soon as I have the chance. |
Hi, @gitalm. I can shed a lot of light on what you are seeing and hopefully you'll have a better understanding of how BirdNET-Pi is put together. Before anything, though, I will need you to verify with no uncertainly that you are using the ARM64 version of RaspiOS built on Debian Bullseye that can only be found here. Please don't continue troubleshooting until you can be sure that you are using the 64-bit version of the OS.
This method, although it does not fail, does not install the site packages where BirdNET-Pi needs them to be. BirdNET-Pi's services utilize a python venv that is specifically built for the services. Also, that version of Tensorflow is not what is needed here and will not work. You will need to use the pre-built TFLite binaries that are included in the wheels in the BirdNET-Pi directory: With that in mind, you can understand why your later interactions with the OS's site-packages seemed to indicate that those site-packages are not installed on the system . . .
They are installed, but need to be accessed from within the 'birdnet' python venv located in the BirdNET-Pi directory. To activate the appropriate python virtual environment, you will need to issue From that venv prompt, your Before we troubleshoot too much more, could you please relay to me your installation procedure? My best |
Thanks for all your help I also had to install bc seperatedly, because there was a failure inside the Log from the website. |
I'm happy to help and appreciate you trying to get this up and running on the Lite version of the OS. I used to only run things on the Lite version for my personal installations, but have done a lot of developing since then and it seems like there may be some dependency issues when using Lite now. Thank you for your help in pin pointing those things for me and others. I'm scratching my head on how to best investigate what is going on. Not having the "activate" file in the python venv does not make sense to me, so I can only conclude that there were some glaring errors during installation that need to be addressed. Is there any chance you would be willing to host a remote desktop session via AnyDesk on the device you are using to access the BirdNET-Pi via SSH? I would really like to take a look through some logs and basically redo the installation while increasing the installer's verbosity. If a remote session is out of the picture, I can recommend the following, which is what I would personally do:
Very carefully examine the installation for any errors to investigate further. Again, I'm more than happy to take a look myself with AnyDesk -- this information is quite valuable to me, so either way I appreciate your persistence. My best |
I had another thought: To use the pre-installed image and then disable the graphical.target:
Let me know if you would like to pursue this option and/or if you have any questions about the process. |
That "BirdNET-Pi_v0.9" access point is the way into the system. Could you please show me what kind of error you are seeing when trying to connect with VNC and with SSH? Also, be sure you wait the 5-7 minutes after the first boot for initial configuration. |
Dear Patrick, today my RPi 4 arrived and it is working. My problem with the RPi 3 was, that i used RPImager and set automatically a password. |
That's great news! I just got a new job that starts Monday, so I will get myself a RPi3 in the next couple of months and will be able to do much more thorough testing for that model. May I ask where your BirdNET-Pi will be listening? |
I don't have any experience with the 2G, but I wouldn't expect it to perform drastically different for the BirdNET-Pi. If you have any plans to use the full version of RaspiOS (instead of RaspiOS-Lite), then I would encourage you to get the 4GB RAM option, as the graphical user interfaces hog RAM quickly. |
Alright, that's great to hear. I will probably have fun with RaspiOS at some point, but 4G won't be in stock anywhere until April I believe. Can't wait for that ;-) Btw., I guess a possible explanation for the initial temp-issue, then under-voltage issue, could be that until I cooled it, it never really got to consume too much power before it throttled due to temperature. Now with the lower temperature, it speeds up and hits the under-voltage. (Maybe that's what you also suggested.) |
Turns out once again that temperature can cause problems and appropriate cooling is essential. Until now I am fine with the aluminium heatsink case, but let's wait for summer. I think it is important to protect the pi against the sun. But on real hot days (above 35°C) temperature may cause problems even without the sun directly shining on the pi. However, I hope there will be better cooling cases in future, which maybe combine heat pipes and large coolers. Because I really don't want to use a fan. |
@joknjokn What kind of power supply do you use? Specs? Make sure it delivers enough power. |
I've had a lot of success using 12v desktop computer fans plugged into the 5v pins. They're very quiet at that voltage and work like a charm (and they're SUPER cheap if you can find them as old parts from a junk computer). |
I think that is very plausible/probable and a great observation. |
I always try to exchange small fans with larger fans whenever possible. But I do not want to use ANY fan for a pi, especially not for outdoor use. Regarding the pi 4B: there is a heatpipe cooler available! It is relatively small and it comes with a fan (to get rid of the heat piped off the CPU to the above cooler). There are two versions. Here is the image of the tower cooler: |
@mcguirepr89 I just installed birdnet-pi on the 3B again. There was an error at step 3. The caddyfile was not updated with the address I entered in the pre-configuration, so I did it manually. Also, I tried to set the recording time to 30 s, but it did not work somehow (edit: works after reboot). Don't know if it possibly makes problems that I have now two birdnet-pis in my local network. Guess, I will have to update the menu.html and the caddyfile, to the IP-address or local domain birdnetpi2.local. Give me some time to check everything. |
That portion implies you installed using I need to confirm because the new If I'm going to change the documentation for installation before doing the pulling, so that everything will reflect this new approach. Of course, I'm a command line kind of guy, so there will always be a command-line way of doing things if you need/want to.
I hope that helps out! Also, if you are concerned about there being two Raspberry Pis with the same hostname, you do a few things:
Bonus: If you like working in the terminal, I have put together a very informative
If you've never used tmux before, the "prefix" to send (most) commands to |
Oh, now I realize what happened. I used the newinstaller.sh but I then used birdnet-pi-config, too! I will try again. |
@mcguirepr89 Works perfect! I just discovered the web terminal. Until now I always used ssh -l pi IP for login and had to enter my password, which I cannot remember and had to look up every time. Of course, I could have used a client, but I like the web terminal very much. :) And even more the idea to use it over the internet. This will make it much easier to remote access birdnet-pis without necessarity of open SSH port. I also had a quick look into the file manager and I think this can be useful. But, if am not wrong again, the user changes: a file owned by pi and copied is then owned by caddy. For the file permissions I personally prefer ugo, because I cannot remember the numbers, lol. But maybe I can get used to it or look it up. Ah, I see, when I click on it, I can set permissions easily. Nice! I think about to replace the pi 4B in my garden with the 3B, since everything works nice. But I would like to copy the database from the 4B to the 3B to not lose any bird recognitions. Of course, I have to be careful and set it up with the exactly same GPS coordinates and ID for birdweather etc. |
@oliverk71 Thanks for the kind words :)
Thanks again, but that is thanks to @yudai'sGoTTY I still need to lock down that service through my little
Unless you're planning on changing out SD cards for some reason, I'm 90% sure you can just put the SD card you're using into the RPi3B and it shoud just work, as they say. If not, there is a command line tool I put together called |
@mcguirepr89 Maybe I wait for your next release. The project develops so quickly. :)
That would not work, since I have the 0.1 on the 4B and for the 3B I used the newinstaller.sh . But I will try to copy the BirdDB.txt, maybe I try on sunday, but I don't know yet. |
Just joining this thread to say that today I finally got BirdNetPi running on my Raspberry 3B+ too! During first install I had similar issues reported above - wrrors due to missing tflite and no activate script. I did not know the zram trick at the time, and I also did the installation without a sound card installed. Got the UGREEN ADC, and while I am still waiting for em-271 microphone I just plugged in some old 3.5mm TRRS handsfree and tossed outside the window - and to my huge surprise, it has managed to pick up some 10-11 species just this afternoon. Pretty amazing what it can do with lousy audio! It was falling behind on processing (with the default 15 second record time). I've set it to 60 seconds for now, to see if it catches up during the evening. By the way - if I just want to pause recording for a while - what was the command to do so? Thank you again - this is going to be fun! |
Hi, @Molokai! I'm glad you're joining in. This thread has gotten pretty long and I will definitely be using some of its contents for new documentation, but thank you for reading through it to get your system working.
I just wanted to remind you that the
If you're interested in continuing the analysis while stopping the recording, you will need to use the "Web Terminal" to issue
After that, you can watch the logs on the web interface and wait until things are caught up, then, from the "System Links" > "Tools" page you can just click "Restart Recording" and you'll be in good shape.
😎 That is awesome!! Thank you so much for letting me know. You'll see that there are Norwegian translations available for the database in "System Links" > "Tools" > "Settings" > "Database Language" -- I hope it is helpful for you! |
Dear @mcguirepr89 , my Pi3+ is working now. Just the Today View, Overview View and Database View is not showing anything. I played some sounds with my Smartphone and all was identitfied correctly. |
There was a bug doing that from a push I made last night. I fixed that a
few hours ago -- you should be able to run an update and things will start
showing up in the database (not the old stuff, though)
…On Mon, Jan 31, 2022 at 11:13 AM gitalm ***@***.***> wrote:
Dear @mcguirepr89 <https://github.com/mcguirepr89> ,
my Pi3+ is working now. Just the *Today View*, *Overview View* and *Database
View* is not showing anything. I played some sounds with my Smartphone
and all was identitfied correctly.
I can see all birds under *Extractions* but not in the other views.
Best wishes
[image: grafik]
<https://user-images.githubusercontent.com/7422149/151829887-0e8d3b10-aa3a-4fe5-8a5c-160cfda8b6cb.png>
[image: grafik]
<https://user-images.githubusercontent.com/7422149/151829956-083939af-3752-440a-baab-992f24cf6b88.png>
—
Reply to this email directly, view it on GitHub
<#66 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOMH3ECYKK42W54ZPHIIGPLUY2YL5ANCNFSM5HP53JRA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
just a update didn't the trick. Probably i have to set it up newly. Really looks great and is working fine. |
That's great! I'm very excited for this new version -- lots of great new features and lots of user-feedback has been addressed. There are still many things I'm working on, but it is shaping up pretty well. |
@mcguirepr89 A question about updating (though not RPi3 specifically): I installed BirdNET-Pi with newinstaller on my RPi4. Can I get the updates you're discussing just by updating through the Tools tab? Or do I need another branch/installation? And do you have some release-notes about the new stuff somewhere? :) |
@joknjokn You can certainly try using the Update tool on the "Tools" page, though there could be some things that don't work. (not sure yet what those things could be -- could also be nothing) You would have to let me know what is not working as you discovered the issues. Sorry that testing and updating are not simpatico -- Please let me know how the Update tool works out for you and I can guide you from there. Worst case scenario you will need to do a clean install, but during testing, that's not a terrible worst-case scenario. |
@mcguirepr89 I have no problem with potential issues - I'll let you know if I find anything. Thanks! |
@mcguirepr89 I see no errors. I updated - still worked. Rebooted - still works. But not sure what new stuff to look for :) |
@joknjokn you might see that the "Tools" page has been reworked and that there is now a web interface for creating and editing |
@mcguirepr89 Tools-tab still looks same to me, after updating, rebooting, clear cache. I see nothing about include/exclude - just the 12 buttons. Version in top says 0.11. So - seems like Tools->Update is not working, or is fetching from a wrong place. Is there another way to update? Through ssh maybe? |
@mcguirepr89 I just realized there's a difference between the newinstaller-url you mention in this thread and the one in the main readme - sorry! I used the one from the main readme for my RPi4. I guess that's why I didn't get the new updates. :) |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Hi,
I'm wondering if you think this could run on RPi 3? If so, would it require difficult changes?
Thanks!
The text was updated successfully, but these errors were encountered: