(function(){
let w = window.innerWidth;
function setHeaderCssVar() {
const headerEle = document.getElementById('shoplaza-section-header');
if(!headerEle){ return };
document.body.style.setProperty('--window-height', `${window.innerHeight}px`);
document.body.style.setProperty('--header-height', `${headerEle.clientHeight}px`);
const mdScorllHideEle = headerEle.querySelector('.header__mobile .header__scroll_hide');
if (mdScorllHideEle) {
document.body.style.setProperty('--header-scroll-hide-height-md', `${mdScorllHideEle.clientHeight}px`);
}
const pcScorllHideEle = headerEle.querySelector('.header__desktop .header__scroll_hide');
if (pcScorllHideEle) {
document.body.style.setProperty('--header-scroll-hide-height-pc', `${pcScorllHideEle.clientHeight}px`);
}
}
function handlResize() {
if(w == window.innerWidth){return};
w = window.innerWidth;
setHeaderCssVar();
};
function init(){
setHeaderCssVar();
window.removeEventListener('resize', window._theme_header_listener)
window._theme_header_listener = handlResize;
window.addEventListener('resize', window._theme_header_listener);
}
init();
})();
${data.index + 1}/2
Description
Product Description
GY-56 is a low-cost digital infrared ranging sensor module. Working voltage 3-5v, low power consumption, small size, easy to install. Its working principle is that the infrared LED emits light and illuminates the measured After the object, the return light is received by the MCU, and the MCU calculates Time difference, get distance. Output the distance value directly. This module has two ways to read data, namely Serial port UART CTTL level) + C (2-wire) mode, The baud rate of the serial port is 9600bps and 115200bps, configurable, There are two ways of continuous and inquiry output, and the settings can be saved after power-off. Provide arduino, 51, stm32 MCU communication program. Schematic diagram and internal MCU source code are not provided. GY-56 can set the upper and lower limit distance alarm value, switch output, In the set interval, the measured object is blocked, and the high level is directly output. In C mode, if necessary, you can set the internal IIC address to be different, So that multiple sensors are directly connected to the same bus.