Step by step construction of a state machine for EIT Manufacturing's EMBRYO educational metal press machine.
- Navigate to the Releases page.
- Download the latest release.
- Extract the zip file in your Arduino's Sketchbook
- In the Arduino IDE, navigate to File > Sketchbook > EMBRYO-X.Y.Z
-
Code examples depend on the official EduIntro library.
-
It is simple, basic and very easy to understand. Just import the code collection in your Sketchbook and try out the different examples.
-
Learn how to use the machine from scratch and step by step build a reliable state machine that will give you access to all of its capabilities.
-
The code has a simple and intuitive syntax to handle variables and functions.
-
EMBRYO is free for everyone. Everyone can download and use it in their projects, assignments or anywhere for free.
This is an example of how code can be built iteratively around a certain machine but slowly adding improvements to the core software. Here a list of components of the code
-
Includes information about the system itself, the pinouts to the connected sensors and actuators, and constructs to navigate through them
-
Functions dedicated to send and receive informaiton via Serial port
-
Handling of the information from sensors, arranging into easy to compare arrays, etc
-
Definitions of names of states to make the code easier to read
There are many examples implemented in this repository. Below are shown some of the examples.
- In this example, the machine offers a bi-directional communication port to the computer for you to send commands to it and collect information in real time. The main loop responds to the structure:
void loop() {
// Check the inputs
readInputs();
// Serial terminal
serialCheck();
// Print out the inputs if there is an event
if (inputEvent()) {
printInputs();
}
// Copy arrays of inputs to check state changes
copyInputs();
}
- Code ready for first release
- Code needs to be cleaned, have to remove unused variables
- Initial release of examples
If you want to contribute to this project:
- Report bugs and errors
- Ask for enhancements
- Create issues and pull requests
- Tell others about this code
- Contribute new protocols
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Created and maintained by D. Cuartielles, Malmo, 2021
Based on previous work by:
- F. Troya, Malmo, 2020
- Arduino community
number: v0.0.1
codename: Jokkmokk
This library is licensed under GPLv3.