On the i2c bus, Arduino Nano with address 2, transmits the weight value with a resolution of 1 kg.

Dependencies:   _24LCXXX

Revisions of main.cpp

Revision Date Message Actions
8:bf73cc68a823 2020-09-11 Messages transmitted via pc.printf to PC are supplemented with checksums to increase the reliability of communication.The pc.printf command was introduced, which sends an empty string once per second in case of data loss (corruption) during transfer File  Diff  Annotate
7:97881cd71b31 2020-06-19 The values of the EEPROM2 settings are displayed in pc.print in a special line with the current diagnostic data.; An additional block has been made in the parser for decoding incoming alarm settings; they are written in EEPROM2. File  Diff  Annotate
6:fe0a7180ebb7 2020-06-11 An additional block has been made in the parser for decoding incoming alarm settings for writing to the EEPROM. Additional digital inputs are activated. File  Diff  Annotate
5:bb595cde0c82 2020-06-04 The flag of the Stop button is accepted - closing of 4 valves,; and the flag of the compressor buttons is a command for discrete output PB_10. The num_chan setting is switching the channel number for the feedback of the controller, written in EEPROM File  Diff  Annotate
4:c34b84bfa2fb 2020-05-27 When receiving a command line with a zero sum (empty lines), the flag_zerostart flag is set, and the current settings and values are transferred to the series. These zero settings are not entered into the controller and are not written to the EEPROM. File  Diff  Annotate
3:712f751b4974 2020-05-15 Continuation (clone) mbed-os5-inerrupt_serial_readable_FIFO_12; Connected EEPROM. Now the settings are retrieved from it upon reboot. A watchdog timer has been created that expires after 100ms. File  Diff  Annotate
2:8230a5a4cc13 2020-05-15 creates eeprom a watchdog timer that expires after 100 ms File  Diff  Annotate
1:1d4ec28f17c4 2020-05-08 The microcontroller program has been changed so that when restarting or turning on the power, all valves are closed. File  Diff  Annotate
0:f2aaa8c6decf 2020-05-01 The new parser with the FIFO buffer is very fast. You can send data every 20 ms, this does not affect the cycle time of the relay controller. CR LF line ending characters are desirable but not required. File  Diff  Annotate