Hi! I'm working on a project to connect a raspberry pi to an Arduino and that Arduino will connect to multiple sensors.... My question is how would I go about connecting all these things? Don't I have to be aware of short circuiting my project? Resistance? Voltage? Is there a learning resource or virtual Arduino or raspberry pi i can use to connect these things and see if they work?
@KIADb2 This is a question, it is not a beginners tutorial, so it was in the wrong place.
Therefore I have moved your post here. Please be more careful where you post in future.
That is a good question. You have two basically two separate problems. 1. Having the Arduino read several sensors. 2. Having the Arduino communicate to the Pi the results. My suggestion is to get #1 completely working and able to print the results on the monitor. Then connect the two of them together. Are they going to be adjacent to each other or will there be some distance, this will help determine the interface.
#0 Start with a real schematic, not a frizzy picture, this will be difficult in the beginning but will be a tremendous help to you as you progress. A very good schematic capture program is KiCad, I have been using it for a while and it was not a one evening learning process. I just uploaded version 6 last night and it is realy great. Start with that if you can. There are many others available if you want, many limited trial versions.
#1 will get you through most of the wiring and worries about short circuits. Just be careful and double check your connections. Lose connections and bad solder joints will give you lots of problems so they need to be correct at the start. I would suggest you get a multimeter, not very expensive and a logic analyzer, they can be gotten for less then $10.00 US online.
#2. This you cannot be determined until you know the physical locations etc of the hardware etc. Please note I2C and I2C are NOT designed for communication to other modules over long wires (greater than ~ 12").
Be sure not to connect the 3.3V RPi I/O pins to a 5V Arduino (or 5V anything else) without using logic level shifters. Best to stick entirely with 3.3V parts and avoid the problem.