arduino-serial-microservices
is a project that demonstrates the use of microservices architecture with Arduino. This project leverages EEPROM for persistent storage, a shared protocol for communication between services, and hashing for secure data transmission.
- Microservices Architecture: Modular design with independent services.
- EEPROM Storage: Persistent storage using EEPROM.
- Shared Protocol: Common protocol for communication between microservices.
- Hashing: Secure data transmission using hashing algorithms.
- Arduino Microcontroller: The core hardware component.
- EEPROM: Used for storing persistent data.
- Microservices: Independent services running on the Arduino.
- Shared Protocol: Protocol for communication between microservices.
- Hashing: Ensures data integrity and security.
- Arduino IDE
- Arduino board with EEPROM support
- Required libraries:
EEPROM.h
Hash.h
-
Clone the repository:
git clone https://github.com/caiotheodoro/arduino-serial-microservices.git cd arduino-serial-microservices
-
Open the project in Arduino IDE:
- Open Arduino IDE.
- Navigate to
File > Open
and select thearduino-serial-microservices.ino
file.
-
Install required libraries:
- Go to
Sketch > Include Library > Manage Libraries
. - Search for
EEPROM
andHash
libraries and install them.
- Go to
-
Upload the code:
- Connect your Arduino board to your computer.
- Select the correct board and port from
Tools > Board
andTools > Port
. - Click on the upload button to upload the code to the Arduino.
-
Run the microservices:
- Once the code is uploaded, the microservices will start running on the Arduino.
- The services will communicate using the shared protocol and store data in EEPROM.