Hot-tub-remote icon indicating copy to clipboard operation
Hot-tub-remote copied to clipboard

Question : More Informations on electronic part

Open RonandoDeLaVega opened this issue 4 years ago • 17 comments

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

RonandoDeLaVega avatar May 06 '20 12:05 RonandoDeLaVega

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

eddcaton avatar May 08 '20 20:05 eddcaton

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.

ximon avatar May 10 '20 21:05 ximon

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?

jampez77 avatar May 19 '20 10:05 jampez77

I soldered one onto this breakout board

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

ximon avatar May 19 '20 10:05 ximon

Hello, I found this which looks to be useful

RonandoDeLaVega avatar May 19 '20 12:05 RonandoDeLaVega

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.

jampez77 avatar May 19 '20 12:05 jampez77

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

ximon avatar May 19 '20 13:05 ximon

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

RonandoDeLaVega avatar May 19 '20 14:05 RonandoDeLaVega

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

jampez77 avatar May 19 '20 15:05 jampez77

@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.

ximon avatar May 21 '20 13:05 ximon

Hey,

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

Edd

eddcaton avatar Jun 19 '20 14:06 eddcaton

Hi Edd, yeah, that'll do the job

ximon avatar Jun 19 '20 14:06 ximon

Thanks :)

eddcaton avatar Jun 19 '20 18:06 eddcaton

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!

fhempy avatar Jun 21 '20 17:06 fhempy

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.

ximon avatar Jun 21 '20 19:06 ximon

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.

fhempy avatar Jun 24 '20 17:06 fhempy

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?

ximon avatar Jun 24 '20 20:06 ximon