reef-pi :: An opensource reef tank controller based on Raspberry Pi.

GaryE

Well-Known Member
View Badges
Joined
Mar 12, 2020
Messages
992
Reaction score
1,321
Location
Coatesville, Indiana
Rating - 0%
0   0   0
Hello . Raspberry pi difficult to buy in our country. And long delivery. But I can buy orange pi today. Is it possible to use this board instead of raspberry pi?


I'm willing to buy an orange pi and try it out. Can always use another board for playing with.. ;)
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
Since we have a question about macro's I know in order to call them from a timer they need to be marked reversible but I never fully understood why that was the case. Can anyone enlighten me as to why that is the only way that it will work?

Thanks
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Since we have a question about macro's I know in order to call them from a timer they need to be marked reversible but I never fully understood why that was the case. Can anyone enlighten me as to why that is the only way that it will work?

Thanks
A timer, requires any an reef-pi entity (like ato, temperature, equipment etc) to act like a digital output (i.e. on/off) that can take two state, "On" and "Off" . Macros emulate this by running sequentially as their specification in "On" state, and in reverse order in "Off" state. Thus a reversible macro can simulate On/Off mechanism, making it controllable via timers.

I don't know if this makes sense or not, but its this trick in software that allowed me to integrate timers and macros.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hello . Raspberry pi difficult to buy in our country. And long delivery. But I can buy orange pi today. Is it possible to use this board instead of raspberry pi?
I dont know actually. It might work as it is, without any modification, assuming the GPIO pin map is same and arm architecture is same. If that's not the case we might have to make some software changes either by building it specifically for orange pi (if the arch is different) or by allowing an alternate pin map(if gpio pins are different). Hard to say without trying out, but i think it should not be a lot of work to get it working, and if we are lucky, either zero or 3 builds will work as it is.
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
A timer, requires any an reef-pi entity (like ato, temperature, equipment etc) to act like a digital output (i.e. on/off) that can take two state, "On" and "Off" . Macros emulate this by running sequentially as their specification in "On" state, and in reverse order in "Off" state. Thus a reversible macro can simulate On/Off mechanism, making it controllable via timers.

I don't know if this makes sense or not, but its this trick in software that allowed me to integrate timers and macros.
Thanks, yeah I will have to read it a few time and see if it sinks in, lol. It works when labeled as reversible and in this case its an easy macro but I can see where making a complex one more fun thinking in reverse order. :)
 

Jason Judd

Community Member
View Badges
Joined
Jul 8, 2018
Messages
30
Reaction score
14
Rating - 0%
0   0   0
I dont know actually. It might work as it is, without any modification, assuming the GPIO pin map is same and arm architecture is same. If that's not the case we might have to make some software changes either by building it specifically for orange pi (if the arch is different) or by allowing an alternate pin map(if gpio pins are different). Hard to say without trying out, but i think it should not be a lot of work to get it working, and if we are lucky, either zero or 3 builds will work as it is.
I'm in the same boat. I just burned out my raspberry pi and finding that there's no rpi to be found without price gouging. Does anyone know where I can pickup a rpi without needing to buy the 4 for $150? My old B+ cost me $35...
 

GaryE

Well-Known Member
View Badges
Joined
Mar 12, 2020
Messages
992
Reaction score
1,321
Location
Coatesville, Indiana
Rating - 0%
0   0   0
I'm in the same boat. I just burned out my raspberry pi and finding that there's no rpi to be found without price gouging. Does anyone know where I can pickup a rpi without needing to buy the 4 for $150? My old B+ cost me $35...
I went a couple weeks ago to a few sites that sell them and put myself in on the "notify me" deals, I was able to stock up.. picked up 2 Zero 2 W's and two Pi4 2gb all in one week..

I also have an ancient Raspberry PI clone called a Roseapple Pi. I fired it up this AM and am getting it updated so I can test Reef-PI on it. Should be interesting.. It runs a debian release and I believe it to be pin compatible with the RPi GPIO..
We shall see..
 

GaryE

Well-Known Member
View Badges
Joined
Mar 12, 2020
Messages
992
Reaction score
1,321
Location
Coatesville, Indiana
Rating - 0%
0   0   0
Did some updates on one of my controllers this week.

Old setup

1643232906627.png



after a lot of head scratching and burning myself with the soldering iron...

1643232966184.png


Much cleaner.. still can't get one of my temp sensors working though. I think I know why...
 

Mikeneedsahobby

Well-Known Member
View Badges
Joined
Sep 16, 2018
Messages
516
Reaction score
916
Rating - 0%
0   0   0
Hey guys,

I've been away for quite a while. But my 2 reef pi's continue to run without any hiccups. Perfecto!

I just updated one of them from v4.1 to v5.1. Upgrade went almost too easy.

I wanted to ask if there was someone I could copy to control a brushless motor. My perilistic pump is using a brushless motor. My wife complains about how noisy it is. I'm running it like a normal motor but I can't control it's speed like a normal motor. It's 100% or 0%. If I could slow it down it would be quieter.

If not no worries. I'll get her ear plugs.
And thanks again!!!
 
Last edited:
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hey guys,

I've been away for quite a while. But my 2 reef pi's continue to run without any hiccups. Perfecto!

I just updated one of them from v4.1 to v5.1. Upgrade went almost too easy.

I wanted to ask if there was someone I could copy to control a brushless motor. My perilistic pump is using a brushless motor. My wife complains about how noisy it is. I'm running it like a normal motor but I can't control it's speed like a normal motor. It's 100% or 0%. If I could slow it down it would be quieter.

If not no worries. I'll get her ear plugs.
And thanks again!!!
Do you have a link for the pump ? Can you use pwm or a hardware based speed controller to set the speed manually ?
 

GaryE

Well-Known Member
View Badges
Joined
Mar 12, 2020
Messages
992
Reaction score
1,321
Location
Coatesville, Indiana
Rating - 0%
0   0   0
I also have an ancient Raspberry PI clone called a Roseapple Pi. I fired it up this AM and am getting it updated so I can test Reef-PI on it. Should be interesting.. It runs a debian release and I believe it to be pin compatible with the RPi GPIO..
We shall see..


It runs, but it chokes on the i2c, drivers and I get a 404 error on the UI.


2022/01/27 05:59:58 ERROR: Failed to initialize i2c. Error: open /dev/i2c-1: no such file or directory
2022/01/27 05:59:58 Initializing DB for drivers bucket
2022/01/27 05:59:58 ERROR: failed to initialize drivers. Error: can't build hal pin 8: embd: your host ": ARMv7 Processor rev 1 (v7l)" is not supported at this moment. request support at https://github.com/reef-pi/embd/issues
2

I'm not sure how to initialize i2c on this board as it's 7 years out of production and the company that made is out of business..
 

Mikeneedsahobby

Well-Known Member
View Badges
Joined
Sep 16, 2018
Messages
516
Reaction score
916
Rating - 0%
0   0   0
Do you have a link for the pump ? Can you use pwm or a hardware based speed controller to set the speed manually ?
I think this will help. First image is the motor. 2nd image is the adaptor board this connects to in the reef pi (Mike Lanes doser adaptor.
Screen Shot 2022-01-27 at 1.01.10 PM.png


2cTqmiV.png

Currently the red and white wires are routed to pin 6 +12V on the 6P6C of the adaptor. The black wire is routed to pins 4 and 5 to give me twice the current capacity through the ULN2803A. Green and yellow are not connected. Pins 1-3 are used for a 2nd brushed motor. I no spare connectors in the box available. If I need to run new wires from the reef pi to the doser box then I need to cut into the cases.

I think what I should do is route the black wire to pin 4. Use pin 4 as on/off equipment. Leave the red wire on pin 6. Connect the white wire to pin 5. Use this as the doser pin and that would allow speed control through the PWM. i can leave the green and yellow wires unconnected.

Is this correct? I would lose the extra current capacity I currently have. The motor is rated to 12V 10w. So 0.8a.
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
Just got one of my lights working with one of the new Viparspectra boards from @theatrus had made up, looks like at least the one I am using is working fine. I did have some issues trying to get the pca9685 setup and working on 5.1. I reverted back to 4.3 but I need to go back and see if it was me or a bug, but had no luck getting pwm to work, most likely a mis configuration by me but need to circle back on that. It was a new setup so there were lots of possibilities but appears to be working now.

:)
 

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
2,253
Reaction score
3,603
Location
Sacramento, CA area
Rating - 0%
0   0   0
I think this will help. First image is the motor. 2nd image is the adaptor board this connects to in the reef pi (Mike Lanes doser adaptor.
Screen Shot 2022-01-27 at 1.01.10 PM.png


2cTqmiV.png

Currently the red and white wires are routed to pin 6 +12V on the 6P6C of the adaptor. The black wire is routed to pins 4 and 5 to give me twice the current capacity through the ULN2803A. Green and yellow are not connected. Pins 1-3 are used for a 2nd brushed motor. I no spare connectors in the box available. If I need to run new wires from the reef pi to the doser box then I need to cut into the cases.

I think what I should do is route the black wire to pin 4. Use pin 4 as on/off equipment. Leave the red wire on pin 6. Connect the white wire to pin 5. Use this as the doser pin and that would allow speed control through the PWM. i can leave the green and yellow wires unconnected.

Is this correct? I would lose the extra current capacity I currently have. The motor is rated to 12V 10w. So 0.8a.

Took me a minute to realize the Kamoer motors have the brushless driver in them. I somehow assumed they didn't :)

1643408600600.png


This can also help. In theory, you can control just the blue wire with a PWM and leave the pump powered. Its likely to work like most fan BLDC drives and just stop on a zero volt PWM input.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
I think this will help. First image is the motor. 2nd image is the adaptor board this connects to in the reef pi (Mike Lanes doser adaptor.
Screen Shot 2022-01-27 at 1.01.10 PM.png


2cTqmiV.png

Currently the red and white wires are routed to pin 6 +12V on the 6P6C of the adaptor. The black wire is routed to pins 4 and 5 to give me twice the current capacity through the ULN2803A. Green and yellow are not connected. Pins 1-3 are used for a 2nd brushed motor. I no spare connectors in the box available. If I need to run new wires from the reef pi to the doser box then I need to cut into the cases.

I think what I should do is route the black wire to pin 4. Use pin 4 as on/off equipment. Leave the red wire on pin 6. Connect the white wire to pin 5. Use this as the doser pin and that would allow speed control through the PWM. i can leave the green and yellow wires unconnected.

Is this correct? I would lose the extra current capacity I currently have. The motor is rated to 12V 10w. So 0.8a.
There are many off the shelf Bldc driver that you can get from Amazon and then hook up with pi via pwm.
 

Lslusar

New Member
View Badges
Joined
Jan 12, 2022
Messages
11
Reaction score
5
Location
Bangkok
Rating - 0%
0   0   0
I went a couple weeks ago to a few sites that sell them and put myself in on the "notify me" deals, I was able to stock up.. picked up 2 Zero 2 W's and two Pi4 2gb all in one week..

I also have an ancient Raspberry PI clone called a Roseapple Pi. I fired it up this AM and am getting it updated so I can test Reef-PI on it. Should be interesting.. It runs a debian release and I believe it to be pin compatible with the RPi GPIO..
We shall see..
I found a second hand in the marketplace facebook pi4 4gb. I was very happy. Paid 80 dollars. And it turned out to be a scammer!!!!:eek::mad:
How to choose the most suitable among all - banana, lychee, orange ....
 

Lslusar

New Member
View Badges
Joined
Jan 12, 2022
Messages
11
Reaction score
5
Location
Bangkok
Rating - 0%
0   0   0
it seems similar. See who understands please
Orange Pi PC 1GB H3 SoC Support Android4.4 Ubuntu Debian Image
Features:100% brand new and high quality
Orange Pi PC is not only a consumer product, but also designed for anyone who wants to use technology to create innovations. It is a very simple, interesting and practical tool. It supports Android4.4, Ubuntu, Debian.
It's an open-source single-board computer.It uses the Allwinner H3 Soc,and has 1GB DDR3 SDRAM
Adopt H3 quad-core A7 high-performance processor, integrated Ethernet, infrared receiver, video, audio output and other interfaces, support HDMI-compatible Avout video output and other functions
Despite its small size, the design is compact and beautiful, with a rich set of interfaces, including HDMI-compatible Ethernet, USB-Host, USB-OTG, Dvp camera, etc.
Integrated onboard microphone, WiFi network, infrared receiver, compatible with Raspberry Pi GPIO port, and unique debugging serial port, etc.
Specifications:CPU: H3 Quad-core Cortex-A7 ARM
GPU: Mali400MP2 GPU 600MHz Support Opengl Es 2.0
Memory: 1GB DDR3 (Shared with GPU)
Onboard storage: TF (maximum 64GB)/MMC card slot
Onboard network: WiFi
Video input: camera module with CSI interface
Audio input: Mic
Video output: HDMI-compatible
Power: DC input ; MicroUSB (OTG) cannot be used as power input
USB2.0 port: 1 USB2.0; OTGx2
Low-Level: 40Pin Header
Note:Those who need to download the software can log in to the website: http://www.orangepi.org/downloadresources/
Due to the problems of lighting effects and shooting angles, there will be certain tolerances in the product, please understand.
Please allow 0-1cm error due to the manual measurment.Package includes:1 Set x ARM Development Board
Screenshot_3.jpg
Screenshot_2.jpg
 

waynel

Active Member
View Badges
Joined
May 22, 2020
Messages
266
Reaction score
257
Location
Kentucky
Rating - 0%
0   0   0
I’m running reef up 4.1 and getting this error when trying to edit my temp probes (I have three) under temperature tab:

something went wrong:
TypeError: undefined is not an object (evaluating 't.length')
in AreaChart in div in s in div in i in Connect(i) in div in div in div in div in form in Ru in Qn in WithFormik(Ru) in li in l in l in ul in div in i in Connect(i) in i in div in div in div in div in i in Connect(i) in i in a


I’ve powered it down and rebooted. The temp graphs are working as far as I can tell.
 

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
2,253
Reaction score
3,603
Location
Sacramento, CA area
Rating - 0%
0   0   0
it seems similar. See who understands please
Orange Pi PC 1GB H3 SoC Support Android4.4 Ubuntu Debian Image
Features:100% brand new and high quality
Orange Pi PC is not only a consumer product, but also designed for anyone who wants to use technology to create innovations. It is a very simple, interesting and practical tool. It supports Android4.4, Ubuntu, Debian.
It's an open-source single-board computer.It uses the Allwinner H3 Soc,and has 1GB DDR3 SDRAM
Adopt H3 quad-core A7 high-performance processor, integrated Ethernet, infrared receiver, video, audio output and other interfaces, support HDMI-compatible Avout video output and other functions
Despite its small size, the design is compact and beautiful, with a rich set of interfaces, including HDMI-compatible Ethernet, USB-Host, USB-OTG, Dvp camera, etc.
Integrated onboard microphone, WiFi network, infrared receiver, compatible with Raspberry Pi GPIO port, and unique debugging serial port, etc.
Specifications:CPU: H3 Quad-core Cortex-A7 ARM
GPU: Mali400MP2 GPU 600MHz Support Opengl Es 2.0
Memory: 1GB DDR3 (Shared with GPU)
Onboard storage: TF (maximum 64GB)/MMC card slot
Onboard network: WiFi
Video input: camera module with CSI interface
Audio input: Mic
Video output: HDMI-compatible
Power: DC input ; MicroUSB (OTG) cannot be used as power input
USB2.0 port: 1 USB2.0; OTGx2
Low-Level: 40Pin Header
Note:Those who need to download the software can log in to the website: http://www.orangepi.org/downloadresources/
Due to the problems of lighting effects and shooting angles, there will be certain tolerances in the product, please understand.
Please allow 0-1cm error due to the manual measurment.Package includes:1 Set x ARM Development Board
Screenshot_3.jpg
Screenshot_2.jpg

The various Pi-formfactor devices do not use the same processor (the Broadcoms) - this has an Allwinner SoC. They're both ARMs, but the peripherals are not an exact match.

They do run Linux, but the specific IO pins and busses may not be in the same "spot" in Linux, or not supported right now by the Reef-Pi libraries. With some software work to remap some of the pins its likely to work just fine, but never tried one of these out of the box.
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
Morning folks, just thought I would post a question. I have been using some @Michael Lane goby hat boards for a couple years now and I am thinking about making some additional boards up for test rigs and spares (I always like having spares, lol). Just looking to see if anyone would be interested in having one as a test board etc, just trying to see if there is any interest. I have not worked out the cost yet but these are not intended to compete with the likes of robotank or leviathan but at least for me they are really useful and provide enough capability and are quick to do.

Here is the board on @Michael Lane tindie store - https://www.tindie.com/products/ranthalion/ml-reef-pi-hat-goby/#specs

Looks like if I get assy done on the boards it cost the same whether I do 5 boards or 20, just thought I would ask. :)
 

TOP 10 Trending Threads

WHAT AMOUNT OF LIVE ROCK AND SAND SHOULD BE PRIORITIZED FOR OPTIMAL BIODIVERSITY/FILTRATION?

  • 100% live rock + bagged sand

    Votes: 38 27.3%
  • 100% dry rock + 100% live sand

    Votes: 47 33.8%
  • 50/50 live/dry rock, 50/50 live/bagged sand

    Votes: 30 21.6%
  • 75% live rock, 25% live sand

    Votes: 14 10.1%
  • 25% live rock, 75% live sand

    Votes: 10 7.2%
Back
Top