Content
Block reading of data from the motion sensor NooLite PM111

Block is used to read data from the wireless motion sensor Noolite PM111.
PM111 is a heat motion sensor, intended for use in the system nooLite. With the appearance of moving objects with temperature above ambient in the range of the sensor, it takes the radio command to enable (the output State of the block will appear 1). After a specified time after the cessation of movement in the area of the sensor, it sends the command off(output "State" block is 0). In addition, the sensor PM111 is provided with a photo sensor for measuring illumination, which allows to exclude the operation of the sensor in the daytime.
The sensitivity of the thermal sensor, the illuminance threshold and time of switching on the light when motion is regulated.
Notes
1.The thermal sensitivity of the sensor depends on the direction of movement, size, temperature and velocity of the object. The worst sensitivity is obtained by movement directly towards or away from the sensor. The best perpendicular to this direction.
2.When setting the maximum sensitivity of the thermal sensor possible false positives. If this is unacceptable then a little zagrabiti sensitivity thermal sensor controller "Sensitivity".
3.The adjustment range of the image sensor threshold ranges are approximate, because the light sensors have a large scatter.
4.The algorithm of the measurement light is introduced hysteresis, so disabling the thermal sensor occurs at a higher light level than its inclusion.
5.The range of the transmitter depends on the mutual orientation of the antennas of receiver and transmitter, obstacles between them and the freshness of the batteries of the sensor. With full batteries the range can be greatly reduced.
6.The discharge rate of the battery depends on the current settings and the overall lighting of the room. A longer lifetime will be in positions "a switch Time"β22min, "Luminosity" is low, Sensitivity is low, in a good light.
Appearance of the sensor.
PM111 is a heat motion sensor, intended for use in the system nooLite. With the appearance of moving objects with temperature above ambient in the range of the sensor, it takes the radio command to enable (the output State of the block will appear 1). After a specified time after the cessation of movement in the area of the sensor, it sends the command off(output "State" block is 0). In addition, the sensor PM111 is provided with a photo sensor for measuring illumination, which allows to exclude the operation of the sensor in the daytime.
The sensitivity of the thermal sensor, the illuminance threshold and time of switching on the light when motion is regulated.
Notes
1.The thermal sensitivity of the sensor depends on the direction of movement, size, temperature and velocity of the object. The worst sensitivity is obtained by movement directly towards or away from the sensor. The best perpendicular to this direction.
2.When setting the maximum sensitivity of the thermal sensor possible false positives. If this is unacceptable then a little zagrabiti sensitivity thermal sensor controller "Sensitivity".
3.The adjustment range of the image sensor threshold ranges are approximate, because the light sensors have a large scatter.
4.The algorithm of the measurement light is introduced hysteresis, so disabling the thermal sensor occurs at a higher light level than its inclusion.
5.The range of the transmitter depends on the mutual orientation of the antennas of receiver and transmitter, obstacles between them and the freshness of the batteries of the sensor. With full batteries the range can be greatly reduced.
6.The discharge rate of the battery depends on the current settings and the overall lighting of the room. A longer lifetime will be in positions "a switch Time"β22min, "Luminosity" is low, Sensitivity is low, in a good light.
Appearance of the sensor.



Before using you must install the batteries in the sensor. Their installation is performed with the removed back cover of the sensor according to the guidelines (+)/(-) on the case.
To validate the installation, you can by briefly pressing the service button should blink the led.
Closing the lid sensor, you must select one of three modes of operation and set if necessary the threshold.
The procedure of binding/unbinding
In order that the controller could accept commands from the sensor, you need to complete the pairing process.
For this receiver (MR1132) should be converted into binding mode (using block binding to the channel). After that you need short-term( <1 second) press the service button to send a command binding.
THE SENSOR
Modes of operation
If the lighting near the sensor above the regulator "Illumination", the sensor is in standby mode. While its current consumption is minimal (less than 1 Β΅a), and thermal motion sensor is disabled.
When the illumination falls below a predetermined level, the sensor switches to standby mode.
The heat sensor is activated and the current consumption increases to 75 Β΅a (approx.)
The transition back to the standby mode occurs at a slightly greater level of illumination to exclude multiple transitions there and back at sunset or dawn.
If the controller is "Illumination" is located near the high () position. ), the sensor
remains in standby mode whenever it's light.
Standby
This mode is activated automatically when illumination falls below the predetermined controller "Illumination" or force, if the controller is "Illumination" is set to "On".
In this mode, the heat sensor detects movement of warm objects within its range.
The size of the zone of action of the heat sensor can be set by the regulator "Sensitivity".
When motion is detected the sensor sends a radio command to the receiver (1 appears at the output of the State block).
When the motion stopped, the sensor counts the interval specified by the regulator, "on-Time" and passes the command off the light (at the output "State" block is 0).
If during the interval, again the movement is detected, the countdown starts again.
Team on and off are transmitted twice for reliability, with an interval of 2s.
After the filing of the first team the heat sensor is disabled for 3.5 seconds, it means that the sensor does not feel the movement of 3.5 seconds after commanded off.
INDICATION OF BATTERY DISCHARGE INDICATION
When it detects the battery is getting low the sensor reports that three short flashes of the led indicator, repeated every 8 seconds. Also the output "Batt" block appears 1.
The unit is configured using the editor block
To validate the installation, you can by briefly pressing the service button should blink the led.
Closing the lid sensor, you must select one of three modes of operation and set if necessary the threshold.
The procedure of binding/unbinding
In order that the controller could accept commands from the sensor, you need to complete the pairing process.
For this receiver (MR1132) should be converted into binding mode (using block binding to the channel). After that you need short-term( <1 second) press the service button to send a command binding.
THE SENSOR
Modes of operation
If the lighting near the sensor above the regulator "Illumination", the sensor is in standby mode. While its current consumption is minimal (less than 1 Β΅a), and thermal motion sensor is disabled.
When the illumination falls below a predetermined level, the sensor switches to standby mode.
The heat sensor is activated and the current consumption increases to 75 Β΅a (approx.)
The transition back to the standby mode occurs at a slightly greater level of illumination to exclude multiple transitions there and back at sunset or dawn.
If the controller is "Illumination" is located near the high () position. ), the sensor
remains in standby mode whenever it's light.
Standby
This mode is activated automatically when illumination falls below the predetermined controller "Illumination" or force, if the controller is "Illumination" is set to "On".
In this mode, the heat sensor detects movement of warm objects within its range.
The size of the zone of action of the heat sensor can be set by the regulator "Sensitivity".
When motion is detected the sensor sends a radio command to the receiver (1 appears at the output of the State block).
When the motion stopped, the sensor counts the interval specified by the regulator, "on-Time" and passes the command off the light (at the output "State" block is 0).
If during the interval, again the movement is detected, the countdown starts again.
Team on and off are transmitted twice for reliability, with an interval of 2s.
After the filing of the first team the heat sensor is disabled for 3.5 seconds, it means that the sensor does not feel the movement of 3.5 seconds after commanded off.
INDICATION OF BATTERY DISCHARGE INDICATION
When it detects the battery is getting low the sensor reports that three short flashes of the led indicator, repeated every 8 seconds. Also the output "Batt" block appears 1.
The unit is configured using the editor block

Π ΠΊΠ°ΠΊ ΡΠΏΠ°ΠΊΠΎΠ²Π°ΡΡ PZEM-004T Π² remotexy?
Π‘ΠΏΠ°ΡΠΈΠ±ΠΎ, ΠΠ»ΡΠ±Π΅ΡΡ
ΠΎΡΠΈΠ±ΠΊΠ° Π² ΠΎΠΏΠΈΡΠ°Π½ΠΈΠΈ Π±Π»ΠΎΠΊΠ° “ΠΠ»ΠΎΠΊ ΠΎΠ±Π½Π°ΡΡΠΆΠ΅Π½ΠΈΡ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΡ ΡΠΈΡΠ»Π°”
“ΠΠ»ΠΎΠΊ ΡΠ»ΡΠΆΠΈΡ Π΄Π»Ρ ΠΎΠ±Π½Π°ΡΡΠΆΠ΅Π½ΠΈΡ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΡ ΡΠΈΡΠ»Π° ΠΏΠΎΠ΄Π°Π²Π°Π΅ΠΌΠΎΠ³ΠΎ Π½Π° Π²Ρ ΠΎΠ΄ “EN” . ΠΡΠΈ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠΈ Π·Π½Π°ΡΠ΅Π½ΠΈΠΈ Π½Π° Π²ΡΡ ΠΎΠ΄Π΅”Q” ΡΠΎΡΠΌΠΈΡΡΠ΅ΡΡΡ ΠΈΠΌΠΏΡΠ»ΡΡ Π΄Π»ΠΈΡΠ΅Π»ΡΠ½ΠΎΡΡΡΡ Π² ΠΎΠ΄ΠΈΠ½ ΡΠΈΠΊΠ» ΠΏΡΠΎΠ³ΡΠ°ΠΌΠΌΡ. ΠΠ»Ρ Π±Π»ΠΎΠΊΠ° Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎ Π·Π°Π΄Π°Π½ΠΈΠ΅ Π·ΠΎΠ½Ρ Π½Π΅ΡΡΠ²ΡΡΠ²ΠΈΡΠ΅Π»ΡΠ½ΠΎΡΡΠΈ ΡΠ°Π·Π΄Π΅Π»ΡΠ½ΠΎ Π΄Π»Ρ ΠΊΠ°ΠΆΠ΄ΠΎΠ³ΠΎ Π½Π°ΠΏΡΠ°Π²Π»Π΅Π½ΠΈΡ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΡ ΡΠΈΡΠ»Π°. ΠΡΠΈ ΠΏΠ°ΡΠ°ΠΌΠ΅ΡΡΡ Π·Π°Π΄Π°ΡΡΡΡ Π² ΡΠ΅Π΄Π°ΠΊΡΠΎΡΠ΅ Π±Π»ΠΎΠΊΠ°.”
Π²ΠΌΠ΅ΡΡΠΎ ΠΏΠ΅ΡΠ²ΠΎΠ³ΠΎ “EN”Β Π΄ΠΎΠ»ΠΆΠ½ΠΎ Π±ΡΡΡΒ “Value”
ΡΡΠΎ ΡΠΎ Π½Π΅ ΡΠ°ΠΊ Ρ ΠΌΠ°ΡΡΠΈΠ²Π°ΠΌΠΈ.
ΡΠΊΠ΅ΡΡ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π» Π΄Π°Π½Π½ΡΠ΅ ΠΈΠ· ΡΠΎΠΉ ΠΆΠ΅ ΡΡΡΠΎΠΊΠΈ Π΄ΡΡΠ³ΠΎΠ³ΠΎ ΠΌΠ°ΡΡΠΈΠ²Π°.Β ΠΌΠ΅Π½ΡΠ» Π½Π°Π·Π²Π°Π½ΠΈΡ (ΡΡΠ°Π²ΠΈΠ» Π½Π΅ ΡΠΎΠ²ΠΏΠ°Π΄Π°ΡΡΠΈΠ΅ ΡΠΈΡΡΡ), ΡΠ΄Π°Π»ΡΠ»/ ΡΡΠ°Π²ΠΈΠ» Π±Π»ΠΎΠΊΠΈ – (Π½Π΅ ΠΊΠΎΠΏΠΈΡΠΎΠ²Π°Π» Π° ΠΏΡΠΈΡΠ°ΡΠΊΠΈΠ²Π°Π» Π½ΠΎΠ²ΡΠΉ), ΠΏΡΠΎΠ²Π΅ΡΡΠ» / ΠΌΠ΅Π½ΡΠ» Π½Π°ΡΡΡΠΎΠΉΠΊΠΈ. Π΅ΡΡΡ 3 ΡΠ°Π·Π½ΡΡ ΠΌΠ°ΡΡΠΈΠ²Π°. Π·Π°ΠΏΠΎΠ»Π½Π΅Π½Π½ΡΡ .Β Π½ΠΎ Π±Π΅ΡΡΡ ΠΏΠΎΡΠ΅ΠΌΡ ΡΠΎΒ ΠΈΠ· ΠΎΠ΄Π½ΠΎΠ³ΠΎ … ΡΠΎΠ·Π΄Π°Π½Π½ΠΎΠ³ΠΎ ΠΏΠ΅ΡΠ²ΡΠΌ.
ΠΊΠΎΡΡΡΠ»ΡΒ – ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π½ΠΈΠ΅ Π½Π΅ ΠΏΠΎΠ²ΡΠΎΡΡΡΡΠΈΡ ΡΡ Π½ΠΎΠΌΠ΅ΡΠΎΠ² ΡΡΡΠΎΠΊ (ΠΈΠ½Π΄Π΅ΠΊΡΠΎΠ²) .Β (ΠΏΠΎΠΌΠΎΠ³Π°Π΅Ρ)
Π°ΡΠ΄ΡΠΈΠ½ΠΎ uno. Π²Π΅ΡΡΠΈΡ FLP- Π°ΠΊΡΡΠ°Π».
Π‘ΡΡΠ°Π½Π½ΠΎ,Π½ΠΎ Ρ ΠΌΠ΅Π½Ρ ΠΏΠΎΠΌΠ΅Π½ΡΠ»ΠΈΡΡ ΡΡΠ½ΠΊΡΠΈΡΠΌΠΈ Π±Π»ΠΎΠΊΠΈ AND ΠΈ OR
ΠΠΎΠ±ΡΡΠΉ Π΄Π΅Π½Ρ. ΠΏΠΎΠΌΠΎΠ³ΠΈΡΠ΅ Ρ Π±Π»ΠΎΠΊΠΎΠΌ ΡΠ°Π³ΠΎΠ²ΡΠΉ ΠΌΠΎΡΠΎΡ. ΠΏΡΠΈ Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ΠΈΠΈ Π²ΡΠΎΡΠΎΠ³ΠΎ ΠΌΠΎΡΠΎΡΠ° ( ΠΊΠ½ΠΎΠΏΠΊΠ° Π½ΠΎΠ²ΡΠΉ) Π½ΠΈΡΠ΅Π³ΠΎ Π½Π΅ ΠΏΡΠΎΠΈΡΡ ΠΎΠ΄ΠΈΡ.
ΠΠ΄ΡΠ°Π²ΡΡΠ²ΡΠΉΡΠ΅ ! Π‘ΠΏΠ°ΡΠΈΠ±ΠΎ ΠΎΠ³ΡΠΎΠΌΠ½ΠΎΠ΅ Π²ΡΠ΅ΠΌ ΠΊΡΠΎ Π²Π½Π΅Ρ ΡΠ²ΠΎΠΉ Π²ΠΊΠ»Π°Π΄ Π² ΡΡΠΎΡ ΠΏΡΠΎΠ΅ΠΊΡ! ΠΡΠΎΠ³ΡΠ°ΠΌΠΌΠ° ΡΠ΄Π΅Π»Π°Π½Π° ΠΈΠ½ΡΡΠΈΡΠΈΠ²Π½ΠΎ ΠΏΠΎΠ½ΡΡΠ½ΠΎ ΠΈ Π·Π° ΠΌΠ΅ΡΡΡ Ρ Π΄ΠΎΡΠ΅Π» Π΄ΠΎ ΠΊΠΎΠΌΠΌΡΠ½ΠΈΠΊΠ°ΡΠΈΠΉ Π½ΠΎ Ρ ΠΏΡΠΎΡΠΎΠΊΠΎΠ»ΠΎΠΌ Modbus ΠΎΡΡΠ°Π½ΠΎΠ²ΠΈΠ»ΡΡ Π½Π° ΠΎΡΠΈΠ±ΠΊΠ΅ 244 . Scada ΠΌΠ°ΡΡΠ΅Ρ, Uno ΡΠ»Π΅ΠΉΠ²Β ΡΠΎΠ΅Π΄ΠΈΠ½Π΅Π½Ρ ΡΠ΅ΡΠ΅Π· Max485. ΠΠ°Π΄Π°ΡΠ° ΠΊΠ½ΠΎΠΏΠΊΠΎΠΉ Π½Π° Scada Π²ΠΊΠ»ΡΡΠ°ΡΡ Π΄ΠΈΠΎΠ΄ Π½Π° Uno ΠΈ Π½Π° ΠΎΠ±ΠΎΡΠΎΡ. ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅ ΠΏΠΎΠΆΠ°Π»ΡΠΉΡΡΠ° Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΡΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΡ ΡΡΠΎΠΉ ΠΏΡΠΎΠ±Π»Π΅ΠΌΡ ΠΈ Π΅ΡΠ΅ Π² ΠΊΠ°ΠΊΠΈΡ ΡΠ»ΡΡΠ°ΡΡ Π½Π°Π·Π½Π°ΡΠ°ΡΡ ΠΏΠΈΠ½ pe-de ?
Π‘ ΡΠ²Π°ΠΆΠ΅Π½ΠΈΠ΅ΠΌ ΠΠ»Π°Π΄!
“ΠΠ΅ΡΠ΅ΠΌΠ΅Π½Π½Π°Ρ (Π’ΡΠ³) Π² ΠΎΠ±Π»Π°ΡΡΠΈ ΠΏΠ°ΠΌΡΡΠΈ Holding Registors Π²Π½Π΅ΡΠ½Π΅Π³ΠΎ ΡΠ»Π΅ΠΉΠ²Π° ΠΎΠΏΡΠ°ΡΠΈΠ²Π°Π΅ΠΌΠΎΠ³ΠΎ Ρ ΠΏΠΎΠΌΠΎΡΡΡ ΠΌΠ°ΡΡΠ΅ΡΠ° Π½Π° Π΄Π°Π½Π½ΠΎΠΌ ΠΊΠΎΠ½ΡΡΠΎΠ»Π΅ΡΠ΅.” – Π½Π΅ Ρ Π²Π°ΡΠ°Π΅Ρ Π·Π°ΠΏΡΡΡΡ ?
ΠΊΠ°ΠΊ Π΄ΠΎΠ±Π°Π²ΠΈΡΡ ΡΠ²ΠΎΠΉ Π±Π»ΠΎΠΊ? Ρ ΠΎΡΡ ΠΏΠΎΠ΄Π΅Π»ΠΈΡΡΡ Ρ ΡΠ°ΡΠ°ΠΌΠΈ Π΄Π»Ρ ΠΌΠ°ΡΡΠΈΡΡ 8*8 )))))
ΠΠ°ΠΏΠΈΡΡ ΠΏΠ΅ΡΠ΅ΠΌΠ΅Π½Π½ΠΎΠΉ Π½Π° SD ΠΊΠ°ΡΡΡ. ΠΠ»Π°ΡΠ° Arduino UNO.
“Data Logger Module Logging Recorder Shield V1.0 For Arduino UNO SD Card One”
Digital #13 – SPI clock
Digital #12 – SPI MISO
Digital #11 – SPI MOSI
Digital #10 – SD Card chip
ΠΡΠΈ Π²ΡΠ±ΠΎΡΠ΅ CS ΠΏΠΎΠ΄ΠΊΠ»ΡΡΠ΅Π½ΠΈΡ Π΄Π°Π΅Ρ ΡΠΎΠ»ΡΠΊΠΎ Pin Π΄ΠΎ 9. ΠΡΠΆΠ½ΠΎ 10.
Π§ΡΠΎ Π΄Π΅Π»Π°ΡΡ?
ΠΠΎΠ±ΡΡΠΉ Π΄Π΅Π½Ρ!
Π ΡΠΏΡΠ°Π²ΠΊΠ΅ ΠΏΠΎ Π±Π»ΠΎΠΊΡ SVCM (ΠΎΡΠΏΡΠ°Π²ΠΊΠ° ΠΏΠ΅ΡΠ΅ΠΌΠ΅Π½Π½ΠΎΠΉ ΡΠ΅ΡΠ΅Π· ΠΊΠΎΠΌΠΌΡΠ½ΠΈΠΊΠ°ΡΠΈΠΈ) ΠΏΠΎΠΊΠ°Π·Π°Π½Ρ Π°ΠΊΡΠΈΠ²Π½ΡΠΌΠΈ Π΄Π²Π° ΡΡΡΡΠΎΠΉΡΡΠ²Π°: Arduino Ethernet Wiznet 5100Β ΠΈ ESP8266 WiFi Module. Π Π²Π΅ΡΡΠΈΠΈ ΠΏΡΠΎΠ³ΡΠ°ΠΌΠΌΡ 4.3.4 ΠΌΠΎΠΆΠ½ΠΎ Π²ΡΠ±ΡΠ°ΡΡ ΡΠΎΠ»ΡΠΊΠΎ Arduino Ethernet Wiznet 5100.
Π ΠΎΠ±Π½ΠΎΠ²Π»Π΅Π½ΠΈΠΈ 6.3.1 ESP8266 WiFi Module ΡΠ°ΠΊΠΆΠ΅ Π½Π΅Π΄ΠΎΡΡΡΠΏΠ΅Π½ Π΄Π»Ρ Π²ΡΠ±ΠΎΡΠ°.
ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅ ΠΏΠΎΠΆΠ°Π»ΡΠΉΡΡΠ°, ΠΌΠΎΠΆΠ΅Ρ Π½ΡΠΆΠ½ΠΎ ΡΡΠΎ-ΡΠΎ Π΄ΠΎΡΡΡΠ°Π½ΠΎΠ²ΠΈΡΡ ΠΈΠ»ΠΈ Π½Π°ΡΡΡΠΎΠΈΡΡ?
Π PID ΡΠ΅Π³ΡΠ»ΡΡΠΎΡΠ΅ ΠΏΠ°ΡΠ°ΠΌΠ΅ΡΡ “TIME” ΡΡΠΎ ΠΎΠ·Π½Π°ΡΠ°Π΅Ρ?
ΠΠ΄ΡΠ°Π²ΡΡΠ²ΡΠΉΡΠ΅!
ΠΠ°ΠΊ ΠΎΡΡΡΠ΅ΡΡΠ²ΠΈΡΡ Ρ ΡΠ°Π½Π΅Π½ΠΈΠ΅ Π΄Π°Π½Π½ΡΡ Π²ΠΎ ΡΠ»ΡΡ-ΠΏΠ°ΠΌΡΡΠΈ (ΠΏΡΠΎΠ³ΡΠ°ΠΌΠΌΠ΅) Π²ΠΌΠ΅ΡΡΠΎ SRAM?
ΠΠΎΠ±ΡΡΠΉ Π΄Π΅Π½Ρ.
ΠΠ°ΡΠ°ΠΌΠ΅ΡΡ βTimeβ β Π½Π° ΡΡΠΎΡ Π²Ρ ΠΎΠ΄ ΠΏΠΎΠ΄Π°ΡΡΡΡ Π²ΡΠ΅ΠΌΡ ΡΠ΅Π³ΡΠ»ΠΈΡΠΎΠ²Π°Π½ΠΈΡ (Π² ΠΌΠΈΠ»Π»ΠΈΡΠ΅ΠΊΡΠ½Π΄Π°Ρ ).” – ΡΠ°ΠΊ ΠΈ Π½Π΅ ΡΠΌΠΎΠ³ ΠΏΠΎΠ½ΡΡΡ Π½Π° ΡΡΠΎ ΠΈΠΌΠ΅Π½Π½ΠΎ ΠΎΠ½ Π²Π»ΠΈΡΠ΅Ρ… ΠΠΎΠΆΠ½ΠΎ Π³Π΄Π΅ ΡΠΎ ΡΠ·Π½Π°ΡΡ ΡΡΠΎ ΡΡΠΎ Π·Π° ΠΏΠ°ΡΠ°ΠΌΠ΅ΡΡ?
Π Π΅ΡΡ ΠΈΠ΄Π΅Ρ ΠΎ ΠΠΠ ΡΠ΅Π³ΡΠ»ΡΡΠΎΡΠ΅?
ΠΠΎΠ±ΡΡΠΉ Π΄Π΅Π½Ρ! ΠΠ½Π΅ ΡΡΠ΅Π±ΡΠ΅ΡΡΡ ΠΎΡΠΏΡΠ°Π²ΠΊΠ° ΠΏΠΎ UART Π΄Π°Π½Π½ΡΡ Π΄Π»Ρ MIDI ΠΏΡΠΎΡΠΎΠΊΠΎΠ»Π°. ΠΠ°ΡΡΠ» Π½Π° ΠΏΡΠΎΡΡΠΎΡΠ°Ρ ΠΈΠ½ΡΠ΅ΡΠ½Π΅ΡΠ° Π³ΠΎΡΠΎΠ²ΡΠΉ ΡΠΊΠ΅ΡΡ, ΡΠ°ΠΌ ΠΎΡΠΏΡΠ°Π²ΠΊΠ° ΠΏΡΠΎΠΈΡΡ ΠΎΠ΄ΠΈΡ Π²ΠΎΡ ΡΠ°ΠΊΠΈΠΌ ΠΎΠ±ΡΠ°Π·ΠΎΠΌ
voidΒ noteOn(intΒ chan,Β intΒ note,Β intΒ velocity)Β {
Β Β Serial.write(Β (0x90Β |Β chan)Β );
Β Β Serial.write(note);
Β Β Serial.write(velocity);
}
ΠΠΎΠΏΡΠΎΡ: ΠΏΠ»Π°ΡΠ° Arduino Nano strong (Ρ.Π΅. ΠΏΠ»Π°ΡΠ° ΠΈ ΡΠΈΠ»Π΄ ΡΡΠ°Π·Ρ) ΠΏΡΠΈ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π½ΠΈΠΈ Π±Π»ΠΎΠΊΠ° ΠΌΠ°ΡΡΠΈΡΠ½Π°Ρ ΠΊΠ»Π°Π²ΠΈΠ°ΡΡΡΠ° ΠΏΠΎΠ΄ΠΊΠ»ΡΡΠ΅Π½ΠΈΠ΅ 2 ΠΏΠΈΠ½ ΠΎΡΠ½ΠΎΠ²Π½ΠΎΠΉ 3,4,5,6,7 ΡΠΆΠ΅ ΠΈΡΠΏΠΎΠ»Π½ΡΡΡΠΈΠ΅
ΡΠ°ΠΊ Π²ΠΎΡ ΠΏΡΠΈ ΡΠ°ΠΊΠΎΠΉ ΡΠ°ΡΠΊΠ»Π°Π΄ΠΊΠ΅ ΠΏΠΎΡΠ»Π΅ ΠΏΡΠΎΡΠΈΠ²ΠΊΠΈ Π½Π° 4 ΠΏΠΈΠ½Π΅ ΠΏΠΎΡΠ²Π»ΡΠ΅ΡΡΡ ΡΠΈΠ³Π½Π°Π» ΠΈ Π½ΠΈΡΠ΅Π³ΠΎ Ρ ΡΡΠΈΠΌ Π½Π΅ ΡΠ΄Π΅Π»Π°ΡΡ Π΅ΡΠ»ΠΈ-ΠΆΠ΅ ΠΏΠΎΠ΄ΠΊΠ»ΡΡΠ°ΡΡ ΡΠ°ΠΊ-ΠΆΠ΅ Ρ 8 ΠΏΠΎ 13 ΡΠΎ Π½Π° 10 ΠΎΠ½ Π½Π°ΠΎΠ±ΠΎΡΠΎΡ ΠΏΡΠΎΠΏΠ°Π΄Π°Π΅Ρ ΠΈ Π½ΠΈΡΠ΅ΠΌ Π΅Π³ΠΎ Π½Π΅ ΠΏΠΎΠ»ΡΡΠΈΡΡ.
Flprog ΡΡΠΎΠΈΡ 5.3.0 Π΄Π»Ρ 64 Π²ΠΈΠ½Π΄ΠΎΠ²Ρ, ΡΡΠΎ ΠΌΠΎΠΆΠ½ΠΎ ΠΊΠ°ΠΊ-ΡΠΎ ΡΠ΅ΡΠΈΡΡ Ρ.ΠΊ. ΠΏΡΠΎΠ΅ΠΊΡ Π³ΠΎΡΠΎΠ² ΠΈ Π·Π°ΡΡΠΊ ΡΠΎΠ»ΡΠΊΠΎ Π² ΡΡΠΎΠΌ (Π½Π΅ ΡΠ΅Π·Π°ΡΡ-ΠΆΠ΅ ΡΠ»Π΅ΠΉΡ Π΄Π° ΡΠ΅ΠΉΡΠ°Ρ ΡΠ°ΠΊΠΈΠ΅ ΡΠ»Π΅ΠΉΡΡ ΡΡΠΎ :)))Β Β )
ΡΠΏΠ°ΡΠΈΠ±ΠΎ
ΠΠΎΠΏΡΠΎΡ: ΠΏΠ»Π°ΡΠ° Arduino Nano strong (Ρ.Π΅. ΠΏΠ»Π°ΡΠ° ΠΈ ΡΠΈΠ»Π΄ ΡΡΠ°Π·Ρ) ΠΏΡΠΈ ΠΏΠΎΠ΄ΠΊΠ»ΡΡΠ΅Π½ΠΈΠΈ 2 ΠΏΠΈΠ½ ΠΎΡΠ½ΠΎΠ²Π½ΠΎΠΉ 3,4,5,6,7 ΡΠΆΠ΅ ΠΈΡΠΏΠΎΠ»Π½ΡΡΡΠΈΠ΅
ΡΠ°ΠΊ Π²ΠΎΡ ΠΏΡΠΈ ΡΠ°ΠΊΠΎΠΉ ΡΠ°ΡΠΊΠ»Π°Π΄ΠΊΠ΅ ΠΏΠΎΡΠ»Π΅ ΠΏΡΠΎΡΠΈΠ²ΠΊΠΈ Π½Π° 4 ΠΏΠΈΠ½Π΅ ΠΏΠΎΡΠ²Π»ΡΠ΅ΡΡΡ ΡΠΈΠ³Π½Π°Π» ΠΈ Π½ΠΈΡΠ΅Π³ΠΎ Ρ ΡΡΠΈΠΌ Π½Π΅ ΡΠ΄Π΅Π»Π°ΡΡ Π΅ΡΠ»ΠΈ-ΠΆΠ΅ ΠΏΠΎΠ΄ΠΊΠ»ΡΡΠ°ΡΡ ΡΠ°ΠΊ-ΠΆΠ΅ Ρ 8 ΠΏΠΎ 13 ΡΠΎ Π½Π° 10 ΠΎΠ½ Π½Π°ΠΎΠ±ΠΎΡΠΎΡ ΠΏΡΠΎΠΏΠ°Π΄Π°Π΅Ρ ΠΈ Π½ΠΈΡΠ΅ΠΌ Π΅Π³ΠΎ Π½Π΅ ΠΏΠΎΠ»ΡΡΠΈΡΡ.
Flprog ΡΡΠΎΠΈΡ 5.3.0 Π΄Π»Ρ 64 Π²ΠΈΠ½Π΄ΠΎΠ²Ρ, ΡΡΠΎ ΠΌΠΎΠΆΠ½ΠΎ ΠΊΠ°ΠΊ-ΡΠΎ ΡΠ΅ΡΠΈΡΡ Ρ.ΠΊ. ΠΏΡΠΎΠ΅ΠΊΡ Π³ΠΎΡΠΎΠ² ΠΈ Π·Π°ΡΡΠΊ ΡΠΎΠ»ΡΠΊΠΎ Π² ΡΡΠΎΠΌ (Π½Π΅ ΡΠ΅Π·Π°ΡΡ-ΠΆΠ΅ ΡΠ»Π΅ΠΉΡ Π΄Π° ΡΠ΅ΠΉΡΠ°Ρ ΡΠ°ΠΊΠΈΠ΅ ΡΠ»Π΅ΠΉΡΡ ΡΡΠΎ :)))Β Β )
ΡΠΏΠ°ΡΠΈΠ±ΠΎ
ΠΡΠΈΠ²Π΅ΡΡΡΠ²ΡΡ! ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅ ΠΏΠΎΠΆΠ°Π»ΡΠΉΡΡΠ°, ΠΊΠ°ΠΊΠΎΠ²Π° Π΄Π»ΠΈΠ½Π°/(Π²ΡΠ΅ΠΌΡ) ΠΈΠΌΠΏΡΠ»ΡΡΠ° Π½Π° Π²ΡΡ ΠΎΠ΄Π΅ Π±Π»ΠΎΠΊΠ° “Π£ΡΡΠ°Π½ΠΎΠ²ΠΊΠ° ΡΠΎΠ±ΡΡΠΈΡ ΠΏΠΎ ΡΠ°ΡΠ°ΠΌ ΡΠ΅Π°Π»ΡΠ½ΠΎΠ³ΠΎ Π²ΡΠ΅ΠΌΠ΅Π½ΠΈ” ΠΈ ΠΌΠΈΠ½ΠΈΠΌΠ°Π»ΡΠ½Π°Ρ Π΄Π»ΠΈΠ½Π°/(Π²ΡΠ΅ΠΌΡ) ΠΈΠΌΠΏΡΠ»ΡΡΠ° Π½Π° Π²Ρ ΠΎΠ΄Π΅ Π΄Π»Ρ ΡΡΠ°Π±Π°ΡΡΠ²Π°Π½ΠΈΡ Π±Π»ΠΎΠΊΠΎΠ² ΡΠΈΠΏΠ° “Π’ΡΠΈΠ³Π³Π΅Ρ”? ΠΠ»Π°ΡΠ°, Arduino UNO.Β (ΠΡΡΠΈΠ»Π»ΠΎΠ³ΡΠ°ΡΠ° Π½Π΅Ρ, Π° ΠΌΠΎΠ½ΠΈΡΠΎΡΠΎΠΌ COM ΠΏΠΎΡΡΠ° ΡΡΠΈ Π²Π΅Π»ΠΈΡΠΈΠ½Ρ Ρ Π½ΡΠΆΠ½ΠΎΠΉ ΡΠΎΡΠ½ΠΎΡΡΡΡ Π·Π°ΠΌΠ΅ΡΡΡΡ Π·Π°ΡΡΡΠ΄Π½ΠΈΡΠ΅Π»ΡΠ½ΠΎ.) ΠΠ»ΠΈ ΡΡΡΠ΅ΡΡΠ²ΡΠ΅Ρ ΡΠΎΡΠΌΡΠ»Π° Π΄Π»Ρ ΡΡΠΈΡ ΡΠ°ΡΡΠ΅ΡΠΎΠ²?
ΠΠΎΠ±ΡΡΠΉ Π΄Π΅Π½Ρ. Π Π΅ΡΠ»ΠΈ Π² ΡΡ Π΅ΠΌΠ΅ Π½ΡΠΆΠ΅Π½Β F Trigger,ΠΊΠ°ΠΊ Π±ΡΡΡ?
ΠΠ΄ΡΠ°Π²ΡΡΠ²ΡΠΉΡΠ΅!
ΠΠ°ΠΊ ΠΈΠ· ΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΠ΅Π»ΡΡΠΊΠΎΠ³ΠΎ Π±Π»ΠΎΠΊΠ° ΠΏΠ΅ΡΠ΅Π΄Π°ΡΡ ΠΌΠ°ΡΡΠΈΠ²?
ΠΠ΄ΡΠ°Π²ΡΡΠ²ΡΠΉΡΠ΅ ΠΏΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅ ΠΏΠΎΠΆΠ°Π»ΡΠΉΡΡΠ° ΡΠ°Π·Π½ΠΈΡΡ ΠΌΠ΅ΠΆΠ΄Ρ Π±Π»ΠΎΠΊΠ°ΠΌΠΈ Bit Change ΠΈ R Triger
Bit Change Π²ΡΠ΄Π°Π΅Ρ ΠΈΠΌΠΏΡΠ»ΡΡ ΠΏΡΠΈ ΠΏΠ΅ΡΠ΅Ρ ΠΎΠ΄Π΅ ΠΎΡ 0 ΠΊ 1 ΠΈ ΠΏΡΠΈ ΠΏΠ΅ΡΠ΅Ρ ΠΎΠ΄Π΅ ΠΎΡ 1 ΠΊ 0. Rtrig ΡΠΎΠ»ΡΠΊΠΎ ΠΏΡΠΈ ΠΏΠ΅ΡΠ΅Ρ ΠΎΠ΄Π΅ ΠΎΡ 0 ΠΊ 1.
…ΠΈΠΌΠ΅Π΅ΡΡΡ Π² Π²ΠΈΠ΄Ρ, Π΄Π»ΠΈΠ½Ρ ΠΈΠΌΠΏΡΠ»ΡΡΠ° ΠΈ Π΄Π»ΠΈΠ½Ρ ΠΏΠ°ΡΠ·Ρ.
ΠΠ΄ΡΠ°Π²ΡΡΠ²ΡΠΉΡΠ΅ ΡΠ²Π°ΠΆΠ°Π΅ΠΌΡΠΉ Π‘Π΅ΡΠ³Π΅ΠΉ ΠΠ»ΡΡΠ΅Π½ΠΊΠΎ.
Π£ ΠΌΠ΅Π½Ρ ΡΠ°ΠΊΠΎΠΉ Π²ΠΎΠΏΡΠΎΡ.
ΠΡΡΡ Π»ΠΈ ΡΠΏΠΎΡΠΎΠ± ΠΏΠΎΠ½ΠΈΠ·ΠΈΡΡ ΡΠΊΠΎΡΠΎΡΡΡ ΠΌΠ½Π΅ ΡΠ»ΡΡΠ°ΠΉΠ½ΡΡ ΡΠΈΡΠ΅Π» Π² Π΄Π°Π½Π½ΠΎΠΌ Π±Π»ΠΎΠΊΠ΅, ΠΊΠ°ΠΊ Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ Π² Π±Π»ΠΎΠΊΠ΅ “Generator”, Ρ ΡΡΠ½ΠΊΡΠΈΠ΅ΠΉ “ΠΠ΅ΡΠΈΠΌΠΌΠ΅ΡΡΠΈΡΠ½ΡΠΉ ΠΌΡΠ»ΡΡΠΈΠ²ΠΈΠ±ΡΠ°ΡΠΎΡ”…? Π ΡΠΎ Π΄Π°Π½Π½ΡΠΉ Π±Π»ΠΎΠΊ “RANDOM”, ΠΌΠ΅Π½ΡΠ΅Ρ ΡΠ»ΡΡΠ°ΠΉΠ½ΡΠ΅ ΡΠΈΡΠ»Π° Ρ Π±Π΅ΡΠ΅Π½ΠΎΠΉ ΡΠΊΠΎΡΠΎΡΡΡΡ, ΠΈΠ·-Π·Π° ΡΠ΅Π³ΠΎ Π½Π° Π΄ΠΈΡΠΏΠ»Π΅Π΅ Π½Π΅ ΡΡΠΏΠ΅Π²Π°Π΅ΡΡ ΡΠ°Π·Π³Π»ΡΠ΄Π΅ΡΡ ΡΡΠΈ ΡΠΈΡΠ»Π°…
ΠΠ΄ΡΠ°Π²ΡΡΠ²ΡΠΉΡΠ΅, Π‘Π΅ΡΠ³Π΅ΠΉ!
ΠΡΠ΅ΠΆΠ΄Π΅ Π²ΡΠ΅Π³ΠΎ Ρ ΠΎΡΡ ΠΏΠΎΠ±Π»Π°Π³ΠΎΠ΄Π°ΡΠΈΡΡ ΠΠ°Ρ Π·Π° ΠΏΡΠ΅ΠΊΡΠ°ΡΠ½ΡΡ ΠΏΡΠΎΠ³ΡΠ°ΠΌΠΌΡ. ΠΠ½Π΅, ΠΊΠ°ΠΊ Π² ΠΏΠΎΡΠ»ΠΎΠΌ,ΠΈΠ½ΠΆΠ΅Π½Π΅ΡΡ, ΠΎΡΠ΅Π½Ρ ΠΊΠΎΠΌΡΠΎΡΡΠ½ΠΎ ΡΠΎΠ·Π΄Π°Π²Π°ΡΡ ΡΠ²ΠΎΠΉ ΠΏΡΠΎΠ΅ΠΊΡ Π² ΠΠ°ΡΠ΅ΠΉ ΡΡΠ΅Π΄Π΅.
ΠΠΎ Ρ ΠΌΠ΅Π½Ρ Π²ΠΎΠΏΡΠΎΡ, Π½Π° ΠΊΠΎΡΠΎΡΡΠΉ Π½Π΅ Π½Π°ΡΠ΅Π» ΠΎΡΠ²Π΅ΡΠ°: Π― ΡΠΎΠ·Π΄Π°Ρ ΠΏΡΠΎΠ΅ΠΊΡ Ρ ΡΡΠ°ΡΡΠΈΠ΅ΠΌ Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΈΡ ΠΊΠΎΠ½ΡΡΠΎΠ»Π»Π΅ΡΠΎΠ² ESP8266 NodeMCU Ρ OLED Π΄ΠΈΡΠΏΠ»Π΅Π΅ΠΌ. ΠΡΠ΅Π½Ρ Π½Π΅ Ρ Π²Π°ΡΠ°Π΅Ρ ΡΠ°ΠΊΠΎΠ³ΠΎ ΠΌΠΎΠ΄ΡΠ»Ρ ΠΈ ΠΌΠΎΠ΄ΡΠ»Ρ ESP32 WiFi LoRa Ρ OLED Π΄ΠΈΡΠΏΠ»Π΅Π΅ΠΌ Π² ΠΏΡΠ΅Π΄ΡΡΡΠ°Π½ΠΎΠ²ΠΊΠ΅.ΠΠΎΠΈ ΠΊΠΎΠ½ΡΡΠΎΠ»Π»Π΅ΡΡ Π΄ΠΎΠ»ΠΆΠ½Ρ Π²ΡΠΏΠΎΠ»Π½ΡΡΡ Π½Π΅ΠΊΠΎΡΠΎΡΡΠ΅ Π΄Π΅ΠΉΡΡΠ²ΠΈΡ, ΠΈ ΠΎΠ±ΠΌΠ΅Π½ΠΈΠ²Π°ΡΡΡΡ ΠΌΠ΅ΠΆΠ΄Ρ ΡΠΎΠ±ΠΎΠΉ Π΄Π°Π½Π½ΡΠΌΠΈ ΠΈ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠ΅ΠΉ ΠΏΠΎ WiFi Π² ΡΠ΅Π°Π»ΡΠ½ΠΎΠΌ Π²ΡΠ΅ΠΌΠ΅Π½ΠΈ. ΠΡΠΈΡΠ΅ΠΌ, ΡΠ°Π΄ΠΈΡΡ Π΄Π΅ΠΉΡΡΠ²ΠΈΡΒ WIFI ΡΠ΅ΡΠΈ ΠΊΠ°ΠΆΠ΄ΠΎΠ³ΠΎ ΠΈΠ· ΠΌΠΎΠ΄ΡΠ»Π΅ΠΉ Π½Π΅ Π΄ΠΎΠ»ΠΆΠ΅Π½ Π²Π»ΠΈΡΡΡ Π½Π° ΠΏΠ΅ΡΠ΅Π΄Π°ΡΡ Π΄Π°Π½Π½ΡΡ ΠΌΠ΅ΠΆΠ΄Ρ ΠΊΠΎΠ½Π΅ΡΠ½ΡΠΌΠΈ ΠΊΠΎΠ½ΡΡΠΎΠ»Π»Π΅ΡΠ°ΠΌΠΈ. ΠΠΎΡΡΠΎΠΌΡ ΠΊΠΎΠ½ΡΡΠΎΠ»Π»Π΅ΡΡ ΡΠ°ΠΌΠΎΠ½Π°ΡΡΡΠ°ΠΈΠ²Π°ΡΡΡΡ, ΠΈ Π·Π°ΠΏΠΈΡΡΠ²Π°ΡΡ Π΄Π°Π½Π½ΡΠ΅ Π΄Π»Ρ Π²Ρ ΠΎΠ΄Π° Π²ΡΠ΅Ρ ΠΊΠΎΠ½ΡΡΠΎΠ»Π»Π΅ΡΠΎΠ² WIFI ΡΠ΅ΡΠΈ Π² ΠΏΠ°ΠΌΡΡΡ Π΄Π»Ρ ΠΏΠΎΡΡΠΎΡΠ½Π½ΠΎΠ³ΠΎ ΠΊΠΎΠ½Π½Π΅ΠΊΡΠ° ΠΏΠΎ ΡΠ΅ΠΏΠΈ (ΠΎΡ Π½Π°ΡΠ°Π»ΡΠ½ΠΎΠ³ΠΎ Π΄ΠΎ ΠΊΠΎΠ½Π΅ΡΠ½ΠΎΠ³ΠΎ).Β ΠΠΎΠΏΡΠΎΡ: ΠΠΎΠΆΠ½ΠΎ Π»ΠΈ Π² ΠΠ°ΡΠ΅ΠΉ ΡΡΠ΅Π΄Π΅ ΡΠΎΠ·Π΄Π°ΡΡ ΠΏΠΎΠ΄ΠΎΠ±Π½ΡΠΉ Π°Π»Π³ΠΎΡΠΈΡΠΌ Π²Π·Π°ΠΈΠΌΠΎΠ΄Π΅ΠΉΡΡΠ²ΠΈΡ ΠΌΠ΅ΠΆΠ΄Ρ ΠΊΠΎΠ½ΡΡΠΎΠ»Π»Π΅ΡΠ°ΠΌΠΈ ΡΠ΅ΡΠΈ?
Π‘ ΡΠ²Π°ΠΆΠ΅Π½ΠΈΠ΅ΠΌ, ΠΡΠΊΠ°Π΄ΠΈΠΉ
ΠΠ΄ΡΠ°Π²ΡΡΠ²ΡΠΉΡΠ΅! ΠΠ΅ ΠΌΠΎΠ³Ρ ΠΏΠΎΠ½ΡΡΡ Π² ΡΡΠΌ ΠΏΡΠΈΡΠΈΠ½Π°. Π ΡΡΡΡΡΠΈΠΊΠ΅ Π½Π° ΡΠΌΠ΅Π½ΡΡΠ΅Π½ΠΈΠ΅, ΠΏΡΠΈ ΠΏΠΎΠ΄ΠΊΠ»ΡΡΠ΅Π½ΠΈΠΈ ΠΏΠ΅ΡΠ΅ΠΌΠ΅Π½Π½ΡΡ ΠΊ Π²Ρ ΠΎΠ΄Ρ R ΠΈ Π²ΡΡ ΠΎΠ΄Ρ <L ΠΎΠ½ Π½Π΅ ΡΡΠΈΡΠ°Π΅Ρ Π²Π½ΠΈΠ·, Π° Π΅ΡΠ»ΠΈ ΡΠ±ΡΠ°ΡΡ Ρ R ΡΠΎ ΡΡΡΡ ΠΈΠ΄ΡΡ Π½ΠΎ, Π½Π΅ ΡΠΎΠ²ΡΠ΅ΠΌ ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΠΎ(Π½Π° Π½ΠΎΠ»Ρ Π½Π΅ ΡΠ±ΡΠ°ΡΡΠ²Π°Π΅ΡΡΡ). ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, Π² ΡΡΠΌ ΠΌΠΎΠΆΠ΅Ρ Π±ΡΡΡ ΠΏΡΠΈΡΠΈΠ½Π°?
ΠΠ΄ΡΠ°Π²ΡΡΠ²ΡΠΉΡΠ΅ ΠΏΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅ ΠΊΠ°ΠΊ ΠΎΠΊΡΡΠ³Π»ΠΈΡΡ ΠΏΠΎΠΊΠ°Π·Π°Π½ΠΈΡ Π΄Π°ΡΡΠΈΠΊΠ° Π΄ΠΎ Π΄Π΅ΡΡΡΡΡ ΡΡΠΎΠ±Ρ ΡΠ΅ΠΌΠΏΠ΅ΡΠ°ΡΡΡΠ° Π²ΡΠ²ΠΎΠ΄ΠΈΠ»Π°ΡΡ Π² Π²ΠΈΠ΄Π΅ 10,1 Π° Π½Π΅ 10,12.
ΠΠ°Ρ ΠΎΠ΄ΠΈΡΡ Π² ΠΏΠ°ΡΠ°ΠΌΠ΅ΡΡΡ Π±Π»ΠΎΠΊΠ° ΠΊΠΎΠ½Π²Π΅ΡΡΠ°ΡΠΈΠΈ ΡΡΡΠΎΠΊ, ΡΠ°ΠΌ Π΅ΡΡΡ ΠΏΠ°ΡΠ°ΠΌΠ΅ΡΡ “ΠΠΎΠ»ΠΈΡΠ΅ΡΡΠ²ΠΎ Π·Π½Π°ΠΊΠΎΠ² ΠΏΠΎΡΠ»Π΅ Π·Π°ΠΏΡΡΠΎΠΉ”
ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅, ΠΏΠΎΡΠ΅ΠΌΡ ΡΡΠ΅ΡΡΠΈΠΊ Π½Π΅ Π²ΠΈΠ΄ΠΈΡ Π²Ρ ΠΎΠ΄, Ρ ΠΎΡΡ ΠΎΠ½ Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ ? Π Π΅Π³ΡΠ»ΠΈΡΡΠ΅ΠΌΡΠ΅ Π±Π΅Π³ΡΡΠΈΠ΅ ΠΎΠ³Π½ΠΈ.
ΠΠΎΠ±ΡΡΠΉ Π²Π΅ΡΠ΅Ρ!
ΠΠ°ΠΊ ΠΎΠΏΡΠ΅Π΄Π΅Π»ΠΈΡΡ ΠΈ Π·Π°ΠΏΠΈΡΠ°ΡΡ ΠΌΠ°ΠΊΡΠΈΠΌΠ°Π»ΡΠ½ΠΎΠ΅ Π·Π½Π°ΡΠ΅Π½ΠΈΠ΅ Π°Π½Π°Π»ΠΎΠ³ΠΎΠ²ΠΎΠ³ΠΎ Π²Ρ ΠΎΠ΄Π° Π·Π° ΠΌΠΈΠ½ΡΡΡ, ΠΈ Π·Π°ΠΏΠΈΡΠ°ΡΡ Π΅Π³ΠΎ Π½Π° ΡΠ»Π΅ΡΠΊΡ?
ΠΠ΄ΡΠ°Π²ΡΡΠ²ΡΠΉΡΠ΅! ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅ ΠΏΠΎΠΆΠ°Π»ΡΠΉΡΡΠ° ΠΊΠ°ΠΊ ΡΠΎΠ·Π΄Π°ΡΡ Π΄Π²ΠΎΠΉΠ½ΠΎΠ΅ ΡΠ°Π·ΠΎΠΈΠΌΠΏΡΠ»ΡΡΠ½ΠΎΠ΅ ΡΠΏΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ Π² char, Π΄Π»Ρ ΡΡΠΎΠΉ ΡΡ Π΅ΠΌΡ.
ΠΠ°ΡΠ°Π½Π΅Π΅ ΠΎΠ³ΡΠΎΠΌΠ½ΠΎΠ΅ ΡΠΏΠ°ΡΠΈΠ±ΠΎ!
ΠΠΎΠ±ΡΡΠΉ Π΄Π΅Π½Ρ. ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅ ΠΏΠΎΠΆΠ°Π»ΡΠΉΡΡΠ° ΠΊΠ°ΠΊ ΠΎΡΠΊΠΎΡΡΠ΅ΠΊΡΠΈΡΠΎΠ²Π°ΡΡ Π΄Π°ΡΡΠΈΠΊ Π΄Ρ18Π±2Ρ Ρ Β Β Π΅ΡΡΡ ΠΎΡΠΊΠ»ΠΎΠ½Π΅Π½ΠΈΡ 1-2 Π³ΡΠ°Π΄ΡΡΠ° Π² Π·Π°Π²ΠΈΡΠΈΠΌΠΎΡΡΠΈΒ ΠΎΡ ΡΠ΅ΠΌΠΏΠ΅ΡΠ°ΡΡΡΡ. ΠΠ°ΡΠ°Π½Π΅Π΅ ΡΠΏΠΎΡΠΈΠ±ΠΎ.
Π‘Π»ΠΎΠΆΠ΅Π½ΠΈΠ΅ΠΌ ΠΈΠ»ΠΈ ΡΠΌΠ½ΠΎΠΆΠ΅Π½ΠΈΠ΅ΠΌ Π² Π·Π°Π²ΠΈΡΠΈΠΌΠΎΡΡΠΈ ΠΎΡ Ρ Π°ΡΠ°ΠΊΡΠ΅ΡΠΈΡΡΠΈΠΊΠΈ ΠΎΡΠΊΠ»ΠΎΠ½Π΅Π½ΠΈΡ
ΠΠ΄ΡΠ°Π²ΡΡΠ²ΡΠΉΡΠ΅,Β ΠΠ° ΡΠ΅ΡΠΈΠ°Π» ΠΏΠΎΡΡ ΠΏΡΠΈΡ ΠΎΠ΄ΠΈΡ ΡΠΎΠΎΠ±ΡΠ΅Π½ΠΈΠ΅ 18 Π±Π°ΠΉΡ, ΠΌΠ½Π΅ Π½ΡΠΆΠ½ΠΎ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΡ Π½Π΅ΡΠΊΠΎΠ»ΡΠΊΠΎ Π±Π°ΠΉΡ ΠΈΠ· Π½Π΅Π³ΠΎ. ΠΠ°ΠΊΠΎΠΉ ΡΡΠ½ΠΊΡΠΈΠ΅ΠΉ Π²ΡΠ΄Π΅Π»ΠΈΡΡ (ΠΈΠ·Π²Π»Π΅ΡΡ) Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ 5-ΠΉ Π±Π°ΠΉΡ? ΠΠ»ΠΈΒ ΠΏΡΠΈΡΠ²ΠΎΠΈΡΡ ΠΏΠ΅ΡΠ΅ΠΌΠ΅Π½Π½ΠΎΠΉ Π·Π½Π°ΡΠ΅Π½ΠΈΠ΅ 5-Π³ΠΎ Π±Π°ΠΉΡΠ° ΠΈΠ· ΡΠΎΠΎΠ±ΡΠ΅Π½ΠΈΡ? Π‘ΠΏΠ°ΡΠΈΠ±ΠΎ.
ΠΠ΄ΡΠ°Π²ΡΡΠ²ΡΠΉΡΠ΅! ΠΠΎΠ΄ΡΠΊΠ°ΠΆΠΈΡΠ΅ ΠΏΠΎΠΆΠ°Π»ΡΠΉΡΡΠ° ΠΊΠ°ΠΊ ΠΏΡΠ΅ΠΎΠ±ΡΠ°Π·ΠΎΠ²Π°ΡΡ String Π² char. ΠΠ°ΡΠ°Π½Π΅Π΅ ΠΎΠ³ΡΠΎΠΌΠ½ΠΎΠ΅ ΡΠΏΠ°ΡΠΈΠ±ΠΎ!
Π±Π»ΠΎΠΊΠΎΠΌ “ΠΏΠΎΠ»ΡΡΠΈΡΡ ΡΠΈΠΌΠ²ΠΎΠ» ΠΈΠ· ΡΡΡΠΎΠΊΠΈ”
ΠΠ΄ΡΠ°Π²ΡΡΠ²ΡΠΉΡΠ΅.
Π‘ΠΊΠ°ΠΆΠΈΡΠ΅ ΠΊΠ°ΠΊ ΡΠ΄Π΅Π»Π°ΡΡ ΡΠ°ΠΊ ΡΡΠΎ Π±Ρ ΠΏΡΠΈ Π΄ΠΎΡΡΠΈΠΆΠ΅Π½ΠΈΠΈ Π²ΡΠ΅ΠΌΠ΅Π½ΠΈ ΡΡΡΠ°Π½ΠΎΠ²Π»Π΅Π½Π½ΠΎΠ³ΠΎ Π² Π½Π°ΡΡΡΠΎΠΉΠΊΠ°Ρ Π±Π»ΠΎΠΊΠ° Π½Π° Π²ΡΡ ΠΎΠ΄Π΅ ΡΡΡΠ°Π½ΠΎΠ²ΠΈΡΡΡ Π²ΡΡΠΎΠΊΠΈΠΉ ΡΡΠΎΠ²Π΅Π½Ρ Π½Π΅ Π½Π° 1 ΠΌΠΈΠ½ΡΡΡ, Π° Π΄ΠΎ Π²ΡΠ΅ΠΌΠ΅Π½ΠΈ ΠΎΡΠΊΠ»ΡΡΠ΅Π½ΠΈΡ Π±ΡΠ΄ΠΈΠ»ΡΠ½ΠΈΠΊ?
Π Π΄Π°Π½Π½ΠΎΠΉ Π²Π΅ΡΡΠΈΠΈ Π±Π»ΠΎΠΊΠ° Π±ΡΠ΄ΠΈΠ»ΡΠ½ΠΈΠΊΠ° Π²ΡΡΠΎΠΊΠΈΠΉ ΡΠΈΠ³Π½Π°Π» Π½Π° Π²ΡΡ ΠΎΠ΄Π΅ ΠΏΡΠΎΠΏΠ°Π΄Π°Π΅Ρ ΡΠ΅ΡΠ΅Π· 1 ΠΌΠΈΠ½ΡΡΡ.
ΠΡΠ΄ΠΈΠ»ΡΠ½ΠΈΠΊ ΡΠ°Π±ΠΎΡΠ°Π΅Ρ ΠΏΠΎΠΊΠ° ΡΡΠ»ΠΎΠ²ΠΈΠ΅ Π²ΡΠ΅ΠΌΠ΅Π½ΠΈ ΡΠΎΠ²ΠΏΠ°Π΄Π°Π΅Ρ Ρ Π±ΡΠ΄ΠΈΠ»ΡΠ½ΠΈΠΊΠΎΠΌ. ΠΡΠ»ΠΈ Π½Π΅ΠΎΠ±Ρ ΠΎΠ΄ΠΈΠΌΠΎ Π±ΠΎΠ»Π΅Π΅ Π΄Π»ΠΈΡΠ΅Π»ΡΠ½ΠΎ Π²ΡΠ΅ΠΌΡ, ΡΠΎ ΠΌΠΎΠΆΠ½ΠΎ ΠΏΠΎΡΡΠ°Π²ΠΈΡΡ Π±Π»ΠΎΠΊ TOF Π½Π° Π²ΡΡ ΠΎΠ΄ Q
ΠΠ΄ΡΠ°Π²ΡΡΠ²ΡΠΉΡΠ΅!
Π FLProg Π΅ΡΡΡ Π±Π»ΠΎΠΊ MCP23017.
ΠΠΎ ΠΊΠ° ΡΠΎΠ»ΡΠΊΠΎ Π² Β«FLProgΒ» Π½Π°ΡΠΈΠ½Π°Π΅Ρ ΠΊΠΎΠΌΠΏΠΈΠ»ΠΈΡΠΎΠ²Π°ΡΡ Π² Β«IDEΒ» ΠΏΡΠΎΠ³ΡΠ°ΠΌΠΌΠ° ΡΡΠ³Π°Π΅ΡΡΡ ΠΈ ΠΏΠΈΡΠ΅Ρ, ΡΡΠΎ Π½ΡΠΆΠ½Ρ Π±ΠΈΠ±Π»ΠΈΠΎΡΠ΅ΠΊΠΈ MCP23x17.h ΠΈ MCP23017.h.Β ΠΠ΅Π· ΡΡΠΎΠΉ Π±ΠΈΠ±Π»ΠΈΠΎΡΠ΅ΠΊΠΈ Π±Π»ΠΎΠΊ Π½Π΅ ΡΠ°Π±ΠΎΡΠΈΠΉ.
ΠΠ΄Π΅ ΠΈΡ ΠΌΠΎΠΆΠ½ΠΎ ΡΠΊΠ°ΡΠ°ΡΡ?
Π·Π΄ΡΠ°Π²ΡΡΠ²ΡΠΉΡΠ΅. Π΅ΡΡΡ Π»ΠΈ ΠΌΠΎΠ΄ΡΠ»Ρ ΠΏΠΎΠ΄Π΄Π΅ΡΠΆΠΊΠΈ Π΄ΡΠ°ΠΉΠ²Π΅ΡΠΎΠ² Ρ ΡΠΏΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ΠΌ step-dir-enable? Π΅ΡΠ»ΠΈ Π½Π΅Ρ ΡΠΎ ΠΊΠΎΠ³Π΄Π° ΠΏΠ»Π°Π½ΠΈΡΡΠ΅ΡΡΡ?
ΠΠ΄ΡΠ°Π²ΡΡΠ²ΡΠΉΡΠ΅.Β ΠΠ΅ ΠΌΠΎΠ³Ρ Π·Π°ΠΏΡΡΡΠΈΡΡ Π²Π΅ΡΡΠΈΡ 5.00
—————————
flp.exe – Π‘ΠΈΡΡΠ΅ΠΌΠ½Π°Ρ ΠΎΡΠΈΠ±ΠΊΠ°
—————————
ΠΠ°ΠΏΡΡΠΊ ΠΏΡΠΎΠ³ΡΠ°ΠΌΠΌΡ Π½Π΅Π²ΠΎΠ·ΠΌΠΎΠΆΠ΅Π½, ΡΠ°ΠΊ ΠΊΠ°ΠΊ Π½Π° ΠΊΠΎΠΌΠΏΡΡΡΠ΅ΡΠ΅ ΠΎΡΡΡΡΡΡΠ²ΡΠ΅Ρ api-ms-win-crt-runtime-l1-1-0.dll. ΠΠΎΠΏΡΠΎΠ±ΡΠΉΡΠ΅ ΠΏΠ΅ΡΠ΅ΡΡΡΠ°Π½ΠΎΠ²ΠΈΡΡ ΠΏΡΠΎΠ³ΡΠ°ΠΌΠΌΡ.
—————————
ΠΠ
—————————
Π§ΡΠΎ Π΄Π΅Π»Π°ΡΡ.
Π£ΡΡΠ°Π½ΠΎΠ²ΠΈ Microsoft Visual C++ ΠΏΠΎΡΠ»Π΅Π΄Π½ΠΈΠΉ, ΠΈ Π²ΡΠ΅ Π·Π°ΡΠ°Π±ΠΎΡΠ°Π΅Ρ!!
ΠΠΎΠ±ΡΠΎΠ³ΠΎ Π²ΡΠ΅ΠΌΠ΅Π½ΠΈ ΡΡΡΠΎΠΊ! Π‘ΠΊΠ°ΠΆΠΈΡΠ΅ ΠΏΠΎΠΆΠ°Π»ΡΠΉΡΡΠ°, ΠΊΠ°ΠΊΠΎΠ²Π° ΠΌΠ°ΠΊΡΠΈΠΌΠ°Π»ΡΠ½Π°Ρ ΡΠ°ΡΡΠΎΡΠ° ΡΡΠ΅ΡΠ° Π΄Π»Ρ ΡΡΠΎΠ³ΠΎ ΡΡΠ΅ΡΡΠΈΠΊΠ°? ΠΡΠΈ ΠΏΡΠ΅Π²ΡΡΠ΅Π½ΠΈΠΈ ΠΊΠ°ΠΊΠΎΠΉ ΡΠ°ΡΡΠΎΡΡ ΡΡΠ΅ΡΠ°, ΡΠ»Π΅Π΄ΡΠ΅Ρ Π²ΡΠ±ΠΈΡΠ°ΡΡ “Π‘ΠΊΠΎΡΠΎΡΡΠ½ΠΎΠΉ ΡΡΠ΅ΡΡΠΈΠΊ”? ΠΠ°ΡΠ°Π½Π΅Π΅ ΡΠΏΠ°ΡΠΈΠ±ΠΎ.
ΠΠΎΡΠ΅ΠΌΡ Ρ Π½Π΅Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎ ΡΠΎΠ΅Π΄ΠΈΠ½ΠΈΡΡ Π²Ρ ΠΎΠ΄ “R” Ρ Π²ΡΡ ΠΎΠ΄ΠΎΠΌ “>L”?
ΠΡΠΎ Π±Π°Π³ 5 Π²Π΅ΡΡΠΈΠΈ ΠΈΠ»ΠΈ ΡΡΠΎ-ΡΠΎ Π΅ΡΡ?
ΠΠ±ΡΠ°ΡΠ½ΡΠ΅ ΡΠ²ΡΠ·ΠΈ Π·Π°ΠΏΡΠ΅ΡΠ΅Π½Ρ
ΠΠΎΠ±ΡΠΎΠ³ΠΎ Π²ΡΠ΅ΠΌΠ΅Π½ΠΈ ΡΡΡΠΎΠΊ. ΠΠ»ΠΎΠΊ “ΡΠΌΠ½ΠΎΠΆΠ΅Π½ΠΈΠ΅” FLProg 4.2.4 Π²Π΅ΡΡΠΈΡ ΠΏΠΎΠ΄ Linux ( ΠΎΡΡ mint 19.1). ΡΠΌΠ½ΠΎΠΆΠ°Π΅Ρ Π² 10 ΡΠ°Π· Π±ΠΎΠ»Π΅Π΅ ΡΡΡΠ°Π½ΠΎΠ²Π»Π΅Π½Π½ΠΎΠ³ΠΎ Π·Π½Π°ΡΠ΅Π½ΠΈΡ . ΠΡΡΠ°Π²ΠΈΡΡ ΡΠΊΡΠΈΠ½ Π½Π΅Β ΠΏΠΎΠ»ΡΡΠ°Π΅ΡΡΡ.
ΠΡΠ°ΠΉΠ²Π΅Ρ ΡΠ²Π΅ΡΠΎΠ΄ΠΈΠΎΠ΄ΠΎΠ² MAX7219 Π² ΠΏΡΠΎΠ³ΡΠ°ΠΌΠΌΠ΅ flProg Π²Π΅ΡΡΠΈΠΈ 4.2.4 Π½Π΅ ΡΠ°Π±ΠΎΡΠ°Π΅Ρ. ΠΠΎ ΠΊΡΠ°ΠΉΠ½Π΅ΠΉ ΠΌΠ΅ΡΠ΅ Ρ ΡΠ΅ΠΌΠΈΡΠ΅Π³ΠΌΠ΅Π½ΡΠ½ΡΠΌΠΈ ΠΈΠ½Π΄ΠΈΠΊΠ°ΡΠΎΡΠ°ΠΌΠΈ. ΠΠΎΠΏΡΠΎΠ±ΠΎΠ²Π°Π» Π² Π΄ΡΡΠ³ΠΎΠΉ Π²Π΅ΡΡΠΈΠΈ (2.5.1) – Π²ΡΠ΅ ΡΠ°Π±ΠΎΡΠ°Π΅Ρ ΠΊΠΎΡΡΠ΅ΠΊΡΠ½ΠΎ.