reef-pi :: An open source Raspberry Pi based reef tank controller

Discussion in 'Do It Yourself (DIY)' started by Ranjib, Feb 10, 2017.

  1. Ranjib

    Ranjib Well-Known Member R2R Supporter Build Thread Contributor

    Joined:
    Apr 16, 2016
    Messages:
    1,241
    Likes Received:
    1,862
    The admin buttons (reload, reboot etc) were broken due to some code changes . I have fixed them today afternoon https://github.com/reef-pi/reef-pi/pull/243
    Setting changes will require a reload , that’s by design .
     
    Cary and njtiger aquariums like this.

  2. Ranjib

    Ranjib Well-Known Member R2R Supporter Build Thread Contributor

    Joined:
    Apr 16, 2016
    Messages:
    1,241
    Likes Received:
    1,862
    If you restart reef-pi by command line ( systemctl restart reef-pi.service) it should fix the problem
     
    Cary and njtiger aquariums like this.
  3. Ryan115

    Ryan115 Well-Known Member

    Joined:
    Dec 28, 2010
    Messages:
    258
    Likes Received:
    506
    Location:
    Mississippi
    @Ranjib by any chance are internal pull up/down resistors used on ATO (GPIO17)?
    I am wanting to set this up with a floatswitch that I have now.
    My circuit is below, I dont think I need anything other than a current limiting resistor with the switch, and then possibly the pull down.
    Correct?
    Thanks.
    reef-pi_ATO_schem.jpg
     
    Cary likes this.
  4. njtiger aquariums

    njtiger aquariums Well-Known Member Build Thread Contributor NJRC Member

    Joined:
    Oct 9, 2015
    Messages:
    390
    Likes Received:
    362
    Location:
    NJ
    My understanding of the internal pull up/down is the pins have them. I believe pin 17 have it. I wired my float switches up using just two gpio and no resistors. I just use the internal pull up/down
     
    Cary and marspeed like this.
  5. Ryan115

    Ryan115 Well-Known Member

    Joined:
    Dec 28, 2010
    Messages:
    258
    Likes Received:
    506
    Location:
    Mississippi
    I saw that they have them, but I didn't know whether you had to activate them in code, or whether the activated by default when set to digital read.
    So, you didn't need current limiting resistor either? Actually, now that I think about it, that may only be needed when sourcing output from the pin to GND...
     
    Cary and njtiger aquariums like this.
  6. njtiger aquariums

    njtiger aquariums Well-Known Member Build Thread Contributor NJRC Member

    Joined:
    Oct 9, 2015
    Messages:
    390
    Likes Received:
    362
    Location:
    NJ
    I had to code mine to turn those options on. I have two floats switch (with I took off my JBJ ATO).
    Please note I am not using Reef-Pi so not sure what needs to be done on that system

    My program does the following:
    Set pin 5 as a out
    Set pin 6 to in and pud_down [GPIO.setup(6, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)]
    Set pin 5 to high

    I have another program (different pins) for my reservoir float set up the same.

    The program reads every second to see if pin 6 has input

    Now I don't have it running any pumps right now. Just changes icons on my dashboard to alert me the status. Once I get some time and spare funding (saving for a house) I hope to get a 8 channel relay (running 4 now) so I can get a pump on here for the ATO.
     
    Cary and Ranjib like this.
  7. Ranjib

    Ranjib Well-Known Member R2R Supporter Build Thread Contributor

    Joined:
    Apr 16, 2016
    Messages:
    1,241
    Likes Received:
    1,862
    @Ryan115 reef-pi code does not explicitly sets the pull down/pull up parameters, since it is generic, and not aware of specific use cases, also the underlying library yet to support pull up/down (should not be hard to implement though).
    I would always recommend using external pull up/down resistors. In fact I'll recommend adding resistors to almost all external circuits that are connected to Pi.
    In your case, I would go with a 220 ohm resistor in between the 3.3 v pin and float switch, and a 10K between GND and float switch (R2) in your schematics. I am not sure if you need the R1/10K resistor.
     
    Cary and njtiger aquariums like this.
  8. Ranjib

    Ranjib Well-Known Member R2R Supporter Build Thread Contributor

    Joined:
    Apr 16, 2016
    Messages:
    1,241
    Likes Received:
    1,862
    Yeah, we have to activate them in code.
     
    Cary and njtiger aquariums like this.
  9. Ryan115

    Ryan115 Well-Known Member

    Joined:
    Dec 28, 2010
    Messages:
    258
    Likes Received:
    506
    Location:
    Mississippi
    Fixed. Thank you.
    reef-pi_ATO_schem.jpg
     
    Cary, njtiger aquariums and Ranjib like this.
  10. Ranjib

    Ranjib Well-Known Member R2R Supporter Build Thread Contributor

    Joined:
    Apr 16, 2016
    Messages:
    1,241
    Likes Received:
    1,862
    Cary and njtiger aquariums like this.
  11. Ranjib

    Ranjib Well-Known Member R2R Supporter Build Thread Contributor

    Joined:
    Apr 16, 2016
    Messages:
    1,241
    Likes Received:
    1,862
    Time to share some reef-pi powered tanks :)

    My biocube 29g,
    52AFA430-297F-43FF-87E8-83445219FE73.jpeg

    Fts
    0CA52A71-4201-4276-8568-8D377A7C6655.jpeg


    My zoa garden, a 3 gallon pico
    476DC903-CF45-4AA3-9EE3-4EB4005F5AAC.jpeg
    Macro
    3E706F92-8610-4E65-B6B7-9A5D2876D315.jpeg
    4F9FA80B-6004-43BB-89A9-287C562CE719.jpeg 12B2E73D-B5E5-4A53-BF99-348F8352338A.jpeg
    FFB2A377-7457-4FA5-9909-477B40A7C73E.jpeg
    D96DDF10-0556-471C-A35F-10C0CB125E78.jpeg
    A4F4F798-EED1-4ACE-B167-0B58D04C9BF8.jpeg
    7407866B-C5D9-4CD3-8D87-C2A9DE69889A.jpeg
    F47DDE17-F626-41A3-9F44-6319B26852B2.jpeg

    And the 3rd tank, 3.7 g pico
    ABA5FAFA-A3ED-4559-BCDD-11E2AE8B3819.jpeg

    F45D3545-DE7C-4797-A9C2-BBCD9F8B7ED8.jpeg

    226763F3-03AE-40F2-8BEB-3EFAD1A5666A.jpeg

    5E8B05CC-CA36-41FD-A601-754AAACDDF27.jpeg

    67B6A99F-3C64-472B-A9E2-65931559CE55.jpeg
     
  12. marspeed

    marspeed Well-Known Member

    Joined:
    Dec 27, 2016
    Messages:
    75
    Likes Received:
    178
    Location:
    New Jersey
    very nice everything looks happy
     
    njtiger aquariums, Ranjib and Cary like this.
  13. Cary

    Cary Well-Known Member

    Joined:
    Feb 19, 2016
    Messages:
    396
    Likes Received:
    512
    Location:
    Allen, Tx
    Those Vamps are scary. Beautiful tanks.
     
    njtiger aquariums and Ranjib like this.
  14. Somnifac

    Somnifac Well-Known Member Build Thread Contributor

    Joined:
    Oct 6, 2017
    Messages:
    101
    Likes Received:
    290
    Got my 12v power supply and 12v -> 5v buck converter. I'll be prototyping things this week hopefully.

    The big plus of receiving everything is that now I can start designing an enclosure, as I now have measurements of the biggest components to worry about. The power supply itself is quite large.

    I'm also beginning to think that a cooling/exhaust fan in the housing would probably be a good idea. It will contain the Pi, the power supply, and the buck converter; all of which will throw off some pretty good heat.
     
    njtiger aquariums, philshel and Cary like this.
  15. Ryan115

    Ryan115 Well-Known Member

    Joined:
    Dec 28, 2010
    Messages:
    258
    Likes Received:
    506
    Location:
    Mississippi
    Ranjib, I am curious...what frequency are you seeing for the PWM on the scope? My DMM was reading ~540Hz (if I remember correctly).
    If we need a RC filter, might as well dial it in.
     
    njtiger aquariums and Cary like this.
  16. Ranjib

    Ranjib Well-Known Member R2R Supporter Build Thread Contributor

    Joined:
    Apr 16, 2016
    Messages:
    1,241
    Likes Received:
    1,862
    On my way to office now, I'll let you know tonight
     
    Cary and njtiger aquariums like this.
  17. Ranjib

    Ranjib Well-Known Member R2R Supporter Build Thread Contributor

    Joined:
    Apr 16, 2016
    Messages:
    1,241
    Likes Received:
    1,862
    you think so? Pi on its own will not generate that much heat. I am running some performance tests against pi zero and pi 3, and reef-pi is holding up pretty good with around 4 channels of pwm, 12 outlets, temperature sensor, all under less than 15% of cpu and 23 mb of memory.
    I have to say that writing reef-pi in go is paying off :)
     
    Cary and njtiger aquariums like this.
  18. Somnifac

    Somnifac Well-Known Member Build Thread Contributor

    Joined:
    Oct 6, 2017
    Messages:
    101
    Likes Received:
    290
    It's not the Pi really that I'd worry about, it's the 12V power supply and buck converter that I would be concerned with. I assume that any DC power items you're using (5v for the Pi, 12v for the lighting circuit) are external, and thus don't add any heat into the system. Mine will be fully enclosed. There will only be a single point that plugs into the wall, and that will bring 110v into the system to be converted and distributed as needed.
     
    Cary and njtiger aquariums like this.
  19. Somnifac

    Somnifac Well-Known Member Build Thread Contributor

    Joined:
    Oct 6, 2017
    Messages:
    101
    Likes Received:
    290
    @Ranjib

    Question:

    I know it's planned for post 1.0, but when you add support for the Atlas Scientific probes, will we need the Tentacle T3, Tentacle Shield Mini, or Tentacle Shield board? I'm trying to plan my enclosure with future expandability in mind, and want to make sure there is ample space.
     
  20. Ranjib

    Ranjib Well-Known Member R2R Supporter Build Thread Contributor

    Joined:
    Apr 16, 2016
    Messages:
    1,241
    Likes Received:
    1,862
    Plan for the biggest, Tentacle T3. From our prototypes, I think I would personally prefer two independent ph & salinity. But there is likely to be cases where only 1 (ph) or 3 probes (ph, salinity & orp) required. Having space for the largest will be safer for any changes in long run
     
    Cary, Somnifac and njtiger aquariums like this.
Draft saved Draft deleted

Share This Page

Loading...