Hi,
in my project i need to connect two arduinos together as i have a lot of components. On Arduino 1 i am connecting 3 servos to it and on Arduino 2 i am connecting all the other components including Buzzer, RGB, LED and LDR.
How will i connect it so the Arduinos can communicate with each other so when the LED and LDR detects a change in light in will send a signal to Arduino 1 to start the servos.
Both Arduinos will be connected to one laptop on different USB ports and on the same code with different windows to upload them.
Thanks
Which pins have been used on the Arduino with the multiple components attached ?
If you can use a PCA9685 on that board you could control up to 8 servos using the I2C interface thus removing the need for a second board
In that case it is definitely better will be to use a board with more pins, such as Arduino Mega.
Im new to arduino, but will there be enough power to power all those components from one arduino?
There will hardly be enough power on one Arduino to power 3 servos. Get an external power supply for them.
For a start, the servos must not be powered from the Arduino whether or not you use 2 boards
They should be powered directly from an external power supply
Arduino has nothing to do with power. The arduino is not a power supply, in any case you need to use external power for components.
Could someone share an example of an external power supply please? Like batteries?
In this case, your desire to use two Arduinos is nothing more than a misunderstanding. Interfacing two boards in a project is a much more complex task than working with servos and sensors. I wouldn't recommend this for a beginner.
Does the project need to be used independently of mains power ?
Do you already have the two Unos?
Do you have the time and money to buy a Mega?
So i could use one Arduino with a PCA9685 connected to an external power source?
More than likely
Please list which pins are being used on the board with multiple external components with details of what they are being used for
Better still, post a schematic showing the same detail. A 'photo of a hand drawn circuit is good enough