-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Starting OWL on boot #53
Comments
Interesting! Apologies for the delay - was out at a few field days. I've had this issue before and it's usually been the result of the owl_boot.sh file or greenonbrown.py file not being executable or reachable. If you want to double check if the files are executable, right click and open file properties (as described here), alternatively type You may also want to try |
Thanks @geezacoleman. I was at the Riverland Field day myself yesterday. I checked the properties for both greenonbrown.py and owl_boot.sh and as shown in the photo below they both say "Anyone" in the execute permissions box. Anyway I decided to download the latest owl image which seemed to work ok. However it still won't start on boot and goes to the desktop. But when I "execute in terminal" greenonbrown.py it opens, one window, gives a beep and then closes. Should I try downloading the image again? Thanks for your time and help. Much appreciated. Stephen |
Interesting - sorry this hasn't been an easy process for you! There are some issues with the only OWL.img that's available here (as being discussed over on #51). So to overcome those I'd recommend using that image and just updating it with the Updating Procedure. I need to upload a new image (as mentioned in #54) to avoid these errors. Let me know if that sorts it out for you! |
Hi @geezacoleman, I went through the updating procedure but still unable to start greenonbrown.py. When I reboot the RPi it gives a double beep from the buzzer and goes to the desktop. When I "execute in terminal" greenonbrown.py the buzzer beeps once, a window opens but then closes again. Also, when I type ls - l, I see Just thought I'd share a few more clues. Kind Regards, Stephen |
Hi @geezacoleman. Some progress, I went back and re downloaded the OWL image and re flashed the image to the SD card and the weed detection started automatically without having to launch "execute in terminal" greenonbrown.py from the desktop. Unfortunately I seem to have lost the abilty to look at the video screen, I just get the terminal screen listing which solenoids are on or off. However when I did an update it wouldn't start any detecting, either automatically on startup or by executing greenonbrown,py. I'll reflash the image to the sd card and at least I'll be able to bolt it onto the tractor to do some real world testing. Anyway, just updating my progress. KInd Regards, Stephen |
I think one of the issues here is that the software runs on boot and is still running in the background (given you're hearing two beeps). If you try running So if you want to run it again you need to stop the program running:
This will allow you to stop the background operation of greenonbrown.py. Once you've done that, you can run it again with:
If you're using the old software, you'll need to open the greenonbrown.py python file and change
Double check in the directory where you cloned this repository that the latest software is in the |
Hi again @geezacoleman Thanks for the previous reply. I reflashed the owl image file and the detection starts on power up every time however I still can't get the video feed to work. The photo below shows the procedure I used to try and get the video feed (after I stopped the program running). Another shot of the terminal output whenever I try to use the command line flags. I suspect the problem is me and my lack of experience/understanding with RPi's. (one of the reasons why I like this project is to get more experience with RPi's) Thanks for your time and patients. Kind Regards, Stephen |
This is when the RPi.GPIO module hasn't been installed in the correct virtual environment. The camera won't start because it runs into issues thinking that it isn't a Raspberry Pi. It's the same problem in #51, possibly due to an error in our initial version. This is also the very first version of the software, so the command line flags won't work. I'd recommend sticking with the latest software and getting that working by following the update procedure. It is also about ~20% better than what is on that image. We will release the latest image soon, which will solve all these issues, but have a few things going at the moment so haven't had time to get to it. I would stick with that image and then just download/update the software as described above. If you're still stuck, send me an email and we can organise a time to use Zoom and try and diagnose the issues there. |
Thanks @geezacoleman I will try the update and see what happens. I'll take you up on the zoom meeting if I can't get the video feed sorted. In the mean time I can to some testing, including walking it around our vineyard. Looking very promising so far. Kind Regards, Stephen |
Glad to hear things are still looking promising despite these setbacks. Red OWL is looking great! Email is guy.coleman[at]sydney.edu.au if you want to get in touch. |
How did you go fixing this one @MerbeinRobotics - all sorted or still running into issues? |
Hi @geezacoleman I must admit I hadn't had a chance to to an update to see if the problem was solved but I tried tonight and I'm still having problems. I'll send you an email to see if I can arrange a quick zoom meeting to get it sorted. I strongly suspect the issue is with me so it'll probably take 5 minutes to sort out. |
Thanks for the chat earlier @MerbeinRobotics. Just to summarise what we did:
This seemed to sort it out! Looking forward to seeing how it's used on your robot. |
Thankyou @geezacoleman Very much appreciated. Kind Regards, Stephen |
Hello, I am trying to get OWL to run on startup but I'm not having any luck so far so I would like to check my procedure, based on the software installation instructions is correct. (I'm not very familiar with Linux so this is a great learning experience)
First, in the terminal window I create the virtual owl environment.
$ mkvirtualenv owl -p python3
Then I make the greenonbrown.py file executable.
(owl) (owl) pi@raspberrypi:~ $ chmod a+x ~/owl/greenonbrown.py
Next I bring up the crontab file to add the following line (although I note it is already listed).
I save and exit the editor
Then I type the following line into the terminal
(owl) pi@raspberrypi:~ $ chmod a+x ~/owl/owl_boot.sh
However it still goes to the Pi OS where I have to open the greenonbrown.py file to start detecting, (which is working perfectly)
Is there something I am missing in the procedure?
Thanks for the help.
Kind Regards,
Stephen
The text was updated successfully, but these errors were encountered: