-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Internet Module and minor bug fixes.
- Loading branch information
1 parent
3807f9c
commit bf5102e
Showing
36 changed files
with
907 additions
and
1,640 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
examples/01. evive/10.IOT/Internet/Thingspeak_evive/Thingspeak_evive.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
In this example you will be sending data of evive potentiometer to your thingspeak channel. | ||
Data is send to field 1 of your thingspeak channel. | ||
You can reduce the size of library compiled by enabling only those modules that you | ||
want to use. For this first define CUSTOM_SETTINGS followed by defining | ||
INCLUDE_modulename. | ||
Explore more on: https://thestempedia.com/docs/dabble/internet-module/ | ||
*/ | ||
#define CUSTOM_SETTINGS | ||
#define INCLUDE_INTERNET_MODULE | ||
#include <evive.h> | ||
#include <Dabble.h> | ||
String WRITE_KEY = "IXPXC82OLNNH1EBW"; //enter your thingspeak channel write key | ||
|
||
|
||
void setup() { | ||
Dabble.begin(115200); //Enter baudrate of your bluetooth.Connect bluetooth on Bluetooth port present on evive. | ||
pinMode(TACTILESW1,INPUT); | ||
} | ||
|
||
void loop() { | ||
Dabble.processInput(); //this function is used to refresh data obtained from smartphone.Hence calling this function is mandatory in order to get data properly from your mobile. | ||
if(digitalRead(TACTILESW1) == HIGH) | ||
{ | ||
Internet.updateThingspeakField(WRITE_KEY, 1, analogRead(POT1)); //Thingspeak Write Key, Field number, Data | ||
Dabble.delay(500); //Debounce delay | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
examples/02. Uno Nano Mega/10.IOT/Internet/Thingspeak/Thingspeak.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
In this example you will be sending data of analog pin to your thingspeak channel. | ||
Data is send to field 1 of your thingspeak channel. | ||
NOTE: | ||
1)For Arduino Mega Connect Bluetooth on Serial3 pins. | ||
2)For Arduino Uno/Nano library uses SoftwareSerial,hence pin 2 and pin 3 are used | ||
as RX and TX pins respectively on SoftwareSerial.Hence with arduino Uno | ||
follow below connections for bluetooth. | ||
UNO - BLUETOOTH | ||
2 - TX | ||
3 - RX | ||
3)For Uno/Nano keep bluetooth Baudrate below 38400. | ||
You can reduce the size of library compiled by enabling only those modules that you want | ||
to use. For this first define CUSTOM_SETTINGS followed by defining INCLUDE_modulename. | ||
Explore more on: https://thestempedia.com/docs/dabble/internet-module/ | ||
*/ | ||
#define CUSTOM_SETTINGS | ||
#define INCLUDE_INTERNET_MODULE | ||
#include <Dabble.h> | ||
String WRITE_KEY = "IXPXC82OLNNH1EBW"; //enter your thingspeak write key | ||
uint8_t pushButton = 4; | ||
void setup() { | ||
Dabble.begin(9600); //Change this baudrate as per your bluetooth baudrate. Connect bluetooth on digital pin 2(RX) and 3(TX) for Uno/Nano and on Serial3 pins for Mega. | ||
pinMode(pushButton,INPUT_PULLUP); | ||
} | ||
|
||
void loop() { | ||
Dabble.processInput(); //this function is used to refresh data obtained from smartphone.Hence calling this function is mandatory in order to get data properly from your mobile. | ||
if(digitalRead(pushButton) == LOW) | ||
{ | ||
Internet.updateThingspeakField(WRITE_KEY, 1, analogRead(A0)); | ||
Dabble.delay(500); //Debounce delay | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.