|
| 1 | +# Mini NES Troubleshooting Guide |
| 2 | + |
| 3 | +Things not working the way they should? Check here for some tactics on diagnosing your problem. |
| 4 | + |
| 5 | +## Power Buttons |
| 6 | + |
| 7 | +### Software |
| 8 | + |
| 9 | +- Program: `nes_buttons` daemon (should be running on system startup) |
| 10 | +- How to start: `sudo systemctl start nes_buttons` |
| 11 | +- How to stop: `sudo systemctl stop nes_buttons` |
| 12 | +- How to check the log: `cat /dev/shm/nes_buttons.log` |
| 13 | + |
| 14 | +If the system daemon isn't behaving the way you'd expect, you can run the code manually. |
| 15 | + |
| 16 | +1. `sudo systemctl stop nes_buttons` |
| 17 | +2. Change your directory to the `buttons` subdirectory of the source. |
| 18 | +3. `python nes_buttons.py` |
| 19 | +4. Logging output should be visible on the command line. (If you see a "RuntimeWarning" about a channel already in use, that's okay.) |
| 20 | +5. Press the reset button. You should see logging output about restarting. |
| 21 | + |
| 22 | +### Electrical |
| 23 | + |
| 24 | +If your power isn't shuttting down and starting back up correctly, here are a couple things to check: |
| 25 | + |
| 26 | +1. Ensure the power button is unlatched and then plug in the RPi power. |
| 27 | +2. Use a multimeter to test for voltage on RUN pin #1. It should be around 0.5v or less. |
| 28 | +3. Press the power button to latch it. |
| 29 | +4. The LED should turn on, indicating that RUN pin #1 has risen in voltage. |
| 30 | +5. The system should power up as normal. |
| 31 | + |
| 32 | +If your RPi turns off but not back on, it's likely because the RUN pin isn't pulled low enough before rising back to 3.3v. On my RPi 3, a 10k is enough to drop the RUN pin to 0.5v. Check with a multimeter when the device is plugged in, but the power button is not on. If it's too high, then try a lower value resistor. Something between 10k down to 1k should work. When you try out a different resistor, test the voltage, then try the behavior. |
| 33 | + |
| 34 | + |
| 35 | +## NFC Reader |
| 36 | + |
| 37 | +### Software |
| 38 | + |
| 39 | +- Program: `nfc_poll` daemon (should be running on system startup) |
| 40 | +- How to start: `sudo systemctl start nfc_poll` |
| 41 | +- How to stop: `sudo systemctl stop nfc_poll` |
| 42 | +- How to check the log: `cat /dev/shm/nfc_poll.log` |
| 43 | + |
| 44 | +If the system daemon isn't behaving the way you'd expect, you can run the code manually. |
| 45 | + |
| 46 | +1. `sudo systemctl stop nfc_poll` |
| 47 | +2. Change your directory to the `nfc` subdirectory of the source. |
| 48 | +3. `python nfc_poll.py` |
| 49 | +4. Logging output should be visible on the command line. |
| 50 | +5. Try placing a cartridge over the sensor and watch for output. |
| 51 | + |
| 52 | +### Electrical |
| 53 | + |
| 54 | +If your nfc reader isn't working correctly, it should show up in the logs. If you suspect it's electrical, here are some things to check: |
| 55 | + |
| 56 | +1. There are two small DIP switches on the NFC board to select the mode. Ensure they're set correctly for i2c. |
| 57 | +2. Ensure the correct pins are connected to the RPi header and the NFC board. Revisit the wiring diagram for this. |
| 58 | +3. The red LED on the NFC board should be on any time the RPi header is plugged in. |
| 59 | + |
| 60 | + |
| 61 | +## Screen Manager |
| 62 | + |
| 63 | +### Software |
| 64 | + |
| 65 | +- Script: `/var/lib/screen_manager/screen_manager.py` (called by autostart.sh) |
| 66 | +- How to check the log: `cat /dev/shm/screen_manager.log` |
| 67 | + |
| 68 | +This script should be fairly stable and shouldn't have too many problems. If emulationstation is running on startup, then this script is running. |
| 69 | + |
| 70 | +The installation for this script modifies `/opt/retropie/configs/all/autostart.sh`. It comments out emulationstation and adds `python screen_manager.py` instead. If this is causing problems, you can edit this file and restore default operation there. |
| 71 | + |
| 72 | +You can run this script manually just like the others, but you'll want to disable it in `autostart.sh` before you do. |
| 73 | + |
| 74 | +To test: |
| 75 | + |
| 76 | +1. Edit the config file at `cat /dev/shm/screen_manager.cfg` in accordance with [the screen readme](https://github.com/coderkevin/mini-nes/blob/master/screen/README.md) |
| 77 | +2. Try a `dashboard` action. |
| 78 | +3. Try a `rom` action. |
| 79 | +4. Try deleting the file to ensure the default dashboard action runs. |
| 80 | + |
| 81 | + |
| 82 | + |
0 commit comments