Adding Components in Arduino Control Center is easy. Select pin from pin list for selected Arduino device, double click will open Input - Output setup window.


Read more about adding components HERE, or read more about components logic in Arduino Control Center HERE


Upload Inputs, Outputs, Program(rules)


If you defined pin as OUTPUT, component will be added on the form, it will remain greyed until additional setup is not performed(for TIMERS,COUNTERS,RTC) and uploaded to Arduino device by clicking on "Upload OUTPUT Configuration to Arduino" menu item, or upload automatically by checking "Upload to Arduino" check box and press Save button in the component Edit mode. Repeat if you receive an error message.


If everything is OK, which means that data about this component is successfully recognized and stored in Arduino device, data from the Arduino device will start arriving and OUTPUT component become red or green, depends of OUTPUT status.



The same process is for adding Input component, perform additional setup if required (right click on component - Edit), press the "Upload INPUT Configuration to Arduino" menu item or upload automatically by checking "Upload to Arduino" check box and press a Save button in component Edit mode. Repeat if you receive an error message.


Process for uploading Program logic(rules) is the same. Right click on OUTPUT the component, click on the Rule Editor(Outputs) menu item, create logic for changing Output status, upload automatically by checking "Upload to Arduino" check box and press a Save button. Repeat if you receive an error message. Or, close Rule editor and click on the "Upload PROGRAM(rules) to Arduino" menu item.


Each time when you click "Upload INPUT Configuration to Arduino", all defined components as Inputs will be uploaded to Arduino device .

Each time when you click "Upload OUTPUT Configuration to Arduino", all defined components as Outputs will be uploaded to Arduino device.

Each time when you click "Upload PROGRAM(rules) to Arduino", all defined rules for all Output components will be uploaded to Arduino device.


Why Inputs, Outputs and Program(rules) configuration has to be uploaded separately?


When Arduino Control Center send data to the Arduino device over serial(USB) connection, program sending array of bytes in understandable format for Arduino. The more components is uploading, array is bigger. In order to check consistency and validate data from Arduino device side, the part of Arduino RAM memory is defined for this purpose, receive all arriving data and check if the array is valid. The amount of available RAM in ATmega328 processor used in the Arduino UNO device for example, is only 2KB.


So, the best way to be sure that configuration in Arduino matches with component layout and rules for Outputs in Arduino Control Center is to re-upload all configurations. This will update storage in Arduino EEPROM for each configuration.













 

Qt Help documentation made easy