Pin mapping in mbot for Port 3 & 4 when using digitalRead() arduno API


#1

Hi, dear mbot elites,

We are using light sensor extension board with 5 CNY70 sensors and developing the arduno code to control the line follower in mbot. The light sensor array connects to both PORT3 and PORT4 in mbot. However, we only see the the pin name A0, A1 and A2, A3 in the PCB in mbot. Thus, our question is what’s the digital pin numbers associated with those pins when developing arduno code via digitalRead() API to get the value of the light sensor array with 5 CNY70 sensors.

What’s document do you suggest us to read ?? Thanks

Tim


#2

Hi timh0114,

Please check the schematic of mCore in this link.
Or you can also check the pins under Arduino installation path:\Arduino\hardware\arduino\avr\variants


#3

Thanks for pointer. It helps.
However, I have one more question. How many digital pins can PORT3+PORT4 support in mbot ? I only see A0, A1, A2, A3. Is it that case ?


#4

I think so. The port 3 and port 4 can be used as double-digital ports.
Though the mCore is different with me Orion, but you still can refer to the type of compatible modules for each RJ25 port on Makeblock mainboard in this link.


#5