Forum >DFRobot USB Host Shield with DFRobotShop Rover - Conflict on pin 8
DFRobot USB Host Shield with DFRobotShop Rover - Conflict on pin 8

I've got DFRobot USB Host Shield with DFRobotShop Rover. And i try to make it work with PS3 dualshock controller.
In that Rover pins 5-8 are used to control the motors.
If i try DFRobotShop Rover alone without any shield attached it works fine: i can control it via serial (W,A,S,D sample sketch). And it doesn't matter whether i assign "pinMode(i, OUTPUT);" or not - it function the same way in both cases.
Then i plug DFRobot USB Host Shield with bluetooth dongle in it and use the latest USB Host Library ( https://github.com/felis/USB_Host_Shield_2.0 ).
BT works fine: all samples function properly, i can read all buttons, values.
If i then try to control the motors everything works fine until i try "digitalWrite(8,HIGH);". There can be 2 variants:
1. If there were "pinMode(8, OUTPUT);" in setup() then after "digitalWrite(8,HIGH);" USB shield hangs :( If i then send any signal to serial - USB restarts (reinits) and works normally again till "digitalWrite(8,HIGH);".
2. If there were no "pinMode(8, OUTPUT);" in setup() then there is always LOW at pin 8 regardless "digitalWrite(8,HIGH);" or "digitalWrite(8,LOW);": if i say "digitalWrite(8,HIGH);" it acts as if i said "digitalWrite(8,LOW);". USB Shield doesn't hang and everything else seems to work fine except that Motor B now has only one direction :( - pin 8 controls the direction.
I dont understand what to do... Rover uses 5-8 pins for motors, USB shield is said to use 9-10 pins. But it seems that there is some conflict on pin 8.
Please, any help!
In that Rover pins 5-8 are used to control the motors.
If i try DFRobotShop Rover alone without any shield attached it works fine: i can control it via serial (W,A,S,D sample sketch). And it doesn't matter whether i assign "pinMode(i, OUTPUT);" or not - it function the same way in both cases.
Then i plug DFRobot USB Host Shield with bluetooth dongle in it and use the latest USB Host Library ( https://github.com/felis/USB_Host_Shield_2.0 ).
BT works fine: all samples function properly, i can read all buttons, values.
If i then try to control the motors everything works fine until i try "digitalWrite(8,HIGH);". There can be 2 variants:
1. If there were "pinMode(8, OUTPUT);" in setup() then after "digitalWrite(8,HIGH);" USB shield hangs :( If i then send any signal to serial - USB restarts (reinits) and works normally again till "digitalWrite(8,HIGH);".
2. If there were no "pinMode(8, OUTPUT);" in setup() then there is always LOW at pin 8 regardless "digitalWrite(8,HIGH);" or "digitalWrite(8,LOW);": if i say "digitalWrite(8,HIGH);" it acts as if i said "digitalWrite(8,LOW);". USB Shield doesn't hang and everything else seems to work fine except that Motor B now has only one direction :( - pin 8 controls the direction.
I dont understand what to do... Rover uses 5-8 pins for motors, USB shield is said to use 9-10 pins. But it seems that there is some conflict on pin 8.
Please, any help!
2012-06-18 21:46:26 ;)
Hi,
Thanks for helping us to find the old information logging on the website. And we have fixed it.
The pin usage on the product page is the old information. So now the motor shield is using D4~D7.
On the other hand, the usb host shield is using D9~D13. So it should works with the motor shield. You could try to run the modules one by one. If find the conflict or some problems, please post it.
Lauren
Hi,
Thanks for helping us to find the old information logging on the website. And we have fixed it.
The pin usage on the product page is the old information. So now the motor shield is using D4~D7.
On the other hand, the usb host shield is using D9~D13. So it should works with the motor shield. You could try to run the modules one by one. If find the conflict or some problems, please post it.

2012-06-17 07:06:43 I planning to use motor shield with usb shield (dfrobot).
The motor shield product page say: 5,6,7,8 pin is used
But wiki page: 4,5,6,7
[url=https://www.dfrobot.com/index.php?route=product/product&keyword=DRI0009&category_id=0&description=1&model=1&product_id=69]https://www.dfrobot.com/index.php?route=product/product&keyword=DRI0009&category_id=0&description=1&model=1&product_id=69[/url]
[url=https://www.dfrobot.com/wiki/index.php?title=Arduino_Motor_Shield_(L298N)_(SKU:DRI0009)]https://www.dfrobot.com/wiki/index.php?title=Arduino_Motor_Shield_(L298N)_(SKU:DRI0009)[/url]
synced with this site: [url=http://www.shieldlist.org/dfrobot/2a-motor]http://www.shieldlist.org/dfrobot/2a-motor[/url]
I watched something wrong?
Or this issue have been fixed?
They will be compatible with each other?
And usb host shield information:
The usb host project page say:
"Digital I/O pins 0-7, like already mentioned analog pins are not used by the shield and provided only for convenience."
[url=http://www.circuitsathome.com/usb-host-shield-hardware-manual]http://www.circuitsathome.com/usb-host-shield-hardware-manual[/url]
[url=https://www.dfrobot.com/index.php?route=product/product&product_id=498]https://www.dfrobot.com/index.php?route=product/product&product_id=498[/url]
But missing pin usage from wiki page.
[url=https://www.dfrobot.com/wiki/index.php?title=USB_Host_Shield_for_Arduino_(SKU:DFR0138)]https://www.dfrobot.com/wiki/index.php?title=USB_Host_Shield_for_Arduino_(SKU:DFR0138)[/url]
Thanks for answare!
robb83
The motor shield product page say: 5,6,7,8 pin is used
But wiki page: 4,5,6,7
[url=https://www.dfrobot.com/index.php?route=product/product&keyword=DRI0009&category_id=0&description=1&model=1&product_id=69]https://www.dfrobot.com/index.php?route=product/product&keyword=DRI0009&category_id=0&description=1&model=1&product_id=69[/url]
[url=https://www.dfrobot.com/wiki/index.php?title=Arduino_Motor_Shield_(L298N)_(SKU:DRI0009)]https://www.dfrobot.com/wiki/index.php?title=Arduino_Motor_Shield_(L298N)_(SKU:DRI0009)[/url]
synced with this site: [url=http://www.shieldlist.org/dfrobot/2a-motor]http://www.shieldlist.org/dfrobot/2a-motor[/url]
I watched something wrong?
Or this issue have been fixed?
They will be compatible with each other?
And usb host shield information:
The usb host project page say:
"Digital I/O pins 0-7, like already mentioned analog pins are not used by the shield and provided only for convenience."
[url=http://www.circuitsathome.com/usb-host-shield-hardware-manual]http://www.circuitsathome.com/usb-host-shield-hardware-manual[/url]
[url=https://www.dfrobot.com/index.php?route=product/product&product_id=498]https://www.dfrobot.com/index.php?route=product/product&product_id=498[/url]
But missing pin usage from wiki page.
[url=https://www.dfrobot.com/wiki/index.php?title=USB_Host_Shield_for_Arduino_(SKU:DFR0138)]https://www.dfrobot.com/wiki/index.php?title=USB_Host_Shield_for_Arduino_(SKU:DFR0138)[/url]
Thanks for answare!

2012-04-11 02:17:31 Actually, one of the other engineers here also suggested the same... Its a work around. not the most elegant solution, but it will get your project rolling. Since you are working with the USB Host. I found this page, and thought it might be useful to you.
[url=http://android.serverbox.ch/]http://android.serverbox.ch/[/url]
Also this one: [url=http://www.labradoc.com/i/follower/p/android-arduino-accessory]http://www.labradoc.com/i/follower/p/android-arduino-accessory[/url]
Hector
[url=http://android.serverbox.ch/]http://android.serverbox.ch/[/url]
Also this one: [url=http://www.labradoc.com/i/follower/p/android-arduino-accessory]http://www.labradoc.com/i/follower/p/android-arduino-accessory[/url]

2012-04-10 23:57:07 Rover Version 1
Answer from RobotShop: "Try bending that pin outwards so it is not connected when you insert the shield" :)
That works, but i suppose it's not the correct solution.
[url=http://www.robotshop.com/forum/showthread.php?1542-DFRobot-USB-Host-Shield-with-DFRobotShop-Rover-Conflict-on-pin-8&p=6477#post6477]http://www.robotshop.com/forum/showthread.php?1542-DFRobot-USB-Host-Shield-with-DFRobotShop-Rover-Conflict-on-pin-8&p=6477#post6477[/url]
Any suggestions?
diver
Answer from RobotShop: "Try bending that pin outwards so it is not connected when you insert the shield" :)
That works, but i suppose it's not the correct solution.
[url=http://www.robotshop.com/forum/showthread.php?1542-DFRobot-USB-Host-Shield-with-DFRobotShop-Rover-Conflict-on-pin-8&p=6477#post6477]http://www.robotshop.com/forum/showthread.php?1542-DFRobot-USB-Host-Shield-with-DFRobotShop-Rover-Conflict-on-pin-8&p=6477#post6477[/url]
Any suggestions?

2012-04-10 23:18:56 Hi, our USB host shield is using pin 8. which is connected to the GPX pin MAX3421E.
Hector

2012-04-10 18:54:39 Hi,
Could you please tell me which version of the robot shop rover you are using?
Hector
Could you please tell me which version of the robot shop rover you are using?
