I need a little help with my Arduino project, I'm not brand new to Arduino however I have a lot to learn about it.
I'm using and Arduino nano, I have a start button and three limit switches as inputs.
I also have eight relays which I am controlling with those inputs and code-based timers.
In a simulator the project works flawlessly, on my breadboard it works flawlessly, but when I install it into the project it falls triggers and works very erratically. Something else I need to add to this, I also have two AC motors that are being controlled with relays which are controlled by this Arduino Nano.
Sounds like a power supply problem. Please post a wiring diagram with all pins, parts and connections clearly labeled (hand drawn is fine). Household AC wiring MUST be well separated from the Arduino.
So none of the relays are driving any load at the moment? What is clamp?
How is the relay board powered?
How long is your switch wiring? Are they running together with power wires?
What is the exact misbehavior?
Please post an accurate, hand drawn wiring diagram with all parts clearly labeled, together with their actual values. Also post a picture of your setup.
We need to see a schematic that fully and correctly represents your hardware, place holders are not sufficient.
We need to see how your relay module is wired.
Pin 1 is the NANO’s TX communications pin, avoid using.
You can use pin A0 (D14) as a digital output.
Unless only one of the leds will ever be lit at the same time, you need one resistor per led.
You don't need the resistors or the connections to 5V for the buttons. Just have them connect the Arduino pins to ground and use INPUT_PULLUP mode. The buttons will read LOW when pressed. Use 2 diagonally opposite pins of each button and leave the other 2 pins disconnected.
I don't see any relays in your schematic.
Do not use pin 1 on your Nano. Pins 0 and 1 are not available for beginners to use on any Arduino based on ATmega328 chip, which are the most common type.
It is really bad. Maze puzzles can be fun, but your schematic should not look like one. A schematic is supposed to look simple and easy to understand. The opposite of a maze puzzle.