Arduino Driver guide
Jump to navigation
Jump to search
Arduino can easily be combined with SweepMe! However, there are some guidelines which make the implementation much easier:
- If the Arduino sends a text during its setup() routine, SweepMe! knows that sending commands can be done from now on.
- The Arduino can send text via its function pringln() which uses a LineFeed character as terminator ("\n"). Thus, the Arduino should also expect to receive messages ending with a LineFeed ("\n"), so that the the write and read terminator are identical.
- If the Arduino sends a message back after receiving a command, do send more than one line. Otherwise, one has to read out multiple times in SweepMe! Device Class
- Try to make every parameter adjustable by a single command, e.g. "Pixel = 03" or "Voltage = 0.05". That way, multiple items of the sequencer can communicate with the Arduino and multiple parameters can be swept.
- Use the standard baudrate of 9600 so that other Arduino Device Classes can easily be copied and modified