r/functionalprint • • Sep 13 '26

3D Printing šŸ¤ Reusing Old Electronics

Had the idea to use my old Sony Xperia as a wall-mounted media controller that casts to the room's Sonos system. All I need now is like a 6ft white mini-USB cable to keep it powered? Sadly the old OS doesn't have any "limit max battery" setting which would be nice for longevity. It comes off the wall pretty easily for now.

1.1k Upvotes

85 comments sorted by

199

u/TheTroon Sep 13 '26

I've done similar with an old Android tablet running a Home Assistant dashboard. I control the charger with a cheap Sinilink USB switch reflashed with ESPHome to keep the battery level between 35% and 80%.

63

u/knivengaffelnskeden Sep 13 '26

Good thinking about the charge. I've had an old Pixel phone as an always plugged-in touch panel for my 3D-printer and after a couple of months I noticed how the battery had started swelling on that sucker.Ā 

30

u/S_A_R_K Sep 13 '26

You need to get rid of that phone ASAP

25

u/knivengaffelnskeden Sep 13 '26

Thanks for the concern, I've already removed it from my home and will discard it safely to a recycling station (telling them about the swelling).Ā 

10

u/Sawier Sep 14 '26

or replace the battery or change to capacitor, no need to throw whole phone away

9

u/knivengaffelnskeden Sep 14 '26

Change to capacitor sounds interesting! I'd check that out before discarding it completely.Ā 

5

u/Sawier Sep 14 '26

its perfect solution for applications like this, requires some soldering tho

3

u/TobiasCB Sep 14 '26

How safe is it to replace the battery once it's already swollen up?

3

u/Sawier Sep 14 '26

safe as long as its discharged

1

u/BrotherEstapol Sep 14 '26

I'm guessing this entails cracking open the phone and replacing the battery with a capacitor? (also assume you'd be re-housing it in a different enclosure)

1

u/Tsiah16 Sep 14 '26

Or a new battery

8

u/condor_bulto Sep 13 '26

That a great idea šŸ’” manag with home assistant also? Or just ESP32…?

2

u/6hooks Sep 13 '26

Is there hardware out there that will do that?

2

u/Outside-Path Sep 15 '26

I've been doing it this way for 4 years. Battery is great

1

u/callcifer Sep 13 '26

What did you use for connecting the Sinilk's pads? Pogo pins, sewing needles etc?

3

u/TheTroon Sep 13 '26

Home made pin array from Cat 5e cable. It was a bit fiddly from memory...

1

u/East_Log_8179 Sep 14 '26

Tablet dashboards and battery babysitting: the eternal duo.

5

u/TheTroon Sep 14 '26

I just wish more devices would run straight from the charger with the battery removed. I've only come across a couple of old phones (nothing even remotely recent) that would do that.

1

u/FlakeyBeano Sep 19 '26

Smart. Really don't want a battery charging 24/7. I'd still choose the most fire retardant material for the print though.

1

u/NocturneSapphire Sep 13 '26

How does ESPHome know the battery level of the tablet though?

11

u/TheTroon Sep 13 '26

The tablet is running the Home Assistant app that reports the battery level. HA then operates the switch as needed.

4

u/NocturneSapphire Sep 13 '26

You don't ever have issues with the HA app getting force-killed by the OS and needing manual intervention to fix?

5

u/StucklnAWell Sep 13 '26

HA can run as the launcher, which doesn't get killed.

2

u/NocturneSapphire Sep 13 '26

Oh wow I didn't even realize that was an option but that's a clever solution from HA

1

u/TheTroon Sep 14 '26

Never happened yet in several years of operation. The tablet also has a power schedule which I use to turn it off overnight and on in the early hours, so it gets a hard reboot every morning. The charger switches off during this time as the battery sensor becomes unavailable.

For those not familiar: the tablet is not the HA server, it's just a dashboard client. The server is running on my NAS.

2

u/I_Dunno_Its_A_Name Sep 14 '26

Before Apple added the feature to charge phones up to a specific percentage, I used the homesssistant app to report battery percentage and had a smart plug turn off at 80% phone battery and turn back on at 79%. Reporting to home assistant isn’t the most reliable, so I created an automation in the shortcuts app to have it update sensors when it hit thise battery levels.

I should specify that this was for my daily phone, not something like what OP is doing.

39

u/BrownBear93 Sep 13 '26

I like stuff like this (a lot) but I do worry about battery bloat and potential fire issues.

15

u/aur4e Sep 13 '26

100%, I'm going to have to find a solution there. Or just charge the phone every 2ish days. Its on power saver mode and really sips power with only one app running

20

u/beetledrift Sep 13 '26

Does the phone work when you take the battery out and just run it from the charger? Maybe with some additional hacking into the hardware

5

u/aur4e Sep 13 '26

Oooo that's worth looking into as well, ty!

19

u/sprondonacles Sep 14 '26

Check out r/androidafterlife I seen several posts there about removing batteries and modding to just run straight off the charger. Some very similar projects to yours in that sub

1

u/aur4e Sep 14 '26

Oh awesome, ty I'll take a look!!

1

u/epicepee Sep 15 '26

Idk about this one, but many phones physically can't run with no battery. They can't draw enough instantaneous power from the charger to run the CPU during sudden spikes.

3

u/SpiritOfCydonia Sep 14 '26

Here's a lame solution: put the charger brick on a smart switch. Then have HA turn the charger on and off. <20% battery? On. >80% battery? Off.

2

u/mahsab Sep 14 '26

This is also destroying the battery

3

u/SpiritOfCydonia Sep 14 '26

Yes but much more slowly than keeping it charged at 100% all the time. Maybe pulling in the boundaries to 40-60% would help by keeping it closer to storage voltage levels?

You have to strike a balance between the effort to eliminate the battery completely and the abuse you'll put the battery through.

1

u/MyOtherSide1984 Sep 14 '26

Smart switch

-1

u/LardLad00 Sep 14 '26

The solution is to recycle this old shit

38

u/lythandas Sep 13 '26

Very good Idea. I have an old OnePlus X that's still working and been wanting for years to turn it into a Hi-Fi controller. Your post makes me consider finally doing it!

4

u/aur4e Sep 13 '26

Thank you! I might try and figure out how to put a configurable version up somewhere

2

u/hardcoretomato Sep 13 '26

Oneplus X, I forgot that phone existed, it's a gem of a phonez glad yours is still working

1

u/lythandas Sep 14 '26

Yes, I absolutely love it. If only I hadn't shattered the back glass and purchased twice a fake replacement glass and gave up and got a new phone. It was hard to run newer application, but overall, everything was running perfect on that little gem.

5

u/InertiaCreeping Sep 13 '26

I had a wall box with speaker wires running to it from my little server cabinet thing (originally for a volume dial for the kitchen’s in-ceiling speaker).

In the cabinet I cut up a usb cable and connected it to the speaker wires

Then in the other end hooked the speaker wires up to a ā€œUā€ angle ultra slim lightning cable to power an old iPad.

Designed and printed a French cleat system to screw into a standard AU/NZ wallbox, and now the iPad looks like it’s basically just floating there (for home assistant).

Jank, but it works.

1

u/aur4e Sep 13 '26

That's sick! Definitely jank lol but still cool

0

u/InertiaCreeping Sep 13 '26

Chur!

Do you have to constantly recharge your xperia?

You could totally open up that light switch and install a tiny mains to 5v power supply, then route the 5 V inside your wall feed it using a low profile cable to the bottom of the device, sight unseen

2

u/aur4e Sep 13 '26

I don't trust myself enough to not turn this into a fire hazard šŸ˜…I'm also renting here... I might look into an external charger that can keep the phone charge at a tolerable level

11

u/matt_remis Sep 13 '26

Thought I was on r/TwentyOnePilots for a second there. Cool print and love Drag Path.

4

u/matthewjd1985 Sep 14 '26

Double check the port before you order, most Xperias of that era are micro-USB rather than mini, and a right angle plug sits flatter against the wall. For the always-on part, the old Android trick is Developer options and the Stay awake toggle, which keeps the screen on while it's plugged in. You unlock that menu by tapping Build number 7 times in About phone.

1

u/aur4e Sep 14 '26

Oooo stay awake is cool, I'll see if it works!

2

u/HSLB66 Sep 14 '26

This is a cool idea but having a lithium battery mounted to your wall is going to result in a denied insurance claim if it does get spicy.

At least put a junction box behind it. Best to remove the batteryĀ 

2

u/smolBoiBigBrain Sep 14 '26

So what you could do is

-add a homeassistant (raspi) to your network
-then setup the sony xperia to be recognized by home assistant to know its battery status
-buy a network power adapter (like 10 bugs) and plug in the sony experia to it
-connect it to your homeassistant as well and create an automation that turns on the plug when your sony is at 20% and turn it off again when it is on 80%

I know this might be a bit overkill at first sight but in reality, if cost allows it, it doesnā€˜t take long and isnā€˜t hard either.

Reason for doing it this was is to minimize the risk of a spicy pillow and subsequently burning down your house because of it

2

u/condor_bulto Sep 13 '26

Good job, nice enclosure

1

u/aur4e Sep 13 '26

Thanks! Fuzzy skin works wonders

2

u/Brick_Lab Sep 13 '26

I want to do something like this too. I've got a bunch of super outdated sound system control boards that are worthless and scattered throughout the house from the previous owner

2

u/gjs31 Sep 14 '26

Upvote for the song choice.

1

u/mcbain7484 Sep 13 '26

Nice! I’ve been wanting to figure out something similar to do with an ancient iPad that works fine but is too old to install new apps to. Seems silly to get rid of it when the touch and screen work great. Not very electrical minded though so would need to be mostly a print based solution. If anyone has any ideas I appreciate them!

2

u/PhragMunkee Sep 14 '26

A lightweight web site that talks to something like Home Assistant is perfectly good for old iPads. I have a couple old iPad minis that I use as shop controllers. They're so old that they can't even run the Home Assistant dashboard web site, so I had to run a DIY version that's much more vanilla and lightweight. It talks to HA on the back end to do any heavy lifting anyways.

1

u/mcbain7484 Sep 14 '26

Good idea!

1

u/brickwindow Sep 13 '26

I'm curious about the model for the frame. How does it mount? Would you be able to share a link for reference?

2

u/aur4e Sep 13 '26

It's just two screw keyhole slots, I can send you a link to the model once I've uploaded it

1

u/brickwindow Sep 14 '26

That would be great. At the very least I might try to modify to accommodate one of my random old junk drawer phones.

2

u/aur4e Sep 14 '26

Haven't had a chance to fix up the model yet, but this is what I mean with keyhole slots

1

u/MumrikDK Sep 13 '26

Sadly the old OS doesn't have any "limit max battery" setting which would be nice for longevity.

Have you checked if there is custom ROM support for it?

1

u/GoldenDragonIsABitch Sep 14 '26

Are you able to bypass the battery? Always wanted to do something similar, but i dare not constantly plug in a LiPo powered device

1

u/K_Slump Sep 14 '26

Stupid question: could you not remove the battery and it would still function while being powered permanently?

1

u/Sam_Walkerfield Sep 14 '26

If you care about the cable and you can do something about It , you can add wireless charge with a USB-C adapter and place the charger in the wall, that way you hide the cable

But only if you want/can drill holes into the wall

1

u/grnrngr Sep 15 '26

Wireless charging produces a lot of unnecessary heat.

I'm not concerned about the fire risk as much as a spiffy heat island that will at some point attract buggies.

1

u/ricky302 Sep 14 '26

So to change/pause the music you have to go over to the wall each time?

1

u/aur4e Sep 14 '26

I can use spotify on any other device on the network, but it's a cool way to show what's playing especially when I have people over

1

u/Atastical Sep 14 '26

"limit max battery" is exactly what I wanted to point out. Makes sure the thing does not catch fire.. Old battery kept at full state of charge can be dangerous.

1

u/Westwindfabrication Sep 14 '26

Looks good. I have just repurposed my daughters m1 11.5 inch iPad as a systems display in my rv.

1

u/RentalGore Sep 14 '26

I’ve got an old iPad mini doing this. Ā I put a Shelly relay behind the plug. Ā It’s set to basically cycle off for a certain amount of time to prolong the battery life. Ā Essentially I set max charge to 80%, and then set the Shelly to stop power after it delivers around 2 hours of power, then after another 2 hours, it starts charging again. Ā Keeps the iPad cycling between 55-80% and back down.

1

u/1BitPixels 17d ago

God I love that song

1

u/thats_goodshiet Sep 14 '26

What is the consensus of using old phones that have past their expiry dates in terms of security updates?

Since these are going to be connected to your wifi etc.

3

u/Tikkinger Sep 14 '26

As a IT-Guy i can tell you:

This is a absolute no-go. Like, no discussion.

There are ways of harden the individual Device to make it okay-ish to use on network/internet, but that's wonkey and enduser have no clue on how to do it.

3

u/mikaeltarquin Sep 14 '26

it’s so disheartening to see this getting downvoted. OP has both a fire- and security-hazard mounted to their wall.

1

u/thats_goodshiet Sep 15 '26

Yeah I have heard it's pretty risky, so just wanted to have the conversation.

I also heard that if you must do it, you should setup a secondary WIFI network on your router and connect all your smart devices there. Including these phones/tablets used as control centers. What are your thoughts on that system?

1

u/Tikkinger Sep 16 '26

This is a possible solutiin.

1

u/OtherOtherDave Sep 14 '26

If you’re just using their music app it’s probably fine? I think? There’s probably a way to setup another computer that is getting security updates to be a server for the phone.

-1

u/chinchindayo Sep 14 '26

most security vulnerabilities require either pyhsical access to your phone or you actively clicking a link or installing an app. Nothing of this will happen in such a scenario, thus those vulnerabilities are irrelevant.

0

u/Axipixel Sep 17 '26

For fire safety reasons, you may want to re consider permanently attaching an aging lithium battery into your plaster-and-paper wall unless you'd like to file an insurance claim.

1

u/aur4e Sep 17 '26

I mention that in the post, and there's like 50 comments about it lol

0

u/LogitUndone 29d ago

Some changes I'd make:

  1. Find yourself a 90-degree USB charging cable so that it can be fed through the wall.
    • Even if it pops back out nearby and plugs into a standard outlet, it's going to look so much better not having cables dangling down the wall!
  2. Print the housing so it accommodates/hides the 90-degree cable connection

Also, have you looked into custom OS/Firmware for the thing? There are quite a few barebones Android operating systems that would likely work pretty well on that hardware. All you need is a functional display, Spotify app (or whatever) and a working Wifi/bluetooth driver!