Hacking a Youyue-858d hot-air rework station

Yes, but ’328s can’t. You can only program them via ISP or a parallel programming mode that requires a bunch of wires. I have an STK500 that can do it, but way more trouble than cramming a crystal into the zif socket of the adapter.

You nailed that on the head for sure.

Is there anything I need to know before I start the process ? (except that start with the fan setting at middle) I will be using a ATMEGA168PA-PU

I forget what the correct fuse settings are. Are they in the notes? Flash it, install it. For some reason it will not work right away, don't get excited! Put the fan setting in the middle, 4.5, make sure it is in the cradle and turn it on. It may flash some info across the screen. Turn it off and do it again, after 4 to 8 on off sessions it will work. This is the correct sequence of stuff you see on the screen when you turn it on:

005

1.33

- - -

When you turn it on after it flashes those, if it starts flashing FAN, start over again and try turning the fan to 4 or 5.

PM me if you need more help. The important thing to remember is that when you turn it on make sure it is in the cradle and set the fan speed in the middle. Once you get the 3 dashes - - - your golden.

The fuse settings are in the notes, but it’s a little confusing right now… I’ve done only arduino, so I am not familiar with the fuse concept. A full command line for avrdude (i just instlled that using brew) would be of great great help… Nevermind. I found it inside the source code…

[Youyue-858D-plus/binaries at master · madworm/Youyue-858D-plus · GitHub]

I don't know if you tried to use it with the old firmware or not, I didn't. When it finally fired up and was working I was sooo happy, its an awesome machine.

I hope you like it!

If you talk about the original firmware, then yes, I did. After 5 min I decided to search on the internet if other people find that the functionality sucks and end up reading about this custom firmware. Without hesitation I opened it and checked if the version I have is supported. That’s when I saw that mine came with ATmega8.

I’m still waiting for the ISP programmer to arrive… But my hands are itchy…

lol! Your in for a HUGE treat!

Success!!
After some trouble uploading the firmware (mine is a atmega168p and there was some mismatch signature) and an initial scare (keep showing error “CrAdLE”) - I realised that the chip wasn’t properly pushes into the socket (!!!) - now it’s all good!. I’m on firmware ver 1.37

I might change the length of the ±10 temperature increment as it often jumps by 10 when I just want 1, but that easy…

Thanks for all the help!!!

Working: board ver 6 (20140415) with Atmega168p on ver 1.37

We’ve just updated the firmware to V1.41. Some changes under the hood.

New features:

  • support FAN-only mode (just cold air) by lowering the temperature setting below 50
  • no need to power-cycle anymore after “CrAdLE” error.

Provided binaries:

  • ATmega168
  • ATmega328P

Enjoy!

A useful option to add for the next release would be the ability to display temperatures in degrees F (a quaint little system of measurement used in some backwoods parts of the world)

Why unnecessarily prolong the agony :evil:

If we find the time, one of us might attack this pet-peeve.

Thank you so much for the continued development of the firmware for this device. I certainly appreciate it!!!

ver 1.41 working on ver 6 board (20140415) with ATmega168P

Thank you!

ver 1.41 seams to have a small bug. “FAN” setting doesn’t get saved. If you turn off the station on “FAN”, when turning it back on, the last setting before “FAN” becomes active.

Edit: I notices in the codes line 322 “// never save fan only (will also reset temp to default…” so it’s not a bug, but a choice… May I ask why?

You forgot: Pressing up during power on shows the current fan current/speed, usefull to set the limits afterwards if you get “fan cur” or “fan spd” errors when switching on.

Two reasons:

- The current eeprom save implementation doesn’t allow saving, as I use temp=0 for no heating, which is out of range

  • I am currently not happy with the activation of fan only mode, as there is no switch back to the last used temperature. This way, I can just power toggle the station :wink:

But after hacking nearly one day I had to return to my normal duties, and therefore left it in this state.

And here is a new release 1.42:

New Features:

- fan only can be toggled by pressing both buttons at once (long press for config settings)

- “FAN” and acutal temperature are shown alternating while cooling down

  • temperature in set mode blinks slightly

Feature request :bigsmile: : a hardware mod to introduce a sound alert if it’s been X min since the last user action (most likely monitoring the cradle would be sufficient) …
How difficult would be to implement ?

Change request: on the +10 can the increment be slow down ? Meaning only increase with every 1sec hold ? Now the temp goes up and down very fast….

Thats all for now :smiley:

THANK YOU for making something almost useless into a “must have”!!!

It would be probably no big deal to switch a pin as soon as the device goes into standby (wand out of cradle for by default more than 10mins), but then you still have to connect some sort of buzzer with less than 20mA or an extra transistor to that pin.

Is that what you had in mind?

1sec per increment is much too slow, I don’t want to wait half a minute to go from 50 to 350. But it’s a bit slower now.

Yes, that’s what I had in mind, a small buzzer…

1 sec is indeed too long, but you got what I mean… Prob I can look through the codes and change them, but prob I am not the only one who needs that…