SigKSens on D1 Mini with ADS1115 for power monitoring - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1) +--- Forum: How do I...? (https://forum.openmarine.net/forumdisplay.php?fid=3) +--- Thread: SigKSens on D1 Mini with ADS1115 for power monitoring (/showthread.php?tid=2277) |
SigKSens on D1 Mini with ADS1115 for power monitoring - Ranur - 2020-01-27 Need help here. I have an D1 Mini which I previously have run I2C connection to a MPU 9250 on and it have worked flawless. Now I want to change it and use it with a ADS 1115 to monitor my batteries instead, but I can not get it to work. I have changed //#define ENABLE_MPU for #define ENABLE_ADS1115 in config.h, and I2C is of course enabled. When I look at the serial monitor i see "Scanning for i2c Sensors..." but when I look for it through my browser in <IP adress>/getSensorinfo, I get nothing. When I try to set <IP adress>/setSensorAttr?address=0x48&attrName=diff0_1&path=vessels.electrical.batteries.voltage I get the error message: { "success": false } I plan to hook up a Hall sensor (https://www.ebay.co.uk/itm/ACS758LCB-050B-PFF-T-Module-de-capteur-de-courant-lineaire-a-effet-Hall-1636Z/293091956413) and a 0-25V sensor (https://www.ebay.co.uk/itm/222848285280) to monitor my current (pun intended...) battery status by sending data over signalK - possibly by tweaking it in NodeRed - but first I have to get this damned thing to work! ;-) RE: SignKSens on D1 Mini with ADS115 for power monitoring - abarrow - 2020-01-27 I can't help on SigKSens, but how much current are you expecting? That Hall Sensor seems a little small for a yacht battery system. I would think you want something like 100 amps, depending on your alternator and your engine starting current. RE: SignKSens on D1 Mini with ADS115 for power monitoring - Ranur - 2020-01-28 (2020-01-27, 08:54 PM)abarrow Wrote: I can't help on SigKSens, but how much current are you expecting? That Hall Sensor seems a little small for a yacht battery system. I would think you want something like 100 amps, depending on your alternator and your engine starting current. Depends on your setup right? I have a 30 foot racer without windlass, water heater, electrical water pumps etc, so it is basically lights, autopilot, and instruments. I believe a 50 amp is sufficient. SignKSens on D1 Mini with ADS1115 for power monitoring - tkurki - 2020-01-28 Engine cranking, bow thruster and alternator going full blast into an empty battery are usually the top currents, not various equipment onboard. Sent from my iPhone using Tapatalk RE: SignKSens on D1 Mini with ADS1115 for power monitoring - Ranur - 2020-01-28 (2020-01-28, 12:05 PM)tkurki Wrote: Engine cranking, bow thruster and alternator going full blast into an empty battery are usually the top currents, not various equipment onboard. I want to use the current sensor to see how much power I draw from my house batteries, and two voltage sensors for house- and start batteries. Tkurki - do you have an idea why I can't see the ADS on my SigKSens based D1 Mini? RE: SignKSens on D1 Mini with ADS1115 for power monitoring - PaddyB - 2020-01-28 If you have a battery monitor then the INA219 current sensor can be quite accurate piggy backed on top of the BMS shunt to monitor current in/out of the battery bank. . Also, JLCPCB.com do quite a few sensors now as surface mount components, get them to solder a complete board up with sensors attached probably cheaper than buying the individual senors off ebay. RE: SignKSens on D1 Mini with ADS1115 for power monitoring - Ranur - 2020-01-28 (2020-01-28, 01:49 PM)PaddyB Wrote: If you have a battery monitor then the INA219 current sensor can be quite accurate piggy backed on top of the BMS shunt to monitor current in/out of the battery bank. . Also, JLCPCB.com do quite a few sensors now as surface mount components, get them to solder a complete board up with sensors attached probably cheaper than buying the individual senors off ebay. Yup - I've also read up on the INA219. The sweet thing with the setup I am planning is the fact that (If I get it to work) can avoid the shunt altogether. That suits my limited space well. So I am r e a l l y eager to get the ADS to talk to my D1 Mini and send data SignalKSens! :-D SignKSens on D1 Mini with ADS1115 for power monitoring - tkurki - 2020-01-28 (2020-01-28, 12:21 PM)Ranur Wrote: [quote='tkurki' pid='12105' dateline='1580209555'] Bad wiring, a dead ads, dead pins on the D1? Sent from my iPhone using Tapatalk RE: SignKSens on D1 Mini with ADS1115 for power monitoring - holgerw - 2020-02-18 Hello Ranur, just found your Thread. Are you shure the ADS1115 is set to ADDR 0x48 ? It should be recognized in the Serial Debug Stream just after first booting. If not, it has an ADDR Line, set this to GND. Look here for the Addresses: https://www.ti.com/lit/an/sbaa408/sbaa408.pdf This PIN has also funny Addressmodes where you can set it to use one of 4 Adresses with only 1 BIT ! But the SigKSens software wants it to be on 0x48. Good Luckj Holger RE: SignKSens on D1 Mini with ADS1115 for power monitoring - Ranur - 2020-02-24 Hi Holger, Had missed your answer! :-o I have had some other boating stuff to tend to so I had missed/moved on from this. My OP is currently down, but once I get it up and running again, I will look into the adress issue. Also as tkuri mentioned, I'll look over the wiring on my prototype board to see if I can get it working. The other D1 I set up with 1w and an analog voltmeter on the analog input works like a charm. //Ranur |