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
#include <Wire.h> | |
#include <LiquidCrystal_I2C.h> | |
#include <SoftwareSerial.h> | |
#include <TinyGPS.h> | |
TinyGPS gps; | |
SoftwareSerial serialgps(2, 3); //--> GPS | |
SoftwareSerial mySerial(10, 11); // RX, TX --> GSM | |
LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); |
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
#include <SoftwareSerial.h> | |
#include <TinyGPS.h> | |
TinyGPS gps; | |
SoftwareSerial serialgps(2,3); | |
int year; | |
byte month, day, hour, minute, second, hundredths; | |
unsigned long chars; | |
unsigned short sentences, failed_checksum; |
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
/* | |
The circuit: | |
* RX is digital pin 10 (connect to TX of GSM Modem) | |
* TX is digital pin 11 (connect to RX of GSM Modem) | |
*/ | |
#include <SoftwareSerial.h> | |
SoftwareSerial mySerial(10, 11); // RX, TX | |
void setup() |
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
void setup() { | |
// initialize serial communications at 9600 bps: | |
Serial.begin(9600); | |
delay(10000); | |
// print the serial data to GSM | |
Serial.print("ATD9020XXXXXX;" ); // Change the phone number in code before running the program. change here to call a number using SIM900A | |
// wait 10 seconds before the next loop | |
delay(10000); | |
Serial.print("ATH" ); // hold the call |
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
#include <Wire.h> // Comes with Arduino IDE | |
#include <LiquidCrystal_I2C.h> | |
// Initialize the object with interfacing pins | |
LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); | |
void setup() | |
{ | |
Serial.begin(9600); // Initialize serial communication at 9600 baudrate | |
lcd.begin(16,2); // Initialize 16X2 LCD and turn on backlight |
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
volatile int rate[10]; // array to hold last ten IBI values | |
volatile unsigned long sampleCounter = 0; // used to determine pulse timing | |
volatile unsigned long lastBeatTime = 0; // used to find IBI | |
volatile int P =512; // used to find peak in pulse wave, seeded | |
volatile int T = 512; // used to find trough in pulse wave, seeded | |
volatile int thresh = 512; // used to find instant moment of heart beat, seeded | |
volatile int amp = 100; // used to hold amplitude of pulse waveform, seeded | |
volatile boolean firstBeat = true; // used to seed rate array so we startup with reasonable BPM | |
volatile boolean secondBeat = false; // used to seed rate array so we startup with reasonable BPM |
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
// Source Code: Raspberry Pi sending data to the Arduino | |
const int ledPin = 13; | |
void setup() | |
{ | |
pinMode(ledPin, OUTPUT); | |
Serial.begin(9600); | |
} |
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
// Source Code: Raspberry Pi sending data to the Arduino | |
const int ledPin = 13; | |
void setup() | |
{ | |
pinMode(ledPin, OUTPUT); | |
Serial.begin(9600); | |
} |