dincojazz / Geekworm_x750

Home Assistant Geekworm x750 Addon based on Home Assistant Geekworm x720 Addon from
3 stars 3 forks source link

Geekworm X728 v2.1 #1

Closed NicciZar closed 2 years ago

NicciZar commented 2 years ago

Hi,

Thank you for the addon.

Do you think this addon could be compatible with the the X728 v2.1? If not would it be hard to implement the new board?

For its own software: https://wiki.geekworm.com/X728-Software

Hardware (with Pins used): https://wiki.geekworm.com/X728-hardware on the Hardware site the pictures not showing the recent version. I can post pictures of it here if that's needed

Best regards

NicciZar commented 2 years ago

Okay so it seems like the X728 uses pin 3 and 5 for i2c and rtc

image

and the X750 from this integration seems to be also using 3 and 5

image

So this means I should be able to 'just' rename the X750 in your integration and it should hopefully work with the X728 (at least the battery voltage etc)

Links: https://wiki.geekworm.com/index.php/X750 https://wiki.geekworm.com/X750_Hardware

dincojazz commented 2 years ago

Hi! Sorry for late answer. I think even if you don't rename it it will work. The original addon was taken from Home Assistant Geekworm x720 Addon(from user Beduir ) https://github.com/Beduir/x720.git And the only point to make renaming at his addon was just to see X750 model at my HA lovelace. And it's working. And I think if x728 using same pins for i2c it should work. One advice: Be very careful with pin connecting Geekworm HAT to Pi. - DOUBLE CHECK plus, minus and i2c poles. It's very easy to burn Pi's i2c connection scheme. It's not a big deal, but after that my HA stopped showing X750 battery and capacity data. Good luck!

NicciZar commented 2 years ago

Thank you for the reply! My Pi is already connected with the UPS and seems to be running fine so it should be connected correctly I assume.

Is your advice meant to be something I set on the software side also or only hardware (everything label minus to minus and plus to plus) and for the GPIO pins - its all a big block so I think I cannot change the layout here if that's needed

dincojazz commented 2 years ago

If you're stacking up Pi with X728 you can't make mistakes because of 40 pin header. X750 is with additional connector which is not 40 but 12 pins header and there everyone can make mistake. It's not fixed.

NicciZar commented 2 years ago

Alright. Yea I'm using the stack variant. Thank you!

dincojazz commented 2 years ago

I was "drinking water" from this well... :-) https://community.home-assistant.io/t/greekworm-ups-hat/53059

NicciZar commented 2 years ago

I saw that. I am the last comment on that post haha Thats how I found out about this addon ;)

I'm a noob in GitHub repos. Is it correct that I "forked" your repo or do I have to go another way?

dincojazz commented 2 years ago

I'm a noob too. I think it's not a problem "forking" the repo from me. My is "forked" from Beduir's repo too.

NicciZar commented 2 years ago

Oh good. I was just hoping it didn't change the files in your Repo or something similar^^

NicciZar commented 2 years ago

Hey thanks for the help.

I've changed the stuff I needed to change (X750 to X728) and it seems to be working! Capacity shows more than 100% (not sure why?) but I can live with that :D

Mains switched off: image

image

image

dincojazz commented 2 years ago

Very good! For the capacity... Mine was the same at first about 10 days (if I remember right). I think it's something like calibrating... or what...? But now it's showing normaly... image image

NicciZar commented 2 years ago

Oh wow this looks really cool!

Do you have a script running that automatically uses the UPS (cuts main) or does the UPS automatically charge / discharge over time?

I will let the UPS calibrate and hope it will then set to 100% when full

dincojazz commented 2 years ago

The UPS is automatically charging batteries at level of 4.1V and cuts charging at 4.2V. You should not worry about the capacity... It's not a big deal. The point is: My set of HA is with Rpi3B+, mSATA 32GB and 3pc 30/30/10mm fans(the fans are consuming about 0.048A/hour) and the X750 is only with 2pc. 18650 3000mA batteries and it's holds it about 3 hours from 98% till 35% (in other words 63% from batteries for 3 hours)

NicciZar commented 2 years ago

Yea I saw the picture of the community forum. The case looks cool.

At the moment I only have the rpi4b and the ups connected with two 18650 2600mA (35A). Which is overkill but I wanted to try it and now I can look out for other stuff.


If you listen closely to the UPS do you hear some noise (except for the fans of course :D )? I hear a bit of noise which could be normal but I'm unsure

dincojazz commented 2 years ago

In my case I don't hear noises from UPS... Do you have anything other around? Check the power supply. Is it working normally. If you're using USB type C it should give to UPS minimum of 5V/3A. In case of jack it has to give 5V/4A. Check the big resistors temperature with infrared thermometer for over heating. Be careful not to hurt yourself. In most of cases when I hear some noise of any electronic module (like bzzzzzz) it's coming from the power supply. But that's not for shore. Can't suggest anything else to help. Sorry.

dincojazz commented 2 years ago

P.S.Check the power cable for good contact.

NicciZar commented 2 years ago

I think it was my power supply. I changed it to another one one and it seemed to have stopped.

Thanks for the suggestions!

dincojazz commented 2 years ago

I'm glad that you found the problem. You're welcome!

NicciZar commented 2 years ago

Hi, I just wanted to let you know its slowly calibrating itself

image

image

Thank you

Take care