Robo-Tank DIY Aquarium Controller Forum
PWM setup help - Printable Version

+- Robo-Tank DIY Aquarium Controller Forum (https://www.robo-tank.ca/forum)
+-- Forum: Robo-Tank (https://www.robo-tank.ca/forum/forum-1.html)
+--- Forum: Reef-pi Software Questions (https://www.robo-tank.ca/forum/forum-5.html)
+--- Thread: PWM setup help (/thread-1242.html)



PWM setup help - Supernova - 09-24-2021

Hey guys and gals. New owner of a Robo-tank here and need a bit of assistance. I am having a little trouble declaring pwm jacks on the Reef-Pi. Under connections tab when trying to declare Jacks as outputs. I get unknown pwm port error from channel 2. channel 1 is working even though I have not tested the output. What is the pin-out of the PWM ports on the Robo-tank?

Lets say I want to declare PWM1 as channel 1 of the robo tank hardware PWM2 as channel 2 etcc.


RE: PWM setup help - Rob F - 09-24-2021

Hi Supernova, not sure what pins you are trying but the two Pi PWM pins aren't used for PWM. All PWM driven ports are from the PCA9685, it controls the 8 LED channels, the 7 DC ports and the feeder port.

For the Jack connectors you would use the PCA9685 driver and then the pin number for the port you want.

Here's a script you can run, it'll add the drivers and all the connectors for each port. Then if you want you can move some DC ports setup as Outlets to Jacks if you want to use them for dosing or whatever.

https://docs.google.com/document/d/1t9majBpGlqKacDjkyEZ1HQNWsTRo3woZ/edit#heading=h.tl5qkcuznso3

In this manual if you go to each port type there's a table showing which driver and pin number control it.

https://docs.google.com/document/d/1Vko1S54mZg7VzqSfKCu_LfAQ853S_Ebr/edit

And here's some other manuals if you haven't seen them.

https://www.robo-tank.ca/reef-pi_Related_User_Manuals

If you're still stuck or need something else let me know.


RE: PWM setup help - Supernova - 09-26-2021

(09-24-2021, 08:57 AM)Rob F Wrote: Hi Supernova, not sure what pins you are trying but the two Pi PWM pins aren't used for PWM. All PWM driven ports are from the PCA9685, it controls the 8 LED channels, the 7 DC ports and the feeder port.

For the Jack connectors you would use the PCA9685 driver and then the pin number for the port you want.

Here's a script you can run, it'll add the drivers and all the connectors for each port. Then if you want you can move some DC ports setup as Outlets to Jacks if you want to use them for dosing or whatever.

https://docs.google.com/document/d/1t9majBpGlqKacDjkyEZ1HQNWsTRo3woZ/edit#heading=h.tl5qkcuznso3

In this manual if you go to each port type there's a table showing which driver and pin number control it.

https://docs.google.com/document/d/1Vko1S54mZg7VzqSfKCu_LfAQ853S_Ebr/edit

And here's some other manuals if you haven't seen them.

https://www.robo-tank.ca/reef-pi_Related_User_Manuals

If you're still stuck or need something else let me know.

Thanks Rob, I had to re-load the PCA9685 driver. Got them working. 



RE: PWM setup help - Rob F - 09-26-2021

Great, glad they are working now.