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

0 Members and 10 Guests are viewing this topic.

Offline Magiciaen

  • Contributor
  • Posts: 23
  • Country: us
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #725 on: December 25, 2018, 11:41:26 pm »
I've finished my design and PCB, and have sent it off for fabrication. I'll get it built in the next few weeks and will test it out thoroughly.
« Last Edit: December 26, 2018, 12:07:47 am by Magiciaen »
 
The following users thanked this post: steve1515, Fleetz, Qw3rtzuiop, Zipprd, LucasArg

Offline steve1515

  • Regular Contributor
  • *
  • Posts: 98
  • Country: us
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #726 on: December 26, 2018, 04:51:04 pm »
I have been looking at the thermocouple amplifier circuit that comes with the 858D and I have what may be a stupid question...
In order to get temperature from a thermocouple, don't you need to know the temperature of the cold junction? I don't see anything that reads cold junction temperature in the circuit. It looks like they are just amplifying the thermocouple voltage but without compensation how could this voltage mean anything?

Can someone enlighten me on what I'm missing? I'm not seeing how this works to get absolute temperature at the thermocouple.
 :-//

EDIT: Added a picture of the example circuit (By: floobydust)
« Last Edit: December 26, 2018, 07:46:06 pm by steve1515 »
 

Offline floobydust

  • Super Contributor
  • ***
  • Posts: 7501
  • Country: ca
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #727 on: December 27, 2018, 07:19:56 am »
There is no cold-junction compensation, it's not going to move around much compared to the hot air temp. I think it's a cost savings.
Just assume 25°C and the pcb/lab temperature might move around from 20°-30°C which is a few degrees error at most.

A quick look at the PCB, I don't see connector X1 or X3 pads having enough clearance to the surrounding pour. Hard to tell with OSH Park purple.
« Last Edit: December 27, 2018, 07:26:32 am by floobydust »
 

Offline Magiciaen

  • Contributor
  • Posts: 23
  • Country: us
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #728 on: December 27, 2018, 07:36:06 am »
You're right, it's a good idea to increase the clearance for all the mains components. I didn't think to do that. Will add that in for sure.
 

Offline Nighthawk

  • Newbie
  • Posts: 6
  • Country: si
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #729 on: December 30, 2018, 02:19:22 pm »
Hey guys,

I am kinda new here and I need a bit of help... I want to buy myself a hotair station, nothing fancy, just something "good" and cheap to do the job since I am a student  :D

I was looking intro 858D+ stations and I noticed there is a lot of different brands (variants??) on the market.

Whcih is the one I am after and is it possible to get it in EU?

Regards
« Last Edit: December 30, 2018, 02:21:09 pm by Nighthawk »
 

Offline Magiciaen

  • Contributor
  • Posts: 23
  • Country: us
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #730 on: December 30, 2018, 08:25:17 pm »
Hi Nighthawk,

I think an 858D will probably fit the bill for you. The problem with getting one is you never know what you're going to get. In that there are a cacophony of slightly different designs on the market, with the same basic handpiece and general architecture. Even a particular 'brand name' if you can call them that, will sell units with completely different guts in the thing at different points in time. Unfortunately, vendors who sell these units can't tell you for certain what variant of boards are in them. Going through this thread, you'll see folks have made mod boards for particular 858D circuit board variants to implement Madworm's mod, but you don't really know for certain what type of circuit board you'll be getting in the 858D you order. I'd highly recommend Madworm's hack if you do get one and can implement it.

My own suggestion is to get one of the 858D's from RS Online in the UK. A problem with many of the 858D's sold is the atrocious mains wiring and grounding. I think you're a lot less likely to get something in that state from an RS Pro branded unit (but I'd still open it up and check, no matter where you get one from).

https://uk.rs-online.com/web/p/soldering-stations/1244133/

They go on sale there for 60 GBP if you're patient.
 

Offline Nighthawk

  • Newbie
  • Posts: 6
  • Country: si
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #731 on: December 30, 2018, 09:02:06 pm »
thanks for your responce @Magiciaen

I was reading about the grounding issues and problems with wiring.

The first thing I am going to do when I get the station is to open in up and check for errors... in any case I am going to change the fuse and its housing... add the extra line between PCB and transformer...

I think I am going to order it from Aliexpress for 40€ (germany):
https://www.aliexpress.com/item/Hot-Air-Gun-700W-UYUE-858D-ESD-Soldering-Station-LED-Digital-Heat-Gun-Desoldering-Station-Upgrade/32657929118.html?spm=2114.search0104.3.9.ab3e5bc2LAwRSy&ws_ab_test=searchweb0_0,searchweb201602_3_10065_10068_319_317_10696_10084_453_454_10083_10618_10304_10307_10820_10821_10301_538_537_536_10059_10884_10887_100031_321_322_10103,searchweb201603_51,ppcSwitch_0&algo_expid=730c3e65-b8cd-4315-af5b-38075a635199-1&algo_pvid=730c3e65-b8cd-4315-af5b-38075a635199

The seller has a lot of orders and I think it's the cheapest out there (in EU). It's not like I need this station every day, but for occasional use I think it will be more than OK!



« Last Edit: December 30, 2018, 10:02:44 pm by Nighthawk »
 

Offline cowana

  • Frequent Contributor
  • **
  • Posts: 325
  • Country: gb
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #732 on: December 31, 2018, 04:19:26 pm »
Just be aware that on the designs using a connector for the handpiece, they tend to use a male connector on the station side (for cost reasons).

This means that if the station is plugged in but the handpiece disconnected, there could be exposed mains on these pins - watch out for that whenever using the station!
 

Offline Nighthawk

  • Newbie
  • Posts: 6
  • Country: si
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #733 on: December 31, 2018, 04:32:18 pm »
Thank you for this warning.

Do you think it's better to go after this one ?

https://www.amazon.de/L%C3%B6tstation-Entl%C3%B6tstation-Temperatur-Anzeige-100-450%C2%B0C-Hei%C3%9Fluftf%C3%B6hn-Mundst%C3%BCcke/dp/B07D75F48L/ref=sr_1_1_sspa?ie=UTF8&qid=1546273738&sr=8-1-spons&keywords=858D&psc=1

I mean, I am not a stupid person, I won't touch the exposed pins, but in case someone else will use the station?
 

Offline Nighthawk

  • Newbie
  • Posts: 6
  • Country: si
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #734 on: January 10, 2019, 08:32:46 pm »
Hey,

Today I got my 858. I ordered it from here (from warehouse in germany):
https://www.aliexpress.com/item/Hot-Air-Gun-700W-UYUE-858D-ESD-Soldering-Station-LED-Digital-Heat-Gun-Desoldering-Station-Upgrade/32657929118.html?spm=a2g0s.9042311.0.0.11ae4c4dDi3scD

I got 858D06.PCB 2017.03.14 with MK1840D3 MCU.




Looks like I will need floobydusts adapter. Did he share his project somewhere or is it possible to get a PCB from somewhere ?








 

Offline stan23

  • Newbie
  • Posts: 4
  • Country: de
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #735 on: January 10, 2019, 08:47:50 pm »
PCB-Version: 858D06 (Version 6, both sides are green and mainly SMD components)
Microcontroller: MK1840D3

Build or order the adapter PCB designed by GiantGnome/wgujbas
This is necessary because madworms firmware is designed for the YouYue-Version, which uses an ATMEL micro controller.
The one which is installed on the UVISTAR (MK1840D3) is something like a SAMSUNG clone.
Both uC's aren't pin-compatible, hence we need an adapter. Furthermore, the YouYue-PCB-Version is reporting the fan speed to the micro controller, the ones with an SAMSUNG or MK184... uC are not, therefore we need to place additional components on the adapter (for reading out the fan speed, giantgnome and wgujbas are using simple voltage dividers to extrapolate from the FAN-Voltage - which is set by the potentiometer - to the FAN-Speed)


Giantgnome postet his PCB here
You can simply order a bunch of three pcb's for 5$ here (includes shipping worldwide!)

I also have two PCBs left, and I'm located in Germany as well. Anyone interested?
I still have 2 left.
PN?

EDIT: not sure if shipping from Germany to Slovenia is more expensive than the PCBs incl. shipping from OSHpark directly  :-//
« Last Edit: January 10, 2019, 08:51:37 pm by stan23 »
 

Offline Nighthawk

  • Newbie
  • Posts: 6
  • Country: si
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #736 on: January 10, 2019, 09:13:49 pm »
Hey,

This adapter is compatible with 858D06 & MK1840D3 right ?
« Last Edit: January 10, 2019, 09:24:58 pm by Nighthawk »
 

Offline emocabras

  • Contributor
  • Posts: 15
  • Country: it
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #737 on: January 17, 2019, 02:17:00 pm »
hello; help me

my card is af858d cpu samsung s3f94c4ezz-dk94 I used mod cowana with reference tl 431 2.5v.

I succeed with calibration (  temp_offset_corr  )   to set correct actual temperature and display temperature.

if increase temperature to 500 the display will show maximum 466 with heating indication always access.

I verified that at 466 c ° the value adc is 999.

how can I calibrate so as not to overheat.


firmware  original madworm:




#ifdef DEBUG
      int32_t start_time = micros();
#endif
      static int16_t temp_inst = 0;
      static int32_t temp_accu = 0;
      static int16_t temp_average = 0;
      static int16_t temp_average_previous = 0;

      static int32_t button_input_time = 0;

      static int16_t heater_ctr = 0;
      static int16_t heater_duty_cycle = 0;
      static int16_t error = 0;
      static int32_t error_accu = 0;
      static int16_t velocity = 0;
      static float PID_drive = 0;

      static uint8_t temp_setpoint_saved = 1;
      static int32_t temp_setpoint_saved_time = 0;

      static uint32_t heater_start_time = 0;

      uint16_t adc_raw = analogRead(A0);   // need raw value later, store it here and avoid 2nd ADC read

      temp_inst = adc_raw + temp_offset_corr.value;   // approx. temp in °C

      if (temp_inst < 0) {
         temp_inst = 0;

firware mod cowana:


#ifdef DEBUG
    int32_t start_time = micros();
#endif
    static int16_t temp_inst = 0;
    static int32_t temp_accu = 0;
    static int16_t temp_average = 0;
    static int16_t temp_average_previous = 0;

    static int32_t button_input_time = 0;

    static int16_t heater_ctr = 0;
    static int16_t heater_duty_cycle = 0;
    static int16_t error = 0;
    static int32_t error_accu = 0;
    static int16_t velocity = 0;
    static float PID_drive = 0;

    static uint8_t temp_setpoint_saved = 1;
    static int32_t temp_setpoint_saved_time = 0;

    static uint32_t heater_start_time = 0;

    uint16_t adc_raw = analogRead(A0);  // need raw value later, store it here and avoid 2nd ADC read

   // tempRawAdc += adc_raw;  //for the raw adc average

    temp_inst = (adc_raw / 2.498) + temp_offset_corr.value; // approx. temp in °C

    if (temp_inst < 0) {
      temp_inst = 0;


thanks



 

Offline emocabras

  • Contributor
  • Posts: 15
  • Country: it
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #738 on: January 18, 2019, 06:52:20 pm »
I have set

temp_inst = (adc_raw / 1.9988) + temp_offset_corr.value; // approx. temp in ° C

now to be 999 with 500 ° temperature

be correct procedure?
 

Offline Nighthawk

  • Newbie
  • Posts: 6
  • Country: si
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #739 on: January 20, 2019, 09:02:47 pm »
@Stan23

Thank you for your help and PCB.

I can't PM you, because you have a full inbox :)

 

Online Mortymore

  • Frequent Contributor
  • **
  • Posts: 469
  • Country: pt
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #740 on: March 16, 2019, 06:11:42 pm »
Bought a 858D+ at Amazon.de

Besides the fact that it has no brand, the reference on the controller chip was erased, and it's SMD (20 pin).

The manual, in english, has no reference to brands and it's probably just a translation of the manual that most have in chinese.

Searched the forum for some intel, but seems that I have something slightly different here, since not even for the PCB I could found a similar reference, being mine 858D.PCB (so, no revision) and dated 2018.05.02

I was expecting though, that the controller was a MK184x, but after just looking for the connections to power supply, found that the GND is on pin6 and Vcc (5v) on pin 15. For what I found so far, seems that it can't be a MK or a S3. I didn't trace the board any further, since I assume that all connection will be similar to other boards, just routed to different pins on the chip since it seems that it's not pin compatible with the traditional ones.

The main components on this PCB are:
EL3041 (triac optocoupler)
BTA12 (triac)
24C02 (serial EEPROM)
OP07C (op.amp)
DB107 (bridge rectifier)
7805 (volt regulator)
TIP122 (Darlington NPN)
?????? (20 pin SMD controller)

Any idea of what controller it may be?
« Last Edit: March 16, 2019, 06:14:39 pm by Mortymore »
 

Offline lpg

  • Newbie
  • Posts: 2
  • Country: at
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #741 on: May 01, 2019, 11:16:12 am »
@Mortymore
also here in AUT - bought this one from AMA**: UVISTAR 858D 

So after some quick measurements its appears that the PCB is the same as yours (858D.PCB (so, no revision) and dated 2018.05.02).
The "unmarked" uP is also a 20p SOIC - as all the other versions MK1840xxx - but the pins won’t match at all.

So the pinout was traces as following table:


Code: [Select]
AVR   Disc.       Print ref. 02.05.2018     MK18xxx
PC5   FAN                    Speed Pot. Pin @ R11
PC3   FAN                  5                   MK_10
PC0   ADC Thermo          9                   MK_11
PB1   Triac                  4                   MK_6

PB0   7-seg dig0           1                   MK_7
PB7   7-seg dig1           2                   MK_3
PB6   7-seg dig2           3                   MK_2

PD0   7-seg top         18                 MK_15
PD1   7-seg bot left    11                 MK_16
PD2   7-seg bot         13                 MK_17
PD3   7-seg top left    19                 MK_14
PD4   7-seg dot         14                 MK_5
PD5   7-seg bot right 16                 MK_18
PD6   7-seg middle         17                 MK_19
PD7   7-seg top right 20                 MK_13

PB5   SW up             8                   MK_8
PB2   SW down     7                   MK_9
PB4   reed             12                 MK_4

VCC                   15                 MK_20
GND                   6                   MK_1

According to the firmware from

Code: [Select]
* This is a custom firmware for my 'Youyue 858D+' hot-air soldering station.
 * It may or may not be useful to you, always double check if you use it.
 *
 * V1.47 (based on original V1.46)
 * 2016    - RaiHei
 * 2015/16 - Robert Spitzenpfeil
 * 2015    - Moritz Augsburger
 *
 * License: GNU GPL v2

I won’t remember the web location from the original files (any help appreciated)  - but you need the V1.47 due to some hardware changes at the heater/thermal calculation. I'll attach the binary’s here as well for the 328P and 168P.
Code: [Select]
AVR fuses:
lfuse:w:0xE2
hfuse:w:0xDF
efuse:w:0xFD

I also have made a PCB back then in 2017 for my first 858+ - these would come handy here :-+
So i glued some spacers on the board - put the old mod-PCB on top and run some wires down to the original 20p SOIC.
Upload the code - tested it with the lab supply (5V) after the 7805 - it worked perfectly.

I tested it beforehand with a incandescent bulb to see what the triac is doing.

All done - connected it back together and we are good to go with the calibration. (Press the two buttons at the same time)
The "TPL" parameter has to be changed from 10 to some ware between 18 and 21 - depends on the gun/heater and the calibration process.
 
So far - thats it.
 
The following users thanked this post: Mortymore, Jatz

Online Mortymore

  • Frequent Contributor
  • **
  • Posts: 469
  • Country: pt
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #742 on: May 01, 2019, 12:22:10 pm »
@ lpg

Welcome to the forum!

Fantastic job you have done, and thanks for sharing it!  :clap:

Suppose I have to put my hands on the guts of my 858D+ one of this days, thanks to you.  :-/O

 
The following users thanked this post: lpg

Offline ride_bmx_mhell

  • Newbie
  • Posts: 1
  • Country: ph
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #743 on: June 01, 2019, 11:06:55 am »
i bought yihua858d recently,i want t try custom firmware to this unit but it has different layout and components.
i found a
s3f94c4ezz-dk94 microcontroller chip
7805 smd vreg
tip122
lm358
bta16 triac
3401 isolator
..need pointers where to start?
 :-//
« Last Edit: June 01, 2019, 11:12:45 am by ride_bmx_mhell »
 
The following users thanked this post: bitseeker

Offline Jatz

  • Newbie
  • Posts: 1
  • Country: au
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #744 on: June 08, 2019, 01:11:30 pm »
I've just received an 858D and was pretty disappointed to find it has the same mystery 20 pin SOIC as reported by Mortymore and lpg.

The date code on mine is even older than theirs (2018.05.02), mine is apparently from 2017.09.23! Board label is simply 858D.PCB with no revision identified.



I was hoping/expecting the brains to be in a DIP package. Bit of a recursion problem for hacking at it since the unit itself was a purchase made to train myself on surface mount work too.  |O Weighing up options now.
 
The following users thanked this post: bitseeker

Offline lpg

  • Newbie
  • Posts: 2
  • Country: at
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #745 on: June 11, 2019, 12:28:25 pm »
Hi together!
finally I managed this to get up and running.
There is a serious design "difference" in the 20Pin SOIC version.
The heater control signal to the MOC3041 is now driven from an additional transistor (Q5). So every custom firmware from the past would most likely kill the heater right after power up!

I desoldered the driver transistor Q5 and replaced the combination R14,Q5 with roughly 500R of total resistance.
Now I can user the Firmware as described earlier
 
The following users thanked this post: vivaT, Mortymore, Jatz

Offline Atanas79

  • Newbie
  • Posts: 6
  • Country: bg
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #746 on: June 11, 2019, 07:12:46 pm »
Hello
I got a different board than the ones shown.
It uses MCU HR7P169 .
Anybody can help how can i connect this MCU  to the computer and read the code to have it in the future

Chips using in this device :

Upper left -> Eastsoft HR7P169BFGTF

Upper right  -> F7103

in the middle on pcb -> LM358

in the  below the transformer -> PN8370

Using moc3023  who the control bta12/800A

Power direct from AC 230v / 50 Hz
 
https://ibb.co/jV34VTm
https://ibb.co/gPWNKGP
https://ibb.co/nn9Dmv5


« Last Edit: June 11, 2019, 07:19:35 pm by Atanas79 »
 

Offline colourspace

  • Newbie
  • Posts: 1
  • Country: us
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #747 on: July 08, 2019, 02:59:59 am »
Newbie here. Just received my 858D clone from Amazon branded as the "YAOGONG YG 858D" and popped it open. I'm still reading through the thread, but it looks like this one has a PCB revision that hasn't been cataloged yet. I thought I'd share some pictures and info.

PCB: 858DA.PCB
DATE: 2017.11.13

My initial safety checkout revealed that the tip was grounded to mains ground, but there was an issue with the fuse. IEC to NEMA adapter had the L and N wires switched, meaning that the fuse was on N instead of L. I replaced it with a proper adapter and swapped the connections to the board. I'm still doing my research on 858D safety and mods so I imagine there will be some future changes as well.
 
The following users thanked this post: bitseeker

Offline netdudeuk

  • Frequent Contributor
  • **
  • Posts: 462
  • Country: gb
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #748 on: July 09, 2019, 08:29:55 am »
Does that through hole joint near R21 need reflowing ?
 

Offline torjdrez

  • Newbie
  • Posts: 2
Re: Youyue 858D+ some reverse engineering + custom firmware
« Reply #749 on: July 10, 2019, 04:42:06 am »
Hi Madworm.. I Have a 4 in 1 Station Baku BK-862D++ it has IRDA Top heater, IRDA Preheater, Soldering Iron and HOT Air Station.

Recently i tried to replace malfunction pot for IRDA Top Heater.. the control board are integrated like picture 2..
as careless i'm and bad design the wire plug for the 5v supply and switch for Hot air station are identical, i missplace the 5v to the switch side that shoot 5v directly to avr pin SCK ATMEGA8L-8AU.. Now the Hot air controller are dead.. i tried to isp backup the firmware but the chip are not detected,

my beg is can you tell me how to change the  pin assignment of you custom firmware, as i trace the design of my station unit.. the used components are almost identical, except the input are using rotary encoder..
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf