蓝色的雪zhy
蓝色的雪zhy
关注数: 0
粉丝数: 8
发帖数: 1,384
关注贴吧数: 20
求助,计算人流代码设计 需要做一个小设计,通过一段时间内统计出口和入口人流计算出室内人数,然后通过人数控制室内灯光亮度,请问做出这些步骤需要哪些传感器,有大神会这个代码么,求助,可以相应的给与报酬
LED逐渐变亮代码求助 初学,网上下载了了一个代码,但是我想让LED每次都是从关闭到最亮,而不是一直反复循环(现有程序每次开启总是从上次中断的亮度开始执行),求助大神。源代码是 int led = 9; // the PWM pin the LED is attached to int brightness = 0; // how bright the LED is int fadeAmount = 5; // how many points to fade the LED by // the setup routine runs once when you press reset: void setup() { // declare pin 9 to be an output: pinMode(led, OUTPUT); } // the loop routine runs over and over again forever: void loop() { // set the brightness of pin 9: analogWrite(led, brightness); // change the brightness for next time through the loop: brightness = brightness + fadeAmount; // reverse the direction of the fading at the ends of the fade: if (brightness == 0 || brightness == 255) { fadeAmount = -fadeAmount ; } // wait for 30 milliseconds to see the dimming effect delay(30); }
求教,请问怎么让人体传感器在人静止的情况下也起作用? 求教,请问怎么让人体传感器在人静止的情况下也起作用?或者有其他传感器?
请问arduino配合什么传感器和代码可以计数? 请教一下,请问arduino配合什么传感器和代码可以计数?就是门口每通过一个人记一下数,类似激光扫描一下·······新人刚接触,求教大神
1
下一页