Using a Force sensor to a Motorshield

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
ciorizzo
 
Posts: 14
Joined: Thu Mar 27, 2014 4:50 pm

Re: Using a Force sensor to a Motorshield

Post by ciorizzo »

I'm having problems using temboo service with the cc3000. I followed the instructions , inserting my wi-fi information and my temboo account information and I'm getting errors. My code is below, minus the info that should not be published


sketch_apr15a.ino:3:39: error: diego/ardunet/cc3000utils.h: No such file or directory
sketch_apr15a.ino:4:40: error: diego/ardunet/cc3000client.h: No such file or directory
sketch_apr15a.ino:5:36: error: diego/ardunet/http_get.h: No such file or directory
sketch_apr15a.ino:6:33: error: SSID name /mywifidetails.h: No such file or directory
sketch_apr15a.ino:7:39: error: WEP password/mywifidetails.h: No such file or directory
sketch_apr15a.ino:12:40: error: diego/temboochoreos/choreo.h: No such file or directory
sketch_apr15a.ino:13:42: error: diego/temboochoreos/sendmail.h: No such file or directory
sketch_apr15a.ino:15:37: error: my temboo account name /tembooaccount.h: No such file or directory
sketch_apr15a.ino:16:38: error: my temboo application name/tembooaccount.h: No such file or directory
sketch_apr15a.ino:17:61: error: my temboo application key/tembooaccount.h: No such file or directory
sketch_apr15a:20: error: 'Adafruit_CC3000' does not name a type
sketch_apr15a:22: error: 'CC3000Client' does not name a type
sketch_apr15a.ino: In function 'void setup()':
sketch_apr15a:26: error: 'cc3000' was not declared in this scope
sketch_apr15a:26: error: 'WLAN_SSID' was not declared in this scope
sketch_apr15a:26: error: 'WLAN_PASS' was not declared in this scope
sketch_apr15a:26: error: 'WLAN_SECURITY' was not declared in this scope
sketch_apr15a:26: error: 'startConnection' was not declared in this scope
sketch_apr15a.ino: In function 'void loop()':
sketch_apr15a:31: error: 'TembooChoreo' was not declared in this scope
sketch_apr15a:31: error: expected `;' before 'choreo'
sketch_apr15a:32: error: 'choreo' was not declared in this scope
sketch_apr15a:32: error: 'TEMBOO_MYMAIL_CREDENTIAL' was not declared in this scope
sketch_apr15a:32: error: 'sendEmail' was not declared in this scope



Code: Select all

#include "Arduino.h"

#include "diego/ardunet/cc3000utils.h"
#include "diego/ardunet/cc3000client.h"
#include "diego/ardunet/http_get.h"
#include "My SSID name/mywifidetails.h"
#include "MY WEP password/mywifidetails.h" 
#define ADAFRUIT_CC3000_IRQ 3 // MUST be an interrupt pin!
#define ADAFRUIT_CC3000_VBAT 5
#define ADAFRUIT_CC3000_CS 10

#include "diego/temboochoreos/choreo.h"
#include "diego/temboochoreos/sendmail.h"
//This file will contain your TEMBOO_MYMAIL_CREDENTIAL, TEMBOO_ACCOUNT, TEMBOO_APP_KEY_NAME, TEMBOO_APP_KEY, do not publish it with your block
#include "my temboo account name /tembooaccount.h" 
#include " my temboo application name /tembooaccount.h"
#include "my temboo application key/tembooaccount.h" 

//create CC3000 instance, and an SDK compatible Client
Adafruit_CC3000 cc3000 = Adafruit_CC3000(ADAFRUIT_CC3000_CS,
		ADAFRUIT_CC3000_IRQ, ADAFRUIT_CC3000_VBAT, SPI_CLOCK_DIVIDER); 
CC3000Client client(cc3000);

void setup(void) {
	Serial.begin(9600);
	startConnection(cc3000, WLAN_SSID, WLAN_PASS, WLAN_SECURITY);
}

void loop(void) {
	Serial.println("Send hello email");
	TembooChoreo choreo = setupChoreo(client, TEMBOO_ACCOUNT, TEMBOO_APP_KEY_NAME, TEMBOO_APP_KEY );
	sendEmail(choreo, TEMBOO_MYMAIL_CREDENTIAL, "email address ", "Hello", "Hello World!", "bii find", "bii arduino:upload");
	delay(10000); 
	Serial.println("Send bye email");
	sendEmail(choreo, TEMBOO_MYMAIL_CREDENTIAL, "email address ", "Bye", "Bye World!");
	while(1); //Do nothing
}

User avatar
adafruit_support_bill
 
Posts: 88090
Joined: Sat Feb 07, 2009 10:11 am

Re: Using a Force sensor to a Motorshield

Post by adafruit_support_bill »

sketch_apr15a.ino:3:39: error: diego/ardunet/cc3000utils.h: No such file or directory
sketch_apr15a.ino:4:40: error: diego/ardunet/cc3000client.h: No such file or directory
sketch_apr15a.ino:5:36: error: diego/ardunet/http_get.h: No such file or directory
sketch_apr15a.ino:6:33: error: SSID name /mywifidetails.h: No such file or directory
sketch_apr15a.ino:7:39: error: WEP password/mywifidetails.h: No such file or directory
sketch_apr15a.ino:12:40: error: diego/temboochoreos/choreo.h: No such file or directory
sketch_apr15a.ino:13:42: error: diego/temboochoreos/sendmail.h: No such file or directory
sketch_apr15a.ino:15:37: error: my temboo account name /tembooaccount.h: No such file or directory
sketch_apr15a.ino:16:38: error: my temboo application name/tembooaccount.h: No such file or directory
sketch_apr15a.ino:17:61: error: my temboo application key/tembooaccount.h: No such file or directory
sketch_apr15a:20: error: 'Adafruit_CC3000' does not name a type
sketch_apr15a:22: error: 'CC3000Client' does not name a type
Those messages are saying that the compiler could not locate the CC3000 library. Make sure it is installed in the correct location as described in this guide. http://learn.adafruit.com/adafruit-all- ... nstall-use

ciorizzo
 
Posts: 14
Joined: Thu Mar 27, 2014 4:50 pm

Re: Using a Force sensor to a Motorshield

Post by ciorizzo »

I did some of the examples when your install the adafruit_3000 library " Buildtest etc.. I get no errors some I believe its reading the library. And it appears right next to my Motorshield library. I followed the same steps when I installed the motor library. Unless I'm missing something in the code.

Code: Select all

#include "Arduino.h"

    #include "diego/ardunet/cc3000utils.h"
    #include "diego/ardunet/cc3000client.h"
    #include "diego/ardunet/http_get.h"
    #include " My SSID name /mywifidetails.h"
    #include " MY password /mywifidetails.h"
    #include "WLAN_SEC_WEP/mywifidetails.h"
    #define ADAFRUIT_CC3000_IRQ 3 // MUST be an interrupt pin!
    #define ADAFRUIT_CC3000_VBAT 5
    #define ADAFRUIT_CC3000_CS 10

    #include "diego/temboochoreos/choreo.h"
    #include "diego/temboochoreos/sendmail.h"
    //This file will contain your TEMBOO_MYMAIL_CREDENTIAL, TEMBOO_ACCOUNT, TEMBOO_APP_KEY_NAME, TEMBOO_APP_KEY, do not publish it with your block
    #include "account name /tembooaccount.h"
    #include "application /tembooaccount.h"
    #include "application key /tembooaccount.h"

    //create CC3000 instance, and an SDK compatible Client
    Adafruit_CC3000 cc3000 = Adafruit_CC3000(ADAFRUIT_CC3000_CS,
          ADAFRUIT_CC3000_IRQ , ADAFRUIT_CC3000_VBAT, SPI_CLOCK_DIVIDER);
    CC3000Client client(cc3000);

    void setup(void) {
       Serial.begin(9600);
       startConnection(cc3000, WLAN_SSID, WLAN_PASS, WLAN_SECURITY);
    }

    void loop(void) {
       Serial.println("Send hello email");
       TembooChoreo choreo = setupChoreo(client, TEMBOO_ACCOUNT, TEMBOO_APP_KEY_NAME, TEMBOO_APP_KEY );
       sendEmail(choreo, TEMBOO_MYMAIL_CREDENTIAL, "email I'm using to send message ", "Hello", "Hello World!", "bii find", "bii arduino:upload");
       delay(10000);
       Serial.println("Send bye email");
       sendEmail(choreo, TEMBOO_MYMAIL_CREDENTIAL, "email I'm using to send message ", "Bye", "Bye World!", "bii find", "bii arduino:upload");
       while(1); //Do nothing
    }

User avatar
adafruit_support_bill
 
Posts: 88090
Joined: Sat Feb 07, 2009 10:11 am

Re: Using a Force sensor to a Motorshield

Post by adafruit_support_bill »

Where do you have the libraries installed? If they are not installed in your sketchbook library folder as detailed in the tutorial posted above, they compiler will not find them reliably.

ciorizzo
 
Posts: 14
Joined: Thu Mar 27, 2014 4:50 pm

Re: Using a Force sensor to a Motorshield

Post by ciorizzo »

its the Biicode. I'm having trouble using the biicode. The link adafruit posted uses the Biicode not the arduino IDE. I guess its coverts but I'm having trouble downloading their library

User avatar
adafruit_support_bill
 
Posts: 88090
Joined: Sat Feb 07, 2009 10:11 am

Re: Using a Force sensor to a Motorshield

Post by adafruit_support_bill »

Biicode? What link are you referring to?

The CC3000 library includes a number of utility files. These are all contained within the Adafruit_CC3000 repository on github.
https://github.com/adafruit/Adafruit_CC3000_Library


User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Using a Force sensor to a Motorshield

Post by adafruit_support_rick »

sketch_apr15a.ino:3:39: error: diego/ardunet/cc3000utils.h: No such file or directory
sketch_apr15a.ino:4:40: error: diego/ardunet/cc3000client.h: No such file or directory
sketch_apr15a.ino:5:36: error: diego/ardunet/http_get.h: No such file or directory
sketch_apr15a.ino:6:33: error: SSID name /mywifidetails.h: No such file or directory
sketch_apr15a.ino:7:39: error: WEP password/mywifidetails.h: No such file or directory
sketch_apr15a.ino:12:40: error: diego/temboochoreos/choreo.h: No such file or directory
sketch_apr15a.ino:13:42: error: diego/temboochoreos/sendmail.h: No such file or
This is telling you that it can't find any of these files. There is no file "diego/ardunet/cc3000utils.h" in your Arduino sketchbook libraries directory, for example.

ciorizzo
 
Posts: 14
Joined: Thu Mar 27, 2014 4:50 pm

Re: Using a Force sensor to a Motorshield

Post by ciorizzo »

Yes hello. I'm still having trouble with the biicode link sending a email from your CC3000wifi shield. Would it be better if I just get the Ardiuno Yun and just stack the adafruit motorshield on top ? Would that work ? running out of time with my project. Need advice to get it done. Or just have 2 arduinos for 1 pc if stacking is not possible The Yun using the Arduino 1.5.6-r2 BETA IDE and my uno using the 1.0.5-r2 IDE ?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Using a Force sensor to a Motorshield

Post by adafruit_support_rick »

Did you get the code to compile successfully? What problems are you having?

ciorizzo
 
Posts: 14
Joined: Thu Mar 27, 2014 4:50 pm

Re: Using a Force sensor to a Motorshield

Post by ciorizzo »

Not sure. The code looks find but when I upload it, nothing. No email. With the link adafruit posted, You are using Biicode which works with the arduino. But you don't communicate with the arduino IDE. You generate the folder with the necessary files and upload the code on the biicode application. Biicode support was very helpful but didn't get it to work yet.

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

Return to “Arduino Shields from Adafruit”