Im making a project thatll use many boards to communicate to many parts. Im doing this because I have like 15 IR break beam sensors and like 8 dc motors to control.
Thankfully I have 3 boards (uno r4 wifi, uno r3, elegoo r3). I have seen that you can control these boards via serial ports, and with them you can use python. I cannot find though what module I can use where it runs the python code, and can send serial signals (even one port would be sufficent with clever port usage).
Also, I would not want to buy another board, since Im already so deep in my budget.
Serial ports and python are independent of each other. Your R3 boards will definitely not run python code, they run machine code; I also don't think that the R4 can run python code (never heard of it but that dos not mean it can't do it).
If you want to use Python as the programming language you should look for boards that support CircuitPython or MicroPython.
its just the amount of ports, each motor needs 2-3 ports, and with 8 seperate motors. And maybe I can fit all IR BB sensors in one row of analog inputs. But overall, I think it would be useful for me to have it afterwards for more projects.
Believing that if you need more I/o pins must mean having to use multiple Arduino is a common beginner misconception.
Using multiple Arduino in a project for a beginner is a recipe for failure. Beginners underestimate the additional difficulty of getting separate code on separate Arduino to communicate and cooperate correctly. You are much more likely to succeed with a single code running on a single Arduino.
To get more pins, there several ways, such as using shift registers, multiplexers and I/o extenders.
If you can describe your project, the forum can suggest suitable solutions.
Well the project is basically three parts.
The first part is a slot machine that uses 5 motors to spin 5 disks. When one disk is stopped, the rest speed up. When all 5 are stopped, it gives a number out based on what face you got.
The second part is a plinko machine. The machine will drop the amount of balls that you got as your number in the first part. At each hole at the bottom, will be a break beam sensor to detect a ball passing through. Another motor is then used to get the balls back to the top.
The third part is the reward system. Based on what you got in the plinko section, It will dispense that amount of candy using an archimedes screw. It will also use another break beam sensor to detect if the correct amount or more was dispensed.
You mentioned only 7 motors so far, I think. 5 for the spinning disks. I guess you need to control the speed of these disks. But do you need to control the direction, or will they always spin in the same direction? The other two, for the plinko ball return and the dispensing screw, don't seem to need either speed or direction control, just on/off, is that correct?
For the beam break sensors, you mentioned one for the dispensing mechanism. The remaining 14 are for the plinko game?
I was more or less estimating. The last motor is if the one dispensing motor cant dispense fast enough without destroying the candy, and I rembered the sensor count wrong, I ordered 15 but Im using only like 12-13.
its true though that I can just wire the two motors directly.
The idea for now, Is that behind each face is a different colored film, and in the middle sits a rgb color detector.
Since I am absolute ass at this stuff atm, I don't even know how to make a diagram (for context I do not have a degree in anything, fully self taught)
I wasnt sure what it was, since my only good look at the thing was in a random Michael reeves video, and I forgot which one. Its very likely Im describing a thing that doesnt exist.
If you mean directly to Arduino pins, absolutely not. You will still need those motor drivers. But if you don't need to control the direction, then a single H-bridge motor driver can control 2 motors. If you don't need speed control for all your motors, then you don't need as many PWM pins, you can use ordinary digital output pins for the others. Uno R3 has only 6 PWM pins. More can be added, but if less than 6 are needed, that will make things simpler.