Smarter power-consumption analysis for embedded system developers

Locked
User avatar
odroid
Site Admin
Posts: 38356
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2130 times
Been thanked: 1264 times
Contact:

Smarter power-consumption analysis for embedded system developers

Post by odroid »

Many of embedded system developers have had to spend a lot of resources to make their systems more stable and robust.
One of the most important factors is the power transient curve in the booting and shutdown process to find very reliable power sources.
Normally, we used digital multi-meters and oscilloscopes with ampere measuring probes in the past decades.

The painful period is over.
We can easily measure the power consumption of your single board computers at 200 times per one second with a cost effective solution.
We are proudly announcing our new hardware utility Smart Power 3 for embedded system developers.

Let's see actually measured results as an example to know how the Smart Power 3 is practically useful in the real world.
img_7740_n2_rpi.jpg
img_7740_n2_rpi.jpg (39.04 KiB) Viewed 4631 times
Image

ODROID-N2+ : In the booting process, the power consumption is changing between 2~7Watt. In the IDLE state, it is steady at 2Watt approximately.
n2_power_graph.png
n2_power_graph.png (246.56 KiB) Viewed 4631 times

RPI4 : In the booting process, the power consumption is changing between 3~7Watt. In the IDLE state, it is steady at ~3Watt.
rpi4_power_graph.png
rpi4_power_graph.png (236.82 KiB) Viewed 4631 times

Wattage Comparison: This shows the power consumption comparison more obviously. In the power-off (halt) state, N2+ consumes 0.5Watt while RPI4 consumes 1.5Watt.
Overall power consumption characteristics of the N2+ is much better.
n2_rpi4_power_graph.png
n2_rpi4_power_graph.png (212.66 KiB) Viewed 4631 times

You are able to capture the power consumption data via USB cable from a serial terminal software (i.e, puTTY or minicom) on your host computer with 921600bps baud rate configuration.
The captured raw text data can be easily imported to your spreadsheet program to make it visible graphs.
You can see ODROID-XU4 and C4 power consumption graphs as well as Smart Power 3 hardware/software information in this WiKi pages.
https://wiki.odroid.com/accessory/power ... martpower3
img_7746_c4_xu4.jpg
img_7746_c4_xu4.jpg (40.99 KiB) Viewed 4631 times


Here is a brief specification of the Smart Power 3.
Screenshot from 2021-10-20 15-34-48.png
Screenshot from 2021-10-20 15-34-48.png (85.98 KiB) Viewed 4625 times
smartpower3_layout.png
smartpower3_layout.png (317.2 KiB) Viewed 4631 times


The price is US$45. Note that you have to purchase a PSU (15V/4A 60W or 19V/7A 133W) together.
You can grab one now and we are ready to ship.
https://www.hardkernel.com/shop/smartpower-iii/
These users thanked the author odroid for the post:
superpowter77 (Wed Nov 10, 2021 12:42 am)

User avatar
mctom
Posts: 793
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 81 times
Been thanked: 98 times
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by mctom »

I was wondering what Hardkernel was up to lately. :)

This looks like a nice general purpose power supply for hobbyists, because as far I'm concerned the current limiting is also implemented and adjustable.
These users thanked the author mctom for the post:
odroid (Wed Oct 20, 2021 5:06 pm)
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
mad_ady
Posts: 9979
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 631 times
Been thanked: 780 times
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by mad_ady »

Congrats on launching a new product! I wasn't expecting to see anything new this (or next) year!
Edit: Since it's using ESP internally, does it have wifi capabilities like the smart power 2?
I'm guessing the firmware could be edited to allow control of the voltage over serial, but wifi would be neat...

User avatar
rooted
Posts: 8876
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 743 times
Been thanked: 407 times
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by rooted »

Why must the power supply be purchased as well?

It's a nice solution, a bonus it using Type C versus micro USB for data connectivity.

@mad_ady That was my second thought.

User avatar
mad_ady
Posts: 9979
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 631 times
Been thanked: 780 times
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by mad_ady »

Why must the power supply be purchased as well?
My guess is to allow you to reuse a laptop power brick that you may have laying around.

I wonder how long it would take a skilled individual to port the Odroid Go emulators and have them run on this... Image

User avatar
rooted
Posts: 8876
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 743 times
Been thanked: 407 times
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by rooted »


mad_ady wrote:
Why must the power supply be purchased as well?
My guess is to allow you to reuse a laptop power brick that you may have laying around.
You misunderstood, you have to purchase the power brick from Hardkernel or you can't order the Smart power.

crashoverride
Posts: 5487
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 486 times
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by crashoverride »

rooted wrote:
Thu Oct 21, 2021 11:40 am
Why must the power supply be purchased as well?
I would guess so that you can choose the one that best meets your requirements. Note the specifications states "Two output channels (Max 50W + 50W)", and the power supply choices are "15V/4A 60W or 19V/7A 133W". There is a significant cost difference between them.
mad_ady wrote:
Thu Oct 21, 2021 2:08 pm
I wonder how long it would take a skilled individual to port the Odroid Go emulators and have them run on this.
There does not appear to be any PSRAM. This NES and SMS emulators should function, but GB requires extra PSRAM or extra flash storage since many titles are 4MB (the entire flash). I would really love to see a video of someone playing games using the front panel controls instead of a D-PAD.

crashoverride
Posts: 5487
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 486 times
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by crashoverride »

rooted wrote:
Thu Oct 21, 2021 2:15 pm
You misunderstood, you have to purchase the power brick from Hardkernel or you can't order the Smart power.
OH! Good point.

User avatar
mad_ady
Posts: 9979
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 631 times
Been thanked: 780 times
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by mad_ady »

I would really love to see a video of someone playing games using the front panel controls
Getting sound by overloading some onboard coil to make buzzing noises would be even cooler! Image

User avatar
mctom
Posts: 793
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 81 times
Been thanked: 98 times
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by mctom »

Yeah, or penalty electric shocks to a player.
If only it had isolated outputs, one could connect them in series for better effect. ;)
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

hominoid
Posts: 571
Joined: Tue Feb 28, 2017 3:55 am
languages_spoken: english
ODROIDs: C2, C4, XU4, MC1, N1, N2, N2+, HC4
Location: Lake Superior Basin, USA
Has thanked: 65 times
Been thanked: 213 times
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by hominoid »

I like the dual channel variable voltage capability and it's a nice looking piece of equipment too. Nice job HK.

crashoverride
Posts: 5487
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 486 times
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by crashoverride »

hominoid wrote:
Thu Oct 21, 2021 11:40 pm
it's a nice looking piece of equipment too.
I really like the case. I wanted a case with display like that for some of my C4 projects. I may try modding it for an ESP32 project. Maybe in the future we can get a case like that with a bigger 5" touch screen (with speakers) for C4.
Image

hominoid
Posts: 571
Joined: Tue Feb 28, 2017 3:55 am
languages_spoken: english
ODROIDs: C2, C4, XU4, MC1, N1, N2, N2+, HC4
Location: Lake Superior Basin, USA
Has thanked: 65 times
Been thanked: 213 times
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by hominoid »

crashoverride wrote:
Thu Oct 21, 2021 11:53 pm
I really like the case. I wanted a case with display like that for some of my C4 projects. I may try modding it for an ESP32 project. Maybe in the future we can get a case like that with a bigger 5" touch screen (with speakers) for C4.
Not to get off topic of the thread…
I have 3 touchscreen use cases I'm working on and at least one of them will require a similar case(with speakers), so it probably will happen in the future(winter). To that end and as time has allowed, I have been working towards refining a general touchscreen environment for Odroids.

So far I have a reasonable touchscreen UI (Phosh) working for multiple OS(Debian, Ubuntu, Arch etc.) on a N2+/Vu7a+ and recently have been focused on pulling together a minimal set of adaptive applications for it. I also still have considerable mechanical design work to do so it will be a little while before anything is ready for public consumption, but it looks promising so far. I need to get another C4 to develop and test on because the one I was using is now a permanent part of my 3D printer.

zupet
Posts: 78
Joined: Tue Dec 26, 2017 11:13 pm
languages_spoken: korean,english
ODROIDs: HC1
Has thanked: 3 times
Been thanked: 8 times
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by zupet »

does it have official DOOM port ? :evil:

User avatar
mctom
Posts: 793
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 81 times
Been thanked: 98 times
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by mctom »

Wouldn't that be a brilliant easter egg.

At some point at my first job, factory workers figured out a way to play Solitaire on Agilent ENA network analyzers (with embedded Windows XP).
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
mad_ady
Posts: 9979
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 631 times
Been thanked: 780 times
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by mad_ady »

mctom wrote:Wouldn't that be a brilliant easter egg.

At some point at my first job, factory workers figured out a way to play Solitaire on Agilent ENA network analyzers (with embedded Windows XP).
Via the Help -> Open -> Right click -> Run trick?

User avatar
mctom
Posts: 793
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 81 times
Been thanked: 98 times
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by mctom »

No idea, I had a PC to play Solitaire at work ;)

But I'm sure I've seen what you describe elsewhere. I remember my cousin doing it on a cargo ship computer with Windows 98. No idea if that was a "central computer" though, I vaguely remember it was driving ballast pumps.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
bkralik
Posts: 1
Joined: Wed Oct 27, 2021 4:05 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by bkralik »

I have looked into the schematics and I quite like the idea of using cheap USB-PD IC as regulated power supply, however I am quite puzzled that current sense input of main regulator (STPD01) is not connected anywhere (just grounded). Are you sure that constant current function and current limitation is really working as expected?
Also voltage sense input is connected before current measurement shunt of PAC1933, so I would assume output voltage will be inprecise (0.05 V lower then expected at 3 A).

Do you have some measurement of the precision of the power supply, comparing embedded measurement to some precise equipment?

Thanks!

User avatar
mctom
Posts: 793
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 81 times
Been thanked: 98 times
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by mctom »

Hm, indeed, the STDP01 current sense seems to be oddly implemented, and I do not see such implementation in its datasheet.
Perhaps the protection is implemented in software instead. This way you may actually get extra functionality, such as current limiting vs OCP that cuts off voltage altogether.

The error from measuring voltage before sense resistor rather that after it is 0.045V at 3A, which is almost 1% at typical 5V output. Given that STDP01's output voltage accuracy is 2%, I don't think this is a huge problem. It may have been a PCB routing tradeoff. Nevertheless, well spotted. :)

EDIT: Let's not forget the external cables and connectors have far more than 15mOhm anyway. ;)
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
odroid
Site Admin
Posts: 38356
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2130 times
Been thanked: 1264 times
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by odroid »

There is no over-current protection nor constant-current feature in Smart Power 3.
We implemented an IRQ driven over-heat protection function by firmware only.

There could be around 0.5%~2.5% of tolerance of voltage and current measurements due to the limited accuracy of the shunt resistors and PCB patterns as well as PAC1933/STPD01 itself.
Therefore, we wrote "3%" of tolerance to the specification section and it seems to be fine to trace the most single board computers power characteristics.
We compared the measured voltage values with Fluke-179 DMM outputs, the difference was less than 1% in most cases.
But, this approach might be very far from the high-precision expensive equipment.
If you need much more accurate instruments, consider buying other precise equipment.

On the other hand, you can improve the accuracy significantly if you modify MCU(ESP32) firmware source code to add some calibration features here and there.

User avatar
mctom
Posts: 793
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 81 times
Been thanked: 98 times
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by mctom »

Well, in this case a software based over current protection (that shuts down the voltage output if current reached preset threshold) would be something definitely worth looking into.
The common scenario comes to mind, when I buy a broken SBC and want to inspect it. It may as well have short circuit right from the start.

Thermal protection is definitely the last resort, and should be treated as such.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
odroid
Site Admin
Posts: 38356
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2130 times
Been thanked: 1264 times
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by odroid »

A new firmware has been released. Special thanks to @mctcom. ;)
https://wiki.odroid.com/accessory/power ... 3#software

smitna
Posts: 12
Joined: Mon Feb 03, 2014 2:45 am
languages_spoken: english, german
ODROIDs: ODROID-X, ODROID-U3, ODROID-XU, 3x ODROID-C2, 2x ODROID-C4
Location: Germany
Has thanked: 0
Been thanked: 3 times
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by smitna »

Hello,

is there a way to add WLAN (via the ESP32 and firmware)? It's an ESP32 WROOM 32-E with build-in Wi-Fi, I think.
I don't want a physical connection from a power supply (or DC-DC) to my PC.

User avatar
odroid
Site Admin
Posts: 38356
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2130 times
Been thanked: 1264 times
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by odroid »

We have no plan to implement a wireless connectivity at this moment.

User avatar
odroid
Site Admin
Posts: 38356
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2130 times
Been thanked: 1264 times
Contact:

Re: Smarter power-consumption analysis for embedded system developers

Post by odroid »

This thread is locked.

Please freely post your questions/ideas to the Smart Power sub-forum with SmartPower3 on the title.
viewforum.php?f=86

Locked

Return to “News”

Who is online

Users browsing this forum: No registered users and 3 guests