CD Smart
EGYPT • + Follow
Edit Project
Description
PET Machine
The temperature and speed control board of the stepper motor is used to control the water bottle recycling machine.
Code
Temprecher_Atmega328P
C/C++
#include <LiquidCrystal_I2C.h>
#include <EEPROM.h>
LiquidCrystal_I2C lcd(0x27, 16, 2); // تعيين عنوان الشاشةI2C وحجمها
تعيين دخل التيار الكهربائي التناظري للثرمستور // ;const int analogInPin = A1
القيمة المقروءة من التيار الكهربائي التناظري // ;int sensorValue = 0
float outputValue = 0;
)التيار الكهربائي التناظري( PWMالقيمة المخرجة إلى // ;float a = 0
القيمة المقروءة من التيار الكهربائي التناظري // ;int sensorVolt = 0
int outputVolt, b, x, ps=220, ph, pl, s, m, t;
int tt;
int resistorValue = 100;
void setup() {
Serial.begin(9600);
تهيئة الشاشة // ();lcd.init
تفعيل الإضاءة الخلفية للشاشة // ;)(lcd.backlight
pinMode(8, INPUT);
pinMode(9, INPUT);
pinMode(10, INPUT);
pinMode(12, OUTPUT);
pinMode(13, OUTPUT);
ps = EEPROM.read(0);
}
void loop() {
if (m == 0) {
for (int i = 0; i < 10; i++) {
sensorValue = analogRead(analogInPin);
outputValue = float(sensorValue);
outputValue = outputValue - 10;
a = a + outputValue;
}
a=a/10;
outputValue = a;
lcd.setCursor(0, 0);
lcd.print("Temp=");
lcd.print(outputValue, 1);
lcd.print("C ");
lcd.setCursor(0, 1);
lcd.print("S=");
lcd.print(ps);
lcd.print("C");
if (outputValue < (ps - 1)) {
lcd.print(" Heating ");
digitalWrite(12, HIGH);
delay(100);
}
if (outputValue > (ps + 1)) {
lcd.print(" Cooling ");
digitalWrite(13, HIGH);
delay(100);
}
if (outputValue < (ps + 1) && outputValue > (ps - 1)) {
lcd.print(" Normal ");
digitalWrite(12, LOW);
digitalWrite(13, LOW);
}
}
for(int i=0;i<100;i++){
if(m==1){
lcd.setCursor(0, 0);
lcd.print(" Set Temperature " );
lcd.setCursor(0, 1);
lcd.print(" Limit = " );
lcd.print(ps);
lcd.print("C " );
if(!digitalRead(8) && !digitalRead(9) && !digitalRead(10)){
x++;
Serial.println(x);
if(x==100){
m=0;
// save values in eeprom
EEPROM.write(0, ps);
x=0;
}
}
if(!digitalRead(9)){
delay(200);
ps=ps+0;
if(!digitalRead(8)){
ps=ps+10;
}
if(ps>240){
ps=240;
}
}
if(!digitalRead(10)){
delay(200);
ps=ps-0;
if(!digitalRead(8)){
ps=ps-10;
}
if(ps<0){
ps=0;
}
}
}
if(!digitalRead(8) && m==0){
x++;
Serial.println(x);
if(x==300){
lcd.clear();
m=1;
x=0;
}
}
else if (digitalRead(8)){
delay(200);
m=0;
x=0;
}
delay(10);
} }
Stepper motor control_ESP12E/F
C/C++
const int stepPin = 5;
const int dirPin = 4;
const int leddirPin = 14;
const int stepsPerRevolution = 200;
void setup()
{
pinMode(stepPin, OUTPUT);
pinMode(dirPin, OUTPUT);
pinMode(leddirPin, OUTPUT);
}
void loop()
{
digitalWrite(dirPin, LOW);
digitalWrite(leddirPin,LOW);
for(int x = 0; x < stepsPerRevolution; x++)
{
digitalWrite(stepPin, HIGH);
delayMicroseconds(400);
digitalWrite(stepPin, LOW);
delayMicroseconds(400);
}
}
Schematic and Layout

Aug 14,2024
271 views
PET Machine
PET 40W_V1.1
271
0
0
Published: Aug 14,2024
Download Gerber file 1
BOM(Bill of materials)
Purchase
Donation Received ($)
PCBWay Donate 10% cost To Author
Only PCB
PCB+Assembly
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
Copy this HTML into your page to embed a link to order this shared project
Copy
Under the
Attribution-ShareAlike (CC BY-SA)
License.
- Comments(0)
- Likes(0)
Upload photo
You can only upload 5 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP
0 / 10000
It looks like you have not written anything. Please add a comment and try again.
You can upload up to 5 images!
Image size should not exceed 2MB!
File format not supported!
View More
View More
VOTING
0 votes
- 0 USER VOTES
0.00
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Design
1/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Usability
2/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Creativity
3/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Content
4/4
More by CD Smart
-
Smart Medi Box This project contains a medi box design, having humidity and temperature sensor inside. User interat...
-
Pool Heater Controller Smart controller for gas pool heaters.Simple panel control is a built in option however the intent i...
-
remote controller WiFi Infrared Remote Control Universal Smart Remote Control for Air Conditioner Fan TV Voice Control...
-
WiFi Smart Wall Switches All switches can be controlled remotely using your phone, and devices connected with switches can wo...
-
Smart Home 4CH Pro Overall, the Smart Home 4-Line 10A Panel simplifies home automation and enhances convenience through...
-
Shutter control 10A Overall, the remote curtain opener and closeer control panel simplifies home automation and enhances...
-
Air conditioning control board Overall, the AC on/off control panel simplifies home automation and enhances comfort through central...
-
Smart Home 3CH_10A Overall, the Smart Home 3-Line 10A Panel simplifies home automation and enhances convenience through...
-
Smart Home 2CH_10A Overall, the Smart Home 2-Line 10A Panel simplifies home automation and enhances convenience through...
-
Smart Home 4CH_10A Overall, the Smart Home 4-Line 10A Panel simplifies home automation and enhances convenience through...
-
Stepper Motor Control The port was implemented to connect the ESP and the driver so that the shield is integrated and a de...
-
Smart Home_8CH_10A Overall, the Smart Home 8-Line Board simplifies home automation and enhances convenience by centrali...
-
Smart Home_4ch-smart_1.4 Overall, the Smart Home 4-Line Board simplifies home automation and enhances convenience by centrali...
-
Smart Home_4CH_2A Overall, the Smart Home 4-Line Board simplifies home automation and enhances convenience by centrali...
-
PET Machine The temperature and speed control board of the stepper motor is used to control the water bottle rec...
-
Staircase lighting control The circuit works to sense movement using the SIR motion sensor, and when anyone approaches the sens...
-
4CH Relay Module Robust design using an NPN transistor to drive each relay with a PC817 optocoupler.Relay on LED indi...
-
Police lighting The circuit that switches between red and blue lights to simulate police lights using the ESP8266 co...
You may also like
-
-
Nintendo 64DD Replacement Shell
108 0 1 -
V2 Commodore AMIGA USB-C Power Sink Delivery High Efficiency Supply Triple Output 5V ±12V OLED display ATARI compatible shark 100W
193 4 1 -
How to measure weight with Load Cell and HX711
349 0 3 -
-
Instrumentation Input, high impedance with 16 bit 1MSPS ADC for SPI
483 0 0 -
RGB LED Matrix input module for the Framework Laptop 16
754 0 2