Hi, I’m doing a school project using the robotic
robotshop.com/eu/kit-robotique-3-roues-omnidirectionnelles-compatible-arduino-3.html
I encountered a problem when I do it
power button
Sonar0x11
--------------
/ \
/ \
/ \
M1 / \ M2
/ \
/ \
/ \
/ \
\ /
\ /
\ /
\ /
Sonar0x12 \ / Sonar0x13
\ /
\ /
----------------
M3
*/
unsigned char E1=5; // Motor
unsigned char E2=6;
unsigned char M1=4;
unsigned char M2=7;
unsigned char E3=9;
unsigned char E4=10;
unsigned char M3=8;
unsigned char M4=11;
this is a demo code that offered before, but there’s a lot of problem on that
Firstly , I found that there was a motor that not move at all, then I found that’s because
unsigned char E3=9;
unsigned char M3=8;
it’s because these 2 ports not function
then I find that it’s
unsigned char E4=10;
work, but I met another problem is the port M4 which controls the direction of the motor E4 not work
So all of the 3 motors can rotate
unsigned char E1=5; // Motor
unsigned char E2=6;
unsigned char E4=10;
2 motors can control the direction
unsigned char M1=4;
unsigned char M2=7;
one motor can rotate, but always one direction
I dont know why??
Another qustion is that the address 0x11 , 0x12, 0x13 are for the sensors sonars
How can I get the values???
Can somebody help?
Thanks in advance