Author Topic: Youyue 858D+ some reverse engineering + custom firmware  (Read 423895 times)

0 Members and 7 Guests are viewing this topic.

Offline madwormTopic starter

  • Frequent Contributor
  • **
  • Posts: 371
  • Country: de
Youyue 858D+ some reverse engineering + custom firmware
« on: November 25, 2013, 06:47:47 pm »
I'm writing a custom firmware for this device. More to come pretty soon. More info on my blog.

What works so far:

    display
    reading the 2 buttons
    reading the wand sensor (reed contact)
    fan ON / OFF override
    crude heater control – just ON / OFF

Todo:

    read the thermo-couple voltage from the OP-7
    implement a control loop for the temperature (most likely PID) + sensible calibration
    read the fan status signal (not quite sure what it is)


For now, here's a part of the schematic and a short video.

« Last Edit: April 10, 2014, 05:28:36 pm by madworm »
 
The following users thanked this post: raihei

Offline KingsTwisted

  • Newbie
  • Posts: 4
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #1 on: November 27, 2013, 06:16:57 am »
A bit of a quinky-dink....   

Check out the ** SCHEMATIC ** and  ** PROGRAM **
posted at https://www.eevblog.com/forum/reviews/yihuastandigyum-cha-937d-soldering-station-got-one/

I just got through reverse engineering a YiHUA 937D Temperature controlled soldering iron.
It's a bit simpler then your 858D+, but you might find some of the work useful.

NOTE: Schematic done with KiCad (Open Source "Schematic and PCB designer" Dave reviewed some time ago)
NOTE: If you want the KiCad files, let me know.
 
The following users thanked this post: LucasArg

Offline george graves

  • Super Contributor
  • ***
  • Posts: 1257
  • Country: us
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #2 on: November 27, 2013, 06:52:06 am »
What's your goals in this?

Someone did a video, and apperently the display is totally faked, and that the air temp totally overshoots at start up.  Is that what you are trying to fix?

Also, think you can do it all with a firmware only solution - if so - that would be niceeeeeeeeeeeeeeeeeeeeeee!

Offline madwormTopic starter

  • Frequent Contributor
  • **
  • Posts: 371
  • Country: de
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #3 on: November 27, 2013, 08:40:25 am »
The first goal is to get it to display the actual temperature and not just the set-point. The set-point is a nice-to know, but I really do like to know the real thing.

I've accomplished that. It is usable as of now.

The temperature overshoot issue is my 2nd goal. As of now I have implemented a PD control loop, which works reasonably well, but the parameters need more tweeking. Initial power-up is still a bit iffy with respect to overshoot, but once the device is warmed up, moving the temperature around isn't too bad. Work in progress :-)



I'll tweak the way the device controls the heater a bit more and may finally go to full PID control. Currently the very low temperatures ( < 130°C ) take too long to reach, as the minimum duty cycle for the heater is still too long, so the tiniest bit of heating action will almost overcompensate any intended temperature drop.

I hope there is a firmware-only fix for this device.
 

Offline madwormTopic starter

  • Frequent Contributor
  • **
  • Posts: 371
  • Country: de
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #4 on: November 28, 2013, 03:28:10 pm »
I think I'm done :-)

The massive overshoots are a thing of the past.

I've also managed to lower the minimum temperature to about 65°C and added the option to let it blow cold air.

 

Offline jinzo

  • Contributor
  • Posts: 40
  • Country: si
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #5 on: November 29, 2013, 12:04:35 am »
Looks quite interesting. I'm eyeing this hot air station for quite some time, looks like I'll have to get one finally.
For anyone interested in the code itself, it's hosted in madworms git: http://git.spitzenpfeil.org/cgi-bin/gitweb.cgi?p=Youyue-858D-plus.git;a=summary

Thank you for your work and effort.
 

Offline madwormTopic starter

  • Frequent Contributor
  • **
  • Posts: 371
  • Country: de
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #6 on: November 29, 2013, 10:46:35 am »
Just in case my server should be offline, all the stuff is also on github.
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8415
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #7 on: November 29, 2013, 12:18:36 pm »
After the improvements, maybe you should call it the 858D++ :D
 

Offline madwormTopic starter

  • Frequent Contributor
  • **
  • Posts: 371
  • Country: de
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #8 on: November 29, 2013, 03:18:03 pm »
Maybe :-)

Some more stuff:

* persistent set-point storage (I somehow forgot about that)
* better button handling ( +-1 or +-10 depending on press-time)
* displays error message if wand is not connected or temperature out of range
* show °C set-point when temperature is within +- 4°C (don't show insignificant fluctuations on display)
 

Offline madwormTopic starter

  • Frequent Contributor
  • **
  • Posts: 371
  • Country: de
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #9 on: December 01, 2013, 11:26:55 pm »
Firmware now supports full PD / PID control. Vital parameters can be changed by the user (via buttons / display) and are stored in eeprom. The default values can be restored in case something goes wrong.

Tuning PID parameters is a good exercise for one's patience...
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 8068
  • Country: gb
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #10 on: December 02, 2013, 12:25:53 am »
I'll have to see if I can adapt this to my Atten unit.

E: If the Youyue is meant to be the clone, it's significantly better built than the Atten.. No isolation slots, no attention to clearance, single-sided PCB with all the dodgy reverse soldering that implies, two 14-pin sockets used for the 28-pin micro, flux everywhere, damaged ground lead from poor stripping..

And of course a completely different (Holtek) micro.
« Last Edit: December 02, 2013, 04:08:29 am by Monkeh »
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8415
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #11 on: December 02, 2013, 07:16:11 am »
I'll have to see if I can adapt this to my Atten unit.

E: If the Youyue is meant to be the clone, it's significantly better built than the Atten.. No isolation slots, no attention to clearance, single-sided PCB with all the dodgy reverse soldering that implies, two 14-pin sockets used for the 28-pin micro, flux everywhere, damaged ground lead from poor stripping..

And of course a completely different (Holtek) micro.
According to some other posters here, there's also fake Attens. Youyue (Google suggests "youtube" on searching for it :-DD) sounds like a clone of Aoyue. How long until we see a Yatten? :o
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 8068
  • Country: gb
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #12 on: December 02, 2013, 04:55:38 pm »
I'll have to see if I can adapt this to my Atten unit.

E: If the Youyue is meant to be the clone, it's significantly better built than the Atten.. No isolation slots, no attention to clearance, single-sided PCB with all the dodgy reverse soldering that implies, two 14-pin sockets used for the 28-pin micro, flux everywhere, damaged ground lead from poor stripping..

And of course a completely different (Holtek) micro.
According to some other posters here, there's also fake Attens. Youyue (Google suggests "youtube" on searching for it :-DD) sounds like a clone of Aoyue. How long until we see a Yatten? :o

Atyue?
 

Offline madwormTopic starter

  • Frequent Contributor
  • **
  • Posts: 371
  • Country: de
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #13 on: December 02, 2013, 05:19:40 pm »
I'll have to see if I can adapt this to my Atten unit.

I think the basic principle of operation is pretty much the same. Even if the Atten units have a different micro. You may get away with designing a small adapter PCB and do a brain-swap with a suitable AVR. Or try getting a compiler for the holtek chip.

BTW, here's that latest (and probably final) video. I'm playing with the PID settings a bit.

As usual, my camera-work is terrible. I know.

« Last Edit: December 02, 2013, 05:22:44 pm by madworm »
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 8068
  • Country: gb
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #14 on: December 02, 2013, 05:26:45 pm »
I'll have to see if I can adapt this to my Atten unit.

I think the basic principle of operation is pretty much the same. Even if the Atten units have a different micro. You may get away with designing a small adapter PCB and do a brain-swap with a suitable AVR. Or try getting a compiler for the holtek chip.

It appears to be an identical circuit, yes. I'll probably just splice together an adapter as I have a few 328PUs kicking around the place.
 

Offline madwormTopic starter

  • Frequent Contributor
  • **
  • Posts: 371
  • Country: de
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #15 on: December 02, 2013, 05:49:14 pm »
Judging by the number of Atten units out there... you might be able to sell a couple of those adapter boards. Don't forget a programming header. You don't want to know how many times I had to pull those chips out before I added the code to change parameters via the buttons.

If you have the boards made at the usual suspects, you will naturally end up with a couple of spares...
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 8068
  • Country: gb
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #16 on: December 02, 2013, 05:54:00 pm »
I shall ponder it after I lace one together the old fashioned way :)

On the other hand, I might just make a whole new main board, because what's there is.. far from pretty.

Feast your eyes:


I'm sure you recognise that part of the circuit.
 

Offline madwormTopic starter

  • Frequent Contributor
  • **
  • Posts: 371
  • Country: de
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #17 on: December 02, 2013, 07:27:34 pm »
Yes, the colour looks familiar :-DD

And someone forgot to whittle away parts of the PCB in critical locations.

Well, whatever you do, be safe and make a post about it.
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 8068
  • Country: gb
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #18 on: December 04, 2013, 05:33:47 am »
Yes, the colour looks familiar :-DD

And someone forgot to whittle away parts of the PCB in critical locations.

Well, whatever you do, be safe and make a post about it.



That didn't work so well.
 

Offline madwormTopic starter

  • Frequent Contributor
  • **
  • Posts: 371
  • Country: de
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #19 on: December 04, 2013, 04:42:56 pm »
Sooo, the TRIAC went with a bang?

Surely something must have (been) shorted out. Was the micro pulled out when it happened?
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 8068
  • Country: gb
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #20 on: December 04, 2013, 04:44:41 pm »
Sooo, the TRIAC went with a bang?

Surely something must have (been) shorted out. Was the micro pulled out when it happened?

I made a stupid at 4am. I pulled the power TRIAC, forgot the driver. Did not stop the heater coming on. Just added a second one. Gotta go clean that up and replace some resistors..

You did ask me to post whatever I did..  ;D
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 8068
  • Country: gb
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #21 on: December 05, 2013, 12:45:57 am »
Well, now that I've tested the pinout, blown the shit out of my TRIAC driver, and renewed my hatred for working with AVRs.. I'll get cracking on a real adapter board for this thing. And order a new driver..
 

Offline madwormTopic starter

  • Frequent Contributor
  • **
  • Posts: 371
  • Country: de
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #22 on: January 04, 2014, 02:23:18 pm »
Got my simple adapter boards in the mail. Finally a device with an ISP connector. I still have a grudge against the person who did the board layout for omitting it.

It works fine, but it was a trivial thing anyway :-)

Whether the clearance distances to the HV parts are still sufficient is subject do discussion.
« Last Edit: January 04, 2014, 02:39:39 pm by madworm »
 

Offline Orpheus

  • Regular Contributor
  • *
  • Posts: 120
 
The following users thanked this post: richfiles, tooki, Heszu

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 8068
  • Country: gb
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #24 on: January 05, 2014, 07:27:23 pm »
 
The following users thanked this post: richfiles, tooki, Heszu


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf