Update Serial Version
@@ -7,20 +7,20 @@
|
|||||||
# Parts
|
# Parts
|
||||||
This project is divided in 4 parts.
|
This project is divided in 4 parts.
|
||||||
|
|
||||||
Patching your Boktai ROM: As mGBA has already an in-emualtor uv sensor, we'll need the patch to disable that and by-pass a "sensor broken" screen.
|
Patching your Boktai ROM: As mGBA has already an in-emualtor UV sensor, we'll need the patch to disable that and by-pass a "sensor broken" screen.
|
||||||
Microcontroller code: Where calibration must be made.
|
Microcontroller code: To capture UV light and send information over to the server.
|
||||||
Python Client: The user will have to run a python3 client, for windows users there is a .exe available.
|
Python Client: The user will have to run a python3 client, for windows users there is a .exe available.
|
||||||
Lua Server: mGBA's script
|
Lua Server: mGBA's script that runs a server and converts UV signal to in-game sun level.
|
||||||
|
|
||||||
## You'll need
|
## You'll need
|
||||||
- [X] 1 microcontroller of your choice
|
- [X] 1 microcontroller of your choice.
|
||||||
- [X] 3 jumper wire
|
- [X] Jumper wires.
|
||||||
- [X] 1 UV light sensor
|
- [X] 1 UV light sensor.
|
||||||
- [X] 1 USB cable between the computer and the microcontroller
|
- [X] 1 USB cable between the computer and the microcontroller to flash the software.
|
||||||
- [X] Arduino IDE.
|
- [X] Arduino IDE.
|
||||||
- [X] mGBA
|
- [X] mGBA.
|
||||||
- [X] python3 if you're on linux, if you're on windows I provide a .exe for you.
|
- [X] python3 if you're on linux, if you're on windows I provide a .exe for you.
|
||||||
- [X] ROM dump of Boktai
|
- [X] ROM dump of Boktai.
|
||||||
|
|
||||||
Don't know which microcontroller to get? I'd recommend either an arduino nano or an esp32.
|
Don't know which microcontroller to get? I'd recommend either an arduino nano or an esp32.
|
||||||
|
|
||||||
@@ -36,12 +36,12 @@ The total price for all these together shouldn't go over 5$.
|
|||||||
|
|
||||||
# Step 2: Microcontroller
|
# Step 2: Microcontroller
|
||||||
|
|
||||||
1. With all of them in hand, download the microcontroller source code for this version.
|
1. Have the microcontroller, jumper wires and UV sensor at hand.
|
||||||
2. You can find information on your GPIOs by looking up "<Microcontroller name> pinout" (if you have a Arduino Nano, you would look up "Arduino nano
|
2. Connect them with jumper wires, GND to GND, VCC to power supply, and SIG to your GPIO with analog read of choice.
|
||||||
3. Once you have connected the UV sensor to the microcontroller, connect it to your PC via a USB cable.
|
3. Connect it to your PC via a USB cable.
|
||||||
4. Open Arduino IDE.
|
4. Open Arduino IDE.
|
||||||
5. Open the Source code.
|
5. Open the Source code.
|
||||||
6. Under "Tools" make sure your Board and Serial port are correct, if you your board is not there you'll need to download them on "Board Manager"
|
6. Under "Tools" make sure your Board and Serial port are correct, if you your board is not there you'll need to download them on "Board Manager".
|
||||||
7. Check for your pinout and change the value of UV_SIGNAL_READ to that GPIO number.
|
7. Check for your pinout and change the value of UV_SIGNAL_READ to that GPIO number.
|
||||||
8. Flash the code to the microcontroller.
|
8. Flash the code to the microcontroller.
|
||||||
|
|
||||||
@@ -49,23 +49,23 @@ The total price for all these together shouldn't go over 5$.
|
|||||||
|
|
||||||
1. Open mGBA
|
1. Open mGBA
|
||||||
2. Start emulating the patched rom.
|
2. Start emulating the patched rom.
|
||||||
3. Under "tools" go to "scripting..."
|
3. Under "tools" go to "scripting...".
|
||||||
4. File and load script
|
4. File and load script.
|
||||||
5. Select the lua script
|
5. Select the lua script.
|
||||||
|
|
||||||
# Step 4: Python client
|
# Step 4: Python client
|
||||||
|
|
||||||
This one might differ a bit if you're on linux or windows
|
This one might differ a bit if you're on linux or windows
|
||||||
|
|
||||||
Windows:
|
Windows:
|
||||||
1. Download the .exe
|
1. Download the .exe.
|
||||||
2. double click it
|
2. double click it.
|
||||||
3. Select the COM port the microcontroller is connected to
|
3. Select the COM port the microcontroller is connected to.
|
||||||
|
|
||||||
Linux:
|
Linux:
|
||||||
1. Install requirements on requirements.txt
|
1. Install requirements on requirements.txt.
|
||||||
2. run `python3 main.py`
|
2. run `python3 main.py`.
|
||||||
3. select the TTY port the microcontroller is connected to
|
3. select the TTY port the microcontroller is connected to.
|
||||||
|
|
||||||
# Step 5: Enjoy the game
|
# Step 5: Enjoy the game
|
||||||
:)
|
:)
|
||||||
Reference in New Issue
Block a user