Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Nixu's Aquarium setup (Work in progres)
#52
(01-24-2017, 05:59 PM)Rob F Wrote: Wow you went all out Niksu, good job. I have one recommendation, maybe put the "power now" on the home page under the date/time then you can always see what is currently being drawn.

This took 2 analog pins, the Gen2 controller board only has one analog pin left (A11) so Niksu tried the DAC1 and DAC2 pins, thankfully they worked. So it's not possible to do much more as is,  but I've seen some boards that connect to I2C and give analog pins. I'll find it and link later, same thing as Niksu linked but on a board already. The Gen1 controller has more pins remaining so its only a matter of adding the code, adding the data to the graphs on the Gen1 would be a challenge though, when I'm done graphs on Gen2 it should be much easier to add new ones.

If anyone can figure out the best way for all 8 outlets in a power bar I can easily make a board that could mount in the power bar, just not so easy for me to figure out the hardware...

Oh crap :D i know that i forgot something, i forgot to inform you Rob after i test those inputs. DAC not work. I tested it with that current code i have, only changing port numbers to dac. And get nothing :/ It may work, but it needs a code changing. Example i don,t know is they 12 or 10 bits input? (it effects how many steps i can read 1024 vs 4096 and therefore middle point etc 512 or 2048) Also i don't know which voltage they are specs. Example analog input reads 3.3 volts, and half that to middle point is 1.65. What i use for dac ? 

So i use analog pins. A0 (same that analog ph circuit uses, but i plan to buy atlas ezo i2c ph circuit so it don't mind of me) And A11 . And i ended up to soldering wires directly to arduinos back (i dont mind that also :D ) because i noticed that there is some resistors etc on the way to Sensor 1 port (A0) to the arduino pin itselff. So it effects readings. (i calculate those circuit values assuming that there is "direct" line to arduino pins (0 ohms, like when i connect them directly it arduino) And i have also bend or cut (i cut, because i don't ever use those anything else)  those A0 and A11 "leg" to board, so it dont't affect readings. Also i take 3.3v to those "spare" headers,

Display side are diffrent story, there are lot of unused analog pins right to way available and they are without any resistors or anything else that affects. So it possible to use those also, but then your display goes 4 more wire (vcc (3.3v), ground, and 2 analog wire to measuring). I am mounted my display to cabinet door, so that don't mind me at all :D But i all ready attached 4 pin DIN connector to controller box so, i use that arduino to take readings.

And one solution is those i2c analog input circuits, but i don't have any, so i cannot test them. And because this only need two (if you don't want to measure each outlet separate. So you can use this cheap chip or similars.
http://www.ebay.com/itm/For-Arduino-ADS1...SwdqRXiKCu it is only US $2.51.

"it can run from 2V to 5V power/logic,
can measure a large range of signals and its super easy to use.

The address can be changed to one of four options (see the datasheet table 5)
so you can have up to 4 ADS1115's connected on a single 2-wire I2C bus for 16 single ended inputs."

So you can put 4 them in chain or something, and it gives you the 16 inputs total :D And you need 9 to measure each 8 outlet separate (17 to 16 outlets)

I am planning to buy couple of those so i can test it out and test that measure each outlet separate.

So without using display arduinos analog inputs, or using controller arduino inputs (but then you loose example analog ph circuit ) there is no way to get it working, with current boards. Not without buying those i2c analog input chips, which may be the smartest move :)

"when I'm done graphs on Gen2 it should be much easier to add new ones."
Yep, because of that i wait when you get it done, so it easy to add new ones without messing up anything you are going to add. If i try to do it now, it is not good, because i know we do things diffrently :D and then my addon is quite unusable :D So it is best to wait and see how you are going to do everything, and then look and add those new values just the way you planned to do, so there are no differences  about that :)


Edit. I ordered right now couple of those i2c analog input chips there. http://www.banggood.com/ADS1015-12-Bit-P...10605.html

These ADS1015 are really easy to wiring, connect and setup. I i have to add only couple of lines more code and thats it (and define right input off course, but it takes only minutes :D)

https://learn.adafruit.com/adafruit-4-ch...and-wiring


They will be there about 7 days (i took faster delivery) so after that i can test it out, also i have to go buy more those ct,s and parts so i can test measuring each outlet separate.

"I have one recommendation, maybe put the "power now" on the home page under the date/time then you can always see what is currently being drawn." 
Yeah never thought of that, it is very simple to add, i do it now :D 

Edit2. 

And now it is there :) off course it need tweaking, and choose colors etc, but i do it later. Now i have to go to work :D 

I have on only internal filter (8w) so rest is what arduinos and display uses.

[Image: 14324140.t.jpg]
Reply to top


Messages In This Thread
RE: Nixu's Aquarium setup (Work in progres) - by niksunen - 01-24-2017, 08:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Finish work build in ... Martin 14 17,456 03-03-2016, 10:27 AM
Last Post: rott
Big Grin Robo-tank best controller aquarium majid.gh 2 6,303 09-29-2015, 05:42 PM
Last Post: majid.gh

Forum Jump:

Current time: 05-01-2024, 02:17 PM