Tianshan OLED white light soldering iron microcontroller source code and user manual V3.1.1

Publisher:ShiningSmileLatest update time:2019-12-14 Source: 51hei Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

0 Special Notice
0.1 Copyright Statement

All codes in the program are developed by myself (i.e. all copyright owners, the same below). After the program is open source, anyone is authorized to use the program free of charge (they can use the firmware directly or modify any derivative version based on the program), but the copyright of the above program and this document belongs to me.

The hardware design was based on the suggestions of many netizens. I will not declare the copyright, but please respect the work of myself and other netizens.


0.2 Open Source Agreement

Any derivative version of this program (including but not limited to this version, the same below) modified by anyone other than me, as well as other programs designed based on the ideas or part of the code of this program, must open source all the codes. Without the written authorization of the first copyright owner (@BEAT), no organization or individual may use the above program (including this program and all derivative versions and other programs designed with reference to this program) and this document for commercial purposes in any form.

This program is protected by copyright law. I reserve the right to pursue legal liability against infringers and those who violate the open source agreement. Please abide by this open source agreement, respect the work of the original author and all derivative version authors, and abide by the laws and regulations of the copyright owner's location!


0.3 Disclaimer

I only design the program and share it with netizens for free. I only guarantee that the program can work properly in my hands, and I cannot guarantee that the circuit boards, components and source programs obtained by others in any form can work properly. I will not bear any consequences caused by anyone else using all the software and hardware designed by me. If you do not agree with this statement, please delete this document and its related programs immediately.


0.4 Acknowledgements

Part of the content of this program refers to the relevant algorithms of @BEAT; @xzhyahoo1 provided suggestions when designing V2.0 and V2.1; the bug fixed in V2.8 was discovered by @理解由誠誠. The UI in V3.0 was designed by @BEAT. The help of the above friends has played a good role in the development and update of the program, and I would like to thank them here.


1 Hardware Preparation 1.1 Hardware Introduction 1.1.1 Introduction to the PCB I designed

① There is a known problem that the encoder and the OLED screen are too close. If you choose a 1.3-inch OLED, the encoder will block part of the OLED screen after the knob is installed. Therefore, you need to fly the wires yourself, or install the screen with cables, or EC11 uses flying wires, in short, separate the screen and the encoder.

② When welding the buzzer and encoder, the buzzer should be welded first and then the encoder, and the two pads of the buzzer should be properly insulated with tape or hot melt adhesive, otherwise the metal on the back of the encoder will short-circuit the buzzer, and the two fixing feet of the encoder need to be cut off.

③ When using a 5V powered OLED screen, R4/R5 should be 1k. When using a 3.3V powered OLED screen, R4/R5 should be 470R. Whether to use 5V or 3.3V is determined by the JP1 jumper.

④ Please add a capacitor of 470uF or more to 5V and a 104 capacitor to the op amp VCC.

⑤Capacitor C5 is incorrectly designed and is not actually needed.

1.1.2 Smart Edition Hardware Introduction

① The three capacitors on the front do not need to be soldered, otherwise the program cannot be downloaded;

②It is recommended to replace MOS with AO4413.

1.1.3 SpongeBob Edition Hardware Introduction

①The MCU should be changed to STC15W2K60S2;

1.2 Burning firmware1.2.1 Burning steps

The firmware is in the Objects subfolder under the Prj folder, and the file name is HAKKO.hex.

① Connect the CH340 module to the soldering station, first connect only the TX, RX, and GND wires, and leave the VCC unconnected;

②Check the relevant options according to the steps in Figure 1-1;

 

Figure 1-1 STC-ISP software operation steps

③Connect the downloader VCC to the soldering station.

1.2.2 Troubleshooting of Programming Failure

①The encoder position is not suitable, rotate the encoder and try again (make sure the encoder is turned to the right position and not stuck in the middle);

②TX and RX are connected in reverse, the V1.0beta version hardware should be TR and RT;

③ The power supply of the downloader is unstable. Check the power supply voltage of the downloader after loading;

④ Reduce the maximum baud rate during downloading and uncheck "Use fast download mode".


2 Function Introduction 2.1 Interface Introduction

When the soldering iron is working, it is divided into two working modes, namely normal working mode and channel working mode. The two modes can be switched by short pressing the encoder. They will be introduced separately below.


2.1.1 Normal working mode

In normal working mode, the user is allowed to adjust the set temperature value with a custom step (adjustable in the menu). The step value range is 1-50. The normal working mode interface is shown in Figure 2-1.

Figure 2-1 Normal working mode interface


2.1.2 Channel working mode

In the channel working mode, the user can select and set the temperature in a total of 6 temperature channels from 0 to 5, where channel 0 is 0℃, channel 5 is the "highest temperature" value, and the values ​​of the remaining four channels can be set in factory mode. The channel working mode interface is shown in Figure 2-2.

2.2 Main menu introduction

Long press the encoder to enter the first-level menu, rotate the encoder to select the second-level menu you want to enter, and short press to enter the second-level menu. Rotate the encoder again to move the cursor to the specific parameter that needs to be modified, and short press the encoder to select the content (the option value is displayed after selection). Rotate the encoder again to modify the value. After the modification is completed, short press the encoder to cancel the selection (the option value disappears after cancellation), and rotate the encoder again to move the cursor to other parameters. Long press the encoder to exit the first-level menu and the second-level menu. The long press time is 1s. The menu structure is shown in Figure 2-3.

Figure 2-3 Menu structure

2.2.1 Temperature setting

Temperature step: The temperature step value when the user rotates the encoder in normal mode, and the temperature step value when setting temperature-related parameters in other menus;


Sleep temperature: The working temperature of the soldering iron in "sleep mode". If the option value is less than 50, it will not heat up in sleep mode, and the option value cannot exceed the set value of "maximum temperature" (limited in the firmware, the same below);

Default temperature: The default set temperature after the soldering iron is turned on. The option value cannot exceed the set value of "maximum temperature". If you want the soldering station to save the set temperature value when it was last turned off, you can set this option to "0";

Maximum temperature: The maximum temperature that the soldering iron can be set to. The value of this option cannot exceed 500 (the accuracy is not guaranteed after the temperature exceeds 450°C, please use it with caution);


2.2.2 Time settings

Sleep time: When the soldering iron handle stops vibrating and the encoder does not move, the timing starts. At that time, it enters the sleep mode and works at the "sleep temperature" until it enters the "standby mode". During this time, the soldering iron can be awakened by vibrating the handle or the encoder to heat at the original set temperature again. If sleep is not required, this position is 0. After this position is 0, it will not enter the sleep and standby modes, and the 220V power supply will not be cut off.


Standby time: Start timing after entering sleep mode, enter standby mode when the time comes, and the soldering iron stops heating. This position 0 means that it will directly enter standby mode after the sleep time. In standby mode, the soldering iron can only be awakened by the encoder action.


Shutdown time: Starts timing after entering standby mode. When the time comes, the MCU IO port (customizable, see Chapter 3, Section 5) gives a low-level signal, and the hardware cooperates to cut off the 220V power supply. Setting this position to 0 means not cutting off the 220V power supply. This position is invalid without hardware cooperation, and any value can be set without affecting program operation. Due to the inaccurate clock of the MCU power-off wake-up timer, this time has a large error (20%).


2.2.3 Channel Settings

Default channel: The default setting channel after the soldering iron is turned on. The value range of this option is 1-5. If you want the soldering station to save the setting channel when it was last turned off, you can set this option to "0";

Channel 1-4: Allows the user to set the channel value of channel 1 to channel 4. When called in channel mode, the value of this option must not be greater than the "maximum temperature" value.


2.2.4 Other settings

Tip selection: allows the user to store the parameters of 4 soldering iron tips in advance in factory mode;

Vibration threshold: The sensitivity setting when the soldering iron tip vibrates to wake up the soldering iron. The value range is 0~10, with 0 being the most sensitive.

Button volume: The volume setting when the encoder is turned or pressed, the value is 0~10, 0 means turning off the buzzer;

Protection voltage: The voltage value at which the soldering iron stops heating. When the power supply (or battery) voltage is lower than the set value, the soldering iron stops heating, but does not affect the menu operation;

Temperature fluctuation: When the soldering iron displays large temperature fluctuations, you can increase this value to stabilize the display. The value range is 1-5, 1 is the real-time value.

Restore factory settings: If you need to restore factory settings, set this position to 1. After exiting the menu, all parameters will be restored to factory settings.

[1] [2] [3] [4]
Reference address:Tianshan OLED white light soldering iron microcontroller source code and user manual V3.1.1

Previous article:Three-cup wind speed sensor LCD display single chip program and experimental report
Next article:Use Proteus to simulate H-bridge + DC servo motor with detailed documentation + source code

Recommended ReadingLatest update time:2024-11-22 13:12

BOE exclusively supplies Honor Magic 4 Ultimate Edition with a new generation of flexible OLED screen
On March 17, Honor held a flagship new product launch conference and officially released the high-end flagship model Magic4 Ultimate Edition. Following the Honor Magic3 series, Honor 60 series, and Honor Magic V folding products, BOE once again joined hands with Honor to create the industry's top flexible screen Mag
[Mobile phone portable]
The person in charge talked about the reason why Xiaomi TV Master series adopts OLED screen
The Xiaomi TV Master series will be officially unveiled tomorrow. Prior to this, Zhang Feng, Vice President of Xiaomi Group and Head of Supply Chain, published a long article on the reasons why the series uses OLED screens. The specific reasons are as follows: 1. "Black" means "real black" The black of OLED is like "t
[Mobile phone portable]
Samsung's OLED notebook panel shipments are expected to reach 4.7 million units this year, up 395% year-on-year
On December 6, market research firm Omdia released a report titled "OLED Notebook Panel Development Plan and Outlook 2022", which showed that in 2021, Samsung Display's OLED notebook panel shipments are expected to reach 4.7 million units, a sharp increase of 395% year-on-year. The report said that Samsung Display ha
[Mobile phone portable]
Samsung's OLED notebook panel shipments are expected to reach 4.7 million units this year, up 395% year-on-year
Apple breaks the deadlock! QLED and OLED are expected to cooperate
According to iDropNews, Apple recently approved the application for the patent of "Quantum dot LED (QLED) and OLED integrated into display". In the past two years, OLED and quantum dots, as the two mainstream display technologies, have been fighting over who will be the final winner. Since this year, under the double
[Mobile phone portable]
Apple breaks the deadlock! QLED and OLED are expected to cooperate
Vehicle display research: The penetration rate of innovative display technologies such as OLED and Mini LED is rapidly increasing
With the penetration of new energy and smart driving vehicles, the trend of large-screen and multi-screen in-vehicle displays is becoming more and more obvious. In addition to traditional central control and instrument display screens, new products such as HUD, passenger display, rear entertainment display, electronic
[Automotive Electronics]
Vehicle display research: The penetration rate of innovative display technologies such as OLED and Mini LED is rapidly increasing
Samsung shuts down its LCD screen production line in South Korea and switches to upgrading to OLED screens?
As OLED screen technology matures in recent years, it has been widely used in various terminal devices. In the past, the giants that produced LCD screens have begun to shut down LCD production lines and upgrade them to OLED screens. Now, after LG Display began to reduce the number of LCD screen production lines, Reute
[Embedded]
Samsung shuts down its LCD screen production line in South Korea and switches to upgrading to OLED screens?
One month ahead of schedule! Samsung and LG start OLED production for iPhone 13 series
Samsung Display and LG Display have started producing OLED panels for Apple's new iPhones this year, a month earlier than last year, according to people familiar with the matter. In 2019, due to production delays caused by the spread of the new coronavirus, the iPhone 12 was delayed by one month and released in Octo
[Mobile phone portable]
【PIC32MZ】OLED12864 I2C explicit example
This article mainly describes how to use PIC32MZ to light up OLED12864. OLED12864 can control one pixel at a time, so you need to build your own font library. There is a special software to generate it. The font library is alphabetic characters and is placed at the end. Note that if the arrangement of 12864 is diffe
[Microcontroller]
【PIC32MZ】OLED12864 I2C explicit example
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号