Code Monkey home page Code Monkey logo

youyue-858d-plus's Introduction

Youyue-858D-plus

Custom firmware for the Youyue 858D+ (ATmega168/ATmega328)

There is a 'user manual' of sorts in the 'Docs' folder.

Some videos showing the progress from 'stock firmware' with massive temperature overshoot towards almost no overshoot at all.

https://www.youtube.com/playlist?list=PLONcxJMOrdyeYuEgM6qhCllZelN6gPjrT

Please note:

Although this device looks very much like ones sold by 'Atten' and others, the innards are not necessarily the same. The heater / wand are probably the same, but I know that e.g. the 'Atten 858D' uses a different mainboard with a different brand micro controller.

Naturally, this firmware will only work 'as is' for the exact mcu / mainboard combination I have. Please see the 'Docs' folder for schematic and PCB photos.

MCU-Adapter repository (optional).

FAN-speed-mod repository (optional).

Adapter PCB for clones with Samsung MCU EEVBLOG

Compiling/Development

There are currently three options available, choose your preferred environemt:

  • Use the Arduino IDE, make sure you do ISP Upload and don't use the arduino bootloader.
  • Use Atmel Studio 6 together with the VisualMicro Plugin for Arduino support, make sure you do ISP Upload and don't use the arduino bootloader.
  • "raw" text editing and Makefiles, to do so run git submodule update --init and afterwards make ispload. You probably need to adjust ISP_PROG and AVRDUDE_ARD_PROGRAMMER in the makefile.

The supplied release.sh only works together with the Makefile method.


Safety information / disclaimer:

Making any modifications to this device may cause you irreversible physical harm or worse. You do this at your own risk.

There is a significant risk of lethal electrical shock, so if you still insist of doing so, make sure to ALWAYS UNPLUG THE MAINS CABLE before dismantling the device. Check repeatedly.

If you have an isolation transformer - do use it.

youyue-858d-plus's People

Contributors

maugsburger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

youyue-858d-plus's Issues

Most of the time 2x fan test at startup

Hi!

It's not really a problem, because besides that everything works fine, but still:

Most of the time I switch on the station, it simply does the show firmware version and fan test part twice. So after the first fan test the display flickers briefly, shows the version still/again and the fan spins up again. After that the three dashes (or temperature) show and everything works as expected.
About 1/5th of the time the station does only one test.

Any ideas where to look?

I'm using the Youyue 858D+ 20140415 v6.0 board with the ATmega328p and the binary file which is kindly provided here. I also didn't change any settings yet - so everything is set to default.

This is how I flashed the chip (I renamed the file):

avrdude -c usbasp -p atmega328p -v -U lfuse:w:0xE2:m -U hfuse:w:0xDF:m -U efuse:w:0x05:m -U lock:w:0x0F:m

avrdude -c usbasp -p atmega328p -v -e -U flash:w:858d.hex:i

I never used avrdude before, so I post this too, just in case I did something wrong...

Just FYI - found an error in your schematic

You got the wires crossed between "lcd dig1" and "lcd dig3" - the labels and pin numbers on either sides seems correct, but the wires do not trace to the right pin - I know..,. minor glitch, but still, it can (and did for me) cause some confusion. ;)
Edit: Should probably point out, that it's in the "858D_RevEng_Schematic.pdf" since you have multiple schematics in here :D

Calibration trimmer potentiometer on the front

Sorry for opening an issue for this, because it's more of a simple question than a problem:

Is the trimmer labeled "CAL" on the front panel used in your firmware at all? It is not mentioned anywhere - so I guess temperature correction is (only) applied by the value in the software settings as described in the docs?

404 links in README.md

The links in README.md's Compiling/Development section don't point to their intended targets. I suspect you meant:

* Use the [Arduino IDE](https://www.arduino.cc/en/Main/Software), make sure you do ISP Upload and _don't_ use the arduino bootloader.
* Use [Atmel Studio 6](http://www.atmel.com/microsite/atmel_studio6/) together with the [VisualMicro Plugin](http://www.visualmicro.com/page/Arduino-for-Atmel-Studio.aspx) for Arduino support, make sure you do ISP Upload and _don't_ use the arduino bootloader.

"RST" about half the time

Thanks for your alternative firmware.

Unfortunately I get "RST" roughly every second time I turn on the unit. Moreover, when I set the fan speed to maximum and start the unit I get "FANSPD". Is this expected without the current sens mod?

I'm using your binary and flashed it to a ATMEGA168-20PU with the following command:
avrdude -patmega168 -cstk500v1 -P/dev/ttyUSB0 -b19200 -e -Uefuse:w:0x05:m -Uhfuse:w:0xdd:m -Ulfuse:w:0xe2:m -Uflash:w:2015-02-16__commit-9e3db57f__ATmega168-8MHz-RC-osc__FUSES-0xE2-0xDD-0xFD__V1.37-WDT.hex

H-E Error Fix

Hi,

I had "H-E" and changed head gone some years before.
Now it comes back.

It turned out to be a bad ground connection between the two pushbuttons. I soldered a wire between the outer ground pins of the pushbuttons, and it's now working perfectly.

The reason you get the "H-E" is because the negative lead of the thermocouple lead is grounded via the pushbuttons. If there is a break in the ground, the thermocouple is pulled to a higher voltage ( via R31) and the opamp goes into saturation trying to amplify it.
The saturation voltage is about 4V, which the MCU interprets as ~892 deg. Then, after a couple of seconds it goes into error mode.

Anyway, check that the black thermocouple wire is properly grounded. In my case, the problem was intermittent, and showed up when the board flexed (due to pushing buttons).

maybe you can mentioned in your readme

Expand firmware with 'calibration' parameters

Evaluate if

a) multi-point (e.g. 10 or 20) calibration is feasible & accurate enough
b) non-linear fit on calibration data is OK (might need float variables - slow)

What about different models / clones. Same thermo-couple characteristics?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.