tiistai 26. joulukuuta 2017

Raspberry Pi kodinohjaus

Raspberry Pi kodinohjaus                                                                            Päivitetty: 28.2.2017
Domoticz ohjelmalla
Home Assistant on toinen ohjelma kodinohjaukseen.


LAITTEET OLEN JUURI HANKKINUT. TÄNNE TULEE LISÄÄ TEKSTIÄ KUN SAAN NE TOIMIMAAN



Lisälaitteet:




















RFXtrx433E USB 433.92 MHz transceiver with antenna £94.16  Vesternet

Windows PC:llä ja RFXmngr ohjelmalla näkee kaikki 433mhz komennot joita ilmassa kulkee. Ohjelma löytyy RFXCom.
Omassa oli Firmware version  = 1011

Kytkin laitteen Domoticz Raspberry Pi 3
Konsoli: dmesg                 komento näyttää mihin USB porttiin laite asentui

FTDI USB Serial Device converter now attached to ttyUSB0    lukee viimeisellä rivillä

sudo /etc/init.d/domoticz.sh restart             käynnistä domo uudelleen

Setup - Hardware      asenna laite

- Laite löytää automaattisesti 433,92MHz lähetetyt signaalit joita se ymmärtää. Nämä ilmestyy Devices listaan jossa niitä voi muokata.




-----------------------------------------------------------------------------------------------------












USB Z-Stick Gen5  50eur Amazon.co.uk
ZW090-C 868,42MHz EU

Raspberry PI3  Domoticz

Z-wave laitteet voi opettaa vain yhdelle ohjainlaitteelle. Eli ei voi ohjata Zipatolla ja Gen5 tikulla samaan aikaan. 


 Konsolissa: dmesg

cdc_acm 1-1.4:1.0: ttyACM0: USB ACM device        itsellä asennus meni porttiin ttyACM0
usbcore: registered new interface driver cdc_acm
cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters




Setup - Hardware

Open Z-wave USB                            laiteluettelosta



Fibaro FGS-222 2relettä (paina pientä B nappia kolmesti)
Reset by holding B button for 3 sec. after connecting
mains voltage to the Switch

--------------------------------------------------------------------------------













USB 1-wire 1wire DS9097 12€ ebay.
This adapter connects single 1-wire devices or whole 1-wire network to USB port.
Communication is done thru virtual com port. It is possible to connect every
Dallas/Maxim 1-wire device suitable for 3.3V or 5V operation - thermometers(DS18B20),
switches(DS2405-DS2409), battery monitor(DS2438), A/D converter(DS2450) and many others.
Specification:Red wire - +5V(100mA max)
White wire - +3.3V(20mA max)
Black wire- GND
Green wire- 1-wire data
Emulate DS9097 adapter
Cable length approx. 80cm/3ft
Weight 27g
Cable diameter 3.5mm
USB shell color may vary
Based on PL-2303TA USB/Serial adapter chip
Windows 7/8/10 compatible
Software requirement:
PL-2303 usb/serial adapter driver
Software to read 1-wire devices(owfs.orgwww.digitemp.com etc.)
Tested software:
Digitemp
Owfs
DTGraph
OneWireViewer
LogTemp
Axiris
---------------------------------------------------------------------------------------------------------





















Photodiode Light Sensor Module 3.3-5V Input Light Sensor Arduino Raspberry pi
  • Usage:
  • Light level detection, the brightness of the light sensor is directional, only inductive sensor in front of the light source used to find light better
  • Module Features:
  • 1. The brightness of surrounding environment and the light intensity can be detected (compare with the photoresistor, directivity is relatively good, can perceive the fixed direction of the light source)
  • 2.Sensitivity adjustable the blue digital potentiometer adjustment (Figure)
  • 3. Operating voltage 3.3V-5V
  • 4. Digital switching outputs (0 and 1)
  • 5. With fixed bolt hole for easy installation
  • 6. Small board PCB size: 3.2cm * 1.4cm / 1.25" * 0.55"
  • Instructions for use:
  • 1. Photodiode module is most sensitive to the ambient light, generally used to detect the brightness of the ambient light intensity, photoresistor sensor module Universal In most cases, the difference between the two is that photodiode module directional, can sense the fixed the direction of the light source
  • 2. Module in the light conditions or the light intensity of less than a set threshold, DO port outputs a high level, when the external environment when the light intensity exceeds the set threshold value, the module D0 output is low
  • 3. The small board digital output D0 can be connected directly with the microcontroller microcontroller to detect high and low to detect environmental light intensity change
  • 4. Small board digital output DO OUR relay module can directly drive, which can be composed of a photoelectric switch
-----------------------------------------------------------------------------------



























CH340 Wireless Module ESP8266 NodeMcu V3 Lua WIFI Development Board Based
  • NodeMCU has built-in USB-TTL serial with super reliable industrial strength CH340G for superior stability on all supported platforms.
  • Communication interface voltage: 3.3V.
  • Antenna type: Built-in PCB antenna is available.
  • Wireless 802.11 b/g/n standard
  • WiFi at 2.4GHz, support WPA / WPA2 security mode
  • Support STA/AP/STA + AP three operating modes
  • Built-in TCP/IP protocol stack to support multiple TCP Client connections (5 MAX)
  • D0 ~ D8, SD1 ~ SD3: used as GPIO, PWM, IIC, etc., port driver capability 15mA
  • AD0: 1 channel ADC
  • Power input: 4.5V ~ 9V (10VMAX), USB-powered
  • Current: continuous transmission: ≈70mA (200mA MAX), Standby: <200uA
  • Transfer rate: 110-460800bps
  • Support UART / GPIO data communication interface
  • Remote firmware upgrade (OTA)
  • Support Smart Link Smart Networking
  • Working temperature: -40 ℃ ~ + 125 ℃
  • Drive Type: Dual high-power H-bridge driver
  • ESP8266 has IO Pin
  • Don't need to download resetting
  • A great set of tools to develop ESP8266
  • Flash size: 4MByte
  • Size: 4.7cm*3cm/1.85"*1.18"
---------------------------------------------------------------------------------------------



















DHT22/AM2302 Digital Temperature And Humidity Sensor Replace SHT11 SHT15
Brand: AOSONG.
1.Type:DHT22/AM2302
2.Accuracy resolution:0.1
3.Humidity range:0-100%RH
4.Temperature range:-40~80℃
5.Humidity measurement precision:±2%RH
6.Temperature measurement precision:±0.5℃
7.4-pin package
8.ultra-low power
9.No additional components
10.excellent long-term stability
11.All calibration, digital output
12.completely interchangeable
13.long distance signal transmission
14.relative humidity and temperature measurement

----------------------------------------------------------------------------------------------------------
















Si7021 Industrial High Precision Humidity Sensor with I2C Interface Arduino
Features:
Precision Relative Humidity Sensor
± 3% RH (max), 0–80% RH
High Accuracy Temperature Sensor
±0.4 °C (max), –10 to 85 °C
0 to 100% RH operating range
Up to –40 to +125 °C operating range
Wide operating voltage (1.9 to 3.6 V)
Low Power Consumption 150 μA active current
60 nA standby current
Factory-calibrated
I2C Interface
Integrated on-chip heater
3x3 mm DFN Package
Excellent long term stability
Optional factory-installed cover
Low-profile
Protection during reflow
Excludes liquids and particulates

Applications:
HVAC/R
Thermostats/humidistats
Respiratory therapy
White goods
Indoor weather stations
Micro-environments/data centers
Automotive climate control and defogging
Asset and goods tracking
Mobile phones and tablets
Size: 1.3*1cm/0.51*0.39"
--------------------------------------------------------------------------------------


















MAX31855K Thermocouple Sensor Module Temperature Detection Development Module MO
With cold port compensation
Convert K, J, N, T or E-type thermocouple signal into digital data
Output 14Bit data
Resolution: 0.25°C
Highest Temperature: +1800°C
Lowest Temperature: -270°C
For K-type thermocouple, temperature range -200°C~+700°C, +/-2°C precision
----------------------------------------------------------------------------------------------------












MAX31855 K Type Thermocouple Breakout Board Temperature -200℃ to+1350℃ Out M
Thermocouples are very sensitive, requiring a good amplifier with a cold-compensation reference. The MAX31855K does everything for you, and can be easily interfaced with any microcontroller, even one without an analog input. This breakout board has the chip itself, a 3.3V regulator with 10uF bypass capacitors and level shifting circuitry, all assembled and tested. Comes with a 2 pin terminal block (for connecting to the thermocouple) and pin header (to plug into any breadboard or perfboard)

New! Now uses the MAX31855K instead of the MAX6675, so it can measure a wider temperature measurement range. Please note! the MAX31855 is not pin compatible or drop-in code compatible with the MAX6675. We do have an Arduino library for both chips but you'll need to adjust any existing MAX6675 designs for the mew MAX31855. The MAX6675 has been discontinued by Maxim

Version 2.0 now includes ferrite beads and filter capacitor onboard for better stability
- Works with any K type thermocouple
- Will not work with any other kind of thermocouple other than K type
- -200°C to +1350°C output in 0.25 degree increments - note that K thermocouples have about ±2°C to ±6°C accuracy
- Internal temperature reading
- 3.3 to 5v power supply and logic level compliant
- SPI data output requires any 3 digital I/O pins
-----------------------------------------------------------------------------------------------------------








PCF8574 PCF8574T I2C 8 Bit IO GPIO Expander Module for Arduino & Raspberry Pi MO
PCF8574(Blue)
I2C interface, I / O expansion module, two I / O scalability 8 I / O (up to 8 simultaneous use the PCF8574 expanded to 64 I / O)
Most important feature: 1. Supports two interface types access target board: Pin or row seat,
Support I2C bus cascade (by pin header row seat docking methods can be used simultaneously multiple I2C modules)
Typical application: I / O resource shortage MCU I / O expansion
Main resources: the PCF8574 I2C interface, 8-bit parallel
Information includes:
Test procedures (AVR, STM8, C8051F)
Circuit schematics
Related PDF data

PCF8574T















PCF8574T(Red)
This is the I/O extended module, which use for I2C interface, you can use two of the module to extend 8 I/O.
Support cascading, and you can use at most 8 modules to extend 64 I/O at the same time.
Can be changed the address by set toggle switch
PCB Size: 36 x 16mm/1.41*0.62"
Every 2 seconds, make P0-P7 port output High level, Low level, and put 3 toggle switches to ON, the address of module is 0x27

----------------------------------------------------------------------------











TCRT5000L TCRT5000 Reflective Optical Sensor Infrared IR Switch infrared
Compact construction, sense the presence of an object by using the reflective IR beam from the object.
Consists of a phototransistor.
Snap-in construction for PCB mounting.
Plastic polycarbonate housing construction which prevents crosstalk.
Position sensor for shaft encoder.
Detection of reflective materials such as paper, IBM cards, magnetic tapes, etc.
Limit switch foe mechanical motions in VCR.
General purpose - wherever the space is limited
------------------------------------------------------------------------


















DIYmall ESP8266 ESP-01S Wireless Wifi Module+ USB Adapter With CH340G Driver
Description
ESP8266 ESP-01S Serial WIFI Wireless Transceiver Module Send Receive (ESP-01 Advanced Version)
comparing to esp-01, esp-01s has these advantages:
The PCB layout has changed for an improvement in WiFi radio performance
1MB Flash Memory...upgraded from 512KB
Latest version esp-01s,with stronger signal
Feature
SDIO 2.0, SPI, UART
32-pin QFN package
Wi-Fi Direct (P2P), soft-AP
Integrated TCP/IP protocol stack
Integrated TR switch, balun, LNA, power amplifier and matching network
Integrated PLLs, regulators, DCXO and power management units
+19.5dBm output power in 802.11b mode
Power down leakage current of <10uA
Integrated low power 32-bit CPU could be used as application processor
SDIO 1.1/2.0, SPI, UART
STBC, 1×1 MIMO, 2×1 MIMO
A-MPDU & A-MSDU aggregation & 0.4ms guard interval
Integrated RF switch, balun, 24dBm PA, DCXO, and PMU
Integrated RISC processor, on-chip memory and external memory interfaces
Integrated MAC/baseband processors
Quality of Service management
I2S interface for high fidelity audio applications
On-chip low-dropout linear regulators for all internal supplies
Proprietary spurious-free clock generation architecture
Integrated WEP, TKIP, AES, and WAPI engines

Specification:
802.11 b/g/n
Wake up and transmit packets in < 2ms
Standby power consumption of < 1.0mW (DTIM3)

USB to ESP8266 ESP-01/ESP-01S Wireless Wifi Adapter Module Wi-Fi CH340G driver
USB to ESP-01 /ESP-01S adapter module has CH340G USB to TTL driver IC onboard, so you can easily use your computer to do ESP-01 /ESP-01S functional debugging. ESP-01/esp-01s serial wifi module can be directly plugged into the yellow pin header without any connection wires.
Features:
Working voltage: 4.5V - 5.5V (On-board 3.3v LDO Regulator)
Working current: 300mA(LDO regulator can supply)
Selectable working mode: On-board toggle switch. UART side for serial TTL debugging by AT commands, PROG for firmware programming
USB to serial TTL chip: CH340G
Logic level: 3.3V
Applications: Home automation, sensor networks, industrial wireless control
-------------------------------------------------------------------------------------------------













ESP8266 ESP-01S Serial Wireless Module+Breadboard Adapter PCB Breakout
ESP8266

ESP8266 is a highly integrated chip designed for the needs of a new connected world. It offers a complete and self-contained Wi-Fi networking solution, allowing it to either host the application or to offload all Wi-Fi networking functions from another application processor.

ESP8266 has powerful on-board processing and storage capabilities that allow it to be integrated with the sensors and other application specific devices through its GPIOs with minimal development up-front and minimal loading during runtime. Its high degree of on-chip integration allows for minimal external circuitry, and the entire solution, including front-end module, is designed to occupy minimal PCB area.
ESP8266 ESP-01S Transceiver Module
Wireless Standard:802.11b/g/n
Frequency Range:2.4GHz-2.5GHz(2400M-2483.5M)
Data Interface:UART/HSPI/I2C/I2S/Ir Remote Control/GPIO/PWM
Operating Voltage:3.0-3.6V(We recommended 3.3V)
Operating Current:Average 80mA
Operating Temperature:-40~125℃
Wireless Network Mode:station/softAP/SoftAP+station
Safety Mode:WPA/WPA2
Encryption Type:WEP/TKIP/AES
Network Protocol:IPV4,TCP/UDP/HTTP/FTP

ESP-01/ESP-01S Breadboard Adapter
This is a breadboard adapter for the popular ESP-01 model of the ESP8266 serial-to-WiFi transceiver module.
As ESP-01 Pin arrangements are not breadboard friendly and are not labeled, which makes it little inconvenient for rapid prototyping.This breadboard adapter will help you to make
prototyping with esp-01 module much more easier.
This breakout conveniently offers clear pinout silkprint on top and will nicely fit your prefered breadboard.
Last but not least, we added a 0.1µF decoupling capacitor so the ESP-01 will always run smoothly and without a hitch.
Connection:
URAT        Adapter
3.3V           VCC
3.3V           CH-PD
TX               RX
RX              TX
Choose both NL CR 15200 baud rate
-----------------------------------------------------------------------------------------------------------



Ei kommentteja:

Lähetä kommentti