Components in ACC
Components in Arduino Control Center represents Arduino PIN.
Components can be defined as OUTPUT:
- DIGITAL (HI -LOW state control)
- PWM (Pulse With Modulation) - sending value from 0 - 255 with slider
- TIMER (Pulse, DelayON,DelayOFF)
- COUNTER (CounterUP,CounterDown)
- RTC (Real Time Clock)
TIMER, COUNTER, RTC pins are basically DIGITAL OUTPUT pins with some additional functionalities.
- TIMER will change pin state to HIGH after certain time is elapsed (DelayON), or LOW (DelayOFF), or change state in defined interval (Pulse)
- COUNTER will change pin state to HIGH after counting number is decreased to zero, or increased to setup value.
- RTC will change state periodically according to setup time in days of the week. RTC component require RTC hardware connected to Arduino I2C pins(see supported hardware)
The OUTPUTS functionality is pretty straightforward and clear for manipulation..
Components can be defined as INPUT:
Any type of sensor component is related to single pin, regardless of number of pins used for this sensor, or values for specific sensor type.
Dallas DS18B20 has single data pin. Component for DS18B20 represents Data pin (5) in this case:
DHT sensor has one Data pin but represents two values:Temperature and Humidity. Still, the component for this type of sensor is represented by single pin(33)
Another case are digital sensors which are using multiple pins for connection like MAX6675 thermocouple, SR04 Ultrasonic ranger,etc....
MAX6675 uses three pins for connection(MISO,CS,SCLK), still, the component represents a single pin with a single value in this case.
The next case is I2C sensors. Each I2C sensor uses two pins SDA and SCL for communication with the Arduino board. I2C is a communication protocol and by specification, theoretically, up to 128 devices can be connected.
Not in Arduino Control Center.
In ACC can be connected only two devices (sensor or another Arduino) with different I2C address and multiple values, because, as I mention before, each component represent one pin. I2C protocol uses two pins, therefore only two devices can be connected..
On images above you can see one BME280 temperature sensor represented with component on I2C pin A5, and 6 values received from Slave Arduino device represented by component on I2C pin A4.