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

0 Members and 2 Guests are viewing this topic.

Offline madworm

  • Frequent Contributor
  • **
  • Posts: 373
  • Country: de
Youyue 858D+ some reverse engineering + custom firmware
« on: November 26, 2013, 05:47:47 am »
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 11, 2014, 03:28:36 am 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, 05:16:57 pm »
A bit of a quinky-dink....   

Check out the ** SCHEMATIC ** and  ** PROGRAM **
posted at http://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.
 

Offline george graves

  • Super Contributor
  • ***
  • Posts: 1259
  • Country: us
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #2 on: November 27, 2013, 05:52:06 pm »
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 madworm

  • Frequent Contributor
  • **
  • Posts: 373
  • Country: de
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #3 on: November 27, 2013, 07:40:25 pm »
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 madworm

  • Frequent Contributor
  • **
  • Posts: 373
  • Country: de
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #4 on: November 29, 2013, 02:28:10 am »
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, 11: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 madworm

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

Online amyk

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

Offline madworm

  • Frequent Contributor
  • **
  • Posts: 373
  • Country: de
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #8 on: November 30, 2013, 02:18:03 am »
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 madworm

  • Frequent Contributor
  • **
  • Posts: 373
  • Country: de
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #9 on: December 02, 2013, 10:26:55 am »
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: 5505
  • Country: gb
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #10 on: December 02, 2013, 11: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, 03:08:29 pm by Monkeh »
 

Online amyk

  • Super Contributor
  • ***
  • Posts: 5577
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #11 on: December 02, 2013, 06:16:11 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
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 5505
  • Country: gb
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #12 on: December 03, 2013, 03:55:38 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

Atyue?
 

Offline madworm

  • Frequent Contributor
  • **
  • Posts: 373
  • Country: de
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #13 on: December 03, 2013, 04:19:40 am »
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 03, 2013, 04:22:44 am by madworm »
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 5505
  • Country: gb
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #14 on: December 03, 2013, 04:26:45 am »
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 madworm

  • Frequent Contributor
  • **
  • Posts: 373
  • Country: de
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #15 on: December 03, 2013, 04:49:14 am »
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: 5505
  • Country: gb
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #16 on: December 03, 2013, 04:54:00 am »
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 madworm

  • Frequent Contributor
  • **
  • Posts: 373
  • Country: de
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #17 on: December 03, 2013, 06:27:34 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.
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 5505
  • Country: gb
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #18 on: December 04, 2013, 04:33:47 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.



That didn't work so well.
 

Offline madworm

  • Frequent Contributor
  • **
  • Posts: 373
  • Country: de
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #19 on: December 05, 2013, 03:42:56 am »
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: 5505
  • Country: gb
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #20 on: December 05, 2013, 03:44:41 am »
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: 5505
  • Country: gb
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #21 on: December 05, 2013, 11: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 madworm

  • Frequent Contributor
  • **
  • Posts: 373
  • Country: de
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #22 on: January 05, 2014, 01:23:18 am »
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 05, 2014, 01:39:39 am by madworm »
 

Offline Orpheus

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

Online Monkeh

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


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf