|
|
NTC 10k |
x 1 |
HeatSolder
It is an innovative heating and control card that enables precise soldering of SMD (Surface-Mount Device) components. With its user-friendly OLED screen and integrated keypad, it allows you to easily set the ideal temperature for the soldering process. This board allows you to place and solder your SMD components perfectly by heating the surface according to the temperature value you specify.
code used:
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 32
#define OLED_RESET -1
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
const int thermistorPin = A3;
const int seriesResistor = 10000; // Seri ba?l? diren? (10kΩ)
const float BETA = 3950; // NTC termist?rün B de?eri (bu de?eri datasheet'ten alabilirsiniz)
const float T0 = 298.15; // 25°C'ye kar??l?k gelen s?cakl?k (K cinsinden)
const float R0 = 10000; // 25°C'de termist?rün diren? de?eri (10kΩ)
// Push butonlar i?in pinler
const int buttonUpPin = 7; // Hedef s?cakl?k artt?rma butonu
const int buttonDownPin = 8; // Hedef s?cakl?k azaltma butonu
const int buttonResetPin = 9; // Hedef s?cakl?k s?f?rlama butonu
// Hedef s?cakl?k ve di?er de?i?kenler
float targetTemperature = 25.0; // Ba?lang?? hedef s?cakl?k (25°C)
// MOSFET'in ba?l? oldu?u pin
const int mosfetPin = 5; // Mosfet'i kontrol etmek i?in dijital pin
unsigned long lastButtonPress = 0;
const unsigned long debounceDelay = 200; // Butonlar i?in debounce süresi
// Fonksiyon: Termist?rden gelen analog de?eri s?cakl??a d?nü?türür
float readTemperature() {
int analogValue = analogRead(thermistorPin);
float resistance = seriesResistor * (1023.0 / analogValue - 1.0);
// Termist?rün s?cakl?k formülünü kullanarak s?cakl??? hesapla
float temperature = 1.0 / (log(resistance / R0) / BETA + 1.0 / T0) - 273.15; // °C cinsinden s?cakl?k
return temperature;
}
void setup() {
// Seri haberle?meyi ba?lat
Serial.begin(9600);
// OLED ekran? ba?lat
if (!display.begin(SSD1306_I2C_ADDRESS, OLED_RESET)) {
Serial.println(F("Ekran ba?lat?lamad?"));
while (1);
}
// Ekran? temizle
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(SSD1306_WHITE);
display.setCursor(0, 0);
display.print(F("Is? Degeri"));
display.display();
delay(2000);
// Buton pinlerini giri? olarak ayarla
pinMode(buttonUpPin, INPUT_PULLUP);
pinMode(buttonDownPin, INPUT_PULLUP);
pinMode(buttonResetPin, INPUT_PULLUP);
// MOSFET pinini ??k?? olarak ayarla
pinMode(mosfetPin, OUTPUT);
digitalWrite(mosfetPin, HIGH); // Ba?lang??ta MOSFET a??k (Is?t?c? ?al???yor)
}
void loop() {
// S?cakl?k de?eri oku
float currentTemperature = readTemperature();
// Butonlar? kontrol et
unsigned long currentMillis = millis();
if (currentMillis - lastButtonPress > debounceDelay) {
if (digitalRead(buttonUpPin) == LOW) {
targetTemperature += 1.0; // Hedef s?cakl??? 1°C artt?r
lastButtonPress = currentMillis;
}
if (digitalRead(buttonDownPin) == LOW) {
targetTemperature -= 1.0; // Hedef s?cakl??? 1°C azalt
lastButtonPress = currentMillis;
}
if (digitalRead(buttonResetPin) == LOW) {
targetTemperature = 25.0; // Hedef s?cakl??? 25°C olarak s?f?rla
lastButtonPress = currentMillis;
}
}
// Ekran? temizle
display.clearDisplay();
// Mevcut s?cakl?k ve hedef s?cakl?k de?erlerini ekrana yazd?r
display.setCursor(0, 0);
display.print(F("Mevcut Sicaklik: "));
display.print(currentTemperature, 1); // 1 ondal?kl? g?sterim
display.print(F(" C"));
display.setCursor(0, 16); // 32x128 ekran i?in uygun bir yer
display.print(F("Hedef Sicaklik: "));
display.print(targetTemperature, 1); // 1 ondal?kl? g?sterim
display.print(F(" C"));
// Ekran? güncelle
display.display();
// Seri port üzerinden de veriyi yazd?r
Serial.print("Mevcut Sicaklik: ");
Serial.print(currentTemperature);
Serial.print(" C, Hedef Sicaklik: ");
Serial.print(targetTemperature);
Serial.println(" C");
// Hedef s?cakl??a ula??ld???nda MOSFET'i kapat
if (currentTemperature >= targetTemperature) {
digitalWrite(mosfetPin, LOW); // MOSFET'i kapat (Is?t?c?y? durdur)
} else {
digitalWrite(mosfetPin, HIGH); // MOSFET'i a? (Is?t?c?y? ?al??t?r)
}
// 1 saniye bekle
delay(1000);
}
HeatSolder
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
Attribution-ShareAlike (CC BY-SA) License
Read More⇒
Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW- Comments(0)
- Likes(1)
-
Engineer
Nov 24,2024
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Semih_Cngts
-
Drone Board
brushed drone control board built using atmega328p and mpu6050.
-
HeatSolder
It is an innovative heating and control card that enables precise soldering of SMD (Surface-Mount De...
-
PLANE _ RECE?VER
It is a module made using NRF24L01 mini, it works 5V from esc.
-
Smart_Home_1C(V-2.0)
Circuit that can be used to control 220v electricity over the internet for smart home systems
-
ESP12-LED-STR?P-CONTROLLER
This project, which we created using esp 12-f, was created to control led strips over the internet.
-
OWL_DRONE RECE?VER
Receiver made using nrf24l01-mini.
-
OWLDU?NO(Arduino copy)
is a copy of the arduino
-
OWL_DRONE_TRNSM?TTER
NOTE: turn off the switch when programming.
-
Smart Home 2C
Upload the required code to espinstal the blynk appmake adjustmentsPay attention to 220v electricity
-
Smart Home 5C
Esp'ye gerekli kodu yükleyinblynk uygulamas?n? yükleayarlamalar? yapmak220v elektri?e dikkat edin
-
Smart Home 1Channle
Upload the required code to espinstal the blynk appmake adjustmentsPay attention to 220v electricity
-
1x18650 PowerBank board
Charged with micro usb(5V-1A)
-
-
ARPS-2 – Arduino-Compatible Robot Project Shield for Arduino UNO
1335 0 4 -
-
A Compact Charging Breakout Board For Waveshare ESP32-C3
1864 3 7 -
AI-driven LoRa & LLM-enabled Kiosk & Food Delivery System
1851 2 0 -
-
-
-
ESP32-C3 BLE Keyboard - Battery Powered with USB-C Charging
2029 0 1 -







