Raspberry Pi Alternative (Beagle Bone Black)

You have questions or need help around BierBot Bricks - this is the right place.
Post Reply
Homebrewer46
Posts: 5
Joined: Wed May 25, 2022 3:47 pm

Raspberry Pi Alternative (Beagle Bone Black)

Post 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
User avatar
Bernhard
Site Admin
Posts: 267
Joined: Sun Jan 23, 2022 3:53 pm
Location: Munich - Germany

Re: Raspberry Pi Alternative (Beagle Bone Black)

Post 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.
Homebrewer46
Posts: 5
Joined: Wed May 25, 2022 3:47 pm

Re: Raspberry Pi Alternative (Beagle Bone Black)

Post 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?
User avatar
Bernhard
Site Admin
Posts: 267
Joined: Sun Jan 23, 2022 3:53 pm
Location: Munich - Germany

Re: Raspberry Pi Alternative (Beagle Bone Black)

Post 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.
Homebrewer46
Posts: 5
Joined: Wed May 25, 2022 3:47 pm

Re: Raspberry Pi Alternative (Beagle Bone Black)

Post 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.
User avatar
Bernhard
Site Admin
Posts: 267
Joined: Sun Jan 23, 2022 3:53 pm
Location: Munich - Germany

Re: Raspberry Pi Alternative (Beagle Bone Black)

Post 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 :)
Homebrewer46
Posts: 5
Joined: Wed May 25, 2022 3:47 pm

Re: Raspberry Pi Alternative (Beagle Bone Black)

Post 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.
User avatar
Bernhard
Site Admin
Posts: 267
Joined: Sun Jan 23, 2022 3:53 pm
Location: Munich - Germany

Re: Raspberry Pi Alternative (Beagle Bone Black)

Post by Bernhard »

Glad it worked out!
Post Reply