Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I’ll take a look , sorry for the late responseSorry guys but I cannot figure this out myself, I am too inexperienced with the operation of the Raspberry Pi and Reef Pi
Could you please spare a moment to take a look at my thread?
https://www.reef2reef.com/threads/automatic-chilled-feeding-doser-reef-pi-raspberry-pi.545972/
I am trying to configure the macro but cannot crack it. I am so close to finishing this project! :(
Thank you
Scott
Ok wiring up my pwm to lights...my pca9685 puts out 1.577 khz and wont change, did i miss something in configuration...
I have it set to 200hz, but its definitely not putting that out. It will only put out 1577hz and wont change, and thats too fast to dim the lights with the modules im using...i need to be abke to set it lower than 1khz...Look on the configuration page, should be a setting for the Pi pwm and the pca9685 frequency. :)
Everything else works...set light to 0 it goes off, set to anything else it comes on...because 1.577khz is too fast for my mosfet modulesI have it set to 200hz, but its definitely not putting that out. It will only put out 1577hz and wont change, and thats too fast to dim the lights with the modules im using...i need to be abke to set it lower than 1khz...
Testing voltage at the pca pins im getting a voltage change corresponding with the slider setting...99 percent =3.27v, 50 perxent=1.64v etc...but my meter reads 1.577 khz and im sure its accurate...
Theres not something needed in config txt for the pca is there?
I see it on the i2c bus at address 40 and 70
I have deleted all lights, associated jacks and lighting and disabled pca9685, rebooted and added back in and get the same results
Do i need to start over maybe and delete reef pi and redo my card from scratch
Nope.. this should work , if not its a bug. Let me test it outI have it set to 200hz, but its definitely not putting that out. It will only put out 1577hz and wont change, and thats too fast to dim the lights with the modules im using...i need to be abke to set it lower than 1khz...
Testing voltage at the pca pins im getting a voltage change corresponding with the slider setting...99 percent =3.27v, 50 perxent=1.64v etc...but my meter reads 1.577 khz and im sure its accurate...
Theres not something needed in config txt for the pca is there?
I see it on the i2c bus at address 40 and 70
I have deleted all lights, associated jacks and lighting and disabled pca9685, rebooted and added back in and get the same results
Do i need to start over maybe and delete reef pi and redo my card from scratch
Ive tried everything...but can not get frwquency to lower...Nope.. this should work , if not its a bug. Let me test it out
I am really tempted to test this also but my fluke scope is sitting at work. Interesting find!Has anyone actually tested frequencies put out by pwm in reef pi.
I found some weird results.
On mine, the pca9685 only puts out 1577 hz...cant get it to change no matter what i put in the pca9685 frequency box.
So tried pi pwm and here is what i got with a good fluke. The setting is what in entered in the box on config page, and the reading I got in hz.
Setting 25=400hz
Setting 50=200hz
Setting 60=166hz
Setting 75=150 hz
Setting 100=100hz
Setting 150=66hz
Setting 200=50hz
Methinks theres a bug somewhere
I had this hooked up to a light when testing, my fish felt like they were in a disco...lol
Has anyone actually tested frequencies put out by pwm in reef pi.
I found some weird results.
On mine, the pca9685 only puts out 1577 hz...cant get it to change no matter what i put in the pca9685 frequency box.
So tried pi pwm and here is what i got with a good fluke. The setting is what in entered in the box on config page, and the reading I got in hz.
Setting 25=400hz
Setting 50=200hz
Setting 60=166hz
Setting 75=150 hz
Setting 100=100hz
Setting 150=66hz
Setting 200=50hz
Methinks theres a bug somewhere
I had this hooked up to a light when testing, my fish felt like they were in a disco...lol
I dont have a scope, but a fluke 179, which does ac and dc frequency.I am really tempted to test this also but my fluke scope is sitting at work. Interesting find!
Yes 2.2 lol when i set pi pwm to 400, it was 25 hz, my lights were like a strobe, was testing on a blue channel, thought strippers were gonna walk in...lolThat might explain why i had so much fun when I was playing with the rpi pwm, my meter wont give me the frequency like its supposed to, but that explains exactly what i saw, the higher the frequency gave me the strobe , I settle on 100Hz and works pretty well for me but glad to know why I saw what I saw.
Are you running version 2.2?
Yes 2.2 lol when i set pi pwm to 400, it was 25 hz, my lights were like a strobe, was testing on a blue channel, thought strippers were gonna walk in...lol
I temporarily dowmgraded to 2.0 but that didnt fix the pca9685, didnt test the pi pwm on 2.0
Has anyone actually tested frequencies put out by pwm in reef pi.
I found some weird results.
On mine, the pca9685 only puts out 1577 hz...cant get it to change no matter what i put in the pca9685 frequency box.
So tried pi pwm and here is what i got with a good fluke. The setting is what in entered in the box on config page, and the reading I got in hz.
Setting 25=400hz
Setting 50=200hz
Setting 60=166hz
Setting 75=122 hz
Setting 100=100hz
Setting 150=66hz
Setting 200=50hz
Methinks theres a bug somewhere
I had this hooked up to a light when testing, my fish felt like they were in a disco...lol
All of this explains some strange behavior when I was prototyping my 0-10VDC output via the pi PWM pins. If there is still confusion tomorrow I will get measurements for frequency via my pi 3B+ and post those up with reef-pi 2.2.On the pi pwm results...found a curious formula:
10,000 / pi pwm setting=actual output hz
Works out exactly with what i tested.
Wish I could get the pca9685 but that defaulted to 1.5k no matter what I entered in the pca pwm box
Has anyone actually tested frequencies put out by pwm in reef pi.
I found some weird results.
On mine, the pca9685 only puts out 1577 hz...cant get it to change no matter what i put in the pca9685 frequency box.
So tried pi pwm and here is what i got with a good fluke. The setting is what in entered in the box on config page, and the reading I got in hz.
Setting 25=400hz
Setting 50=200hz
Setting 60=166hz
Setting 75=150 hz
Setting 100=100hz
Setting 150=66hz
Setting 200=50hz
Methinks theres a bug somewhere
I had this hooked up to a light when testing, my fish felt like they were in a disco...lol
And looking at the pca9685 driver for reef pi, seems it defaults to 1500, if it gets a 0 it makes the value 1500, if it doesnt get a value it makes it 1500, so somehow i think the value entered in the box isnt going to the driver correctly.
Id rather have the default a reasonable value, like 200...lol the adafruit board goes 1600 MAX anyways. Coding isnt in my skillset, but good troubleshooting is!
Thanks,The PCA9685 has a limit 1526Hz to the PWM output using the onboard clock. If you feed it 50MHz on the clock pin you can double that to 3052Hz. I find both too slow for all cases especially if you have low duty cycle percents as you’ll get “nice” banding on some cameras.
At boot the PCA9685 is 200Hz (strobe city).
As for the driver let me confirm the settings value is making it all the way through.