Welcome new user! You can search existing questions and answers without registering, but please register to post new questions and receive answers. Note that due to large amounts of spam attempts, your first three posts will be manually moderated, so please be patient.
We have moved to a new forum at http://jevois.usc.edu, please check it out. The forum at jevois.org/qa will not allow new user registrations but is maintained alive for its useful past questions and answers.
Welcome to JeVois Tech Zone, where you can ask questions and receive answers from other members of the community.

Strange Arduino pins in the visually-guided toy robot tutorial

+2 votes

Not sure if this comment should come here...

I am trying to build the visually-guided robot according to the tutorial

http://jevois.org/tutorials/UserRobotCar.html

I noticed that the tutorial uses Arduino pins 20 and 21 to connect to IN1/IN2 of right and left motors on the motor driver.

However pins 20 and 21 are the TX and RX pins on the pro micro arduino board used.

As the TX/RX pins are of course used to receive serial information from the jevois camera, they cannot be used to drive the motors.

I guess that any digital pins can be used instead, but this should preferably be modified in the tutorial.

asked Sep 15, 2020 in Misc Questions by ropito (140 points)

2 Answers

0 votes
Since the pro-micro 32u4 is not a genuine Arduino product but a clone, maybe you are looking at a different model. The one we have has the same pinout as this:

https://learn.sparkfun.com/tutorials/pro-micro--fio-v3-hookup-guide/hardware-overview-pro-micro

so TX/RX are on pins 0,1 marked TX0/RX1 on the PCB, and pins 20,21 are marked A2,A3 on the PCB.

You should connect to pins 20/21 = A2/A3 as noted in the table of our tutorial, as these are the pin numbers used in the code. Or you can use other pins and then modify the code.
answered Sep 16, 2020 by JeVois (46,580 points)
0 votes
I think you need to find another arduino wth tx/rx  with different pins to control your motor.
answered Oct 29, 2020 by Feedinco (190 points)
I think the same, control your motor, it's very important for you !
...