Go Down

Topic: Arduino USB host shield pin 3 not working (Read 1 time) previous topic - next topic

GreatStoneDragon


Hello everyone,

I recently bought the arduino usb host shield. I wired up some circuits to test out what i can do with it using a 360 controller. What i found out after playing around with it and some research was that i cant use I/O pins 10- 13. The problem is that PWM pin 3 is not responding to the arduino programs i write using it.

I dont know what the problem is....

So i decided to reconnect every pin with jumper wires until i find out when pin 3 would turn off.  I wired up an LED with a HIGH written to pin 3 and started connecting everything from the shield to the arduino. Pin 3 only turned off when i connected the reset ISCP pin from the shield to the arduino.

That seems to be what the problem is, I don't know what to do now....


PaulS

Quote
I recently bought the arduino usb host shield.

Which one?

Quote
What i found out after playing around with it and some research was that i cant use I/O pins 10- 13.

Because the USB Host shield is an SPI device.

Quote
The problem is that PWM pin 3 is not responding to the arduino programs i write using it.

Perhaps because the timer that is involved has been hijacked for another purpose.

Quote
I don't know what to do now

Perhaps you could give some consideration to posting your code.

GreatStoneDragon

Hi,
The shield is this one: http://www.amazon.com/gp/aw/d/B00CPYSX1M?cache=1390772369&pi=AC_SX110_SY165_QL70#ref=mp_s_a_1_14

The code I used:

Const int LED = 3;

Void setup(){
pinMode(LED, OUTPUT);
}

Void loop(){
digitalWrite(LED, HIGH);
}

PaulS

Quote
The code I used:

No, it isn't. That code won't even compile.

For all the details provided about that shield, I hope you got your money's worth. That site is useless. I can only hope that their products aren't.

GreatStoneDragon

#4
Jan 27, 2014, 09:27 pm Last Edit: Jan 27, 2014, 09:46 pm by GreatStoneDragon Reason: 1
Umm, why won't it compile....

If it's because of case sensitive, then that is dealt with in the IDE, I just wrote the progress format

PaulS

Quote
If it's because of case sensitive, then that is dealt with in the IDE

No, it isn't.

Quote
I just wrote the progress format

The what?

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy