Arduino+Nrf24l01+l293d motor d. Shield

Thread Starter

Karavela

Joined Jul 6, 2022
13
I'm building an rc car with Arduino. I'm using the L293d motor driver shield. I want to connect nrf24l01 to this, but pins 11, 12, 13 are connected to the İC chips on the motor drive. does it work if I connect the module in parallel on the shield, or is there another way to use them together?
 

Jerry-Hat-Trick

Joined Aug 31, 2022
450
The NRF24101 talks to the Arduino UNO with SPI so it needs to be connected to pins 11, 12 and 13 but you can use any of the other I/O pins for the H bridge motor drive. Maybe you are looking at an example where they have used pins 11 to 13 and the pins will be assigned at the beginning of the example code. If you use different pins simply change the assigned pins in the code
 

Thread Starter

Karavela

Joined Jul 6, 2022
13
The NRF24101 talks to the Arduino UNO with SPI so it needs to be connected to pins 11, 12 and 13 but you can use any of the other I/O pins for the H bridge motor drive. Maybe you are looking at an example where they have used pins 11 to 13 and the pins will be assigned at the beginning of the example code. If you use different pins simply change the assigned pins in the code
i am using this driver shield. I think it was a failed pcb, the designers did not release the spi pins. Only rx tx, digital 2 and 13, analog pins are used. 11 and 12. the pins are connected to the shift register. i was going to cut out these pins on the shield and connect them to the analog inputs, but I need to edit this from the afmotor library, I don't know how to do it, I'm a beginner.
View attachment IMG20230701151836-min.jpg
IMG_20230701_151804-min.jpg
 

Jerry-Hat-Trick

Joined Aug 31, 2022
450
Ah, that motor drive board packs in quite a number of options - I'd hesitate to chop it about. May I ask what you are planning to drive with it? For example, if you are just driving one motor I'd use the L292D IC directly on a small piece of strip board if you are happy to do a bit of soldering?
 

Thread Starter

Karavela

Joined Jul 6, 2022
13
Ah, that motor drive board packs in quite a number of options - I'd hesitate to chop it about. May I ask what you are planning to drive with it? For example, if you are just driving one motor I'd use the L292D IC directly on a small piece of strip board if you are happy to do a bit of soldering?
I understand. i will do a 4wd car. But without servos. I don't need to control them all separately. this l293d can drive 4 motors. is it okay if I take this out of place and connect two motors to one out pin?
 

Thread Starter

Karavela

Joined Jul 6, 2022
13
I understand. i will do a 4wd car. But without servos. I don't need to control them all separately. this l293d can drive 4 motors. is it okay if I take this out of place and connect two motors to one out pin?
so if I connect two dc motors to the output pins of motor 1 and motor 2, the problem won't arise, right?images.png
 

Thread Starter

Karavela

Joined Jul 6, 2022
13
I can't speak English properly. I'm getting help with the translation from Google.i'm sorry if I said the wrong thing and if I say it in the future.
 

BobTPH

Joined Jun 5, 2013
8,107
1. Putting two motors on the same output does not mean they will run at the same speed.

2. I thought your problem was with sharing the SPI pins out of the microcontroller, why would changing the motor connections solve that problem? It almost sounds like you are confusing the pin numbers on two different chips.
 

Jerry-Hat-Trick

Joined Aug 31, 2022
450
That should work but bear in mind the maximum output current of 600mA. You might consider the SN754410 Quadruple Half-H Driver which can drive up to 1.0A or use two ICs which could be driven in parallel. As mentioned by BobTPH you are unlikely to get the same speed from the motors connected in parallel so I'd suggest connecting them front with back or yor car will crab and/or turn!
 
Top