This is my first time posting, and I didn't find a similar question, so I will ask here.
Ignoring the Arduino board on the left, basically, my project is about controlling two motors that have an encoder and an ESC to control the fan using Bluetooth. However, multiple components (e.g. Hc05 Bluetooth and L298n motor driver) need to be connected to the Arduino board's VCC and GND pin, and so I just connect them all together, as shown above. Will a connection like this cause any trouble except for looking messy? Thanks in advance.
That is fine, but make sure to connect the GND of the ESC to the GND of the Arduino. This is to make sure that they have a common ground. I am not sure, but I am pretty sure the L298M does it automatically.
IMPORTANT MESSAGE: don't connect the VCC of the ESC with the Arduino, only the GND.
EDIT: I know it says that you can only use 3.3V on the HC-05, but just leave the resistors. The HC-05 has an internal voltage divider. So you can supply the 5V directly to it.
Okay, thank you very much!
Do you know the site wokwi? It is a site to fully built and test your Arduino projects. It works much better than stuff like Tinkercad.
The main thing to look out for when connecting multiple devices to the power pins of the Arduino is that you do not draw too much current
I don't know about anyone else but I can't see from that image if anything is connected correctly and I know cirkit designer often shows it wrong.
If you use a big enough monitor, it should work.
Do the manual/datasheet for the ESC say anything about isolation/optocoupler etc.?
They normally do if that is required. And sometimes, it is required even though it is not mentioned.
After dealing with such problems for a few years now I have landed on Chipanalog CA-IS3642LW ($3.5) for RC servo signal isolation.
Here is a schematic snippet:
Also contains the SW input in case you deal with VESC and would like to disable/enable the speed controller from a micro controller. Note the pulldown (disable by default).
But basically any digital isolator or optocoupler would do for RC servo signal.