查看Noduino NODEC的源代码
←
Noduino NODEC
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
Chinese version: [[Noduino NODEC CN]] == Overview == [[文件:NODE C.png | 640px]] * Super mini, 15.5mm*17.8mm, 1 cent coin size * ESP8285, built in 1MB Flash * 2nd generation WiFi IoT model, independent WiFi nodes (MCU not necessary) * 3.3v power supply * Support up to 6 relay, sensor and OLED <br><br> == Quick Start == Link 3.3V power supply (600mA output) to VCC&GND that is on the back of model; [[文件:Nodec-2.jpg | 600px]] Power on, the model will auto detect Wifi. If there is no available router can be detected, the model will be waiting for network connection. Please follow below indication to connect WiFi. === Setup WiFi === Make sure that your phone is connected to your WiFi router. Scan the QR code in WeChat [[文件:Maike-wifi-ctrl-2233-all-en.jpg]] Coming to below page: [[文件:MK-Noduino-MJYUN-NFF-1.jpg | 450px]] Click "Connecting Network" button: [[文件:MK-Noduino-MJYUN-NFF-2.jpg | 450px]] Enter WiFi password then click "Connect" to complete WiFi connection. (NOTE, this network connection model only apply to 2.4G router, unapplicable for neither 5G router nor Enterprise level security certification. <br><br> === Link Device === Complete WiFi connection, WeChat will auto detect linkable devices in current routed environment and list them: [[文件:MK-Noduino-MJYUN-NFF-3.jpg | 450px]] 1st device, last 4 letters is the MAC address that can corresponds to the serial port output Click the 1st device then click the "Link Device" on the bottom of next page. (Note, if this device has been linked, button at the bottom will be "Enter Official Account" <br><br> === List device === Following above steps, please click "Enter Official Account" button, all your linked devices will be listed in the menu "Smart Devices" (The second button on the bottom of the page) [[文件:MK-Noduino-iBaihe-NFF-4.jpg | 450px]] <br><br> === Control Device === The default device name of this quick example is Noduino Ctrl5Relay". Click "Noduino Ctrl5Relay" in the device list page then coming to the control page: [[文件:MK-Noduino-iBaihe-NFF-5.jpg | 450px]] Correspondence of Relay and model pins: <pre> 1. GPIO13(D4) control the 1st relay 2. GPIO12(D5) control the 2nd relay (pull up) 3. GPIO14(D6) control the 3rd relay 4. GPIO16(D7) control the 4th relay 5. GPIO4 (D8) control the 5th relay </pre> Turn On/Off Relay in WeChat UI page. Corresponding GPIO will be increase or reduce physically. <br><br> == Application == === Relay Switch === 通用 110V / 220V WiFi 微信电源开关: 110V/220V WeChat Power Switch [[文件:Openonoff-1.jpg | 600px]] 内置Airkiss,手机控制 WiFi 智能开关,详情:[[Noduino_OpenOnoff_CN]] Airkiss build-in, mobile remote WiFi smart switch <br><br> === 多路继电器控制 === Multi-channel Relay Control 110V / 220V WiFi 微信继电器开关,单路 250V/10A 110V/220V WiFi WeChat Relay switch, single channel 250V/10A 家庭自动化、智能家居。。。 Home Automation, Smart Home... [[文件:IBaihe-v2.0-layout.png | 600px ]] 底板设计文件在 github: https://github.com/icamgo/Noduino-iBaihe-Shield Backplane design documents: github: https://github.com/icamgo/Noduino-iBaihe-Shield <br><br> === 四路 LED 控制 === 4-Channle LED Control R, G, B, W 全彩 LED 控制器,微信 Airkiss,微信控制 R,G,B,W 4 color LED controller, WeChat Airkiss, WeChat control OpenLight,最高支持 32W OpenLight, 32W MAX [[文件:OpenLight-Controller-2.jpg | 600px]] [[文件:Openlight-ctrl-demo.jpg | 600px]] 详情:[[Noduino_OpenLight_CN]] Details:[[Noduino_OpenLight_CN]] <br><br> === 窗帘电机控制 === Curtain Motor Control * 正转控制 Clockwise Control * 反转控制 Anti-clockwise Control * 位置传感器读取 Position Sensor read [[文件:OpenCurtain.jpg | 600px]] [[DOC:OpenCurtain.jpg | 600px]] 详情:[[Noduino_OpenCurtain_CN]] Details:[[Noduino_OpenCurtain_CN]] <br><br> == 管脚接口 == Pin Interface <font color=red><b>注意:模块只能 3.3V 供电,5V 供电会烧毁芯片,切记切记!</b></font> Attention: The model only apply to 3.3V power supply 正面: Frontside: GPIO12 GPIO13 GPIO14 GPIO4 GPIO5 GPIO15 背面: Backside: GPIO16 GPIO0 GND TX RX VCC 默认烧写的固件为 5 路继电器控制固件,使用的 GPIO 资源为: The default firmware is 5 channel relay control firmware, GPIO source: <pre> 1. GPIO13(D4) control the 1st relay 2. GPIO12(D5) control the 2nd relay (pull up) 3. GPIO14(D6) control the 3rd relay 4. GPIO16(D7) control the 4th relay 5. GPIO4 (D8) control the 5th relay </pre> 6 路继电器控制固件,第 6 路为: GPIO5 (D9) control the 6th relay 6 channel relay control firmware, the 6th channel is: GPIO5 (D9) control the 6th relay 应用如需外接 I2C 口的传感器、OLED 屏等,可将 GPIO4 (D8) 和 GPIO5 (D9) 作为 I2C 之 SCL 和 SDA,参考示例: If need to connect sensor with I2C interface, OLED screen etc...GPIO4(D8) and GPIO5(D9) can work as SCL & SDA of I2C, for example: * [[Noduino SHT2x]] SHT2X Digital Humidity & Temperature Sensor * [[Noduino TSL2561]] TSL2561 Digital Luminosity/Lux/Light Sensor * [[Noduino BMP180]] BMP180 Barometric Pressure/Altitude Sensor * [[Noduino BMP085]] BMP085 Barometric Pressure/Temperature/Altitude Sensor * [[Noduino BH1750]] BH1750 Digital Light Sensor * [[Noduino PCF8563]] PCF8563 I2C RTC Chip * [[Noduino OLED]] SSD1306 I2C OLED Screen support * [[Noduino I2C Scan]] Scan all the I2C devices 这样即便 GPIO4 和 GPIO5 用作 I2C,依然有 GPIO12, GPIO13, GPIO14, GPIO15, GPIO16, GPIO0 用作继电器控制 Although GPIO4 and GPIO5 act as I2C, GPIO12, GPIO13, GPIO14, GPIO15, GPIO16, GPIO0 still work as relay controller <br><br> == Schematic diagram == [[文件:Nodec-v2.0-sch.jpg | 800px]] <br><br> == Driving Relay == The model is 3.3V electrical level, a simple peripheral circuit is necessary to drive 5V relay: [[文件:Relay-driver.jpg]] Relay recommend HKE HRS3FNH SI2302 MOSFET pipe can be exchanged by DTC143ECA (remove R1) This circuit is stable & reliable that has been tested through 1200W inductive load & capacitive load, and mass for mass production。 Multi channel relay control can copy the unit circuit. <br><br> == Push Button & LED == Default Firmware Support: * GPIO0 can pick up a button then press to connect ground. Firmware supportable. Short press to reverse all relays situation, long touch to restore factory settings * RX receive a blue LED into the ground. Firmware supportable can be used to indicate WiFi situation [[文件:Noduino-openoff-key-led.jpg]] <br><br> == Power Supply == The supply voltage of model is 3.3V, required current is 200mA, peak current for special case is up to 1A <font color=red>Rated current of the power supply must be more than 600mA. Insufficient current will cause chip unstable, most oftenly reboot with no reason</font> Recommend adding 220uF / 470uF capacitor to power output side in response to 1A peak current of the chip DC-DC chip, recommend AP2112 (5V switch 3.3V,compact size) / AMS1117-3.3 (12V-5V switch 3.3V,high current) / WL2803G === AMS1117-3.3 === ;;Feature: * 1000mA LDO * Dropout voltage : 1.1V @ Iout = 800mA load current * The quiescent current is typically 5mA * Vin MAX = 15V * SOT-223-3L package [[文件:AMS1117-pin.png]] <br><br> === WL2803G === Replace AMS1117 to fit low dropout voltage situation ;;Feature: * 1000mA CMOS LDO * Dropout voltage : 260mV @ Iout = 800mA load current * The quiescent current is typically 150uA * Vin MAX = 6.5V * SOT-223-3L package * Output 3.3V is marking 2803G**/YYWW [ ** - Voltage code (33: 3.3V), YY - Year code, WW - Week code ] [[文件:Wl2803g-pin-app.png]] <br><br> === AP2112 === ;;Feature: * 600mA CMOS LDO * Low Dropout Voltage (3.3V): 250mV (Typ.) @ 600mA * Low Quiescent Current: 55μA (Typ.) * Low Standby Current: 0.01μA (Typ.) * Vin MAX = 6.5V * Provides SOT-23-5, SOT-89-5, and SOIC-8 packages [[文件:AP2112-pin-app.png]] <br><br> === MP1470 === Wide input voltage recommend to use MP1470 * Wide 4.7V-to-16V Operating Input Range * Fixed 500kHz Switching Frequency * Over-Current Protection and Hiccup * Thermal Shutdown * Output Adjustable from 0.8V * Available in a 6-pin TSOT-23 package [[文件:Mp1470-typical.jpg]] <br><br> == Update Firmware == Default firmware that the model upload is WeChat control 5 relay, 6 relay firmware can be write by your own Bootloader built in, the firmware can be uploaded through the serial port directly GPIO0 start up is normal; Pull down and then power up the module will automatically enter upgrade mode === Tools === The programming Interface were in the back of module. Use a 5-pin probe on Dupont line, connected to the USB switch TTL Panel, firmware can be upgrade then. [[文件:5pin.jpg]] One USB switch serial port board, we used a FT232RL breakout board / Noduino Falcon board [[文件:Ft232.jpg | 800px]] Wiring as below: * USB_GND ------> NODE_GPIO0 * USB_GND -----> NODE_GND * USB_RXD -----> NODE_TX * USB_TXD -----> NODE_RX Last but not least, USB_VCC3.3 -----> NODE_VCC power on, then enter upgrade mode <br><br> === Prepare Firmware === Fetch the noduino-sdk <source lang=bash> $ git clone --recursive git://github.com/icamgo/noduino-sdk.git noduino-sdk </source> Generate toolchain (you need Python 2.7) <source lang=bash> $ cd noduino-sdk/toolchain $ ./gen.py </source> Compile: <source lang=bash> $ cd ../sketch/ctrl6relay $ make </source> Noduino SDK usage under different platform please refer to: * [[Getting Started with Noduino SDK on Linux]] * [[Getting Started with Noduino SDK on Mac OS X]] * [[Getting Started with Noduino SDK on Windows]] <br><br> === Firmware upload === In sketch/ctrl5relay directory, 'make flash' directly: <source lang=bash> $ make produce </source> Firmware will be uploaded. Number of your serial port might be different in different platform, please confirm the device. For instance, FT232RL board may be identified as COM3 in Windows(check in device manager),then: <source lang=bash> $ make produce ESPPORT=COM3 </source> <br><br> == FAQ == === RF performance === Appearance test, assure network connection and control normal operation in home environment with WiFi through a wall If network connection failed many times or drop the line occurs often, please use the oscilloscope to confirm the power supply ripple In general, send 11N MCS7 packet, power supply ripple must be <80mV. Send 11B packet then power supply ripple must be <120mV <br><br> == Extensive Reading == ;;More Reference: * [[Noduino]] <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br>
返回到
Noduino NODEC
。
个人工具
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面