N2 based NAS

Share here your ideas for new projects
Post Reply
User avatar
zyssai
Posts: 1272
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 606 times
Been thanked: 253 times
Contact:

N2 based NAS

Post by zyssai »

Hi!

I could have posted this in N2 forum but it will possibly be used by any other SBC.
I actually use an N2+ for my NAS.
Ubuntu OS was flashed into the emmc, and I use an external USB 3.5" hard drive enclosure.

That's working perfectly, but I want to add 2 more hard drives.
And I mainly want to give it a more professional look.
So no way to have N2 with 3 USB external enclosures, with all these power adapters. I don't what to have a spaghetti computer :D

So I will use a 3D printed enclosure, based on something like this, I need to modify design to fit N2 inside.

Image

To manage power, I will design a PCB, certainly powered by a classic laptop adapter to have sufficient power, then use a 12v regulator.
The idea is to start every hard drive independently, probably delayed by 1 or 2 seconds from each other's.

All of this managed by an ESP8266 with wifi connection, because I want to be able to start my NAS with Google Assistant or Alexa.

Image

So just one voice order and my NAS is starting.
One other order and Ubuntu shuts down, then once N2 is off, power off every hard drives.

I'll add a button in the front panel to do the same thing.
And another one because I want to be able to use WPS wifi connection.

So many ideas. I have a lot of work to do :D

Edit:

So as it is an idea, it just moved to another idea :D
Why design this to just use it for a NAS? Why not design a board to control power of any SBC, and add support for Google Assistant/Alexa? Let's move on!
Last edited by zyssai on Mon Jul 15, 2024 6:52 pm, edited 2 times in total.
These users thanked the author zyssai for the post:
odroid (Mon Jul 08, 2024 9:48 am)

User avatar
mad_ady
Posts: 12102
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, N2L, H2, H3+, Go, Go Advance, M1, M1S
Location: Bucharest, Romania
Has thanked: 663 times
Been thanked: 1323 times
Contact:

Re: N2 based NAS

Post by mad_ady »

Great idea! But isn't a NAS supposed to be always on, with the drives idle?

User avatar
zyssai
Posts: 1272
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 606 times
Been thanked: 253 times
Contact:

Re: N2 based NAS

Post by zyssai »

mad_ady wrote:
Wed Jul 10, 2024 6:16 pm
Great idea! But isn't a NAS supposed to be always on, with the drives idle? Image
Thanks!
I totally agree, it is supposed to :D

But my personal usage don't need an always on state.
My top needs are:

- Personal data backup and distant access to it
- P2P behind vpn download
- Plex media server
- distant access to retro emulation

So no real need to have 24/7 online.
But I need to be able to power it on from anywhere :)

User avatar
zyssai
Posts: 1272
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 606 times
Been thanked: 253 times
Contact:

Re: N2 based NAS

Post by zyssai »

So, to know the consumption of a SATA to USB adapter 5V rail, I replaced this 0R resistor by my ampmeter (after verifying this red wiring actually goes to correct 5V pin of USB cord).

Image
Image

Result to 0.1A for a 2.5" SSD, and 0.2A for a 3.5" old hard drive.
So I think I can get ride of a 5V line, and let USB ports manage this.

I only need to make a power board to manage 12V.
These users thanked the author zyssai for the post:
mctom (Wed Jul 17, 2024 6:05 pm)

User avatar
mctom
Posts: 4330
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polski
ODROIDs: XU4, M1, H3+, SP3, N2L, M1S, N2
Location: Gdańsk, Poland
Has thanked: 642 times
Been thanked: 875 times
Contact:

Re: N2 based NAS

Post by mctom »

Those drives may draw much more current when actually doing something.
I would suggest getting rid of that resistor that you removed for your measurements and let 12V rail supply both 12V and 5V for your drives.
This power converter on board looks like it can support more than 200mA. :)
Punk ain't no religious cult, punk means thinking for yourself!
OpenUPS
PiStackMon

User avatar
zyssai
Posts: 1272
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 606 times
Been thanked: 253 times
Contact:

Re: N2 based NAS

Post by zyssai »

mctom wrote:
Wed Jul 17, 2024 6:14 pm
Those drives may draw much more current when actually doing something.
I would suggest getting rid of that resistor that you removed for your measurements and let 12V rail supply both 12V and 5V for your drives.
This power converter on board looks like it can support more than 200mA. :)

Thanks for the advices.
Do you talk about AMS1117 power convertor? If yes this seems to be 3.3v revision.

User avatar
mctom
Posts: 4330
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polski
ODROIDs: XU4, M1, H3+, SP3, N2L, M1S, N2
Location: Gdańsk, Poland
Has thanked: 642 times
Been thanked: 875 times
Contact:

Re: N2 based NAS

Post by mctom »

L2 and D2 look to me as parts of 12V -> 5V converter, controlled by U3.
Especially if one end of L2 is connected to U3, and the other end to 5V rail.

If drives work without D1 resistor (and ammeter) then I suggest using these adapters without D1.
Punk ain't no religious cult, punk means thinking for yourself!
OpenUPS
PiStackMon

User avatar
zyssai
Posts: 1272
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 606 times
Been thanked: 253 times
Contact:

Re: N2 based NAS

Post by zyssai »

Thanks, I'll check voltages at this area asap.

I just received this tiny esp8266, I can't wait to test it :D

Image

User avatar
mctom
Posts: 4330
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polski
ODROIDs: XU4, M1, H3+, SP3, N2L, M1S, N2
Location: Gdańsk, Poland
Has thanked: 642 times
Been thanked: 875 times
Contact:

Re: N2 based NAS

Post by mctom »

When designing PCB remember to keep any copper away from the antenna area. :) It should be on the edge of the board.
These users thanked the author mctom for the post:
zyssai (Fri Jul 19, 2024 3:05 am)
Punk ain't no religious cult, punk means thinking for yourself!
OpenUPS
PiStackMon

User avatar
zyssai
Posts: 1272
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 606 times
Been thanked: 253 times
Contact:

Re: N2 based NAS

Post by zyssai »

Yeah I already thought about that, I'll use this one for testing but it's possible that I change later for another model with external antenna.

User avatar
zyssai
Posts: 1272
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 606 times
Been thanked: 253 times
Contact:

Re: N2 based NAS

Post by zyssai »

mctom wrote:
Wed Jul 17, 2024 8:20 pm
L2 and D2 look to me as parts of 12V -> 5V converter, controlled by U3.
Especially if one end of L2 is connected to U3, and the other end to 5V rail.

If drives work without D1 resistor (and ammeter) then I suggest using these adapters without D1.
So I gave a look and 5V is used by AMS1117 to get 3.3V.
I can replace D1 with my own 5V but just wondering if it's not a problem because of all these data pins coming from another power source.

Image

First test of ESP-03 (based on ESP8266) is working with a simple blink code :)
No led connected but checked with multimeter and it works.
So now I need to deal with wifi connection and that will be something :lol:

Image

User avatar
mctom
Posts: 4330
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polski
ODROIDs: XU4, M1, H3+, SP3, N2L, M1S, N2
Location: Gdańsk, Poland
Has thanked: 642 times
Been thanked: 875 times
Contact:

Re: N2 based NAS

Post by mctom »

You really don't want to believe me that there is a 12V -> 5V converter built into this adapter, do you? :)
Check if there's 5V on SATA pins with D1 removed.
Forget that 3.3V regulator, I'm not talking about it.

I envy your new skill, I never tried doing anything with ESP (except fixing Smart Power 3 firmware :D)
These users thanked the author mctom for the post:
zyssai (Sun Jul 21, 2024 5:25 pm)
Punk ain't no religious cult, punk means thinking for yourself!
OpenUPS
PiStackMon

User avatar
zyssai
Posts: 1272
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 606 times
Been thanked: 253 times
Contact:

Re: N2 based NAS

Post by zyssai »

mctom wrote:
Sun Jul 21, 2024 6:33 am
You really don't want to believe me that there is a 12V -> 5V converter built into this adapter, do you? :)
Check if there's 5V on SATA pins with D1 removed.
Forget that 3.3V regulator, I'm not talking about it.
Trust me, I believe all what you say :D
I just think I misunderstood something, because I made the test yesterday with only USB connected :lol:
So now with only 12v connected (no USB), even with D1 in place, I have 4.75V at SATA port.

So you were right :D

User avatar
mctom
Posts: 4330
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polski
ODROIDs: XU4, M1, H3+, SP3, N2L, M1S, N2
Location: Gdańsk, Poland
Has thanked: 642 times
Been thanked: 875 times
Contact:

Re: N2 based NAS

Post by mctom »

So that's 5V minus the drop on D2, probably. Should be fine for a SATA drive. :)

You can remove D1 if you want to be sure that USB port isn't powering your drives, but that's not strictly necessary if you ask me.
These users thanked the author mctom for the post:
zyssai (Sun Jul 21, 2024 9:01 pm)
Punk ain't no religious cult, punk means thinking for yourself!
OpenUPS
PiStackMon

User avatar
zyssai
Posts: 1272
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 4Gb
VU7C
Has thanked: 606 times
Been thanked: 253 times
Contact:

Re: N2 based NAS

Post by zyssai »

So I just need a 12v regulator from a range of 12v to 20v DC as I plan to use either a 12V adapter or a 19V laptop power supply (for more power).

Problem is if I plan to use a 12V adapter, regulator will reduce 12V output isn't it? Probably something like 11V?

Post Reply

Return to “The Ideas”

Who is online

Users browsing this forum: No registered users and 3 guests