Skip to content

Commit

Permalink
v1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaclawik committed Feb 13, 2022
1 parent 783c951 commit 07e119b
Show file tree
Hide file tree
Showing 16 changed files with 85 additions and 453 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## Arduino IoT Switch
![header](media/enclosure.jpg)

This project is for a remote AC outlet switch that is made using an Arduino microcontroller. This
was achieved using the [Blynk IoT platform and libraries](https://docs.blynk.io/en/), which creates a neat smartphone
Expand All @@ -7,22 +8,19 @@ application interface for interacting with the microcontroller.
<p align="right"></p>

### Components
![components](media/components.jpg)

1. [ELEGOO UNO R3 Board ATmega328P with USB Cable (Arduino UNO Clone)](https://www.elegoo.com/products/elegoo-uno-r3-board)
- Acts as the main board, and is fully compatible with Arduino.
- ![board](media/board-modem.jpg)
2. [Botletics™ SIM7000A LTE CAT-M1/NB-IoT + GPS Shield Kit](https://www.botletics.com/products/sim7000-shield)
- This kit acts as a modem. It also offers expanability for the future.
- ![antenna](media/antenna.jpg)
- This kit acts as a modem, and also offers future expanability.
3. [1NCE FlexSIM Card](https://1nce.com/en/sim-cards/)
- This pre-paid SIM card is offered for 10 years with a 500 MB limit, making it perfect for low-bandwith IoT devices.
- TCP was chosen over SMS, as the 1NCE SIM Card only has an SMS limit of 250 messages, which is not enough for the 10 year period.
4. [MCIGICM 2 Channel DC 5V Relay Module for Arduino UNO](https://www.amazon.com/gp/product/B072BY3KJF?psc=1)
- Opto-isolated relay for maximum safety of the outlet.
- ![relay](media/relay.jpg)
5. [Adafruit 328 Lithium Ion Battery, 3.7V, 2500mAh](https://www.adafruit.com/product/328)
- Along with the power supply, provides additonal power for activating the relay.
- ![battery](media/battery.jpg)
- Provides additional current capability during the device start-up.

<p align="right"></p>

Expand All @@ -36,6 +34,11 @@ Otherwise, the device must re-establish the connection after 350 seconds. The de
adjust it to suit your application. When setting the Blynk heartbeat, the following formula is applied: ***heartbeat interval = time * 2.3***.
For example, with a 300 second heartbeat you will get a notification regarding the connection status with a 12 minute delay in the worst case.

**Checking Signal Quality**
- The signal quality is measured in dBm as per IEEE RSSI specification. However the device does not return a dBm value. Instead it
gives a number from 2-30, which corresponds to a predefined level of signal strength. In the program, I have included this last
conversion before transmitting the current signal strength via Blynk. The values and their respective RSSI dBm measurements [can be found here.](https://m2msupport.net/m2msupport/atcsq-signal-quality/)

<p align="right"></p>

### Dependancies
Expand Down
4 changes: 2 additions & 2 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- added functionality to record the elapsed time while relay is running
- added functionality to check the current signal quality
- added functionality to check current ambient temperature with the MCP9808 sensor
- added line to configure the Blynk Heartbeat Interval
- added line to configure the Blynk Heartbeat Interval
- added push notifications to startup and relay operation
18 changes: 0 additions & 18 deletions include/MCP9808-1.2.0/CONTRIBUTING.md

This file was deleted.

8 changes: 0 additions & 8 deletions include/MCP9808-1.2.0/LICENSE.md

This file was deleted.

116 changes: 0 additions & 116 deletions include/MCP9808-1.2.0/README.md

This file was deleted.

36 changes: 0 additions & 36 deletions include/MCP9808-1.2.0/keywords.txt

This file was deleted.

9 changes: 0 additions & 9 deletions include/MCP9808-1.2.0/library.properties

This file was deleted.

101 changes: 0 additions & 101 deletions include/MCP9808-1.2.0/src/MCP9808.cpp

This file was deleted.

Loading

0 comments on commit 07e119b

Please sign in to comment.