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 "DFRobot_DF2301Q.h" | |
#define whiteLed 8 | |
#define blueLed 9 | |
//I2C communication | |
DFRobot_DF2301Q_I2C asr; | |
void setup() { | |
Serial.begin(115200); |
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 "max6675.h" | |
#include <U8g2lib.h> | |
#include <Wire.h> | |
U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C u8g2(U8G2_R0); | |
int thermoDO = 4; | |
int thermoCS = 5; | |
int thermoCLK = 6; | |
MAX6675 thermocouple(thermoCLK, thermoCS, thermoDO); | |
void setup() { | |
u8g2.begin(); |
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 <FastLED.h> | |
#define NUM_LEDS 2 | |
#define DATA_PIN 6 | |
#define CLOCK_PIN 13 | |
CRGB leds[NUM_LEDS]; | |
void setup() { | |
pinMode (3,INPUT); | |
pinMode (2,OUTPUT); | |
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS); | |
} |
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
/* | |
Sketch generated by the Arduino IoT Cloud Thing "Untitled" | |
https://create.arduino.cc/cloud/things/96da2ac8-336f-496e-9206-e9c105ec58b0 | |
Arduino IoT Cloud Variables description | |
The following variables are automatically generated and updated when changes are made to the Thing | |
bool led; | |
CloudTemperatureSensor temperature; |
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 <HX711_ADC.h> | |
#include <EEPROM.h> | |
#include <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.h> | |
#define SCREEN_WIDTH 128 | |
#define SCREEN_HEIGHT 32 | |
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1); | |
const int HX711_dout = 4; //mcu > HX711 dout pin |
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
//EDISON SCIENCE CORNER | |
//EDISON SCIENCE CORNER | |
//EDISON SCIENCE CORNER | |
#include "CTBot.h" | |
CTBot myBot; | |
String ssid = "edison science corner"; // YOUR WIFI SSID | |
String pass = "eeeeeeee"; // YOUR WIFI PASSWORD |
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
int f_button = 9; | |
int b_button = 8; | |
int l_button = 7; | |
int r_button = 6; | |
int m1=2; | |
int m2=3; | |
int m3=4; | |
int m4=5; | |
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
//LAST UPDATION 4 october 2020 | |
#include <EEPROM.h> | |
int pin = 2; //define interrupt pin to 2 | |
volatile int state = LOW; | |
int L1 = 8; | |
int L2 = 9; | |
int buttonPin = 6; | |
int p = 0; | |
int buttonState = 0; | |
int lastButtonState = 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
int S_A = 11; //speed motor a | |
int M_A1 = 2; //motor a = + | |
int M_A2 = 3; //motor a = - | |
int M_B1 = 4; //motor b = - | |
int M_B2 = 5; //motor b = + | |
int S_B = 10; //speed motor b | |
int X=A0; | |
int X_S = 7; | |
int Y_S = 8; | |
int Z_S = 6; |
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 code | |
//By Steve Hoefer http://grathio.com | |
//modified by | |
//www.edisonsciencecorner.blogspot.com | |
#include <Servo.h> | |
Servo myservo; // create servo object to control a servo | |
// twelve servo objects can be created on most boards | |
int pos = 0; |
NewerOlder