Update WiFi Version
@@ -13,12 +13,13 @@ Microcontroller code: To capture UV light and send information over to the serve
|
||||
Lua Server: mGBA's script that runs a server and converts UV signal to in-game sun level
|
||||
|
||||
## You'll need
|
||||
- [X] 1 microcontroller of your choice
|
||||
- [X] 3 jumper wire
|
||||
- [X] 1 UV light sensor
|
||||
- [X] 1 microcontroller of your choice.
|
||||
- [X] Jumper wires..
|
||||
- [X] 1 UV light sensor.
|
||||
- [X] 1 USB cable between the computer and the microcontroller to flash the software.
|
||||
- [X] Arduino IDE.
|
||||
- [X] mGBA
|
||||
- [X] ROM dump of Boktai
|
||||
- [X] mGBA.
|
||||
- [X] ROM dump of Boktai.
|
||||
|
||||
Don't know which microcontroller to get? I'd recommend an esp32.
|
||||
|
||||
@@ -34,25 +35,25 @@ The total price for all these together shouldn't go over 5$.
|
||||
|
||||
# Step 2: Microcontroller
|
||||
|
||||
1. Have the microcontroller, jumper wires and UV sensor at hand
|
||||
1. Have the microcontroller, jumper wires and UV sensor at hand.
|
||||
2. Connect them with jumper wires, GND to GND, VCC to power supply, and SIG to your GPIO with analog read of choice.
|
||||
3. Connect it to your PC via a USB cable.
|
||||
4. Open Arduino IDE.
|
||||
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.
|
||||
8. Edit SSID to your WiFi's name
|
||||
9. Edit PASS to you WiFi's password
|
||||
10. Edit HOST to your computer's local IP
|
||||
8. Edit SSID to your WiFi's name.
|
||||
9. Edit PASS to you WiFi's password.
|
||||
10. Edit HOST to your computer's local IP.
|
||||
11. Flash the code to the microcontroller.
|
||||
|
||||
# Step 3: Lua server
|
||||
|
||||
1. Open mGBA
|
||||
2. Start emulating the patched rom.
|
||||
3. Under "tools" go to "scripting..."
|
||||
4. File and load script
|
||||
5. Select the lua script
|
||||
3. Under "tools" go to "scripting...".
|
||||
4. File and load script.
|
||||
5. Select the lua script.
|
||||
|
||||
# Step 4: Enjoy the game
|
||||
Reboot the microcontroller in case it didn't connect, but reconnection should be handled.
|
||||
|
||||
Reference in New Issue
Block a user