Looks like they used an existing emulator and this was mostly a hardware and memory integrity experiment. I’d love to see this approached from the perspective of “how clever can we get with the emulator itself to save power?” When I wrote mine, something I ran into was realizing that often the CPU and PPU are just doing the same thing over and over and over. If only I could cache all that work. For example, you don’t…
Battery-free Game Boy (2020)
61–70 of 170 posts
Re: Battery-free Game Boy (2020)
#62Earlier quoted context omitted.
That was a pleasure to read through. Made me think of literate code.
Am I the only one that thinks this is a normal level of comments? Ok maybe slightly more than I would normally do... But if I was reading it my thought would be "thank god they wrote comments" not "they commented the heck out of this!"
Re: Battery-free Game Boy (2020)
#63When I was a kid I had a toy electronics kit and one of the circuits was an AM radio that worked without batteries. A normal radio station signal is strong enough to drive a pair of earbuds without any additional power. Since then I've always wondered if you could harvest that same radio energy to power other things without batteries, maybe even a Game Boy. There's electromagnetic radiation in the air all around us.…
I heard a tale in the days of yore where a radio station was not getting the range promised by the laws of physics. When they did some investigating they found an engineer that lived next door to the tower was syphoning power from the radio waves as part of a home experiment. I'm not qualified to determine the plausibility of this, but I hope it's true.
Like unless this engineer built the Russian woodpecker array
Re: Battery-free Game Boy (2020)
#64When I was a kid I had a toy electronics kit and one of the circuits was an AM radio that worked without batteries. A normal radio station signal is strong enough to drive a pair of earbuds without any additional power. Since then I've always wondered if you could harvest that same radio energy to power other things without batteries, maybe even a Game Boy. There's electromagnetic radiation in the air all around us.…
The page is ... not short, more people have been thinking about this!
[1]: https://en.wikipedia.org/wiki/Energy_harvesting
[2]: https://en.wikipedia.org/wiki/Energy_harvesting#Ambient-radi...
Re: Battery-free Game Boy (2020)
#65Earlier quoted context omitted.
That was a pleasure to read through. Made me think of literate code.
Am I the only one that thinks this is a normal level of comments? Ok maybe slightly more than I would normally do... But if I was reading it my thought would be "thank god they wrote comments" not "they commented the heck out of this!"
Re: Battery-free Game Boy (2020)
#66When I was a kid I had a toy electronics kit and one of the circuits was an AM radio that worked without batteries. A normal radio station signal is strong enough to drive a pair of earbuds without any additional power. Since then I've always wondered if you could harvest that same radio energy to power other things without batteries, maybe even a Game Boy. There's electromagnetic radiation in the air all around us.…
We've since enveloped the planet with SpaceX satellites. Last I saw a gif, it was terrifying
Re: Battery-free Game Boy (2020)
#67Oddly enough, the "energy harvesting switches" they used in this are commercial products! https://www.digikey.com/en/products/detail/zf-electronics/AF... https://switches-sensors.zf.com/us/product/energy-harvesting...
Re: Battery-free Game Boy (2020)
#68This is definitely achievable! When I was a young, we'd take long road trips and my Gameboy (original) would run out of battery. I'd use a small solar panel (in place of one of the batteries) from a science kit to keep going, propped up against the back window. The wires and panel were held in place with chewing gum (yes, kids can be gross). I did have the "frequent power failures". Props to the team on fixing this :…
https://rembo.me/unsorted/gameboy-mods-january/#lg=1&slide=1...
It's why my forearm muscles are so toned ;-)
Re: Battery-free Game Boy (2020)
#69When I was a kid I had a toy electronics kit and one of the circuits was an AM radio that worked without batteries. A normal radio station signal is strong enough to drive a pair of earbuds without any additional power. Since then I've always wondered if you could harvest that same radio energy to power other things without batteries, maybe even a Game Boy. There's electromagnetic radiation in the air all around us.…
I think Nicola Tesla experimented with sending energy wireless, at longer distances, over the air. I don't remember what his results were, but man, that guy was so ahead of its time.
Re: Battery-free Game Boy (2020)
#70Earlier quoted context omitted.
That was a pleasure to read through. Made me think of literate code.
Am I the only one that thinks this is a normal level of comments? Ok maybe slightly more than I would normally do... But if I was reading it my thought would be "thank god they wrote comments" not "they commented the heck out of this!"
Here's a sample from the file:
// For sprites, color 0 is transparency so don't draw anything.
if color == 0 {
continue;
}
This comment is probably not necessary: it would be equally clear if it were written as something like the following: if color == SPRITE_COLOR_TRANSPARENT {
continue;
}
A few lines up is another comment: // Is this specific pixel not on the screen? We already check that x_pos is not off
// the left side earlier, so only need to check that it's not off the right side.
if x_pos + p >= 160 {
continue;
}
If the code were written with a constant, then it would only need to clarify why we don't check the left side here (the only non-obvious thing about the code), so: // Note: bounds testing on the left side is handled earlier
if x_pos + p >= SCREEN_WIDTH {
continue;
}
One last example: // We want to iterate through 160 pixels to draw one scanline.
for col in 0..160u8 {
No comment, similar level of readability: for col in ppu.iterscanlines() {