Easy flashing without soldering (almost) using pogo pin adapter with CTS + DTR pins #53
Replies: 5 comments 7 replies
-
Thank you for this guide! It was very helpful. I wanted to add a note in case anyone runs into the same issues that I did. My meter is REV-5, and when I wired up the pins the way you list them I was unable to access the ESP. I kept getting the following error: Additionally, I was getting the error Thanks again! |
Beta Was this translation helpful? Give feedback.
-
Nice
Sent from Nine
…________________________________
From: Jason ***@***.***>
Sent: Wednesday, 8 November 2023 1:30 pm
To: emporia-vue-local/esphome
Cc: Wayne Connolly; Comment
Subject: Re: [emporia-vue-local/esphome] Easy flashing without soldering (almost) using pogo pin adapter with CTS + DTR pins (Discussion #53)
I also had to use the IO0 being grounded to the chassis trick.
I held the programmer (6 pin header) to the correct pins, which was a bit of a pain tbh.
Seeing as I only had to do this twice (backup stock and flash ESPhome), I didn't bother orering/waiting for pogo pins.
I also noticed that the vue2 will beep on normal startup, which means it's NOT in bootloader mode.
If you get the connection timing correct (by ensuring the IO0 is grounded before VCC is applied), then the green light comes on and there's no beep!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thanks everyone!! Thanks flaviut! I needed to hold io0 to ground, while powering it up. With the serial basic ch340 adapter, with CTS,DTR connected as shown in this thread, it wouldn't flash. Removed those two wires, and only hold io0 to ground while powering up. Then it took me a few times to realize, don't keep holding io0 to ground the whole time, which seemed to prevent it from flashing. In any case, it works and spits out on MQTT, I love it! I am a tiny person, with tiny microcontrollers, standing on the shoulders of giants! Thank you! dklein@TexasToast:/homez/dklein/Documents/Projects/uC/emporia_vue$ mosquitto_sub -h 192.168.15.15 -t gridvue/power/sensor/ashpgrid/state -v Now I can have my new tiny 8266 heatpump meter (measuring water temp in/out and flow rate), also consume this electrical power signal and provide COP back over MQTT! |
Beta Was this translation helpful? Give feedback.
-
This pogo setup also worked for me. One key point for me was noted by alklein above. It would not connect/flash for me when I had the ground jumper also "connected" to the GPIO pin. I needed to disconnect it immediately after boot which then allowed it to flash. Worked great and gives me time to keep practicing soldering |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Pictures show using a 6 pin pogo pin adapter + CH340 serial converter allows you to flash with no pin holding etc as it has the required DTR + CTS pins. I have flashed about 7 of them like this so far.
You should be able to figure out the pins following the colors ;) but it is as follows
Adapter : Emporia
DTR : IO0
CTS : EN
GND : GND
RX : RXD
TX : TXD
VCC : VCC_5V0
You do have to cut a surface mount trace and solder the jumper to convert the VCC pin on the serial adapter from 3.3V to 5V. Although it would probably work with 3.3V as the converter appears to have a 3.3V regulator. If you get the 7pin pogo adapter(I already had the 6 pin) you could try connect VCC to the VCC_3V3 and avoid changing the jumper on serial adapter to 5V.
I don't even bother backing up the original firmware as I know I'm never going back..
Also if using the pogo pin adapter - the pads have allot of solder flux residue from the factory that will prevent it from working most likely (it got me for awhile) so you want to clean that up with fresh solder or scrape it off with something carefully.. You can see it still on the 3.3V pad on my image since I don't use that pad.
Another big "gotcha" I just want to remind everyone about is the antenna!! if you don't connect the external antenna it will not connect to your Wi-Fi :) so make sure you have that connected so you can verify your flash worked..
Parts:
Pogo pin adapter, get the 7p single: https://s.click.aliexpress.com/e/_DkK79Jd
This serial adapter has the CTS+DTR pins you want, most dont have both: https://s.click.aliexpress.com/e/_Dlx0Fzp
Male to female jumper wire: https://www.aliexpress.us/item/3256803468186263.html
Beta Was this translation helpful? Give feedback.
All reactions