This is an old revision of the document!
Table of Contents
Introduction
The easy way to make a Green platform. The ODROID Smart Power is an easily deployable power supply that collects voltage, current and power of the system load to enable developers to optimize energy consumption. LCD shows voltage, current, watt and watt-hour(Wh) simultaneously. You can also see the graphical energy transient on your PC via USB interface.
Specifications
MCU | PCI18F45K50 |
Output Voltage | DC 3.00 ~ 5.25Volt |
Output Current | DC 5A (Max) |
Input Power | DC 12Volt/3A (36Watt) |
Measurement | Voltage, Current, Watt, Watt-Hour |
Tolerant | 2%(Typ.) |
LCD | 16×2 Character type with LED backlight |
USB device port | Data communication with PC (10Hz sampling rate) |
Button | Output On/Off, Start/stop measurement of Watt-Hour |
Volume | Voltage Adjust |
Output | 4mm diameter banana jack, USB Host port, Wire connector |
ETC | Firmware update via USB |
Components
PACKAGE INCLUDES :
- ODROID Smart Power
- Power supply unit (AC-DC Adapter)
- USB cable
- Hook clip cable
- DC plug cable (5.5mm/2.1mm)for ODROID-XU/XU+E
- DC plug cable (2.5mm/0.8mm) for ODROID-X/X2/U2/X2
How to control Smart Power
Measure the system load of smartphones. The ODROID Smart Power is an easily deployable power supply that collects voltage, current and power of the system load to enable developers to optimize energy consumption.
Measure the system load of ODROIDs, X / X2 / U2 / XU
LCD shows voltage, current, watt and watt-hour(Wh) simultaneously.
PC Application
You can see the graphical energy transient on your PC via USB interface. You can download it from http://forum.odroid.com/viewforum.php?f=72
PC 프로그램 사용 방법 및 기능 설명
Hardware
회로도 이미지 삽입
회로도 설명
This file is the full schematics of ODROID Smart Power.
http://dn.odroid.com/Smart_Power/PowerMeter20130624.pdf
PCI18F45K50 MCU data sheet : http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en558861
마이크로칩 PICkiit 디버거 링크
Can use the PICkit In-Circuit Debugger. See here for more information: http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en538340
Software
Cross Compiler
MPLAB C18 v3.43 or higher (From Microchip homepage : http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010014&redirects=c18)
In my case, Standard-Eval Version (Free of Charge) was downloaded for my code optimization. It is the trial version and can only be used for 60 days.
IDE
X IDE v1.51 or higher (From Microchip homepage : http://www.microchip.com/pagehandler/en-us/family/mplabx )
How to write bootloader
Step-by-Step guide to write a bootloader
필요 주변기기 : microchip사의 PICkit In-Circuit Debugger, micro USB cable
부트로더 소스 다운로드
MPLAB X IDE 실행 및 프로젝트열기
file → Opoen Project → 다운받은경로/USB/Device-Bootloaders/HID/Firmware - PIC18 Non-J/MPLAB.X
빌드
Run → Build Project
다음 경로에 .hex 파일 생성 확인
다운받은경로/USB/Device - Bootloaders/HID/Firmware - PIC18 Non-J/MPLAB.X/dist/pic18f14k50/production
Smart Power와 PC micro USB 케이블로 연결
PICkit의 5pin header와 Smart Power의 5Pin과 연결(Smart Power 5Pin이미지 필요)
MPLAB IPE 실행 및 아래와같이 설정
Family : Advanced 8-bit MCUs (PIC18) Device : PIC18F14K50
Tool에 PICkit 잡히면 Connect 버튼 선택
Browse로 hex파일 선택 후 Program버튼 클릭
부트로더가 잘 구워졌다면 Smart Power의 ON/OFF 버튼을 누른 상태로 micro USB cable을 연결하게되면 위쪽 led가 점멸하게됨
How to write firmware
The firmware source code of ODROID Smart Power.
http://dn.odroid.com/Smart_Power/smart_power_fw.zip
MPLAB X IDE 실행 및 프로젝트열기
file → Opoen Project → 다운받은경로/USB/Device - HID - Custom Demos/Firmware/MPLAB.X
빌드
Run → Build Project
다음 경로에 .hex 파일 생성 확인
다운받은경로/USB/Device - HID - Custom Demos/Firmware/MPLAB.X/dist/pic18f14k50/production
Smart Power와 PC micro USB 케이블로 연결