Hello, I am working on a robot using 6 12v 2.7a cim motors, 1 servo, 2 nrf24 radio chips, 2 joysticks and 2 buttons. This is my first Arduino project, so I'm probably jumping in way over my head, but I need advice on how to wire this all up. One of the nrf chips, the 6 motors and the one servo are all on the robot while the arduino and the other nrf chip will be handheld as a remote controller. Can someone please work with me on just the wiring, I'll greatly appreciate it! The motor controller I am using is the Cryton 10a 7v-30v dual channel motor controller.
Thanks!
Just don't wire all up and start coding.
Divide the project into small parts that are wired up and coded, one by one. Else fault finding, debugging will be like searching for a needle in the hay stack.
Have a look at this Simple nRF24L01+ Tutorial.
Wireless problems can be very difficult to debug so get the wireless part working on its own before you start adding any other features.
The examples are as simple as I could make them and they have worked for other Forum members. If you get stuck it will be easier to help with code that I am familiar with. Start by getting the first example to work
There is also a connection test program to check that the Arduino can talk to the nRF24 it is connected to. If the first example does not work be sure to try the connection test for both of your Arduinos. Nothing will work if the connection test fails.
A common problem with nRF24 modules is insufficient 3.3v current from the Arduino 3.3v pin. This seems to be a particular problem with the nano. The high-power nRF24s (with the external antenna) will definitely need an external power supply. At least for testing try powering the nRF24 with a pair of AA alkaline cells (3v) with the battery GND connected to the Arduino GND.
If you are using the high-power nRF24s (with the external antenna) it may help to have a distance of about 3 metres between the two nRF24s so that the signal does not overwhelm the receiver. However someone on the Forum has had them working without that separation - I don't have any personal experience with them. If you are new to nRF24s it may be better to start with a pair of low power modules with the pcb antenna.
...R
Can you stack those shields?
You will have to use soft SPI for the rf24 as the hardware SPI pins will be used by the driver shields.
+1 for Robin2's tutorial. Helped me a lot and is somewhat simpler than many of the other rf24 tutorials.
groundFungus:
You will have to use soft SPI for the rf24 as the hardware SPI pins will be used by the driver shields.
Why do you think that is the case?
When I searched for "Cryton 10a 7v-30v dual channel motor controller." I got pages that showed a shield for an Uno. The shield has certain pins that can be used as PWM and dir pins. The hardware SPI pins are among the pins used for the motors. 6 motors would use all of those pins. That lead to that statement.
I have since found this version which can use any pins (PWM only for PWM, of course). So that statement does not apply to this version.
What the OP has is unclear. That is why the forum guidelines recommend that links be provided for all hardware. Did I guess wrong?
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.