Coming Soon...
Part | Description |
---|---|
Development Board | • Arduino Nano V3 • ESP-01 |
Code Editor | Visual Studio Code |
Extensions | PlatformIO IDE |
Programmer Tools | CH340-ESP01 USB |
Driver | CH340 USB Driver |
Application Support | Whatsapp Bot |
IoT Platform | • Twilio • ThingESP |
Communications Protocol | • Inter Integrated Circuit (I2C) • Hypertext Transfer Protocol (HTTP) |
IoT Architecture | 4 Layer |
Programming Language | C/C++ |
Arduino Library | • Wire (default) • ThingESP • Servo • RTClib |
Actuators | Servo Motor SG90 180° (x1) |
Sensor | RTC (x1) |
Other Components | • Mini USB cable - USB type A (x1) • Jumper cable (1 set) • Fish feed servo casing (x1) • Fish feed bottle (x1) • Fish feed (1 set) |
-
Visual Studio Code
https://bit.ly/VScode_Installer
-
CH340 USB Driver
https://bit.ly/CH340_USB_Driver
Block Diagram | Infrastructure |
---|---|
Pictorial Diagram | Wiring |
---|---|
• Serial Communication
Basically, a device can be communicated with other devices either wirelessly or by cable. Communication between commonly used hardware is Serial Communication
. It can be known that there are three types of Serial Communication
, which include: UART (Universal Asynchronous Receiver-Transmitter)
, SPI (Serial Peripheral Interface)
, and I2C (Inter Integrated Circuit)
. I2C (Inter Integrated Circuit)
is a two-way serial communication standard that uses two channels to send data (OUTPUT from Master to Slave)
and receive data (INPUT from Slave to Master)
. I2C uses two bidirectional lines: Serial Data (SDA)
and Serial Clock (SCL)
to transfer data and synchronize communication between devices. Each device connected to the I2C bus
has a unique address that identifies it during communication. The I2C protocol
allows multiple devices to share the same bus, and each device can act as a master
or a slave
. Master
is the primary device that has full authority over the control of the Slave, while the Slave
is the secondary device that is under the authority of the Master device.
• Internet of Things
Internet of Things (IoT)
is a concept where things connected to a network can perform one or more actions in achieving a goal. These actions include data collection, data transmission, data reception, or data processing. Every IoT project requires devices that can connect to WiFi such as ESP. ESP consists of 2 types, namely ESP8266
and ESP32
. This is on the market very diverse models, for that you need to readjust to the needs in the project so as not to cause disappointment.
This RTC sensor can be calibrated using the following program code :
#include <RTClib.h> // Calling the RTC library
RTC_DS3231 rtc; // Constructor
void setup(){
RTCinit(); // Calling the RTCinit method
}
void loop(){}
void RTCinit(){
// Starting up the RTC
rtc.begin();
// DateTime Setting
rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));
// Set Time Now
rtc.adjust(DateTime(YYYY,MM,DD,HH,MM,SS)); // If you have calibrated please close with a comment
}
Coming Soon...
-
Programming Mode
:• Attach the
ESP-01
to theCH340-ESP01 USB
.• Press and hold the button on the
CH340-ESP01 USB
, and plug it into computer/laptop.• Release the button when the device is recognized by the computer/laptop.
• Please
upload
the program. -
Operating Mode
:• Release the
CH340-ESP01 USB
from the computer/laptop.• The program code that has been embedded in this
ESP-01 board
is ready for operation (no more programming activities).• Release the
ESP01
from theCH340-ESP01 USB
. Do the wiring as shown in the pictorial diagram.
Notes :
• To upload the program, besides using the • Based on experience, I admit that using the |
-
Getting started with Twilio :
• Go to the following url: Click Here.
• Click
Log in
to access the service.• if you do not have an account, then click
Sign up
.
-
Fill in all the required fields.
-
Verify your
phone number
andemail
. -
Access the
WhatsApp sandbox
in theSettings
menu andsend the code
to theprovided WhatsApp number
.
-
Getting started with ThingESP :
• Go to the following url: Click Here.
• Click
Login
to access the service.• if you do not have an account, then click
Create Account
.
-
Fill in all required fields.
-
Click
Project
in the sidebar -> then selectAdd New Project
. -
After the project has been created, enter the
Twilio WhatsApp Endpoint URL
intoThingESP
to connect.
-
Download and extract this repository.
-
Make sure you have the necessary electronic components.
-
Make sure your components are designed according to the diagram.
-
Configure your device according to the settings above.
-
Please enjoy [Done].
Via Whatsapp: AutoFish Bot
Device |
---|
Whatsapp Bot | |
---|---|
You can download the component test file via the following link: Click Here
If this work is useful to you, then support this work as a form of appreciation to the author by clicking the ⭐Star
button at the top of the repository.
This application is my own work and is not the result of plagiarism from other people's research or work, except those related to third party services which include: libraries, frameworks, and so on.
MIT License - Copyright © 2024 - Devan C. M. Wijaya, S.Kom
Permission is hereby granted without charge to any person obtaining a copy of this software and the software-related documentation files to deal in them without restriction, including without limitation the right to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons receiving the Software to be furnished therewith on the following terms:
The above copyright notice and this permission notice must accompany all copies or substantial portions of the Software.
IN ANY EVENT, THE AUTHOR OR COPYRIGHT HOLDER HEREIN RETAINS FULL OWNERSHIP RIGHTS. THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, THEREFORE IF ANY DAMAGE, LOSS, OR OTHERWISE ARISES FROM THE USE OR OTHER DEALINGS IN THE SOFTWARE, THE AUTHOR OR COPYRIGHT HOLDER SHALL NOT BE LIABLE, AS THE USE OF THE SOFTWARE IS NOT COMPELLED AT ALL, SO THE RISK IS YOUR OWN.