TG9541 / stm8ef

STM8 eForth - a user friendly Forth for simple µCs with docs
https://github.com/TG9541/stm8ef/wiki
Other
309 stars 66 forks source link

W1219 with Nuvoton Chip #247

Closed suskitech closed 5 years ago

suskitech commented 5 years ago

In August of 2018 I ordered 3 XH-W1219 boards from an eBay vendor single2000 and they came with the Nuvoton N76E003AT20 chip. There were also some changes in the power diode which is an smd and resistor placement in that area. Otherwise looks very close. I assume that the codebase is completely different for the Nuvoton vs the STM8S. But the question comes up is the pin out close enough that I can remove the Nuvoton and put in an STM8S? Thanks in advance, Allen PS I found a nifty little device on eBay titled "Li-ion Lithium Lead-acid Battery Capacity Meter Discharge Tester Analyzer" that is based on the STM8S003F3P6 going for around $3.30 each. nuvoton w1219

VK6TT commented 5 years ago

Hi Allen,

yes, the codebase is completely different. However I've never had any issues changing the microcontroller out. Just remember there is a capacitor usually missing which needs to be also re-instated. The wiki shows where it is.

Regards Richard

Was this the tester you were referring too? My initial reaction was it was too well made with de-bounce capacitors across the switches grin http://ae01.alicdn.com/kf/HTB1vw84ofuSBuNkHFqDq6xfhVXaP.jpg


From: Allen Suski [mailto:notifications@github.com] Sent: Sunday, 13 January 2019 8:37 AM To: TG9541/stm8ef Cc: Subscribed Subject: [TG9541/stm8ef] W1219 with Nuvoton Chip (#247)

In August of 2018 I ordered 3 XH-W1219 boards from an eBay vendor single2000 and they came with the Nuvoton N76E003AT20 chip. There were also some changes in the power diode which is an smd and resistor placement in that area. Otherwise looks very close. I assume that the codebase is completely different for the Nuvoton vs the STM8S. But the question comes up is the pin out close enough that I can remove the Nuvoton and put in an STM8S? Thanks in advance, Allen PS I found a nifty little device on eBay titled "Li-ion Lithium Lead-acid Battery Capacity Meter Discharge Tester Analyzer" that is based on the STM8S003F3P6 going for around $3.30 each.

- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on https://github.com/TG9541/stm8ef/issues/247 GitHub, or mute https://github.com/notifications/unsubscribe-auth/AT7yazZZtMIUCaAUH8uqKFwN0 qQ_wr7bks5vCn-7gaJpZM4Z863y the thread. https://github.com/notifications/beacon/AT7ya5njl07atCZKwrJKNUmK8bYx3MSMks5 vCn-7gaJpZM4Z863y.gif

TG9541 commented 5 years ago

Hi Allen, one thing I learned in this little project is that when dealing with the work products of Chinese tinkerers one should expect changes. If these guys understand that they can save a penny they'll do it (often they don't understand how to make a cost-optimized design). Good Chinese engineers are the ones who give the tinkerers an opportunity to "save" a penny (e.g. the de-bounce capacitors Richard noticed).

I guess the only way to figure out if replacing the Nuvoton chip works is by doing it :-) If you find the time to make some pictures we can document the variant.

Some months ago I also bought a "battery capacity meter" like the one on Richard's picture but didn't find the time to work on it. If someone does an analysis and the device turns out to be a good target I'll of course support the effort.

Edit: I mentioned this issue in the Wiki

suskitech commented 5 years ago

Yes the link you showed is the exact tester. I have 3 of them and use them to validate battery capacity of NiMH as well as my 18650's. I see this as a useful tool 3 buttons, 4 digit LED plus current sense. After seeing this forum, I desoldered the display hiding underneath it was the stm8s along with a TM1650 LED controller. Also hidden by the picture is what appears to be swim connections. I have not had time to further analyse it, but may do that in the future. I just don't have enough time and to many hobbies. Added a pic and noticed that silkscreen on the board states ZB2L3 on my other two that I purchased. hw-586 @VK6TT

sbridger commented 5 years ago

I also ordered thermostats from 3 different suppliers, and got all non-stm8 boards.

I suggest having a page where we can list the supplier URL and date of order, and STM8/NOT so we can have a better chance of getting these.

TG9541 commented 5 years ago

@sbridger I tried that - what I learned is that I know nothing about the workings of the "modules" industry - I even once offered a W1209 module vendor, who sold me a batch of W1209 with STM8S003F3 when the supply started to dry up to promote his job if he guarantees to deliver such modules:

Dear friend, Thanks for your email. Sorry, I am just a customer service. I tried my best to found some info for you, but sorry have no result. We actually have no enough technical information can offer. I hope to get your understanding. Do you mind searching information online to find more technical support? Thank you. Best regards.

Hi when I asked for W1209 boards with an STM8S003F3 you were able to provide what I requested. Would you still be able to deliver boards with STM8S003F3 (not Nuvoton!) if I ordered now? If so, I would direct orders your way from an alternative W1209 firmware project.

For this to change it would be necessary for the complete supply chain to understand the difference. And even then we would have to deal with cheaters. By emulating the STM8S003F3P6 pin-out Nuvoton has now conquered the spot of the low-cost Chinese µC market that ST used to hold.

TG9541 commented 5 years ago

As there is now a hint in the STM8 eForth Wiki I'll be closing this issue.