Actions

Difference between revisions of "KA-Nucleo-Weather (PL)"

(Utworzono nową stronę "__jzpdf__ ====== Description ====== [https://kamami.pl/kamod-kamami/333318-ka-nucleo-weather-ekspander-shield-z-sensorami-srodowiskowymi-cisnienia-wilgotnosci-temperatu...")
 
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
__jzpdf__
 
__jzpdf__
====== Description  ======
+
====== Opis ======
[https://kamami.pl/kamod-kamami/333318-ka-nucleo-weather-ekspander-shield-z-sensorami-srodowiskowymi-cisnienia-wilgotnosci-temperatury-natezenia-swiatla.html KA-Nucleo-Weather] is an functional expander for NUCLEO and Arduino boards with set of environmental sensors: pressure, humidity, temperature and light intensity sensors as well as 5-way joystick and RGB LED.  
+
[https://kamami.pl/kamod-kamami/333318-ka-nucleo-weather-ekspander-shield-z-sensorami-srodowiskowymi-cisnienia-wilgotnosci-temperatury-natezenia-swiatla.html KA-Nucleo-Weather] to ekspander funkcjonalny dla NUCLEO i Arduino z zestawem sensorów środowiskowych: ciśnienia, wilgotności, temperatury i natężenia światła oraz 5-pozycyjnym joystickiem i LED RGB.
  
 
<center>
 
<center>
[[Plik:KA-Nucleo-Weather_modul.png|none|400px|thumb|center]]
+
[[File:KA-Nucleo-Weather_modul.png|none|400px|thumb|center]]
 
</center>
 
</center>
 +
 +
===== Podstawowe cechy i parametry =====
 +
*Zgodność z systemami NUCLEO i Arduino
 +
* Wbudowany sensor ciśnienia MEMS (LPS331):
 +
**Zakres pomiarowy 260 do 1260 mbar
 +
**Częstotliwość pomiarów (ODR) 1 Hz do 25 Hz
 +
**Rozdzielczość ADC 24 bity
 +
**Interfejs SPI/I2C (użyty I2C)
 +
*Wbudowany sensor wilgotności MEMS (HTS221)
 +
**Zakres pomiarowy 0 to 100% (wilgotność względna)
 +
**Częstotliwość pomiarów (ODR) 1 do 12,5 Hz
 +
**Rozdzielczość ADC 16 bitów
 +
**Interfejs SPI/I2C (użyty I2C)
 +
*Wbudowany cyfrowy sensor temperatury (STLM75):
 +
**Zakres pomiarowy –55°C do +125°C
 +
**Czas konwersji ADC <150 ms
 +
**Zintegrowany programowany termostat
 +
**Rozdzielczość ADC 9 bitów
 +
**Interfejs SMbus/I2C
 +
*Wbudowany cyfrowy sensor natężenia oświetlenia ALS (TSL25721):
 +
**Charakterystyka czułości zbliżona od oka ludzkiego
 +
**Zintegrowane wzmacniacze analogowe o programowanym wzmocnieniu
 +
**Dwa kanały pomiarowe
 +
**Zintegrowany programowany komparator
 +
**Dynamika pomiaru 45000000:1
 +
**Maksymalne natężenie światła 60000 lux
 +
**Rozdzielczość ADC 16 bitów
 +
*Wbudowana LED RGB
 +
*Wbudowany joystick 5-stykowy
 +
*Przedłużone złącza szpilkowe
  
===== Basic features and parameters  =====
+
===== Wyposażenie standardowe =====
*Compatibility with NUCLEO and Arduino systems
 
*Embedded MEMS pressure sensor (LPS331):
 
**Measurement range 260 to 1260mbar
 
**Measurement output data rate (ODR) 1 Hz to 25 Hz
 
**ADC resolution 16 bits
 
**Interface: SPI/I2C (used I2C)
 
*Embedded MEMS humidity sensor (HTS221):
 
**Measurement range 0 to 100% (relative humidity)
 
**Measurement output data rate (ODR) 1 Hz to 12,5 Hz
 
**ADC resolution 16 bits
 
**Interface: SPI/I2C (used I2C)
 
*Embedded digital temperature sensor (STLM75):
 
**Measurement range –55°C to +125°C
 
**ADC conversion time <150ms
 
**Integrated programmable thermostat
 
**ADC resolution 9 bits
 
**Interface: SMbus/I2C
 
*Embedded digital light intensity sensor ALS (TSL25721):
 
**Approximates human eye response
 
** Integrated analog amplifiers with programmable gain
 
**Two measurement canals
 
**Integrated programmable comparators
 
** Measurement dynamic range 45,000,000:1
 
**Maximum light intensity to 60000 lux
 
**ADC resolution 16 bits
 
*Embedded RGB LED
 
*Embedded 5-way joystick
 
*Extended pins connector
 
 
 
 
 
===== Standard equipment =====
 
 
<center>
 
<center>
 
{| class="wikitable"  style="width: 1000px;"
 
{| class="wikitable"  style="width: 1000px;"
 
|-
 
|-
! style="text-align: center;"|Code
+
! style="text-align: center;"|Kod
! style="text-align: center;"|Description
+
! style="text-align: center;"|Opis
 
|-
 
|-
 
| style="text-align: center;"|<b>KA-Nucleo-Weather</b>
 
| style="text-align: center;"|<b>KA-Nucleo-Weather</b>
 
| style="text-align: center;"|
 
| style="text-align: center;"|
*Assembled and launched module
+
*Zmontowany i uruchomiony moduł
 
|}
 
|}
 
</center>
 
</center>
  
===== Electrical schematics  =====
+
===== Schemat elektryczny =====
 
<center>
 
<center>
[[Plik:KA-Nucleo-Weather_schemat.png|none|800px|thumb|center]]
+
[[File:KA-Nucleo-Weather_schemat.png|none|800px|thumb|center]]
 
</center>
 
</center>
  
===== Board view =====
+
===== Widok płytki =====
 
<br>
 
<br>
 
<center>
 
<center>
[[Plik:KA-Nucleo-Weather_obrys_PCB.png|none|200px|thumb|center]]
+
[[File:KA-Nucleo-Weather_obrys_PCB.png|none|200px|thumb|center]]
 
</center>
 
</center>
  
===== Temperature sensor  =====
+
===== Czujnik temperatury =====
In expander was used semiconductor temperature sensor STLM75 with digital output. Communication interface of temperature sensor is connected to common (for all sensors) I2C bus. Communication lines of I2C interface are pulled up to power supply by 4,7 kΩ resistors. Connection method of temperature sensor to microcontroller is showing on schematic. Output of temperature sensor is connected to line A2, which is input canal of ADC_IN4 (PA4 GPIO pin of STM32).  
+
W ekspanderze zastosowano półprzewodnikowy czujnik temperatury STLM75 z wyjściem cyfrowym. Magistralę
 +
komunikacyjna czujnika temperatury dołączono do wspólnej (dla wszystkich sensorów) magistrali I2C. Linie komunikacyjne
 +
magistrali I2C są podciągnięte do plusa zasilania za pomocą rezystorów 4,7kΩ.
 +
Sposób dołączenia sensora temperatury do mikrokontrolera pokazano na schemacie.
 +
Wyjście czujnika temperatury dołączono do linii A2, która spełnia rolę kanału wejściowego ADC_IN4 (linia GPIO PA4 w STM32).
  
 
<center>
 
<center>
[[Plik:KA-Nucleo-Weather_obrys_schemat_temp_sens.png|none|500px|thumb|center]]
+
[[File:KA-Nucleo-Weather_obrys_schemat_temp_sens.png|none|500px|thumb|center]]
 
</center>
 
</center>
 
<br>
 
<br>
Line 72: Line 75:
 
{| class="wikitable"  style="width: 1000px;"
 
{| class="wikitable"  style="width: 1000px;"
 
|-
 
|-
! style="text-align: center;"|Line STLM75
+
! style="text-align: center;"|Linia STLM75
! style="text-align: center;"|Line name
+
! style="text-align: center;"|Nazwa linii
! style="text-align: center;"|GPIO in STM32
+
! style="text-align: center;"|GPIO w STM32
! style="text-align: center;"|STM32 interface
+
! style="text-align: center;"|Interfejs STM32
! style="text-align: center;"|Comments
+
! style="text-align: center;"|Uwagi
  
 
|-
 
|-
Line 83: Line 86:
 
| style="text-align: center;"|PB8
 
| style="text-align: center;"|PB8
 
| rowspan="2" style="text-align: center;"|I2C1
 
| rowspan="2" style="text-align: center;"|I2C1
| rowspan="3" style="text-align: center;"|Lines was pulled up to power supply lines by 4,7 kΩ resistors
+
| rowspan="3" style="text-align: center;"|Linie podciągnięte do plusa zasilania rezystorami 4,7kΩ
  
 
|-
 
|-
Line 98: Line 101:
 
|}
 
|}
 
<br>
 
<br>
Jumper JP1 make possible choosing base address of STLM75 chip according to table below:  
+
Zwora JP1 umożliwia wybranie adresu bazowego układu STLM75 zgodnie z tabelą poniżej:
  
 
{| class="wikitable"  style="width: 500px;"
 
{| class="wikitable"  style="width: 500px;"
 
|-
 
|-
! style="text-align: center;"|Closed pins JP1  
+
! style="text-align: center;"|Zwarte styki JP1
 
! style="text-align: center;"|A0
 
! style="text-align: center;"|A0
! style="text-align: center;"|I2C base address
+
! style="text-align: center;"|Adres bazowy I2C
 
|-
 
|-
 
| style="text-align: center;"|1-2
 
| style="text-align: center;"|1-2
Line 116: Line 119:
 
</center>
 
</center>
  
===== Light intensity sensor (ALS) =====
+
===== Czujnik oświetlenia (ALS) =====
Expander is equipped with digital sensor of light intensity in environment TSL25721. Sensor has I2C interface. Communication bus of this sensor is connected to common (for all sensors) I2C bus. I2C communication lines are pulled up to power supply by 4,7 kΩ resistors. Connection method of TSL25721 sensor to microcontroller is showing on schematic.  
+
Ekspander wyposażono w cyfrowy czujnik natężenia światła w otoczeniu TSL25721, wyposażony w interfejs komunikacyjny
 +
I2C.
 +
Magistralę komunikacyjną tego czujnika dołączono do wspólnej (dla wszystkich sensorów) magistrali I2C. Linie
 +
komunikacyjne magistrali I2C są podciągnięte do plusa zasilania za pomocą rezystorów 4,7kΩ.
 +
Sposób dołączenia sensora TSL25721 do mikrokontrolera pokazano na schemacie.
  
 
<center>
 
<center>
[[Plik:KA-Nucleo-Weather_obrys_schemat_ALS_sens.png|none|500px|thumb|center]]
+
[[File:KA-Nucleo-Weather_obrys_schemat_ALS_sens.png|none|500px|thumb|center]]
 
</center>
 
</center>
 
<br>
 
<br>
Line 126: Line 133:
 
{| class="wikitable"  style="width: 1000px;"
 
{| class="wikitable"  style="width: 1000px;"
 
|-
 
|-
! style="text-align: center;"|Line TSL25721
+
! style="text-align: center;"|Linia TSL25721
! style="text-align: center;"|Line name
+
! style="text-align: center;"|Nazwa linii
! style="text-align: center;"|GPIO in STM32
+
! style="text-align: center;"|GPIO w STM32
! style="text-align: center;"|STM32 interface
+
! style="text-align: center;"|Interfejs STM32
! style="text-align: center;"|Comments
+
! style="text-align: center;"|Uwagi
  
 
|-
 
|-
Line 137: Line 144:
 
| style="text-align: center;"|PB8
 
| style="text-align: center;"|PB8
 
| rowspan="2" style="text-align: center;"|I2C1
 
| rowspan="2" style="text-align: center;"|I2C1
| rowspan="2" style="text-align: center;"|Lines was pulled up to power supply lines by 4,7 kΩ resistors
+
| rowspan="2" style="text-align: center;"|Linie podciągnięte do plusa zasilania rezystorami 4,7kΩ
  
 
|-
 
|-
Line 154: Line 161:
 
</center>
 
</center>
 
<br>
 
<br>
TSL25721 sensor is placed in I2C bus under base address 72h/73h.
+
Sensor TSL25721 jest ulokowany na magistrali I2C pod adresami bazowymi 72h/73h.
  
===== Humidity sensor  =====
+
===== Czujnik wilgotności =====
Expander is equipped with digital humidity sensor HTS221 with I2C communication interface. Communication bus of this sensor is connected to common (for all sensors) I2C bus. I2C communication lines are pulled up to power supply by 4,7 kΩ resistors. Connection method of HTS221 sensor to microcontroller is showing on schematic.  
+
Ekspander wyposażono w cyfrowy czujnik wilgotności HTS221, wyposażony w interfejs komunikacyjny I2C.
 +
Magistralę komunikacyjną tego czujnika dołączono do wspólnej (dla wszystkich sensorów) magistrali I2C. Linie
 +
komunikacyjne magistrali I2C są podciągnięte do plusa zasilania za pomocą rezystorów 4,7kΩ.
 +
Sposób dołączenia sensora HTS221 do mikrokontrolera pokazano na schemacie.
 
<br>
 
<br>
 
<center>
 
<center>
[[Plik:KA-Nucleo-Weather_obrys_schemat_humi_sens.png|none|500px|thumb|center]]
+
[[File:KA-Nucleo-Weather_obrys_schemat_humi_sens.png|none|500px|thumb|center]]
 
</center>
 
</center>
 
<br>
 
<br>
Line 166: Line 176:
 
{| class="wikitable"  style="width: 1000px;"
 
{| class="wikitable"  style="width: 1000px;"
 
|-
 
|-
! style="text-align: center;"|Line HTS221
+
! style="text-align: center;"|Linia HTS221
! style="text-align: center;"|Line name
+
! style="text-align: center;"|Nazwa linii
! style="text-align: center;"|GPIO in STM32
+
! style="text-align: center;"|GPIO w STM32
! style="text-align: center;"|STM32 interface
+
! style="text-align: center;"|Interfejs STM32
! style="text-align: center;"|Comments
+
! style="text-align: center;"|Uwagi
  
 
|-
 
|-
Line 177: Line 187:
 
| style="text-align: center;"|PB8
 
| style="text-align: center;"|PB8
 
| rowspan="2" style="text-align: center;"|I2C1
 
| rowspan="2" style="text-align: center;"|I2C1
| rowspan="2" style="text-align: center;"| Lines was pulled up to power supply lines by 4,7 kΩ resistors
+
| rowspan="2" style="text-align: center;"|Linie podciągnięte do plusa zasilania rezystorami 4,7kΩ
  
 
|-
 
|-
Line 194: Line 204:
 
</center>
 
</center>
 
<br>
 
<br>
HTS221 sensor is placed in I2C bus under base address BEh/BFh.  
+
Sensor HTS221 jest ulokowany na magistrali I2C pod adresami bazowymi BEh/BFh.
  
===== Pressure sensor =====
+
===== Czujnik ciśnienia =====
Expander is equipped with digital pressure sensor LPS331 with I2C communication interface. Communication bus of this sensor is connected to common (for all sensors) I2C bus. I2C communication lines are pulled up to power supply by 4,7 kΩ resistors. Interrupt output (INT1 and INT2) of sensor LPS331 can work in push-pull mode and don't need pulling up to power supply. Connection method of LPS331 sensor to microcontroller is showing on schematic.
+
Ekspander wyposażono w cyfrowy czujnik ciśnienia atmosferycznego LPS331, wykorzystujący interfejs komunikacyjny
 +
I2C.
 +
Magistralę komunikacyjną tego czujnika dołączono do wspólnej (dla wszystkich sensorów) magistrali I2C. Linie
 +
komunikacyjne magistrali I2C są podciągnięte do plusa zasilania za pomocą rezystorów 4,7kΩ.
 +
Wyjścia przerwań (INT1 i INT2) w czujniku LPS331 mogą pracować w trybie push-pull i nie wymagają podciągania
 +
do plusa zasilania.
 +
Sposób dołączenia sensora LPS331 do mikrokontrolera pokazano na schemacie.
  
 
<center>
 
<center>
[[Plik:KA-Nucleo-Weather_schemat_press_sens.png|none|350px|thumb|center]]
+
[[File:KA-Nucleo-Weather_schemat_press_sens.png|none|350px|thumb|center]]
 
</center>
 
</center>
 
<br>
 
<br>
Line 206: Line 222:
 
{| class="wikitable"  style="width: 1000px;"
 
{| class="wikitable"  style="width: 1000px;"
 
|-
 
|-
! style="text-align: center;"|Line LPS331
+
! style="text-align: center;"|Linia LPS331
! style="text-align: center;"|Line name
+
! style="text-align: center;"|Nazwa linii
! style="text-align: center;"|GPIO in STM32
+
! style="text-align: center;"|GPIO w STM32
! style="text-align: center;"|STM32 interface
+
! style="text-align: center;"|Interfejs STM32
! style="text-align: center;"|Comments
+
! style="text-align: center;"|Uwagi
  
 
|-
 
|-
Line 217: Line 233:
 
| style="text-align: center;"|PB8
 
| style="text-align: center;"|PB8
 
| rowspan="2" style="text-align: center;"|I2C1
 
| rowspan="2" style="text-align: center;"|I2C1
| rowspan="2" style="text-align: center;"| Lines was pulled up to power supply lines by 4,7 kΩ resistors
+
| rowspan="2" style="text-align: center;"|Linie podciągnięte do plusa zasilania rezystorami 4,7kΩ
  
 
|-
 
|-
Line 229: Line 245:
 
| style="text-align: center;"|PA1
 
| style="text-align: center;"|PA1
 
| style="text-align: center;"|-
 
| style="text-align: center;"|-
| rowspan="2" style="text-align: center;"|Outputs should be configured as push-pull  
+
| rowspan="2" style="text-align: center;"|Wyjścia powinny być skonfigurowane jako push-pull
  
 
|-
 
|-
Line 242: Line 258:
  
 
===== LED-RGB =====
 
===== LED-RGB =====
On-board LED-RGB are controlled direct with GPIO pins of microcontroller (according to table below). Diodes are on, if state of control line has logical state „0”.  
+
Wbudowane diody LED-RGB są sterowane bezpośrednio z linii GPIO mikrokontrolera zgodnie z tabelą poniżej.
 +
Diody świecą jeżeli na linii sterującej jest stan logiczny „0”.)
 
<center>
 
<center>
 
{| class="wikitable"  style="width: 1000px;"
 
{| class="wikitable"  style="width: 1000px;"
 
|-
 
|-
! style="text-align: center;"|LED
+
! style="text-align: center;"|Dioda LED
! style="text-align: center;"|Line name
+
! style="text-align: center;"|Nazwa linii
! style="text-align: center;"|GPIO in STM32
+
! style="text-align: center;"|GPIO w STM32
! style="text-align: center;"|Comments
+
! style="text-align: center;"|Uwagi
 
|-
 
|-
 
| style="text-align: center;"|Red
 
| style="text-align: center;"|Red
 
| style="text-align: center;"|D12
 
| style="text-align: center;"|D12
 
| style="text-align: center;"|PA6
 
| style="text-align: center;"|PA6
| rowspan="3" style="text-align: center;"|LEDs are on, if state on GPIO pins is „0”
+
| rowspan="3" style="text-align: center;"|LED świecą, gdy stan na liniach GPIO jest "0"
 
|-
 
|-
 
| style="text-align: center;"|Green
 
| style="text-align: center;"|Green
Line 266: Line 283:
 
</center>
 
</center>
 
<center>
 
<center>
[[Plik:KA-Nucleo-Weather_obrys_schemat_LED_RGB.png|none|500px|thumb|center]]
+
[[File:KA-Nucleo-Weather_obrys_schemat_LED_RGB.png|none|500px|thumb|center]]
 
</center>
 
</center>
  
 
===== Joystick =====
 
===== Joystick =====
Embedded 5-way tact switch is connected direct to GPIO pins of microcontroller (according to table below). Each of pins are pulled up to power supply by using 10 kΩ resistor.
+
Wbudowany w ekspander 5-stykowy joystick jest dołączony bezpośrednio do linii GPIO mikrokontrolera zgodnie
 +
z tabelą poniżej. Każda linia jest podciągnięta do plusa zasilania za pomocą rezystora 10 kΩ.
 
<center>
 
<center>
 
{| class="wikitable"  style="width: 1000px;"
 
{| class="wikitable"  style="width: 1000px;"
 
|-
 
|-
! style="text-align: center;"|Joystick direction
+
! style="text-align: center;"|Kierunek joysticka
! style="text-align: center;"|Line name
+
! style="text-align: center;"|Nazwa linii
! style="text-align: center;"|GPIO in STM32
+
! style="text-align: center;"|GPIO w STM32
! style="text-align: center;"|Comments
+
! style="text-align: center;"|Uwagi
  
 
|-
 
|-
| style="text-align: center;"|Up
+
| style="text-align: center;"|Góra
 
| style="text-align: center;"|D4
 
| style="text-align: center;"|D4
 
| style="text-align: center;"|PB5
 
| style="text-align: center;"|PB5
| rowspan="5" style="text-align: center;"|Lines pulled up to power supply by 10 kΩ resistor.
+
| rowspan="5" style="text-align: center;"|Linie podciągnięte do plusa zasilania rezystorami 10 kΩ  
  
 
|-
 
|-
| style="text-align: center;"|Down
+
| style="text-align: center;"|Dół
 
| style="text-align: center;"|D10
 
| style="text-align: center;"|D10
 
| style="text-align: center;"|PB6
 
| style="text-align: center;"|PB6
  
 
|-
 
|-
| style="text-align: center;"|Left
+
| style="text-align: center;"|Lewo
 
| style="text-align: center;"|D3
 
| style="text-align: center;"|D3
 
| style="text-align: center;"|PB3
 
| style="text-align: center;"|PB3
  
 
|-
 
|-
| style="text-align: center;"|Right
+
| style="text-align: center;"|Prawo
 
| style="text-align: center;"|D5
 
| style="text-align: center;"|D5
 
| style="text-align: center;"|PB4
 
| style="text-align: center;"|PB4
Line 308: Line 326:
 
</center>
 
</center>
 
<center>
 
<center>
[[Plik:KA-Nucleo-Weather_obrys_schemat_joy.png|none|500px|thumb|center]]
+
[[File:KA-Nucleo-Weather_obrys_schemat_joy.png|none|500px|thumb|center]]
 
</center>
 
</center>
  
===== Signal connections map of GPIO pins =====
+
===== Mapa przypisań linii GPIO =====
 
<center>
 
<center>
[[Plik:KA-Nucleo-Weather_broszura.png|none|800px|thumb|center]]
+
[[File:KA-Nucleo-Weather_broszura.png|none|800px|thumb|center]]
 
</center>
 
</center>
 
[[Kategoria:Moduły peryferyjne KAmod (Kamami)]]
 
[[Kategoria:Zawartość]]
 

Latest revision as of 13:15, 22 September 2020

Opis

KA-Nucleo-Weather to ekspander funkcjonalny dla NUCLEO i Arduino z zestawem sensorów środowiskowych: ciśnienia, wilgotności, temperatury i natężenia światła oraz 5-pozycyjnym joystickiem i LED RGB.

KA-Nucleo-Weather modul.png
Podstawowe cechy i parametry
  • Zgodność z systemami NUCLEO i Arduino
  • Wbudowany sensor ciśnienia MEMS (LPS331):
    • Zakres pomiarowy 260 do 1260 mbar
    • Częstotliwość pomiarów (ODR) 1 Hz do 25 Hz
    • Rozdzielczość ADC 24 bity
    • Interfejs SPI/I2C (użyty I2C)
  • Wbudowany sensor wilgotności MEMS (HTS221)
    • Zakres pomiarowy 0 to 100% (wilgotność względna)
    • Częstotliwość pomiarów (ODR) 1 do 12,5 Hz
    • Rozdzielczość ADC 16 bitów
    • Interfejs SPI/I2C (użyty I2C)
  • Wbudowany cyfrowy sensor temperatury (STLM75):
    • Zakres pomiarowy –55°C do +125°C
    • Czas konwersji ADC <150 ms
    • Zintegrowany programowany termostat
    • Rozdzielczość ADC 9 bitów
    • Interfejs SMbus/I2C
  • Wbudowany cyfrowy sensor natężenia oświetlenia ALS (TSL25721):
    • Charakterystyka czułości zbliżona od oka ludzkiego
    • Zintegrowane wzmacniacze analogowe o programowanym wzmocnieniu
    • Dwa kanały pomiarowe
    • Zintegrowany programowany komparator
    • Dynamika pomiaru 45000000:1
    • Maksymalne natężenie światła 60000 lux
    • Rozdzielczość ADC 16 bitów
  • Wbudowana LED RGB
  • Wbudowany joystick 5-stykowy
  • Przedłużone złącza szpilkowe
Wyposażenie standardowe
Kod Opis
KA-Nucleo-Weather
  • Zmontowany i uruchomiony moduł
Schemat elektryczny
KA-Nucleo-Weather schemat.png
Widok płytki


KA-Nucleo-Weather obrys PCB.png
Czujnik temperatury

W ekspanderze zastosowano półprzewodnikowy czujnik temperatury STLM75 z wyjściem cyfrowym. Magistralę komunikacyjna czujnika temperatury dołączono do wspólnej (dla wszystkich sensorów) magistrali I2C. Linie komunikacyjne magistrali I2C są podciągnięte do plusa zasilania za pomocą rezystorów 4,7kΩ. Sposób dołączenia sensora temperatury do mikrokontrolera pokazano na schemacie. Wyjście czujnika temperatury dołączono do linii A2, która spełnia rolę kanału wejściowego ADC_IN4 (linia GPIO PA4 w STM32).

KA-Nucleo-Weather obrys schemat temp sens.png


Linia STLM75 Nazwa linii GPIO w STM32 Interfejs STM32 Uwagi
SCL D15 PB8 I2C1 Linie podciągnięte do plusa zasilania rezystorami 4,7kΩ
SDA D14 PA9
OS/INT D7 PA8 -


Zwora JP1 umożliwia wybranie adresu bazowego układu STLM75 zgodnie z tabelą poniżej:

Zwarte styki JP1 A0 Adres bazowy I2C
1-2 1 90h/91h
2-3 0 92h/93h
Czujnik oświetlenia (ALS)

Ekspander wyposażono w cyfrowy czujnik natężenia światła w otoczeniu TSL25721, wyposażony w interfejs komunikacyjny I2C. Magistralę komunikacyjną tego czujnika dołączono do wspólnej (dla wszystkich sensorów) magistrali I2C. Linie komunikacyjne magistrali I2C są podciągnięte do plusa zasilania za pomocą rezystorów 4,7kΩ. Sposób dołączenia sensora TSL25721 do mikrokontrolera pokazano na schemacie.

KA-Nucleo-Weather obrys schemat ALS sens.png


Linia TSL25721 Nazwa linii GPIO w STM32 Interfejs STM32 Uwagi
SCL D15 PB8 I2C1 Linie podciągnięte do plusa zasilania rezystorami 4,7kΩ
SDA D14 PA9
INT A0 PA0 - -


Sensor TSL25721 jest ulokowany na magistrali I2C pod adresami bazowymi 72h/73h.

Czujnik wilgotności

Ekspander wyposażono w cyfrowy czujnik wilgotności HTS221, wyposażony w interfejs komunikacyjny I2C. Magistralę komunikacyjną tego czujnika dołączono do wspólnej (dla wszystkich sensorów) magistrali I2C. Linie komunikacyjne magistrali I2C są podciągnięte do plusa zasilania za pomocą rezystorów 4,7kΩ. Sposób dołączenia sensora HTS221 do mikrokontrolera pokazano na schemacie.

KA-Nucleo-Weather obrys schemat humi sens.png


Linia HTS221 Nazwa linii GPIO w STM32 Interfejs STM32 Uwagi
SCL D15 PB8 I2C1 Linie podciągnięte do plusa zasilania rezystorami 4,7kΩ
SDA D14 PA9
DRDY D8 PA9 - -


Sensor HTS221 jest ulokowany na magistrali I2C pod adresami bazowymi BEh/BFh.

Czujnik ciśnienia

Ekspander wyposażono w cyfrowy czujnik ciśnienia atmosferycznego LPS331, wykorzystujący interfejs komunikacyjny I2C. Magistralę komunikacyjną tego czujnika dołączono do wspólnej (dla wszystkich sensorów) magistrali I2C. Linie komunikacyjne magistrali I2C są podciągnięte do plusa zasilania za pomocą rezystorów 4,7kΩ. Wyjścia przerwań (INT1 i INT2) w czujniku LPS331 mogą pracować w trybie push-pull i nie wymagają podciągania do plusa zasilania. Sposób dołączenia sensora LPS331 do mikrokontrolera pokazano na schemacie.

KA-Nucleo-Weather schemat press sens.png


Linia LPS331 Nazwa linii GPIO w STM32 Interfejs STM32 Uwagi
SCL D15 PB8 I2C1 Linie podciągnięte do plusa zasilania rezystorami 4,7kΩ
SDA D14 PA9
INT1 A1 PA1 - Wyjścia powinny być skonfigurowane jako push-pull
INT2 A2 PA4 -


Sensor LPS331 jest ulokowany na magistrali I2C pod adresami bazowymi BAh/BBh.

LED-RGB

Wbudowane diody LED-RGB są sterowane bezpośrednio z linii GPIO mikrokontrolera zgodnie z tabelą poniżej. Diody świecą jeżeli na linii sterującej jest stan logiczny „0”.)

Dioda LED Nazwa linii GPIO w STM32 Uwagi
Red D12 PA6 LED świecą, gdy stan na liniach GPIO jest "0"
Green D11 PA7
Blue A3 PB0
KA-Nucleo-Weather obrys schemat LED RGB.png
Joystick

Wbudowany w ekspander 5-stykowy joystick jest dołączony bezpośrednio do linii GPIO mikrokontrolera zgodnie z tabelą poniżej. Każda linia jest podciągnięta do plusa zasilania za pomocą rezystora 10 kΩ.

Kierunek joysticka Nazwa linii GPIO w STM32 Uwagi
Góra D4 PB5 Linie podciągnięte do plusa zasilania rezystorami 10 kΩ
Dół D10 PB6
Lewo D3 PB3
Prawo D5 PB4
OK D6 PB10
KA-Nucleo-Weather obrys schemat joy.png
Mapa przypisań linii GPIO
KA-Nucleo-Weather broszura.png