Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translated README.md to Bulgarian. #7

Merged
merged 3 commits into from
Jan 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@

[English](/proj/english.md)

[Bulgarian](/proj/bulgarian.md)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added link to Bulgarian translate in the main README.md


[German](/proj/german.md)

### Integers
Expand Down
278 changes: 278 additions & 0 deletions proj/bulgarian.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,278 @@
# Outdoor Relay Control
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I decided to add the full readme :)

Since Outdoor Realy Control (ORC) is the name of the project, I decided not to translate it.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thats good, because a name can't be translated...


<a href="https://www.tindie.com/products/arduino-core/outdoor-relay-control/"><img src="https://d2ss6ovg47m0r5.cloudfront.net/badges/tindie-larges.png" alt="Ad" width="200" height="104"></a>

## Проблеми

`#4` Добавете LCD дисплей

`#5` Добавяне на RTC модул

`#6` Завършете секцията с цели числа

## Компоненти и консумативи

* `1` Arduino Uno R3
* `1` Mакет 800 точки
* `1` Mакет 400 точки
* `?` Женски кабели
* `?` Мъжки кабели
* `1` Температурен сензор TMP36
* `1` ЛСД дисплей

## Инструменти и машини

* `1` 3D принтер

## Линкове

[Програмен код](https://github.com/arduino-core/Outdoor-Relay-Control)

[Документация](https://hackaday.io/project/189172-outdoor-relay-control)

[Дизайнерски файлове](https://wokwi.com/projects/353834225920033793)

[Магазин](https://www.tindie.com/products/arduino-core/outdoor-relay-control/)

## Описание на проекта

[Английски](/proj/english.md)

[Български](/proj/bulgarian.md)

[Немски](/proj/german.md)
Comment on lines +39 to +43
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added links to all translates.


### Цели числа

Цяло число е положително или отрицателно число, включително `0`.

```cpp
int year = 2023;
```

#### Примери

```cpp
int zero = 0;
```
```cpp
int positive = 2;
```
```cpp
int negative = -4;
```

#### Използвани цели числа

В следващия списък ще видите всички използвани цели числа в проекта. Дефиницията на целите числа е [тук](#Дефинирани-цели-числа).

```cpp
int potentiometer_value1;
```
```cpp
int potentiometer_value2;
```
```cpp
int potentiometer_value3;
```
```cpp
int potentiometer_value4;
```
```cpp
int potentiometer_analogValue1;
```
```cpp
int potentiometer_analogValue2;
```
```cpp
int potentiometer_analogValue3;
```
```cpp
int potentiometer_analogValue4;
```
```cpp
int potentiometer_temperature_min;
```
```cpp
int potentiometer_temperature_max;
```
```cpp
int temperature_value;
```
```cpp
int temperature;
```
```cpp
int potentiometer_clock_min;
```
```cpp
int potentiometer_clock_max;
```
```cpp
int clock_time;
```

#### Дефинирани цели числа

Следният списък съдържа дефиниции на използвани цели числа в този проект.

```cpp
int potentiometer_value1 = 0;
```
```cpp
int potentiometer_value2 = 0;
```
```cpp
int potentiometer_value3 = 0;
```
```cpp
int potentiometer_value4 = 0;
```
```cpp
int potentiometer_analogValue1 = 0;
```
```cpp
int potentiometer_analogValue2 = 0;
```
```cpp
int potentiometer_analogValue3 = 0;
```
```cpp
int potentiometer_analogValue4 = 0;
```
```cpp
int potentiometer_temperature_min = 0;
```
```cpp
int potentiometer_temperature_max = 0;
```
```cpp
int temperature_value = 0;
```
```cpp
int temperature = 0;
```
```cpp
int potentiometer_clock_min = 0;
```
```cpp
int potentiometer_clock_max = 0;
```
```cpp
int clock_time = 0;
```

### `void`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since void is a method, I decided not to translate it.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MitkoVtori Good. Please don't translate any code or headings as code formatted.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MitkoVtori Good. Please don't translate any code or headings as code formatted.

Of course no, who translates code? 🤣

The Pull Request is ready to be merged, everything is up to date. 🙂

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. Lets merge


```cpp
void {function}({attributes}){
// Run your code here
}
```
```cpp
void setup(){
// This code runs one time
}
```
```cpp
void loop(){
// This code runs immediately
}
```

#### Функции

Вижте всички функции, използвани в този проект. За да видите дефинициите на цели числа, вижте [този раздел](#Дефинирани-цели-числа).

```cpp
void setup(){
Serial.begin(9600);
pinMode(13, OUTPUT);
pinMode(11, OUTPUT);
pinMode(10, OUTPUT);
pinMode(9, OUTPUT);
}
```
```cpp
void loop(){
potentiometer_switch();
}
```
```cpp
void pin(int pin, int value){
digitalWrite(pin, value);
}
```
```cpp
void temperature_delay(){
rgb_led(255, 136, 0);
delay(18000);
}
```
```cpp
void temperature_sensor(){
temperature_value = analogRead(A0);
temperature = map(temperature_value, 0, 410, -50, 150);
temperature_delay();
}
```
```cpp
void potentiometer_switch(){
potentiometer_value1 = analogRead(A1);
potentiometer_clock_min = analogRead(A1);
potentiometer_value2 = analogRead(A2);
potentiometer_temperature_min = analogRead(A2);
potentiometer_value3 = analogRead(A3);
potentiometer_clock_max = analogRead(A3);
potentiometer_value4 = analogRead(A4);
potentiometer_temperature_max = analogRead(A4);
potentiometer_analogValue1 = map(potentiometer_value1, 0, 1023, 0, 24);
potentiometer_analogValue2 = map(potentiometer_value2, 0, 1023, 0, 45);
potentiometer_analogValue3 = map(potentiometer_value3, 0, 1023, 0, 24);
potentiometer_analogValue4 = map(potentiometer_value4, 0, 1023, 0, 45);
rgb_led_procress();
if (temperature_value >= potentiometer_temperature_min){
// Turn on the Relay
}
else if (temperature_value <= potentiometer_temperature_max){
// Turn off the Relay
}
if (clock_time >= potentiometer_clock_min){
temperature_sensor();
}
else if (clock_time <= potentiometer_clock_max){
temperature_value = 0;
clock_time = 0;
}
}
```
```cpp
void rgb_led(int value1, int value2, int value3){
analogWrite(9, value1);
analogWrite(10, value2);
analogWrite(11, value3);
}
```
```cpp
void rgb_led_procress(){
analogWrite(9, 255);
analogWrite(10, 255);
analogWrite(11, 255);
delay(1000);
analogWrite(9, 0);
analogWrite(10, 0);
analogWrite(11, 0);
delay(1000);
analogWrite(9, 255);
analogWrite(10, 255);
analogWrite(11, 255);
delay(1000);
analogWrite(9, 0);
analogWrite(10, 0);
analogWrite(11, 0);
}
```

### Подкрепете ни

:wink: Можете да ни подкрепите със закупуване на оригинален [Outdoor Relay Control](https://www.tindie.com/products/arduino-core/outdoor-relay-control/).