ximon / Hot-tub-remote

Lay-z-Spa wifi remote (3 pin model)
45 stars 6 forks source link

Question : More Informations on electronic part #6

Open RonandoDeLaVega opened 4 years ago

RonandoDeLaVega commented 4 years ago

Hello,

First of all, well done for your work, this looks amazing !!

I'm a bit new in eletronic and I can't figure out how you made your schema ? Do you have photos of actual PCB ?

Where the condensator should be linked to ? What is the component in the middle with VCCA VCCB A B and DIR in entries ?

Thanks ! Ronando

eddcaton commented 4 years ago

Yes @RonandoDeLaVega would be good to have a more in depth electrical connection guide.

ximon commented 4 years ago

Hi,

The esp8266 talks to the hot tub via the three pin cable between the display and the main controller. This is done through a level shifter, a 74LVC1T45, this is the component with the VCCA,VCCB, A, B and DIR pins.

The level shifter is used as the hot tub signals are 5v and the esp8266 is 3v3, its also used to turn the output on and off before and after sending commands as its using a DMA hack which doesnt quite produce the required signals.

The condensator (capacitor) is connected across the supply just to smooth out the dips when the esp8266 is transmitting.

I've updated the schematic to clear up the net names and swap the diode with a switch to aid in local programming.

I cant upload a photo of the device as it's inside my hot tub, next time i have it open i'll take a photo.

Hope this helps! Simon.

jampez77 commented 4 years ago

So I've just bought some 74LVC1T45's and I was wondering 1, how on earth you connected them the anything and 2, do you know where I can get a non-mircoscopic version of them?

ximon commented 4 years ago

I soldered one onto this breakout board

You can use any non-inverting bidirectional three state driver with direction input.

RonandoDeLaVega commented 4 years ago

Hello, I found this which looks to be useful

jampez77 commented 4 years ago

Hello, I found this which looks to be useful

From what I've seen, both online and in person, the 74LVC1T45's are tiny. Smaller than the sockets in that url.

ximon commented 4 years ago

This is the 74LVC1T45GW SOT-363 mounted to this breakout

If anybody needs one i now have two spare breakoutboards with 74LVC1T45s mounted.

It's pretty easy to solder, just tin one pad, place the part, reflow the pad, then solder the others. Thin solder, flux and a good iron make it really easy.

tiny

RonandoDeLaVega commented 4 years ago

Hello,

Here is my shop list, does it seems right to you ? I've got a doubt on the capacitor : is 16V OK ?

Thanks for asking ximon, but I guess sending from UK to France a breakoutboard with 74LVC1T45 mounted is more expensive than ordering from china ...

After I'll receive all this stuff, I'll have to figure out how to flash the ESP8266 ... any keyword to search on google ? :-D

Thanks a lot ! Ronando

jampez77 commented 4 years ago

After I'll receive all this stuff, I'll have to figure out how to flash the ESP8266 ... any keyword to search on google ? :-D

Try this: https://averagemaker.com/2018/03/wemos-d1-mini-setup.html

ximon commented 4 years ago

@RonandoDeLaVega Your list seems fine apart from the sot adapter, the link is for the 74lvc1t45. The switch is optional, you can just use a jumper if you have one spare.

You might want to check out the platformio branch too, i'm moving away from the arduino ide so all new updates will be in that branch and will eventually be merged into master.

eddcaton commented 4 years ago

Hey,

Can anyone tell me if this is the right part? https://www.ebay.co.uk/itm/193386434279

Edd

ximon commented 4 years ago

Hi Edd, yeah, that'll do the job

eddcaton commented 4 years ago

Thanks :)

fhempy commented 4 years ago

Hi, I got my 74LVC1T45 today, but unfortunately I haven't found a capacitor in my spare components. Do I really need it and is it necessary to be exactly the 1000uF one you have in your semantics? I just wired it together without capacitor. Receiving signals works perfect, but sending doesn't work at all (branch: platformio-fixes).

Btw, do you use the 5V from 3-wires as power supply for ESP8266? Can you please provide more info on the power supply if you use a separate one? Many thanks!

ximon commented 4 years ago

The size of the capacitor isn't super critical, its just a local buffer for when the pumps turn on, you might get away without it - I added it at the time when I was seeing a lot of exceptions occurring, seemed to make a difference - but it could also have been code changes.

It might be worth hooking a scope up to the supply to the esp and watching what happens when the heater / pump turns on / off.

With regards to the platformio-fixes branch - I mistakenly checked some work in that wasn't fully tested and had to spend some time unpicking the parts that worked. I've rewrote the receiveing code which seems a lot more accurate in decoding the messages ( I tried this method before but kept seeing exceptions )

I'll check in the latest changes once i've got it tested.

fhempy commented 4 years ago

I just tested it with a 1000uF capacitor, unfortunately it still doesn't work. Can you please let me know if you use the 5V from the 3-wires to run the ESP8266? Receiving works perfectly, but sending doesn't work at all. It seems to send some signals as I can see all lights flashing very short on the hot tub display.

I used the platformio branch this time.

ximon commented 4 years ago

Yes - mine is soleley powered from the tub using the three wires going to the display controller.

Try with the main branch, i've merged the new platormio code in which runs a lot better for me, its set to run at 160MHz in the config (this might be why it wasnt working for you)

Do you have a logic analyser you can check things out with if it still doesn't work?