-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
M5 Atom Lite target #2
Comments
My design does power everything from the 12V line. I'm not sure how much current you can draw but I think it's possible to connect multiple controllers and the latest ones have color LCD screens and are pretty advanced (see PREMTB100) so I was thinking one ESP32 should be fine. I haven't tested this with multiple controllers though. My firmware also doesn't enable the bluetooth proxy feature that ESPHome supports because I didn't want to complicate the design and use more power than necessary. |
Oh you're right. I had a mind blank on the fact you're wired directly up to the 12v too. That's good to know that it works ok minus the Bluetooth proxy. I'm inclined to do some testing on that at some point too, but I'll settle for the control mechanism working first 🙂 |
Bit of an update - my progress on learning PCB design isn't moving fast enough so for this one I thought I'd list a quick gig on fiverr (a risk I know 😅). The requirements were to keep the SHT40 as in the reference size design (so it can be used instead of thermistor if you don't want an external temperature sensor in the room) and to merge in your (@JanM321) design including the use of the 12v line for power. I also had the JST-XH 3-pin socket added on there so that in theory you could build a splitter cable and use the existing plugs that the LG units are using. I've had a look as much as I can at the spec and it looks ok, but I'm open to someone else with better PCB knowledge taking a look before I get a small prototype run done. |
@JanM321 Just an update - I've had some sample PCBs made up! and set up a basic esphome config with:
I haven't plugged it into the actual aircon unit yet, but I do have it plugged into my spare PREMTB001 that I have on a 12v power brick and I'm seeing data coming in from the LIN transceiver! I haven't made any particular sense of what's coming yet, but I am seeing the messages sent every couple of seconds or so. So far so good.
Next steps is to add the c code in and update the esphome config to talk to the actual unit. |
I've got it connected up to the HVAC now. I'm having power issues where the 12v line drops to ~9v when I plug it in (even without the panel also connected)... So for now doing testing with usb plugged in to help with the power supply issues. Open to any ideas here. Regardless though, I've got messages coming back that match the format in the protocol.md file! Here's an extract if anyone is interested in what I'm seeing from my unit: 0xC8 example:
0xCC example:
0xCF
^ any idea what 0xCF is so far? |
You seem to have a linear voltage regulator which isn't as efficient as a switching regulator / buck converter. No idea if that's it though.
That's interesting, I don't think I've seen any CF/AF messages before. Is it sending these regularly? My best guess is they ran out of bits with the C8 or CC messages so started using CF. |
Very true on the LDO, I'll be switching that back to a buck converter if I can find a decent SMT/SMD one. Any recommendations there? I'll be going 12v -> 3.3v this time as I'm also thinking of switching to ESP8285 for lower power too. I think it makes sense especially if I'm not going to be using the bluetooth on the ESP32. Here's a more verbose log of the messages with 0xCF in the mix, I'll come back to these at some point once I have the base functionality working properly with the C8/CC messages first. I'm also going to do some testing as 0x2x rather than 0xAx. These are in the order they were received:
|
I like the Traco Power ones. TSR 1-2433SM is a surface mount version. They don't require external capacitors or other components so they're very convenient and worth the money for me. |
I've been trying to compile the code into the esphome firmware. So far just adding the includes lg-controller.h file.
Ignore the references to lg-controller-original.h - that's just the untouched version I grabbed off GitHub. I'm not too familiar with the esphome API but when I read through the docs it looks like most of these errors should be non-issues? maybe a few namespaces to be added for climate for example? I'm running esphome as a container on my HA node. |
@jourdant The command line instructions in the readme still work for me. I just updated my controllers to ESPHome 8.3 to test this. Are you using everything in base.yaml? I think that affects what gets pulled into the global namespace. |
Hi, this looks really interesting, I hope you would be able to get this working, it would be really nice. |
Note that there's now also a hardware-tiny/ PCB from @florianbrede-ayet. It's both smaller and cheaper. |
Where can I buy it? |
The production files are prepared for jlcpcb, but pcbway should work as well.
For me it was ~42 USD for 5 pieces assembled + shipping + possibly customs |
Thanks a lot! |
@JanM321 just a quick update - I've also started trying a new path - integrating with the outdoor unit using the Central Control pins that use the LGAP protocol. I've been slowly figuring out what all the values mean and you can check it out here: https://github.com/jourdant/esphome-lgap. This is my current approach so that I can use a single off-the-shelf device to integrate with the outdoor unit and control 1-to-many zones. I really appreciate your help and sharing your designs for this project, if this is also of interest feel free to check it out! |
It's really cool that you can control indoor units through the outdoor unit. It will be interesting to see what information is exposed about the outdoor unit and whether you'll be able to control it better. Nice to see that it uses the same checksum algorithm as the two indoor unit protocols (sum and then xor with 0x55). I looked into communicating with the outdoor unit before I went with the CN-REMO controller, but my MU2R17 outdoor unit seemed to have limited options for this (unlike the bigger outdoor units). |
Definitely encouraging to see the consistencies throughout!
I've looked up the installer manual for your unit and you're in luck - your unit is actually compatible with the PI-485 communications board. Essentially for older outdoor units that don't have Central Control pins onboard, you can use the PI-485 board to present an RS485 LGAP interface for your unit. See here: https://www.usermanuals.au/lg/mu2r17ul0/manual?p=22 page 22. |
Thanks for checking, but I think those units are the bigger ones that support at least 3 indoor units. My MU2R17 is the 16k version and the MU2R15 is 14k. Starting with the MU3R19 (18k) the outdoor units get a bit more advanced. I think the duo-split units are a bit of an awkward combination of single-split and multi-split. In some of the Multi F manuals I looked at they often mention 14k/16k as a special-case. "does not apply" or "implemented differently". |
After looking on the model number, I see what you're talking about now. That's really unfortunate! I've spent a bit more time expanding on the LGAP protocol here: https://github.com/jourdant/esphome-lgap/blob/main/protocol.md, I've used the same format you have in this repo too. It's a good way to lay things out for seeing the relevant bytes etc. |
Great. There are still some unknown bits in the indoor unit messages, so maybe this will help with that too. |
I'll close this issue because you've moved on to the LGAP project :) The hardware-tiny PCB also addresses some of the same issues. Feel free to reopen or file a new issue if you want to get back to this. |
Hi All, Does someone have one assembled piece at spare which I can take over? I live in NL.
The 22uF capacitors are not available at JLPCB, I don't know with what to replace them, I also don't need 5 boards to be honest. |
Issue #31 has some discussion on this.
Hey @belly-89, do you still have a spare PCB? |
Hi, Yes i have a spare PCB, had to order 5 pieces at once and only needed two. So i can send you one. Send me a message to make arrangement. Thanks for mentioning me @JanM321 |
Hi belly-89, Please let me know how I can reach out to you. Regards Nick. |
Are you on tweakers.net? You can send me an PM there, username belly89 |
Hey @belly-89 |
No sorry, I don't have any PCB boards left. |
@JanM321 you've made so much awesome progress on your integration! I've got my LGAP protocol fully working now as an external component presenting a climate interface - using off the shelf parts. Feel free to check it out sometime, interested in any feedback, especially if you have any suspicions on the protocol, there's still a few bytes I haven't mapped that may look familiar to you 🙂 https://github.com/jourdant/esphome-lgap |
Nice work. I like the HA screenshot showing multiple climate entities :)
Nothing stands out. It might be worth exposing values to HA with a temporary sensor so you can see if there’s a pattern. Pipe temperature values in particular should stand out that way - they might use a similar encoding to the one I reverse engineered from the indoor unit controllers. |
Is it possible to get an updated bom? It seems like some parts are no longer available and I'm not sure what substitute to pick. |
@JanM321 I'll keep updating this thread going forward as I had pretty much hijacked the other closed issue. For reference in case anyone else is reading: #1.
I had another idea which is potentially a little ambitious (and completely out of my skill range). It would be cool to potentially add a lipo battery to the circuit and have it trickle charge over the 12v supply from the unit. I understand that the 12v on the interface is probably very sensitive and probably not designed to run even an ESP32 off it - but if we could trickle charge a battery and supplement the 12v interface that could be interesting. Alternatively a super small solar cell could potentially charge that battery slowly? What are your thoughts on powering this from the 12v line even without the battery?
I have a test PREMTB001 that I wired up to a 12v power supply and also used a buck converter to 5v for the Atom lite. Unfortunately because there is no unit attached to it (and I haven't got the emulator hooked up to a TTL+LIN adapter) I haven't made any headway there other than being able to power them both.
I am not in the house with the multiple PREMTB001 panels yet, but should be in the next couple of weeks. So I can't easily test them to see if they are all in master configuration, or if this is some kind of master/slave + zone configuration. In the meantime, I am working on adding your design onto the layout of the M5 Atom Lite.
The text was updated successfully, but these errors were encountered: