Saturday, November 7, 2026
HomeIoTUtilizing a Particular Cartridge to Learn Wikipedia Articles on a Nintendo Sport...

Utilizing a Particular Cartridge to Learn Wikipedia Articles on a Nintendo Sport Boy

[ad_1]

A considerably easy thought

The Nintendo Sport Boy is maybe one of the vital well-known handheld gaming units to ever be produced. Though many contemplate its non-backlit LCD and primary array of buttons to be “primitive”, the simplicity and skill to fit in a tiny sport cartridge allowed customers to take their video games wherever they went. The YouTuber and maker who goes by the title “there oughta be” (Sebastian Staacks) needed to develop upon this precept by producing his personal modified Sport Boy cartridge that would allow Wi-Fi communication on this in any other case offline gadget. Moreover, the knowledge learn from a webserver might then be despatched to the console and displayed on its display screen, resembling a Wikipedia article.

Elements

As its most central part, the cartridge’s ESP8266 module is what permits the Sport Boy to make internet requests and obtain knowledge again. As a bonus, the ESP8266’s quick velocity and low profile was an ideal match for inclusion on a slim sport cartridge. An onboard AT28C256 32KB EEPROM module was added to the design to be able to scale back latency between the Sport Boy’s CPU performing a reminiscence load operation and getting knowledge again. Lastly, a collection of logic gates have been included to test reminiscence addresses, together with some passive elements that present easy energy to all the things else.

How Sport Boy cartridges work

Most electronics hobbyists are most likely acquainted with the SPI communication protocol and its use of two, asynchronous strains which might be used to shuffle knowledge between a pair of units. Ordinarily, that is the protocol that may be most well-liked, however as a result of the Sport Boy needed to retrieve knowledge as quick as attainable for sport loading, it as a substitute relied upon a extra conventional reminiscence bus method. On this method, the cartridge exposes 16 handle pins, 8 knowledge pins, a number of management pins, and a clock pin that’s toggled at 1MHz. The Sport Boy makes use of the decrease 15 bits of the handle bus to handle as much as 32KB of ROM. whereas the higher half is inner. It additionally supplies energy to the elements throughout the cartridge by way of a +5V pin and a GND pin.

A necessity for velocity

Staacks’ preliminary thought was to easily connect a quick, trendy microcontroller to the handle and knowledge pins, look forward to a request, after which spend as much as 200 CPU cycles processing info earlier than returning it to the Sport Boy. Nevertheless, this presents a problem because the ESP8266 would solely have a mere 500 nanoseconds from first detecting the request to have knowledge ready- an unimaginable job. As an alternative, Staacks opted for a hybrid method that may use a 32KB EEPROM chip to retailer program knowledge that wants instant entry whereas the 80MHz ESP8266 could make an online request, parse the response, and retailer it inside reminiscence within the background.

Addressing the ESP8266

However now this presents one other drawback, because the Sport Boy now has to “know” which gadget it wants to speak with to be able to get info. Staacks carried out his personal addressing scheme by combining handle bits A1 via A15, with A15 inverted, in an AND gate whereas having the A0 bit denote if a learn or write operation is being carried out. Moreover, the clock sign coming from the console is handed to a NOR gate that solely passes that clock alongside to the ESP8266 whether it is presently being addressed. Due to this fact, any handle that isn’t 0x7ffe or 0x7fff is routinely despatched to the a lot quicker EEPROM.

Constructing the PCB

With the circuitry found out, Staacks was capable of transfer to the fabrication section of his challenge the place he designed a PCB and soldered all the aforementioned elements to it. He even included just a few take a look at factors close to the highest for programming the ESP8266 and debugging the circuit if something went flawed. The EEPROM chip he selected is detachable, thus making it simple to wipe and re-flash with new code if the necessity arises.

Displaying articles on the Sport Boy

The code for the Sport Boy was written utilizing the Sport Boy Improvement Equipment (gbdk) which permits for customized packages to be written for a wide range of handheld consoles. As a result of it has assist for the stdio library, all of the code needed to do was ship a brief request to the ESP8266, learn within the response, and use the usual print perform to output it on the display screen. You possibly can see the code for each the Sport Boy and ESP8266 right here on Github, in addition to the design information for the PCB and cartridge.

Extending the performance

As seen in Staacks’ video, his Wi-Fi-enabled Sport Boy cartridge is a pleasure to make use of, however he needs to increase what it may possibly do past simply Wikipedia within the close to future too. Particularly, the ESP8266 might act as an online scraper for an entire host of internet sites, thus letting him retrieve Tweets or another sort of social media put up after which show the end in all of its pixelated glory. You possibly can examine this challenge in much more element right here on Staacks’ weblog.

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments