Noduino OpenOnoff
来自Jack's Lab
(版本间的差异)
(→Hardware) |
(→Hacking) |
||
| 第28行: | 第28行: | ||
== Hacking == | == Hacking == | ||
| + | |||
| + | === Prepare firmware === | ||
Get noduino-sdk: | Get noduino-sdk: | ||
| 第43行: | 第45行: | ||
</source> | </source> | ||
| − | + | Compile the firmware: | |
| − | Compile | + | |
<source lang=bash> | <source lang=bash> | ||
| 第50行: | 第51行: | ||
$ make | $ make | ||
</source> | </source> | ||
| + | |||
| + | <br><br> | ||
| + | |||
| + | === Upload === | ||
| + | |||
| + | ==== Serial ==== | ||
| + | |||
| + | [[文件:5pin.jpg]] | ||
| + | |||
| + | |||
| + | [[文件:Ft232.jpg | 800px]] | ||
| + | |||
| + | |||
| + | * USB_GND ------> SmartNode_GPIO0 | ||
| + | * USB_GND -----> SmartNode_GND | ||
| + | * USB_RXD -----> SmartNode_TX | ||
| + | * USB_TXD -----> SmartNode_RX | ||
| + | |||
| + | |||
| + | Connect USB_VCC3.3 -----> SmartNode_VCC at last | ||
| + | |||
| + | ESP8285 will be enter upload mode, we can upload the compiled firmware through serial using following commands: | ||
| + | |||
| + | <source lang=bash> | ||
| + | $ cd /path/to/noduino-sdk/sketch/open-onoff | ||
| + | $ make produce ESPPORT=/dev/ttyUSB1 | ||
| + | </source> | ||
| + | |||
| + | <br><br> | ||
| + | |||
| + | ==== Online ==== | ||
| + | |||
| + | |||
<br><br> | <br><br> | ||
2016年10月25日 (二) 00:47的版本
目录 |
1 Overview
- AC 85V - 250V General Power Switch
- ESP8285 inside
- 250V 10A relay
- Mainboard size 53mm x 28mm x 17.8mm(H)
- Shell size 63mm x 33mm x 21mm(H)
2 Quick Start
3 Open API
4 Hacking
4.1 Prepare firmware
Get noduino-sdk:
$ git clone --recursive git://github.com/icamgo/noduino-sdk.git noduino-sdk
Generate toolchain (you need Python 2.7):
$ cd noduino-sdk/toolchain $ ./gen.py
Compile the firmware:
$ cd ../sketch/open-onoff $ make
4.2 Upload
4.2.1 Serial
- USB_GND ------> SmartNode_GPIO0
- USB_GND -----> SmartNode_GND
- USB_RXD -----> SmartNode_TX
- USB_TXD -----> SmartNode_RX
Connect USB_VCC3.3 -----> SmartNode_VCC at last
ESP8285 will be enter upload mode, we can upload the compiled firmware through serial using following commands:
$ cd /path/to/noduino-sdk/sketch/open-onoff $ make produce ESPPORT=/dev/ttyUSB1
4.2.2 Online
5 Hardware

