Diy ai speaker with google assistant sdk (4 pages)
Summary of Contents for ODROID Smart Power 2
Page 1
Odroid Smart Power 2 - How to use 0. Connect the included 15V/4A adapter and plug the output cable in the terminal block. Ensure the DC plug cable is properly connected to negative(black) and positive(red). Caution! if you plug it the other way, your board will be seriously damaged.
Page 2
2. Power monitoring with 16×2 LCD We recommend connecting the LCD after disconnecting the main power source. With WiFi (Connected mode) The webpage supports IE 11+, Edge 13+, Firefox 47+, Chrome 49+, Safari 9.1+, Opera 41+, IOS Safari 9.3+, Android Broswer 4.4+, Chrome for Android 53+ 1.
Page 3
WiFi Connection 2. Access Web UI 3. Home Seven Segments : voltage, ampere, watt, watt-hour. • ON/OFF slide : Output power ON/OFF. • Start/Stop slide : Watt-hour measurement Start/Stop. • Voltage slider : Change output voltage. • Save Default Voltage button : Set default voltage. •...
Page 4
3. Home 4. Settings With Telnet (Connected mode) After connection with WiFi, you can get power data via telnet. [Voltage],[Ampere],[Power],[Watt hour] $ telnet 192.168.4.1 5.255,0.451,2.374,0.000 5.256,0.451,2.374,0.000 Receving Power Data via microUSB cable This feature is available in F/W v1.4 or later. You can receive power data(current, voltage, power, watt-hour) from your SmartPower2 to your PC or ODROIDs through serial.
115200bps 8N1 • no-flow-control • 1. Connect your SmartPower2 to PC via microUSB cable 2. Run Serial serial console program like putty or minicom 3. Enable power on LED State State Description PWR(D1) Input power off Input power on blink Output power on WiFi Status off no WiFi connection WiFi connected...
After boot, press the ON/OFF switch for 5 seconds to reset all settings including WiFi. Hardware Documentation Schematic SmartPower2 • Data Sheet MCU - ESP8266 Espressif low power 32-bit MCU •...
Page 7
USB to UART - CP2104 single chip usb-to-uart bridge • 3A 16V Stepdown - MP1495S High Efficiency 3A, 16V, 500kHz Synchronous Step Down • Converter Digital Potentional Meter - MCP4652 7/8-Bit Single/Dual I2C Digital POT with Volatile • Memory Current/Power Monitor - ina231 High- or Low-Side Measurement, Bidirectional •...
Page 8
smartpower2 3. Upload You should check your esp8266 serial number like “/dev/ttyUSB0” or “/dev/ttyUSB1” sudo esptool.py --chip esp8266 --port /dev/ttyUSB0 --baud 921600 write_flash 0x0000 0 prebuilt/firmware.bin 0x100000 prebuilt/spiffs.bin Windows The instructions were tested on Windows 10. 1. Get the binaries about firmware and web source from this link https://github.com/hardkernel/smartpower2/releases And then, you need to extract the zip file on your work folder.
Page 9
5. Start upload You have to input binaries and other parameters as shown below picture. COM port is variable depending on your PC environment.
Build Firmware This guide is working with x86 platforms only. The development tools are not available for ARM platforms. You can use Arduino IDE or PlatformIO for build platform. Arduino IDE 1. Install Arduino IDE for ESP8266 Download the Arduino IDE via this link https://www.arduino.cc/en/Main/Software Run Arduino IDE and open “File →...
Page 11
After adding the url, you are able to search “esp8266” in “Tools → Board → Boards Manager”. Install the esp8266 Android version 2.4.2! Currently, Smartpower2 is not compatible with version esp8266 Android v2.5.0 or higher. Select “Tools → board” to “NodeMCU 1.0(ESP-12E Module)”...
Page 12
2. Get source code Download the latest source code. v1.6-arduino.zip Unpack and open the “smartpower2.ino” in Arduino...
Page 13
Configure your Sketchbook location to your project root folder.(In my case $HOME/Downloads/smartpower2-1.4) Restart Arduino IDE. Then, you can see “ESP8266 Sketch Data Upload” on the tools menu bar.
Page 15
Run “ESP8266 Sketch Data Upload” on the tools menu bar. PlatformIO Linux 1. Install PlatformIO sudo apt-get install python-pip sudo pip install -U platformio platformio --version If you have any issue while installing it, refer this guide. http://docs.platformio.org/en/stable/installation.html 2. Get source code sudo apt-get install git git clone https://github.com/hardkernel/smartpower2.git -b v1.6-platformio 3.
cd smartpower2 sudo platformio run sudo platformio run --target upload sudo platformio run --target uploadfs Windows 1. Install platformIO http://docs.platformio.org/en/stable/installation.html 2. Get source code v1.6-platformio.zip 3. Build & Upload Run CMD and move to the smartpower2 folder and Connect microUSB to Host PC. You can see the list of USB drivers “CP210x USB to UART Bridge(COMx)”...
Page 17
Refer to : https://github.com/esp8266/Arduino/issues/612 F/W Version History Release Date Version Description Fix the “ISR not in IRAM” Oct 11 v1.6 https://github.com/hardkernel/smartpower2/tree/v1.6- 2019 error arduino May 17 v1.5 Add arduino branch https://github.com/hardkernel/smartpower2/tree/v1.5- 2019 arduino May 28 v1.4 Add receiving power data https://github.com/hardkernel/smartpower2/tree/v1.4 2018 function through serial...
Page 18
Fix build flags on the platformio • https://github.com/hardkernel/smartpower2/commit/998e002d1c4520b54701307dd60f841 c9bf58f63 Release Note of F/W v1.4 You can receive power data(current, voltage, power, watt-hour) from your SmartPower2 • through serial How to use this • Release Note of F/W v1.1 Thanks to https://github.com/OtherCrashOverride New features console logging with telnet...
Need help?
Do you have a question about the Smart Power 2 and is the answer not in the manual?
Questions and answers