News for hackers. Stuff that matters.
Re:Teacher in Ghana has no computers so he draws Microsoft W... by Hydraulix989 on Saturday March 03, 2018 @12:32AM (#16508069)
Most laptops and tablets run off of battery.
Re:Teacher in Ghana has no computers so he draws Microsoft W... by shakna on Saturday March 03, 2018 @02:02AM (#16508272)
This is actually a good point.

A friend of mine is from Ghana, and wanted to be a programmer. He had to build a battery bank to power his laptop, so he could do his exams without issue.

I helped him design the bank, and another little tool we found helpful.

Because power is such an issue, we used a couple Arduinos to build something reminiscent of the TRS-80, 200 [0]. Instead of BASIC though, we inbuilt a C-repl, based around Cling [1], though much less featured. It ran off 4 AA batteries, and lasted about six hours between charges, which though kinda crap, was enough that his power bank was always ready to recharge it, and he could keep going. It was all his idea, I just served as the technical expert.

I believe he's currently building and selling a few of these out of his house since he went back to Ghana, to help people get a hang of computing.

[0] http://oldcomputers.net/trs200.html

[1] https://root.cern.ch/cling

Re:Teacher in Ghana has no computers so he draws Microsoft W... by Hydraulix989 on Saturday March 03, 2018 @03:54AM (#16508506)
So you also built a low power computer much like the kits in the 80s? That's really cool!

Why use C as a starting language?

Re:Teacher in Ghana has no computers so he draws Microsoft W... by shakna on Saturday March 03, 2018 @04:40AM (#16508594)
Because his exam was in C, basically.

He was doing remote study with an Australian course, which required it. For the Python parts he still had to use his normal laptop, because MicroPython wasn't around then, (and I took a look at porting CPython to an AVR and immediately gave up), and he hated it.

Constant power glitches caused the laptop to misbehave.

His BW-1 (Borkwei-1), and it's tiny portable power, meant he got a lot more done.

If I was to redo it today, because it was about 6 years ago now, I'd probably make one with either MicroPython or eLua. Basically hook a keyboard and screen up to a NodeMCU or MicroPython board (maybe an ESP32), because those sort just about everything out nowadays. (MicroPython even comes with a FAT filesystem. Add a board with WiFi, and you have a very decent system.)

He tells me that every house in his village has one of the little laptops we designed now, though he has upgraded it to use an SD card, so more programs, and WiFi for when they hit town. He now calls it the BW-2.

Re:Teacher in Ghana has no computers so he draws Microsoft W... by emondi on Saturday March 03, 2018 @12:23PM (#16510313)
You don't need batteries, you just learn to save your files often. I live in the third world too and can say that even with crappy power supplies computers resist quite well blackouts and brownouts.
Re:Teacher in Ghana has no computers so he draws Microsoft W... by hackerman12345 on Saturday March 03, 2018 @12:48PM (#16510474)
Probably good for linux, but with Windows you have to be careful during update time or you can easily soft-brick your machine with a power outage.
Re:Teacher in Ghana has no computers so he draws Microsoft W... by emondi on Saturday March 03, 2018 @02:02PM (#16510895)
People just don't update windows.

That made me remember having to update the BIOS firmware and doing it at 3AM and on a night without wind when there was almost no chance of power going out.

[dead]
Re:Teacher in Ghana has no computers so he draws Microsoft W... by wutbrodo on Saturday March 03, 2018 @01:50AM (#16508245)
I assume that his point was that blackouts and brownouts have limited impact on battery powered devices vs devices plugged directly into the grid, since you can smooth over patchy electricity access by running on battery during blackouts and charging during availability periods. This is why a lot of places with unreliable infra use UPSs with their computers, but if course that means an even higher capital cost to get your system up and running.
Re:Teacher in Ghana has no computers so he draws Microsoft W... by candiodari on Saturday March 03, 2018 @02:22AM (#16508321)
You'd be surprised

a) how common solar panels are (and how easy it is to partially repair broken solar panels)

b) how simple they are to make if efficiency doesn't matter (optional glas + conductive grid + any black isolator + aluminum foil will result in power delivered between the grid and the aluminum. Paper (even white laser printer paper frankly) will do fine as isolator, also I heard balloon plastic works very well. Of course a transparent conductor works way better than a grid (which is where 80% of the efficiency comes from), but it works at like 5-10% efficiency with a grid) (the optional glass is to keep it clean, you can of course also just clean it regularly)

c) how long batteries last if you only ever use 5% of their capability

Re:Teacher in Ghana has no computers so he draws Microsoft W... by daemoncoder on Saturday March 03, 2018 @03:44AM (#16508481)
Do you have any references for (b)?
Re:Teacher in Ghana has no computers so he draws Microsoft W... by sova on Saturday March 03, 2018 @02:35AM (#16508349)
Sounds like he could be teaching his class how to make solar panels.
Re:Teacher in Ghana has no computers so he draws Microsoft W... by y4mi on Saturday March 03, 2018 @02:42AM (#16508367)
> c) how long batteries last if you only ever use 5% of their capability

not very long if they're alkaline. And its doubtful anything but their phones got li-on batteries in ghana, the markup probably isn't worth it. And there probably are hardly any phones. so mostly no li-on batteries anywhere.

but i've never been there, just economically speaking.

Re:Teacher in Ghana has no computers so he draws Microsoft W... by Symbiote on Saturday March 03, 2018 @04:16AM (#16508543)
I haven't been to Ghana, but I have been to Senegal, which is supposedly poorer.

Maybe a third of the people had a smartphone, most people had a basic phone. The smartphones were $100 Chinese Android things.

I felt perfectly safe wandering round with my 3 year old smartphone out, since I'd clearly taken less care of it than the average Senegalese would have.