This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:iot-open:remotelab:sut:color [2019/10/26 13:31] – pczekalski | en:iot-open:remotelab:sut:color [2020/07/20 12:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | + | ====== VREL #6: Color Temperature and Brightness Compensation Laboratory | |
| - | ===== VREL #6: Color Temperature and Brightness Compensation Laboratory===== | + | |
| The laboratory is located at Silesian Technical University, Poland, Gliwice Akademicka 16, room 319. | The laboratory is located at Silesian Technical University, Poland, Gliwice Akademicka 16, room 319. | ||
| - | ====Introduction==== | + | ===== Introduction |
| The lab consists of two light sources placed on top of the pyramid-shaped tower (figure {{ref> | The lab consists of two light sources placed on top of the pyramid-shaped tower (figure {{ref> | ||
| Line 11: | Line 10: | ||
| * Dark side - only illuminated by LEDs | * Dark side - only illuminated by LEDs | ||
| The user can experiment with controlling the brightness of LEDs and measuring the intensity and colour of the light. | The user can experiment with controlling the brightness of LEDs and measuring the intensity and colour of the light. | ||
| - | |||
| <figure Tower_diagram> | <figure Tower_diagram> | ||
| - | {{ : | + | {{: |
| - | < | + | < |
| </ | </ | ||
| - | ====Prerequisites ==== | + | ===== Prerequisites |
| The user needs to know: | The user needs to know: | ||
| Line 44: | Line 42: | ||
| * Division of white light sources due to colour temperature, | * Division of white light sources due to colour temperature, | ||
| - | ====Technical details ==== | + | ===== Technical details |
| The main aim of the laboratory is to do different experiments with LED light. The user can start with simple PWM controlling of LED. Next, try to keep a constant level of brightness on a bright part of the model. The other aim is to keep the same level of lighting on a dark part of the model, as is on the bright side. | The main aim of the laboratory is to do different experiments with LED light. The user can start with simple PWM controlling of LED. Next, try to keep a constant level of brightness on a bright part of the model. The other aim is to keep the same level of lighting on a dark part of the model, as is on the bright side. | ||
| The diagram of the main part is shown in figure {{ref> | The diagram of the main part is shown in figure {{ref> | ||
| + | |||
| + | <figure LEDs_diagram> | ||
| + | {{: | ||
| + | < | ||
| + | </ | ||
| <figure Sensor_diagram> | <figure Sensor_diagram> | ||
| - | {{ : | + | {{: |
| < | < | ||
| - | </ | ||
| - | |||
| - | <figure LEDs_diagram> | ||
| - | {{ : | ||
| - | < | ||
| </ | </ | ||
| - | ===Sensors=== | + | ===== Sensors |
| A camera gives a general view on the bright side of the tower, and the second camera at the bottom of the tower gives a view of how both parts of the ground are illuminated (bright and dark) ambient light and RGB sensors are used as sensors for measuring brightness and colour of light. The following devices are connected directly to the main I2C controller: | A camera gives a general view on the bright side of the tower, and the second camera at the bottom of the tower gives a view of how both parts of the ground are illuminated (bright and dark) ambient light and RGB sensors are used as sensors for measuring brightness and colour of light. The following devices are connected directly to the main I2C controller: | ||
| Line 80: | Line 78: | ||
| |Channel 7| | - | - |Output| N/C| | |Channel 7| | - | - |Output| N/C| | ||
| - | ===Actuators === | + | ===== Actuators |
| In the system, there are two CREE dynamic LEDs. Each consists of four LED structures with two cold-white and two warm-white lightning. First LED is placed on top of the bright/ | In the system, there are two CREE dynamic LEDs. Each consists of four LED structures with two cold-white and two warm-white lightning. First LED is placed on top of the bright/ | ||
| - | As PWM controller has been used a 16-channel PWM chip - PCA9685 (Address - 0x40H). PCA9685 is connected directly to the microcontroller I2C master interface. | + | As PWM controller has been used a 16-channel PWM chip - PCA9685 (Address - 0x40H). PCA9685 is connected directly to the microcontroller' |
| ^Actuator^Position^Input/ | ^Actuator^Position^Input/ | ||
| - | | Channel 0 |On the board|Input|LED1/bright side warm-white| | + | | Channel 0 |On the board|Input|LED0/bright side warm-white| |
| | Channel 1 |On the board|Input|LED1/ | | Channel 1 |On the board|Input|LED1/ | ||
| | Channel 2 |On the board|Input|LED2/ | | Channel 2 |On the board|Input|LED2/ | ||
| - | | Channel 3 |On the board|Input|LED2/dark side cold-white| | + | | Channel 3 |On the board|Input|LED3/dark side cold-white| |
| | Channel 4 |On the board|Input|N/ | | Channel 4 |On the board|Input|N/ | ||
| | Channel 5 |On the board|Input|N/ | | Channel 5 |On the board|Input|N/ | ||
| Line 102: | Line 100: | ||
| | Channel 15 |On the board|Input|N/ | | Channel 15 |On the board|Input|N/ | ||
| - | ====Software, | + | ===== Software, libraries and externals ===== |
| + | == Platformio.ini == | ||
| + | < | ||
| + | ; PlatformIO Project Configuration File | ||
| + | ; | ||
| + | ; Build options: build flags, source filter | ||
| + | ; | ||
| + | ; | ||
| + | ; | ||
| + | ; | ||
| + | ; Please visit documentation for the other options and examples | ||
| + | ; http:// | ||
| - | === Communication === | + | [env: |
| + | platform = espressif8266 | ||
| + | board = d1_mini | ||
| + | framework = arduino | ||
| + | lib_deps = Wire, EmonLib, Adafruit NeoPixel, Encoder,DHT sensor library, | ||
| + | Adafruit Unified Sensor, LCD, | ||
| + | PubSubClient, | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Communication | ||
| You can connect your ESP8266 microcontroller via its integrated WiFi interface to the separated IoT network. Then you can communicate with other, already connected devices and even provide some information to the cloud. In details, there is a dedicated MQTT broker waiting for you. You can also set up your own soft Access Point and connect another node directly to yours. | You can connect your ESP8266 microcontroller via its integrated WiFi interface to the separated IoT network. Then you can communicate with other, already connected devices and even provide some information to the cloud. In details, there is a dedicated MQTT broker waiting for you. You can also set up your own soft Access Point and connect another node directly to yours. | ||
| The communication among the devices can be done using MQTT messages, exchanging data among other nodes (M2M) and you can even push them to the Internet. | The communication among the devices can be done using MQTT messages, exchanging data among other nodes (M2M) and you can even push them to the Internet. | ||
| - | |||
| - | __Reference data__ | ||
| Using your Node, you can access it and publish/ | Using your Node, you can access it and publish/ | ||
| Line 115: | Line 132: | ||
| * Passkey: IoTlab32768 | * Passkey: IoTlab32768 | ||
| * Setup your microcontroller for DHCP, to automatically obtain an IP address, your ESP will obtain the address from the 192.168.90.X pool. | * Setup your microcontroller for DHCP, to automatically obtain an IP address, your ESP will obtain the address from the 192.168.90.X pool. | ||
| - | * MQTT server is available under fixed address: 192.168.90.5, | + | * MQTT server is available under the fixed address: 192.168.90.5, |
| * User: vrel | * User: vrel | ||
| * Password: vrel2018 | * Password: vrel2018 | ||
| - | ===Limits === | + | ===== Limits |
| At the same time, only one user can be programming the controller, although analysing the signal by others (unlimited number) the user has sense. Model is provided to work continuously, | At the same time, only one user can be programming the controller, although analysing the signal by others (unlimited number) the user has sense. Model is provided to work continuously, | ||
| - | ==== Support ==== | + | ===== Support |
| - | In case of problems | + | In case of problems |