Pytomation currently supports the Arduino Uno specifically and others by modifying the ”Sketch” that is included with the source. Full support of Analog and Digital I/O is included and operational.
Multiple boards can be supported each on a different serial port. Future releases will support cascading of Arduino boards.
This is a driver for the Arduino UNO board used with the included uno.sketch.ino sketch. The UNO board supports digital and analog I/O. The Uno board can be configured to use up 18 digital I/O channels or 12 digital and 6 analog channels or a combination of both.
This driver will re-initialize any of the boards that experience a power on reset or brownout without having to restart Pytomation.
The the I/O channels on the Andunio board are set according to the following command set.
Every command sent to the board is three or four characters in length. There is no terminating CR or NL character.
Examples transmitted to board:
Examples received from board: NOTE the end of message (eom) char '.'
Available pins: Pins with “~” can be analog output (PWM). Pins starting with A can be Analog Input or Digital I/O All pins can be digital except 0 and 1 which are used for the serial port
The board will return a '?' on error. The board will return a '!' on power up or reset. To add another board, edit the sketch and change the board ID to another letter and download the revised sketch. The board will blink the LED upon reset to display the board address. One blink for A, two blinks for B, etc. Using in an Instance
NOTE: "AN" or "AG" which respectively is board A and pin N or board A and pin G Here is an example used in a Light: On an UNO board this is the on board LED tied to pin 13. |