[Update]: Reedme

This commit is contained in:
Christian Mittring
2018-04-01 12:33:11 +02:00
parent 9d75a64173
commit 66c0ebac5a

View File

@@ -35,37 +35,34 @@ Image how to wire the project will follow.
| -------- | -------- | -------- |
| VCC | Vin/5V+ | Power |
| GND | GND | GND |
| In1 | GPIO16 | Power |
| In2 | GPIO12 | Input |
| In3 | GPIO12 | Input |
| In4 | GPIO12 | Input |
| In1 | GPIO8 | Power |
| In2 | GPIO7 | Input |
| In3 | GPIO7 | Input |
| In4 | GPIO7 | Input |
###### Switch:
The switch should connect the GPIO to ground if it is pressed down:
* power_sw: GPIO3
* input_sw: GPIO1
* alarm_sw: GPIO2
* sleep_sw: GPIO0
* power_sw: GPIO2
* input_sw: GPIO5
* alarm_sw: GPIO4
* sleep_sw: GPIO3
You can also change this at the beginning of the code:
```
//Pin Taster
const int pinTime = 3; //Pin fuer Toggle_Power und Einstellen der Uhrzeit (Lang)
const int pinSet = 0; //Pin fuer Sleep und Zeit_Einstellung im Alarm/Time Set Mode
const int pinAlarm = 2; //Pin fuer Alarm An/Aus und setzen der Alarmzeiten (Lang)
const int pinInput = 1; //Pin für die Eingangswahl
const int pinSleep = 9; //Pin Unbenutzt
const int pinTime = 2; //Pin fuer Toggle_Power und Einstellen der Uhrzeit (Lang)
const int pinSet = 3; //Pin fuer Sleep und Zeit_Einstellung im Alarm/Time Set Mode
const int pinAlarm = 4; //Pin fuer Alarm An/Aus und setzen der Alarmzeiten (Lang)
const int pinInput = 5; //Pin für die Eingangswahl
const int pinSleep = 6; //Pin Unbenutzt
//Pin Relay
const int outInput = 12;
const int outPower = 16;
const int outInput = 7;
const int outPower = 8;
```
## How does it work
@@ -87,8 +84,6 @@ The Clock is controlled with 4 Buttons
## Issues
* Alarm 2 is not working like expected. It will be triggered every hour. (Alarm 1 is ok, once a day)
* Networkconnection is not used to update time over NTP. (not implemented yet)
* Long-Press blocks display until release.
## Dependencies