Arduino Uno Adafruit CC3000 Wifi Shield Push Button Not work

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
detman
 
Posts: 8
Joined: Sun Jan 18, 2015 9:16 am

Arduino Uno Adafruit CC3000 Wifi Shield Push Button Not work

Post by detman »

I soldered the Adafruit CC3000 atop the Arduino Uno and ran your "buildtest" and that works.

However when I tried to solder wires from 5V, GND, and Digital Pin 2 to a simple push button it does not work. This push button works fine with just the Arduino Uno. Can I not solder wires to the shield holes that are adjacent to the 5V, GND, and Digital Pin's and expect then to operate as voltage, ground and logic?

If this configuration is wrong how can I do a similar configuration is there a board I can put atop the shield?

One can look at my configuration here:
http://hanoverchurchofgod.org/share/20150124_113015.jpg
http://hanoverchurchofgod.org/share/20150124_110739.jpg
Last edited by detman on Sat Jan 24, 2015 12:34 pm, edited 1 time in total.

User avatar
Franklin97355
 
Posts: 23911
Joined: Mon Apr 21, 2008 2:33 pm

Re: Arduino Uno Adafruit CC3000 Wifi Shield Push Button Not

Post by Franklin97355 »

That looks OK. Have you tried moving to a different set of rows on the breadboard? Could you post your code and let us know what you have done to test the circuit? Did you test with basic code to see if the Arduino can see the switch open and close?

User avatar
detman
 
Posts: 8
Joined: Sun Jan 18, 2015 9:16 am

Re: Arduino Uno Adafruit CC3000 Wifi Shield Push Button Not

Post by detman »

So it is okay to solder the holes right next to the GND, Voltage and Digital/Analog logic pins (not the same holes that connect to the Arduino UNO) and expect them to function as GND, Voltage, and Logic?

The code is very simple (this is the code that operates the button and has nothing to do with Wifi Shield) basically it displays 1 if the button is pressed and 0 if it is not. I was going to get this code to work first and then modify that "buildtest" to say disconnect the if the button is pressed 5 times.

Code: Select all

// BEGINE CODE

const int pushButton = 2;
void setup() {
    
    Serial.begin(9600);
    pinMode(pushButton, INPUT);
}

void loop() {
   int buttonState = digitalRead(pushButton);
   Serial.println(buttonState);
   delay(10); 
}
// END CODE 
Last edited by Franklin97355 on Sat Jan 24, 2015 1:20 pm, edited 1 time in total.
Reason: Added missing [code]...[/code] tags to maintain formatting.

User avatar
Franklin97355
 
Posts: 23911
Joined: Mon Apr 21, 2008 2:33 pm

Re: Arduino Uno Adafruit CC3000 Wifi Shield Push Button Not

Post by Franklin97355 »

Your soldering could use some touchup. Check out this Soldering Guide and let us know the output of the serial monitor when you press and release the switch.

User avatar
detman
 
Posts: 8
Joined: Sun Jan 18, 2015 9:16 am

Re: Arduino Uno Adafruit CC3000 Wifi Shield Push Button Not

Post by detman »

Works I had "Serial.begin(9600)" when it should be "Serial.begin(115200)" sorry should have seen that.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”