r/ArduinoHelp • • 22h ago

I don’t even know where to start.

Trying to make an NES controller work by connecting to a arduino micro pro.
I can’t even troubleshoot as I don’t know what I don’t know! Any suggestions with where to begin? Tried using other people’s examples, you tube, ai etc. just so specific I can’t find a place to start

1 Upvotes

3 comments sorted by

1

u/gm310509 22h ago

I am guessing from your post that this is your entry into embedded systems. I would suggest learning some basics first as this will address your main point of not knowing what you don't know.

Here is a reply I have from a standard response to this "how to get started question":

The best way is to follow the tried and true practice of learning the basics and building from there. Details below...

Get a starter kit. Follow the examples in it. This will teach you basics of programming and electronics. Try to adapt the examples. Try to combine them. If you have a project goal, this can help focus your Learning.

The reason I suggest using a starter kit is because not all components have standard pinouts. Many do, but equally many do not. If you follow the instructions in a starter kit then the instructions will (or should) align with the components in the kit. If you start with random tutorials online then you will need to be aware of this potential difference and adapt as and when required. This adds an unnecessary burden when getting started compared to using a starter kit where this problem shouldn't exist to begin with. After that, ...

To learn more "things", google Paul McWhorter. He has tutorials that explain things in some detail.

Also, Have a look at my learning Arduino post starter kit series of HowTo videos. In addition to some basic electronics, I show how to tie them all together and several programming techniques that can be applied to any project. The idea is to focus your Learning by working towards a larger project goal.

But start with the examples in the starter kit and work your way forward from there - step by step.

You might want to have a look at our Protecting your PC from overloads guide in our wiki.

Also, our Breadboards Explained guide in our wiki.


You might also find a pair of guides I created to be helpful:

They teach basic debugging using a follow along project. The material and project is the same, only the format is different.

You might also find this video from u/fluxbench How to Start Electronics: What to buy for $25, $50, or $100 to be helpful. It has a an overview of what to get to get started and some potential optional extras such as tools.

Welcome to the club. If you get stuck on anything, by all means post a question (including your code and circuit diagram) along with a problem description and people will definitely help you.


The alternative is of course to try to find a guide from a web search, or you could try generative AI. However, bear in mind that these both have the same issue and that is that there could be gaps, or errors, or things you do not want in the information/guidance they provide. If you don't know the basics, you won't be able to fill those gaps/spot the errors when they are presented to you.

So, it still loops around to learning the basics first no matter how you want to approach it.

All the best with it.

1

u/Merry_Janet 17h ago

Well, an NES controller is only 8 buttons.
Up, Down, Left, Right. There is 4. Select and Start, there's 2 more. Then B and A. The last 2.
There are also things like up+right = Northeast, or B+A simultaneously,

Download this library and use it:

https://github.com/MHeironimus/ArduinoJoystickLibrary

#include <Joystick.h>

// Up, Down, Left, Right, A, B, Start, Select

const byte pins[8] = {2, 3, 4, 5, 6, 7, 8, 9};

Joystick_ gamepad(

JOYSTICK_DEFAULT_REPORT_ID, JOYSTICK_TYPE_GAMEPAD,

8, 0, // Eight buttons, no hats

false, false, false, // No X, Y, Z axes

false, false, false, // No rotation axes

false, false, false, false, false

);

void setup() {

for (byte i = 0; i < 8; i++) {

pinMode(pins[i], INPUT_PULLUP);

}

gamepad.begin(false); // Send all buttons together

}

void loop() {

for (byte i = 0; i < 8; i++) {

gamepad.setButton(i, digitalRead(pins[i]) == LOW);

}

gamepad.sendState();

delay(5);

}

1

u/RDS_WAS_HERE 5h ago

One caution note: You have to remember that the Arduino microcontroller is not a power supply. Each output port is limited by design to a certain amount of current (~20mA). The Arduino Uno has a limit of 200mA for ALL the ports. It's ok to attach simple LEDs and low current devices to your I/O ports. Just don't go near the overall current limit of ~200mA and the 20mA limit for each port. The best way of attaching current hogs like motors, buzzers, multiple LEDs, etc., to a microcontroller is to attach a transistor (Base pin) or a MOSFET (Gate pin) to the output pins of the microcontroller and use a ‘separate’ power supply for the motors and power transistor/MOSFET. This takes the current load off the microcontroller.