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

BenB

Active Member
View Badges
Joined
Jun 11, 2019
Messages
100
Reaction score
152
Rating - 0%
0   0   0
Hi Ranjib,

I have been playing with an RC Servo motor (with PCA9685) to see if I can use that to move a camera, rotate and tilt:
20190819_235810.jpg
I have seen a project with a Pi and 16 RC servos attached to a PCA9685.

I used the lights section of Reef-pi to be able to rotate the Servo, using the fixed profile changing the PWM up and down it worked for "only" 45degrees rotation.
I am planning to make a cam that I can put into the water with a glass dome upside down, so you can look around inside the aquarium:
1566307856085.png


Is it possible to add some software to be able to control servos like the one on the picture?

In the future, I am thinking to make a feeder with servos to give dry food to my fish.

And maybe there are other possibilities like mechanical switching or opening valves.

Hi, all you have some other suggestions to use an RC servo??
 

Bzar

Community Member
View Badges
Joined
Apr 11, 2019
Messages
32
Reaction score
66
Rating - 0%
0   0   0
Anyone have suggestion for a more "elegant" approach to doing cutouts for Db9 connectors? I kinda went Freddy Krueger on my enclosure.....
I use a small rotary tool with a mini saw blade. Or used to because it never looked pretty unless the connector had a flange to hide the edges.

I like these now though....easy cause it's a circle and has screw on to hide the cuts.

And then I just get wire with the amount of pins for the aviation connector...like...

 

AbjectMaelstroM

Valuable Member
View Badges
Joined
Jul 21, 2019
Messages
1,527
Reaction score
1,811
Location
RVA
Rating - 100%
1   0   0

AbjectMaelstroM

Valuable Member
View Badges
Joined
Jul 21, 2019
Messages
1,527
Reaction score
1,811
Location
RVA
Rating - 100%
1   0   0
I use a small rotary tool with a mini saw blade. Or used to because it never looked pretty unless the connector had a flange to hide the edges.

I like these now though....easy cause it's a circle and has screw on to hide the cuts.

And then I just get wire with the amount of pins for the aviation connector...like...



Yeah I came across the aviation connectors after I had already started cutting all the outlets. But they have a vast assortment of pins, so if/when I redo my box, lit will probably be mostly the aviation connectors.

Easy to drill for, wire, and not bad on the wallet.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hi Ranjib,

I have been playing with an RC Servo motor (with PCA9685) to see if I can use that to move a camera, rotate and tilt:
20190819_235810.jpg
I have seen a project with a Pi and 16 RC servos attached to a PCA9685.

I used the lights section of Reef-pi to be able to rotate the Servo, using the fixed profile changing the PWM up and down it worked for "only" 45degrees rotation.
I am planning to make a cam that I can put into the water with a glass dome upside down, so you can look around inside the aquarium:
1566307856085.png


Is it possible to add some software to be able to control servos like the one on the picture?

In the future, I am thinking to make a feeder with servos to give dry food to my fish.

And maybe there are other possibilities like mechanical switching or opening valves.

Hi, all you have some other suggestions to use an RC servo??
In 3.0 we are introducing an ability to define custom pwm profile . That in conjunction with a macro or timer should be enough assuming we can solve the Servo /gear specific thing in the hardware/circuit. If not we may have to do some servo specific in software as well. Let me read up on servo and stepper control and I’ll get back to this next week. No promise I’ll have something in 3.0, but I think it should mostly work

Is there anything specific you are looking for ? Or just want to resolve the 45 degree issue ?
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Meanwhile,
Tank is chugging along. I have to prune the green slimer monthly.
9D752264-845D-45C7-B84B-6CBE9C6B0B56.jpeg


Different corals are invading their neighbors at different spots in the tank. Past three years taught me kinda project their future growth and I can somewhat anticipate one of the possible fates of every small place in the tank .
54000201-5E97-4C04-BDC7-EFC57B2E95F4.jpeg


Depending upon which coral overgrows whom the landscape will change
50A4A3DF-9452-42F8-9C3C-83BBF53BEFE2.jpeg

And the books and crannies provide tactical advantage to one or the other coral :)

BE9A1F99-9E7C-469A-95EC-158700364FC8.jpeg

I’m happy to see the red dragon growth spurt to continue :) . I’m there to assist and resist any green slimer or rainbow montipora encroachment . Any overnight sudden growth on that area will be dealt with bone cutter and chisel swiftly.
 

BenB

Active Member
View Badges
Joined
Jun 11, 2019
Messages
100
Reaction score
152
Rating - 0%
0   0   0
In 3.0 we are introducing an ability to define custom pwm profile . That in conjunction with a macro or timer should be enough assuming we can solve the Servo /gear specific thing in the hardware/circuit. If not we may have to do some servo specific in software as well. Let me read up on servo and stepper control and I’ll get back to this next week. No promise I’ll have something in 3.0, but I think it should mostly work

Is there anything specific you are looking for? Or just want to resolve the 45 degree issue ?

That sounds great!! I will upgrade to 3.0 and try out the possibilities with the custom PWM profile and show the results. Probably it will take me some time, family first :)

It will be nice if you can manually (with a moving bar, or left and right and up and down buttons) move the camera to look around (without the need to press save or confirm). And if it is possible using the macro to go to a specific camera position and take a daily picture.
 

BenB

Active Member
View Badges
Joined
Jun 11, 2019
Messages
100
Reaction score
152
Rating - 0%
0   0   0
Or maybe add the moving bar or left and right buttons in the camera tab.
 

Schreiber

Leviathan
View Badges
Joined
Jun 28, 2016
Messages
468
Reaction score
593
Location
Knoxville
Rating - 0%
0   0   0
Pin 18 not working? Thats pwm pin 0 right? check your dtoverlay configuration (/boot/config.txt) and then check the content of /sys/class/pwm/pwmchip0/pwm0/duty_cycle and /sys/class/pwm/pwmchip0/pwm0/period . Report back those details,

I actually started over with a fresh pi to eliminate all the variables. I got ~2.4V out of GPIO 18. So, I copied the exact configuration over to my installed pi & still 0V straight from the pin, so it wasn't the circuit.

I also double checked the config file & I definitely had the dtoverlay configuration set correctly. I didn't check the contents of the other 2 things you called out, since I hadn't seen this message until now. I simply re-formatted & started fresh. It seems to be in working order now!
 

Mejia.j

Active Member
View Badges
Joined
Sep 25, 2018
Messages
141
Reaction score
34
Location
hackensack
Rating - 0%
0   0   0
I recently got a Raspberry pi 3, i downloaded reefpi. It says is active but the browser doesn’t open. Or i can not find it anywhere to open it. Any ideas?
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
I recently got a Raspberry pi 3, i downloaded reefpi. It says is active but the browser doesn’t open. Or i can not find it anywhere to open it. Any ideas?
It may be helpful to look at what IP address its getting on your local network. You may be able to find this on your router web ui, or perhaps an app to see what address it is getting.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
I use google wifi and it has a nice mobile app that lets me see which devices are connected, there IP etc. I also get to open port and access individual reef-pi dashboards directly if needed.
 
Last edited:

Rock solid aquascape: Does the weight of the rocks in your aquascape matter?

  • The weight of the rocks is a key factor.

    Votes: 12 9.2%
  • The weight of the rocks is one of many factors.

    Votes: 45 34.4%
  • The weight of the rocks is a minor factor.

    Votes: 41 31.3%
  • The weight of the rocks is not a factor.

    Votes: 31 23.7%
  • Other.

    Votes: 2 1.5%
Back
Top