via music software called pure data.
One motor is controlled via pwm pin (I'm sending numbers between 0 -255) and the other one is controlled via digital pin (Sending 0 or 1)
one motor is effected the other meaning if I'm changing the pwm it will interact and effect the other motor.
How can I avoid that? (the end project will include 4 motors for digital pins and another 4 motors for pwm pins)
which 3V3 or 3V you recommend? can I use voltage regulator to step the voltage down from 5V to 3V ?
*I have noticed that the interference and cross talking is not happening when using only pwm pins. (Although I tried only two motors. not sure what will happen with 8 )
For eight motors, the power supply should to be able to handle significantly more current than required when all eight of them are running together.
Engineers typically double the maximum for a safety margin. 2X8 = 16, rounding to 20 for additional safety, suggests that the motor power supply should be able to provide at least 20x0.08A = 1.6 Amperes.
same project different issue. I thought is better to open a new topic for that. I am sorry if it is not the case.
Shall I delete the post and paste to here my question from there?
If I'm using both motos with pwm pin (analogwrite) I have no interference between the two. it Just happening when using one motor with digital pin and the other with pwm
Note you are using 3 fwd biased diodes to get your 3V3.
What voltage do you measure on the 3V3 when operating each motor separately?
What voltage do you measure on the 3V3 when operating each more together but with different signals? eg. fault mode.
Sorry but need to see signal flow when troubleshooting.
Yes. I will focus now on the problem using multiple motors and the interfaces between them.
I wire up now 4 motors on breadboard. When I control all of them via analogWrite (pwm) - sending numbers between 0 -255 I have no interference between motors. each one is working individually without an issue.
When I change two motors to be controlled by digital pins and I'm sending for example 500ms ON - 500ms OFF - 500ms ON - 500ms Off etc ; the moment I'm changing the value of one of the pwm motors - moving the number from one value to another it will interference the two digital motors and they will act differently from their sequence.
what it can be?
edit: I have noticed another thing :
The interference between motors is happening only when I'm toggling the digital motors between on and off. When I switch ON the digital motor and leave it ON any change in the pwm motor will not effect it. So the interference is happening only when toggling on and off the digital motor.
I read both threads and this was also my conclusion.
It is OK to have multiple topics on the same project if each is about a distinct subject matter. If you do that, you must be careful to manage the scope of the discussion to prevent the two topics from converging into overlap on the same subject matter, as they have a tendency to do. If discussion starts to stray into the territory of the other topic, then redirect the participants over to the other to continue that discussion.
No, don't do that. But if you think it is better to merge the two existing topics into a single topic I would be happy to do that for you. The choice is yours.