A GameBoy printer emulator which provides the received data over a WiFi connection.
This code is based on HerrZatacke’s WiFi GBP Emulator and optimized for LOLIN D1 Mini connected to OLED 0.96 Shield with a I2C cable
In this first step we will setup your computer to communicate with the LOLIN D1 Mini and flash it.
Download the Arduino IDE (Windows/MacOS) from here and follow the basic installation process. It is recommended for Linux Users to use your packet manager to install the IDE.
Start the Arduino IDE and navigate to File -> Preferences
and add the following line to "Additional Boards Manager URLs:"
http://arduino.esp8266.com/stable/package_esp8266com_index.json
Confirm with "OK" and navigate to Tools -> Board -> Board Manager
. In the filter mask search for esp8266
and install the package.
Lastly navigate to Tools -> Board
and select your LOLIN D1 Mini
Go to Tools -> Manage Libraries
and search in the filter mask for ArduinoJSON. Additional installation procedures can be found here
Go to Tools -> Manage Libraries
to search for and install the "Adafruit SSD1306" library.
Download the full code from here as a ZIP file and extract it to your home directory.
In your file browser navigate into the extracted folder and then into the gbprinter-wifi
subfolder. Here create a copy of the config.h.sample.txt
. Rename the new file to config.h
Download the additional data for the GB-Printer-Web interface.
Go to your Start Menu, type powershell
and navigate to the directory you just extracted (e.g. cd YourUsername\Downloads\GBPrinter-WiFi-main\
)
Run the download script with .\update_w.ps1
Open your Terminal and navigate to the files you just extracted (e.g. cd ~/Downloads/GBPrinter-WiFi-main/
)
Type chmod +x update_w.sh
Type ./update_w.sh
Connect your LOLIN D1 Mini via USB to your PC. Navigate to File -> Open ...
navigate to the folder you unzipped in the previous step. Open the gbprinter-wifi.ino
To confirm that the code was downloaded correctly navigate to Sketch -> Verify/Compile
. Ensure at this point that the correct board is selected in Tools -> Board
. If everything works go to Sketch -> Upload
and wait until the upload is finished.
Unplug your LOLIN D1 Mini from your PC and replug it. Open your WiFi Monitor and wait for it to finish scanning for available networks. You should see a wifi network named gameboyprinter
with the password gameboyprinter
.
After you connected to the WiFi open your browser and type in the URL http://gameboyprinter.local
. The Gameboy Printer Web Emulator should load. If it doesn't please try to connect to https://192.168.4.1
instead.
Now that you've got your LOLIN D1 Mini running with the GBPrinter WiFi it's time to connect your Gameboy to it to actually copy your images. There are non-destructive ways (Example) but for easy of access we will have to cut up a link cable. You can either obtain those cheap from AliExpress.
Take your Link Cable and cut it in half. You will find six (6) thin wires inside. Carefully remove the cable shielding for 2cm / 1 inch close to where you cut the cable to expose the six wires. Now take your multimeter and check which wire has continuitiy to which port on the connector and write it down.
We now will connect the wires to LOLIN D1 Mini. Take your exposed connector and look at it from the front with the straight side up.
We are now going to connect the link cable to the LOLIN D1 Mini. Solder the following cables to the pins on the LOLIN D1 Mini:
_________
| 6 4 2 |
\_5_3_1_/
| Link Cable | LOLIN D1 Mini |
|------------|---------------|
| Pin 1 | SS (GPIO 15) |
| Pin 2 | MOSI (GPIO 13)|
| Pin 3 | MISO (GPIO 12)|
| Pin 5 | SCK (GPIO 14) |
| Pin 6 | GND |
Plug in your Link Cable to your Gameboy and start the LOLIN D1 Mini though connecting it to a USB power source. Start your Gameboy with the Gameboy Camera inserted. Navigate to a picture you want to print and select Print
. You should see the Transferring
screen and a short flashing of Printing
-- You are done! Your GBPrinter works successfully! Tip: If you want to transfer all of your pictures right away press "Select" on your Gameboy in the main screen and use the Print Menu
Disconnect the link cable and power cycle the LOLIN D1 Mini; connect to the wireless access point and open the website as explained in Step 1.6. Change to the "Import" tab, click on "check printer" and you should should be able to import your pictures. From there on you can download pictures through the gallery, change the color palette (re-import afterwards).
Pat yourself on the back and have fun! Also make sure to join the Gameboy Camera Club on Discord and share your pictures or participate in the Bi-Weekly challenges.
Connect the OLED Screen to LOLIN D1 Mini with I2C cable.