Arduino and your tank

Discussion in 'Anything DIY related' started by f-fish, Jun 30, 2012.

  1. OP
    f-fish

    f-fish #unspecified

    Joined:
    Jun 27, 2009
    Messages:
    9,294
    Likes Received:
    1,869
    Location:
    JHB - Randburg
    Last edited by a moderator: Oct 1, 2016
  2. Guest




  3. OP
    f-fish

    f-fish #unspecified

    Joined:
    Jun 27, 2009
    Messages:
    9,294
    Likes Received:
    1,869
    Location:
    JHB - Randburg
    Got myself a Pi3 ... seems like I am saving 30-80mA at rest.

    [​IMG]


    One of the things that seem to work way better is the web browser ...
    [​IMG]

    I can even keep a tracking screen open.


    Cpuinfo and kernel stuff still need to be updated to reflect armv8 processor.

    Having Wifi onboard seems to be doing OK for my needs.

    Later Ferdie
     
    Last edited: Mar 2, 2016
  4. OP
    f-fish

    f-fish #unspecified

    Joined:
    Jun 27, 2009
    Messages:
    9,294
    Likes Received:
    1,869
    Location:
    JHB - Randburg
    Got a corporate gift -- little 2200mAh battery thing .. did a full charge overnight, latest patches seems to have increased a bit of powerdraw on the Pi3.

    [​IMG]

    [​IMG]

    Doing a simple crontab to log the last time it was up */5

    Once the screen goes into power down mode - draw drops to 390mA

    I am expecting the voltage to drop off as the battery runs flat - no clue on the actual duration I will get out of the battery, will be interesting to see what it is. Hopping for 90 min will be every pleased if I get more than 2 hours.

    Later Ferdie
     
  5. OP
    f-fish

    f-fish #unspecified

    Joined:
    Jun 27, 2009
    Messages:
    9,294
    Likes Received:
    1,869
    Location:
    JHB - Randburg
    8:25 - 11:45 .. well over 3 hours ... not bad, very please

    Next test can it charge and run at the same time.

    Later Ferdie
     
  6. OP
    f-fish

    f-fish #unspecified

    Joined:
    Jun 27, 2009
    Messages:
    9,294
    Likes Received:
    1,869
    Location:
    JHB - Randburg
    Quick bit of experimentation

    Charge and provide power to the pi3 at the same time - check
    on-off switch - works when in the this mode - check (very nice for this head unit since I do not have a separate USB power switch.)
    No power spikes when I disconnect the charging cable - check

    All in all very very pleased, need to go find a few more of these specific powerbanks - will add them to all my pi and arduino project.

    Later Ferdie
     
  7. OP
    f-fish

    f-fish #unspecified

    Joined:
    Jun 27, 2009
    Messages:
    9,294
    Likes Received:
    1,869
    Location:
    JHB - Randburg
    Having now decided to use Domoticz as the platform for consolidation, see this thread ... I have started to explore what this means in terms of doing things a bit smarter.

    tem101.jpg

    So I am pulling 4 temp sources into the dashboard at the moment - 1 is the fishroom, then yard and 2 external sources weather underground and forecast.io Starting think with winter approaching It might sometimes be easier to vent the room with warm outside air and using some sort of metric from these four sources could be the way to go.

    Keen to see what is more accurate when it comes to weather.

    Capture.jpg

    Later Ferdie

    tem101.jpg

    Capture.jpg
     
  8. OP
    f-fish

    f-fish #unspecified

    Joined:
    Jun 27, 2009
    Messages:
    9,294
    Likes Received:
    1,869
    Location:
    JHB - Randburg
    Been doing a bit of digging, really want some form of power monitoring going on in the fishroom. Now you might now that I have a efergy - plug monitor, but this has no external data feed. You do get some very sexy efergy cloud solutions but they cost a small fortune. I did spot the 433 efergy probe, did a bit more reading and seems like this might be the way to go. First looked at what was needed to add a 433 radio to an arduino project and stumbled onto this bit of git love.

    GitHub - merbanan/rtl_433: Application using librtlsdr to decode the temperature from a wireless temperature sensor (433.92MHz)

    Now I do some ads-b tracking and happen to have a piaware setup that has been rock solid.

    Did a quick update of the rtl-sdr bits with a local compile from rtl-sdr – OsmoSDR

    Then compiled the rtl_433 files ...

    Tested that piaware, pfclient and fr24 still worked - stopped dump1090-mutability ... and checked if I could see my Oregon devices that happen to be the older 433 sensors.

    <snip
    pi@piaware ~/433/rtl_433/build $ rtl_433 -R 12
    Registering protocol "Oregon Scientific Weather Sensor"
    Found 1 device(s):
    0: Generic, RTL2832U, SN:


    Using device 0: Generic RTL2832U
    Found Rafael Micro R820T tuner
    Exact sample rate is: 250000.000414 Hz
    Sample rate set to 250000.
    Bit detection level set to 8000.
    Tuner gain set to Auto.
    Reading samples in async mode...
    Tuned to 433920000 Hz.
    201 bit message received from unrecognized Oregon Scientific v2.1 sensor with device ID xxx.
    Message: 0c e....


    201 bit message received from unrecognized Oregon Scientific v2.1 sensor with device ID xxx.
    Message: 0c e.........


    2016-04-09 22:38:31 : Thermo Hygro RF Clock Sensor RTGN318
    House Code:
    Channel: 1
    Battery: OK
    Temperature: 17.70 C
    Humidity: 37 %
    2016-04-09 22:38:31 : Thermo Hygro RF Clock Sensor RTGN318
    House Code:
    Channel: 1
    Battery: OK
    Temperature: 17.70 C
    Humidity: 37 %
    2016-04-09 22:39:24 : Thermo Hygro RF Clock Sensor RTGN318
    House Code:
    Channel: 1
    Battery: OK
    Temperature: 17.60 C
    Humidity: 37 %


    /snip>

    Now I can not run both dump1090 and rtl_443 at the same time, but till I figure out how cool this really is I might do a stop start on dump while trying to put this data into the dashboard.

    Sure beats having to hack something on the arduino.

    Later Ferdie
     
    Last edited: Apr 9, 2016
  9. OP
    f-fish

    f-fish #unspecified

    Joined:
    Jun 27, 2009
    Messages:
    9,294
    Likes Received:
    1,869
    Location:
    JHB - Randburg
    Added two Oregon sensors .. 433Mhz
    Resolution on these are way higher than the other yard and Fish room sensors I have running.

    temp.jpg

    Later Ferdie

    temp.jpg
     
    Last edited: Apr 10, 2016
  10. OP
    f-fish

    f-fish #unspecified

    Joined:
    Jun 27, 2009
    Messages:
    9,294
    Likes Received:
    1,869
    Location:
    JHB - Randburg
    Quick overview of what data comes from where.

    [​IMG]

    Later Ferdie
     
  11. OP
    f-fish

    f-fish #unspecified

    Joined:
    Jun 27, 2009
    Messages:
    9,294
    Likes Received:
    1,869
    Location:
    JHB - Randburg
    Added an E2 Classic efergy to the mix ... a bit of law of averages for total consumed power, also running at a sample point of 1 every 5 min.

    power2.JPG

    The spike is me making some coffee.

    power1.jpg

    Later Ferdie

    power2.JPG

    power1.jpg
     
  12. OP
    f-fish

    f-fish #unspecified

    Joined:
    Jun 27, 2009
    Messages:
    9,294
    Likes Received:
    1,869
    Location:
    JHB - Randburg
    Got some new sensors today,

    PIR, lum/lux light sensor and barometric pressure

    Also first time user of a pi-blox, actually a very nice case, using it with an old pi2.

    [​IMG]

    No clue what I am building, but I sure do want it reporting back to Domoticz.

    Later Ferdie
     
  13. OP
    f-fish

    f-fish #unspecified

    Joined:
    Jun 27, 2009
    Messages:
    9,294
    Likes Received:
    1,869
    Location:
    JHB - Randburg
    Cause we can .. I decided to give the custom baked jessie a spin.

    jessie.JPG

    But first we patch.


    Later Ferdie

    jessie.JPG
     
  14. OP
    f-fish

    f-fish #unspecified

    Joined:
    Jun 27, 2009
    Messages:
    9,294
    Likes Received:
    1,869
    Location:
    JHB - Randburg
    Well that was rather painless, hooked up the pi-yellow as a slave and just did the monitoring of the internal sensors.

    [​IMG]

    Domoticz is so light on resource ... real pleasure.

    Later Ferdie
     
  15. OP
    f-fish

    f-fish #unspecified

    Joined:
    Jun 27, 2009
    Messages:
    9,294
    Likes Received:
    1,869
    Location:
    JHB - Randburg
    Getting the lux sensor to work was a bit of a pain - but it is in.

    lux.jpg

    Getting the BMP sensor was very simple indeed.

    bmp.jpg

    I wired a few GPIO's and 5 volt out also - will be using them for on/off switches and sensors


    [​IMG]


    Google image search gave me a nice pin layout.

    [​IMG]

    So on the breadboard left to right

    breadboard - > RPI
    1 -> 6 (Ground)
    2 -> 1 (3V3)
    3 -> 3 (SDA)
    4 -> 5 (SCL)
    5 -> 7 (GPIO4) - N/C
    6 -> 9 (GND) - N/C
    7 -> 11 (GPIO17) - N/C
    8 -> 13 (GPIO27) - N/C
    9 - > 15 (GPIO22) - N/C
    10 -> 2 (5V) - N/C


    Later Ferdie

    lux.jpg

    bmp.jpg
     
  16. OP
    f-fish

    f-fish #unspecified

    Joined:
    Jun 27, 2009
    Messages:
    9,294
    Likes Received:
    1,869
    Location:
    JHB - Randburg
    So I now have a standard way of testing LUX for lights ... black bucket that has the light source at 22.5cm from the sensor. Sensor on the RPi2 so that gives me lots of options.

    [​IMG]

    Yes I run it form a battery bank to reduce interference, and make it portable.

    Some results from testing the tube and LED I have lying around.

    Baseline - a tornado 20 Watt CFL

    [​IMG]

    Some T5 testing

    [​IMG][​IMG][​IMG]

    [​IMG][​IMG]

    Now some LED's

    [​IMG][​IMG][​IMG]

    That is it for tonight.

    Later Ferdie
     
  17. PsyXe

    PsyXe

    Joined:
    May 16, 2012
    Messages:
    891
    Likes Received:
    12
    Location:
    PTA
    Man this is cool... makes me want to learn how to do it
     
  18. OP
    f-fish

    f-fish #unspecified

    Joined:
    Jun 27, 2009
    Messages:
    9,294
    Likes Received:
    1,869
    Location:
    JHB - Randburg
    Lol, and I wish I could draw ... but that is not meant to be, you learning to do this for sure you can - it is actually about visualising blocks and them making them snap together.

    Later Ferdie
     
  19. OP
    f-fish

    f-fish #unspecified

    Joined:
    Jun 27, 2009
    Messages:
    9,294
    Likes Received:
    1,869
    Location:
    JHB - Randburg
    Current plans ... red block is still a thought process more than anything else.

    F-fish Domotics.jpg

    Rest seems to be working fine.

    Later Ferdie

    F-fish Domotics.jpg
     
  20. OP
    f-fish

    f-fish #unspecified

    Joined:
    Jun 27, 2009
    Messages:
    9,294
    Likes Received:
    1,869
    Location:
    JHB - Randburg
    Had a good snooze ... woke-up realised I was not all that factual and sometimes just plain wrong. Updated and cleaned the plan. F-fish Domotics20042016.jpg Later Ferdie

    F-fish Domotics20042016.jpg
     
  21. OP
    f-fish

    f-fish #unspecified

    Joined:
    Jun 27, 2009
    Messages:
    9,294
    Likes Received:
    1,869
    Location:
    JHB - Randburg
    Been playing with an ESP dev board, re-used the sensors from yellow pi ...

    Can do some semi cool lux measurements under water, but do need to keep an eye on loosing the wifi connectivity.


    [​IMG]

    [​IMG]
    [​IMG]

    Later Ferdie
     

Recent Posts

Loading...
Similar Threads - Arduino tank Forum Date
Arduino Controlled Tank Members Systems Jul 13, 2012
Arduino controll General Discussions Oct 18, 2014
Fish tank movers General Discussions Monday at 4:25 PM
My tank since no one wanted it! Full tank shots Sunday at 5:50 PM
Tank for growing plants. Beginner Discussions Jan 20, 2020
Freebie: Tank trim Wanted/Swop/Freebies Jan 15, 2020
Where it all began - Show your first tank General Fish Discussions Jan 12, 2020

Share This Page