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 <TMRpcm.h> // Library for audio play from SDcard | |
#include <pcmConfig.h> | |
#include <pcmRF.h> | |
#include <SD.h> | |
#include <SPI.h> | |
#define SD_ChipSelectPin 10 //using digital pin 10 on arduino uno | |
TMRpcm tmrpcm; | |
void setup() { | |
tmrpcm.speakerPin=9; //PWM pin 9 on Uno | |
Serial.begin(9600); //Begin Arduino serial monitor |
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 <Adafruit_GFX.h> | |
#include <MCUFRIEND_kbv.h> | |
#include "TouchScreen.h" | |
#define BLACK 0x0000 | |
#define BLUE 0x001F | |
#define RED 0xF800 | |
#define GREEN 0x07E0 | |
#define CYAN 0x07FF | |
#define MAGENTA 0xF81F |
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 "esp_camera.h" | |
#include <WiFi.h> | |
#include "soc/soc.h" | |
#include "soc/rtc_cntl_reg.h" | |
// | |
// WARNING!!! PSRAM IC required for UXGA resolution and high JPEG quality | |
// Ensure ESP32 Wrover Module or other board with PSRAM is selected | |
// Partial images will be transmitted if image exceeds buffer size |
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 <Servo.h> | |
#define udm_trig 7 | |
#define udm_echo 6 | |
#define RightMotorPin1 2 | |
#define RightMotorPin2 3 | |
#define LeftMotorPin1 4 | |
#define LeftMotorPin2 5 | |
#define soundpin 12 | |
Servo sensor_servo; |
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 "DHT.h" | |
#include <ESP8266WiFi.h> | |
#define DHTPIN 5 // esp8266 D2 pin map as 4 in Arduino IDE | |
#define DHTTYPE DHT11 // there are multiple kinds of DHT sensors | |
DHT dht(DHTPIN, DHTTYPE); | |
const char* ssid = "REPLACE_WITH_YOUR_SSID"; | |
const char* password = "REPLACE_WITH_YOUR_NETWORK_PASSWORD"; | |
WiFiServer server(80); |
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
// TCS230 or TCS3200 pins wiring to Arduino | |
#define S0 13 | |
#define S1 12 | |
#define S2 11 | |
#define S3 10 | |
#define sensorOut 9 | |
// Stores frequency read by the photodiodes | |
int R = 0; | |
int G = 0; |
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 "DFRobotDFPlayerMini.h" | |
// Use pins 2 and 3 to communicate with DFPlayer Mini | |
static const uint8_t PIN_MP3_TX = 26; // Connects to module's RX | |
static const uint8_t PIN_MP3_RX = 27; // Connects to module's TX | |
SoftwareSerial softwareSerial(PIN_MP3_RX, PIN_MP3_TX); | |
// Create the Player object | |
DFRobotDFPlayerMini player; |
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 "DFRobotDFPlayerMini.h" | |
// Use pins 2 and 3 to communicate with DFPlayer Mini | |
static const uint8_t PIN_MP3_TX = 26; // Connects to module's RX | |
static const uint8_t PIN_MP3_RX = 27; // Connects to module's TX | |
SoftwareSerial softwareSerial(PIN_MP3_RX, PIN_MP3_TX); | |
// Create the Player object | |
DFRobotDFPlayerMini player; |
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 <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.h> | |
#include <MAX30100_PulseOximeter.h> | |
#include <Adafruit_MLX90614.h> | |
#define ECG_PIN A0 | |
#define SCREEN_WIDTH 128 | |
#define SCREEN_HEIGHT 64 |
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 <BluetoothSerial.h> | |
#include <WiFi.h> | |
#include <NTPClient.h> | |
#include <WiFiUdp.h> | |
#define NOTE_B0 31 | |
#define NOTE_C1 33 | |
#define NOTE_CS1 35 | |
#define NOTE_D1 37 | |
#define NOTE_DS1 39 |