858D+ Rework Station Arduino FW with Calibration Program

3,852 views · Published 26 May 2017 · 30:28 · Indexed 5 October 2026

Channel: bwack · 2017 · Science & Technology

Watch on YouTube

Based on Madworm's FW.
Related forum-post: http://www.eevblog.com/forum/reviews/youyue-858d-some-reverse-engineering-custom-firmware/msg1218513/#msg1218513

Here is my code, forked from madworm's repository https://github.com/bwack/Youyue-858D-plus

THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Enter the CFG menu and set ADC=1.
Take five measurements with five different temperature settings, write down the adc value and measured temp.
Enter the CAL menu and adjust the numbers Ad0-Ad4 and T0-T4 with your measurements.

Changes:
Averaging on the ADC value shown with CFG ADC=1.
Added piecewise_map() function with five calibration points (adc, temp). Returns temperature.

More from this channel