This file contains hidden or 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
const int motor_AL = 4; | |
const int motor_AR = 5; | |
// setting PWM properties | |
const int freq = 5000; | |
const int ledChannel = 0; | |
const int resolution = 8; | |
void setup(){ | |
// configure LED PWM functionalitites |
This file contains hidden or 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
const int motor_AL = 4; | |
const int motor_AR = 5; | |
void setup() { | |
pinMode(motor_AL, OUTPUT); | |
pinMode(motor_AR, OUTPUT); | |
} | |
void loop() { | |
// Left |
This file contains hidden or 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 <TinyGPS++.h> | |
#define gpsSerial Serial1 | |
#define TX_PIN 32 // MCU 32 <---> Rx GPS | |
#define RX_PIN 34 // MCU 34 <---> Tx GPS | |
TinyGPSPlus gps; | |
void setup() | |
{ | |
Serial.begin(9600); |
This file contains hidden or 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 "Senses_wifi_esp32.h" | |
#include "Adafruit_SHTC3.h" | |
#define PUMP_PIN 4 | |
int control_port = 1; | |
const char *ssid = "your-wifi-network-name"; | |
const char *passw = "your-wifi-password"; | |
const char *userid = "your-senses-user-id"; | |
const char *key = "your-device-key"; |
This file contains hidden or 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 "Senses_wifi_esp32.h" | |
#include "MPU6050.h" | |
#include <Wire.h> | |
MPU6050 accelgyro; | |
Senses_wifi_esp32 myiot; | |
const char *ssid = "your-wifi-network-name"; | |
const char *passw = "your-wifi-password"; | |
const char *userid = "your-senses-user-id"; |
This file contains hidden or 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 "Senses_wifi_esp32.h" | |
#include "Adafruit_SHTC3.h" | |
#include <Adafruit_NeoPixel.h> | |
int led_pin = 27; | |
int numPixels = 1; | |
int pixelFormat = NEO_GRB + NEO_KHZ800; | |
Adafruit_NeoPixel *pixels; | |
int control_port = 1; |
This file contains hidden or 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 "Senses_wifi_esp32.h" | |
#include <BH1750.h> | |
#include <Wire.h> | |
BH1750 lightMeter; | |
Senses_wifi_esp32 myiot; | |
const char *ssid = "your-wifi-network-name"; | |
const char *passw = "your-wifi-password"; | |
const char *userid = "your-senses-user-id"; |
This file contains hidden or 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 "Senses_wifi_esp32.h" | |
#include <Adafruit_NeoPixel.h> | |
int button_pin = 26; | |
int led_pin = 27; | |
int numPixels = 1; | |
int pixelFormat = NEO_GRB + NEO_KHZ800; | |
Adafruit_NeoPixel *pixels; | |
const char *ssid = "your-wifi-network-name"; | |
const char *passw = "your-wifi-password"; |
This file contains hidden or 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 "Senses_wifi_esp32.h" | |
#include "Adafruit_SHTC3.h" | |
const char *ssid = "your-wifi-network-name"; | |
const char *passw = "your-wifi-password"; | |
const char *userid = "your-senses-user-id"; | |
const char *key = "your-device-key"; | |
String response; | |
float t, h; |
NewerOlder