upvote
> RaspberryPies and such are commodity hardware. You can buy one, two, ten, twenty, a hundred, and it just scales along.

Not my experience at all. Pies are hard to find, get more expensive each week. Some are impossible to find (Pi zero).

The most fragile part of a phone is the screen. If you don't care about breaking it, then access to the battery becomes pretty easy, and therefore easy to replace.

reply
Same here. The last times I tried to get a Pi — three times in three years — the ones I wanted were completely sold out and waiting to restock.
reply
Where are you based? I just bought 25 from CPC without any issues. Delivered in two days. They aren't as cheap as they used to be, but I understand the reasons why, given how expensive RAM is. Yes, the zero is trickier, but the 2W is in stock on PiHut at the moment.
reply
Thank you so much for the heads up! They're as 'rare as rocking horse ...' as an old teacher of mine would say. And I've needed one for a project for ages.

Unfortunately thanks to the EU's new tariff regime it would cost over 30eur to ship it here, but luckily I can smuggle one back from my next trip to the UK...

That said for 4 and 5s - I've not had a problem here (Finland) in literally getting them off the shelf of a local retailer (Partco) for the going rate anywhere else.

reply
It's like they say:

  A bird [redacted] bush.
reply
It seems very regionally dependent.
reply
I think battery replacement is only part of the problem, though. Even if you can swap batteries cheaply, you're still dealing with different firmware versions, component revisions
reply
Phones are pretty robust though, meant to handle everyday use and abuse. In terms of failure, the battery is really the only thing to be concerned about. Most phones have some battery limiting option, and bypass the battery when the charger is connected. And if you're determined enough you can run without a battery.
reply
Just plug all the battery slots in parallel to a 4.1V power source (that's a nearly full battery voltage). You probably have to solder them to make a reliable connection.
reply
I'm pretty sure the third/fourth pins are used for communication to the battery. I doubt the phone would be happy it wasn't responding. I vaguely remember some phones can just use a resistor for that pin? Either way it's not quite that simple.
reply
Maybe. Try it and see. If it doesn't work it's probably just a temperature sensor (thermistor) and a resistor indeed simulates a certain temperature the same way your power supply simulates a charge state.
reply
You could probably open the wrap of a battery to show the individual components including the cells and other guts. Once you identify what the cables lead to then simulate it or replicate it.
reply
Or we could look at how it communicates in-circuit, since that matters more than what it looks like to the eyeballs.

Most/all phones have one cell and therefore no balancing magic. Two connections do the job of connecting to the battery cell to the rest of the phone. These two are easily identified with a DMM.

If the phone works with only these two connections, then we're done; the phone will run from a bench power supply and there's nothing left to pursue.

If it does not work, then the functions of any additional connections be further explored while still never unwrapping the battery. Serial data? NTC thermistor? Something else? Fine; record that and emulate it. NTCs are cheap and so are MCU dev kits. (And if we don't have a decent-ish oscilloscope yet, then this is a good excuse to get one.)

reply
1 point by leptons 16 minutes ago | root | parent | next | edit | delete [–]

If you don't have any real training in electronics, please refrain from giving advice like this. It can start fires, especially when lithium batteries are concerned.

reply
In other words, never hack things, it could be dangerous!
reply
That is not what I said at all, but thanks for taking it completely of context for your shitty troll comment.

Do whatever the fuck you want and suffer the consequences yourself for doing stupid things you don't understand, but don't encourage other people who also may lack understanding to follow you over a cliff.

If fucking around with lithium batteries doesn't make you pause a bit, then you're just ignorant.

reply
The type of advice that 99% of HN commenters would be able to do properly…but that last 1% … I hope they don’t cause the battery to blow up when they try to open it up in just the wrong way!

Still though, could be a lot of screwing around needed to get this to work. Likely the extra wires go straight to a chip which expects to be able to monitor the voltage of the battery, and which might be alarmed by a power supply that acts unnaturally for a battery.

reply
If you don't have any real training in electronics, please refrain from giving advice like this. It can start fires.
reply
Hobbyist don't usually need to scale beyond one device. Warranty is not that a big issue, if you buy a used hardware you know what are getting into, that's why they are cheaper than new devices.
reply
Depends on the hobbyist, I think? The Pi has the advantage, due to the scaling, of having a rich ecosystem of examples and ready-to-go code.

It makes more sense with high availability though. Their current situation seems rough.

reply
The author of the article mentions a hundred devices in the paragraph I quoted. Presumably they do have a goal where scaling up is relevant.
reply
we are talking about embedded devices here. you dont need a second one because your web server cant serve enough requests, you need a second one because you want separate projects to have separate hardware.
reply
Then why would it matter if they are all exactly the same?
reply
[dead]
reply
I've chatted to the guy running Citronics, they provided old but working Fairphone 3 to a workshop we had at Goatmire Elixir. They try to tackle repurposing and certifying the quality of old phones. Interesting effort and well positioned for the current climate.

Their board currently on sale is this. Based on Fairphone 2. Targeting commercial or industrial more than hobbyist though. I've been trying to convince them to sell the old phones as is, as well. https://shop.citronics.eu/

Thanks to Marc Lainez and his token spend we have a great Nerves system for running the Fairphone 3 by just programming Elixir. And people are flipping new (old) phones over to be put to work every week in the Nerves Discord.

We have a good UI framework in Emerge. We have media handling with Membrane. And Nerves handles the OS integration for stuff like networking. I thoroughly enjoy making up my own mobile OS for my own purposes.

You lose the GPIO/I2C/SPI/UART as easy extension points compared to the Pi. But the stuff that is there is already well integrated.

reply
I was going to mention these, love the concept!
reply
You could go a step further and just buy low-end new phones. They are available at sub-$50, which is near the price of Raspberries.
reply
I haven't seen a new Raspberry that cost anywhere close to that in years. Assuming you aren't referring to one of the smaller, less powerful ones.
reply
The main issue with old phones are NAND Flash degradation and battery problems. As long as you fix those two issues everything else is simple. These days with AI it's almost trivial to build and flash your own ROM and even the most hardcore of binary blob drivers can be reversed so long you have enough GPUs.

It's not the dark days of android where something like CyanogenMod takes a whole team of experienced system and embedded engineers to port and you don't have to hunt for information on XDA anymore.

Oh and cooling. That's something that the Pi has an edge on.

Early Android hackers might remember something called the Android Arduino Mega ADK. I suspect nowadays if you need real time control you can probably just have smartphone control the peripherals via the ESP32 using either USB C or Bluetooth. Developing over the wire protocols is trivial since LLMs can hammer out protobuf definitions like there's no tomorrow.

reply
for applications like that your should remove the battery and put small cheap circuit that emulates it. then you can run such server very very safe, unlike with 100x batteries always harging.

Bot farms works that way.

reply
Took me hours to replace the battery in a pixel. They make it almost impossible to open a phone without breaking it. I can't imagine doing that for more than 2 phones
reply
I'm nearing a battery replacement on my pixel 8 pro. Which model were you working with?
reply
Pixel 7a. To be fair, it was a screen + battery replacement. The problem was the adhesive that they use. I warned it up, tried to open it and the screen shattered into tiny pieces when I tried to open it (because it was cracked).

I also don't have a heat gun, so I had to use a Ziploc bag with warm water.

Still though, they make it really hard

reply
Did the 7 and 8 have that much worse of a battery? I'm currently replacing the two Pixel 6 in my household (end of security updates), and there is nothing wrong with those. The hardware, battery included, is as good as new (or at least, not impeding our use).
reply
I still use a pixel 6a. I don't really care about security updates. This was my wife's phone. I would say battery life is a bit worse in the 7a, but if you are already opening it (to change the screen), then you may as well replace the battery
reply
Did you pry with force? Or did the warm water make it lift easily?

I don't have experience with the ziploc method, but heat guns can melt solder so I'm wondering if temp was not high enough with the ziploc.

reply
This is fascinating, I never even considered this need.

Could you say more about this? What kind of setups work well? Is this really straightforward or are there any subtleties?

reply
What else have bot farms learned through scaling?
reply
[flagged]
reply