Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:iot-open:remotelab:sut:color [2019/10/27 20:39] jpaduchen: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>Tower_diagram}}). The tower is divided into two sections: The lab consists of two light sources placed on top of the pyramid-shaped tower (figure {{ref>Tower_diagram}}). The tower is divided into two sections:
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>
 {{:en:iot-open:remotelab:sut:image002.jpg?600|}} {{:en:iot-open:remotelab:sut:image002.jpg?600|}}
-<caption>General view of laboratory stand.</caption>+<caption>Tower view</caption>
 </figure> </figure>
  
  
-====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>Sensor_diagram}}, and diagram of LEDs connection is in figure {{ref>LEDs_diagram}} The diagram of the main part is shown in figure {{ref>Sensor_diagram}}, and diagram of LEDs connection is in figure {{ref>LEDs_diagram}}
- 
-<figure Sensor_diagram> 
-{{ :en:iot-open:remotelab:sut:vrel2b_bbv2.jpg?600 |}} 
-<caption>Microcontroller with PWM and sensors.</caption> 
-</figure> 
  
 <figure LEDs_diagram> <figure LEDs_diagram>
-{{ :en:iot-open:remotelab:sut:vrel2a_bbv2.jpg?600 |}}+{{:en:iot-open:remotelab:sut:vrel3a_bb.png?470|}}
 <caption>LEDs connections</caption> <caption>LEDs connections</caption>
 +</figure>
 +
 +<figure Sensor_diagram>
 +{{:en:iot-open:remotelab:sut:vrel3b_bb.png?470|}}
 +<caption>Microcontroller with PWM and sensors.</caption>
 </figure> </figure>
  
  
-===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/openside of the tower and the second LED is placed on top of the dark/close side. The each LEDs light intensity must be appropriately controlled using PWM current controller which is separate for every white colour of each LED. ( Each PWM channel controls two LED structures with identical light colour.)  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/openside of the tower and the second LED is placed on top of the dark/close side. The each LEDs light intensity must be appropriately controlled using PWM current controller which is separate for every white colour of each LED. ( Each PWM channel controls two LED structures with identical light colour.) 
-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'I2C master interface.
  
 ^Actuator^Position^Input/output^Remarks^ ^Actuator^Position^Input/output^Remarks^
-| 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/bright side cold-white| | Channel 1 |On the board|Input|LED1/bright side cold-white|
 | Channel 2 |On the board|Input|LED2/dark  side warm-white| | Channel 2 |On the board|Input|LED2/dark  side warm-white|
-| 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/C| | Channel 4 |On the board|Input|N/C|
 | Channel 5 |On the board|Input|N/C| | Channel 5 |On the board|Input|N/C|
Line 102: Line 100:
 | Channel 15 |On the board|Input|N/C| | Channel 15 |On the board|Input|N/C|
  
-===Software, libraries and externals ===+===== Software, libraries and externals =====
 == Platformio.ini == == Platformio.ini ==
 <code> <code>
Line 119: Line 117:
 board = d1_mini board = d1_mini
 framework = arduino framework = arduino
-lib_deps = Wire, EmonLib, Adafruit NeoPixel, Encoder,DHT sensor library, Adafruit Unified Sensor, LCD, PubSubClient, KS0108_PCF8574, CoAP simple library+lib_deps = Wire, EmonLib, Adafruit NeoPixel, Encoder,DHT sensor library,  
 +Adafruit Unified Sensor, LCD,  
 +PubSubClient, KS0108_PCF8574, CoAP simple library
 </code> </code>
  
  
-=== Communication ===+===== 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/subscribe to the messages once you connect your ESP to the existing wireless network (this network does not provide access to the global internet and is separated but please note there are other developers and IoT nodes connected to this access point: Using your Node, you can access it and publish/subscribe to the messages once you connect your ESP to the existing wireless network (this network does not provide access to the global internet and is separated but please note there are other developers and IoT nodes connected to this access point:
Line 138: Line 136:
     * 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, without service breaks. 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, without service breaks.
  
  
-==== Support ====+===== Support =====
  
-In case of problems write: jaroslaw.paduch@polsl.pl+In case of problems contact: jaroslaw.paduch@polsl.pl
  
en/iot-open/remotelab/sut/color.1572201583.txt.gz · Last modified: (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0