We're no longer updating This wiki!!

This is an old revision of the document!


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.

www.hardkernel.com_renewal_2011_files_prdt_2013_201307_201307161443492121.jpg

www.hardkernel.com_renewal_2011_files_prdt_2013_201307_201307231859514295.jpg


Specifications

MCUPCI18F45K50
Output VoltageDC 3.00 ~ 5.25Volt
Output CurrentDC 5A (Max)
Input PowerDC 12Volt/3A (36Watt)
MeasurementVoltage, Current, Watt, Watt-Hour
Tolerant2%(Typ.)
LCD16×2 Character type with LED backlight
USB device portData communication with PC (10Hz sampling rate)
ButtonOutput On/Off, Start/stop measurement of Watt-Hour
VolumeVoltage Adjust
Output4mm diameter banana jack, USB Host port, Wire connector
ETCFirmware 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


www.hardkernel.com_renewal_2011_files_prdt_2013_201307_201307231500210661.jpg

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.

hardkernel.com_renewal_2011_files_prdt_2013_201307_201307231418173859.jpg

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

www.hardkernel.com_renewal_2011_files_prdt_2013_201307_201307231634494316.jpg

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

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

부트로더 소스 다운로드

http://dev.odroid.com/projects/pic18f45k50/wiki/FrontPage?action=download&value=Microchip_Solutions_v2012-10-15.zip

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 케이블로 연결

ko/odroidsmartpower.1378974132.txt.gz · Last modified: 2013/09/12 17:22 by john1117
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0