Page 1 of 1
Raspberry Pi Alternative (Beagle Bone Black)
Posted: Wed Sep 14, 2022 8:51 am
by Homebrewer46
I was wondering if there would be any kind of issues installing BierBot on a BeagleBone Black instead of a Raspberry. Can I use the same instructions with the install script as for the Raspberry?
In the past I managed to install CraftBeerPi on a BeagleBone Black (the hard part was getting the 1-wire temperature sensors to work which is supported natively in Raspberry).
I was thinking of using it for fermentation control.
Thanks
Re: Raspberry Pi Alternative (Beagle Bone Black)
Posted: Wed Sep 14, 2022 11:01 am
by Bernhard
Hey there,
Thanks for considering our software for your fermentation! In theory everything should work. However, I can think of one adjustments that are necessary:
Change "import RPi.GPIO as GPIO" to "import Adafruit_BBIO.GPIO as GPIO" (also also install the adafruit library) in
main.py
The
used W1 library for reading the temperature also supports "Beagle Bone and other devices".
All other dependencies are fairly standard.
I don't have a beagle bone at hand so unfortunately I can't test it myself. But maybe you feel adventurous and give it a shot? Maybe you want to share your experiences here or even create your own fork and repo (BierBot-Bricks-BeagleBone).
I'm here to support you along the way!
Cheers,
Bernhard.
Re: Raspberry Pi Alternative (Beagle Bone Black)
Posted: Thu Oct 06, 2022 6:59 am
by Homebrewer46
Hi again.
I'm trying this out on a beaglebone black and changing the main.py as you suggested after I've downloaded it. Will let you know if it works.
During this I noticed there is a "sudo" lacking in the instructions
https://bierbot.com/blog/howto/howto-bu ... g-control/
On github you write "sudo python3 setup.py" but on the blog it's written "python3 setup.py" in the instructions. Does this matter?
Re: Raspberry Pi Alternative (Beagle Bone Black)
Posted: Thu Oct 06, 2022 7:50 am
by Bernhard
Maybe try without sudo first. If you get an error message afterwards, repeat it with sudo.
I think "sudo" was required as the "GPIO" library requires escalated rights to work (and also during installation).
Cheers,
Bernhard.
Re: Raspberry Pi Alternative (Beagle Bone Black)
Posted: Thu Oct 06, 2022 8:32 am
by Homebrewer46
I had issues with a module missing called "requests". Installed that and then I got this issue when running main.py manually.
"BierBot Bricks RaspberryPi client started.
setting GPIO to GPIO.BOARD
Traceback (most recent call last):
File "main.py", line 148, in <module>
run()
File "main.py", line 141, in run
initRelays()
File "main.py", line 39, in initRelays
GPIO.setmode(GPIO.BOARD)
AttributeError: module 'Adafruit_BBIO.GPIO' has no attribute 'setmode'"
Can't find any useful tips online on this issue.
Re: Raspberry Pi Alternative (Beagle Bone Black)
Posted: Thu Oct 06, 2022 9:24 am
by Bernhard
you can remove that line, it's not required for the BeagleBone library, sorry missed that.
During setup, your Pin numbers need to be referred as, i.e. "P8_07" for pin number 7 on header P8. Note the leading 0 before the 7.
I probably missed more so let me know how you're doing! And please share a link to your Github Repo
Re: Raspberry Pi Alternative (Beagle Bone Black)
Posted: Thu Oct 06, 2022 12:25 pm
by Homebrewer46
I got it to work with your suggestions.
I did however have to manually enable 1-wire in beaglebone in "/boot/uEnv.txt" by adding "uboot_overlay_addr4=/lib/firmware/BB-W1-P9.12-00A0.dtbo"
I followed this guide for that
https://elinux.org/EBC_Exercise_31_Dallas_1-Wire
The standard port is P9_12 for 1-wire ("The DS18B20 can be attached to any GPIO pin, but there's a device tree already created to attach it to P9_12.")
Haven't tested relay (don't have a spare)
I don't have a github account privately so can't contribute.
Re: Raspberry Pi Alternative (Beagle Bone Black)
Posted: Thu Oct 06, 2022 4:24 pm
by Bernhard
Glad it worked out!