Skip to content

Commit

Permalink
added readmme
Browse files Browse the repository at this point in the history
  • Loading branch information
K-cermak committed Feb 11, 2024
1 parent 069e4c1 commit 2727c4b
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 1 deletion.
13 changes: 13 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Power Checker is available under the MIT license

You can use, distribute, modify it for free. However, the author assumes no responsibility or warranty of any kind.

<br>

Full text of the licence:

Copyright (c) 2024 Karel Čermák (info@karlosoft.com)
Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INTHE SOFTWARE.
Binary file modified Model/Model - Fritzing.fzz
Binary file not shown.
Binary file modified Model/Model - Png.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 64 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Power Checker

By Karel Cermak | [Karlosoft](https://karlosoft.com).

## A simple arduino project to monitor the functionality of the power grid and the backup power supply.

<img src="Model/Model - Png.png" alt="Model" width="700"/>

---

## Features
- Checks the functionality of the power system and the power supply of the backup power supply via USB.
- It controls the control diodes responding to the current status.
- Controls a buzzer that will be triggered if the backup power supply is disconnected.
- Generate simple JSON statistics via the integrated web server.
- DHT temperature sensor and buzzer/ceiling light mute button.

<br>

## States of the system
- **Everything ok (1)**
- Blue light slowly blinking
- Orange light off
- Red light off

- **DHT temperature sensor error (2)**
- Blue light blinking fast
- Orange light slowly blinking
- Red light off

- **Ethernet error (3)**
- Blue light blinking fast
- Orange light off
- Red light slowly blinking

- **Main grid off (4)**
- Blue light off
- Orange light blinking fast
- Red light off
- Ceiling light turned off

- **Backup power supply off (5)**
- Blue light off
- Orange light off
- Red light blinking fast
- Ceiling light turned on
- Buzzer activated

<br>

## How to stop the buzzer and the ceiling light?

- **Hold button for 500 ms**
- Deactivate the buzzer for 30 minutes

- **Hold button for 5000 ms**
- Deactivate the buzzer and ceiling light for 12 hours

<br>

## Problem with ethernet shields W5100
- If it is necessary to restart the arduino via the restart button to get the web server working, this might help:
- Put a 100 nF capacitor between the RESET and GND pins (a larger capacitor should also work).
- Place 100 ohm resistors between ethernet pins 1 - 2 and 3 - 6 (not tested).
8 changes: 7 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
Power Checker by Karel Cermak | Karlosoft.com
Licensed under MIT
*/


#include <SPI.h>
#include <Ethernet.h>
#include <DHT.h>;
Expand All @@ -7,7 +13,7 @@ int state = 1;

// ETHERNET
byte mac[] = {0xA6, 0x2A, 0xFA, 0xC7, 0x70, 0xC0}; // make it random
IPAddress ip(10, 0, 0, 60);
IPAddress ip(10, 0, 0, 60); // set the IP address to whatever you want
EthernetServer server(80);


Expand Down

0 comments on commit 2727c4b

Please sign in to comment.