Connection
LED display connection
- GOD – the display data pin is connected to yellow bar, e.g. to pin P1. It is necessary to set in the program which pin it is connected to.
- CLK – the display clock signal is connected to yellow bar, e.g. to pin P2. Here too it is necessary to set the appropriate pin in the program.
- VCC – power supply (+3V), connected to white bar.
- GND – ground (–), connects to black bar.
Connecting a capacitive humidity sensor
- GOD – the AOUT signal pin is connected to yellow bar, to pin P2. In the program it is necessary to set which pin it is connected to.
- VCC – power supply (+3V), connected to white bar.
- GND – ground (–), connects to black bar.
Programme
Basic program
First, we connected the capacitive sensor and LED display according to the instructions. If we have the sensor connected via a cable, we connect it to the expansion board so that the yellow signal wire goes to the yellow terminal block. If we are not sure how to program the LED display, we go to the relevant section with instructions for working with the display.
To display the values from the capacitive sensor in the program, we add the block "display show number 0" to the repeating loop, where instead of zero we insert a block for reading the value from the pin and select the appropriate yellow pin. If the display does not work, we check the wiring of the wires to the yellow strip (CLK and DIO). If the sensor does not display any values, we check which pin the sensor is connected to and whether we have the pin set correctly in the program.




