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
void setup() { | |
// initialize serial communication: | |
Serial.begin(38400);// this can be different for your Bluetooth module. It can be 9600 also. | |
// initialize the LED pins: | |
for (int thisPin = 2; thisPin < 13; thisPin++) { | |
pinMode(thisPin, OUTPUT); | |
} | |
} | |
void loop() { |
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
// connect 9V to the counter module | |
// Connect 5V of Arduino to 5V of module | |
// Connect GND of Arduino to GND of module | |
// Connect pin 13 of Arduino to pin 5 of module | |
// Connect pin 12 of Arduino to pin 4 of module | |
// Connect pin 11 of Arduino to pin 14 of module | |
// other connections | |
//Use this example: https://www.arduino.cc/en/tutorial/debounce and make two exactly same circuits, connect one switch to pin 2 and other to pin 3 of Arduino |
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 the library code: | |
#include <LiquidCrystal.h> | |
// initialize the library with the numbers of the interface pins | |
LiquidCrystal lcd(13, 12, 10, 9, 8, 7); | |
int REDLED = 3; // the PWM pin the LED is attached to | |
int BLUELED = 5; | |
int GREENLED= 6; |
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 the library code: | |
#include <LiquidCrystal.h> | |
// initialize the library with the numbers of the interface pins | |
LiquidCrystal lcd(13, 12, 10, 9, 8, 7); | |
int led = 11; // the PWM pin the LED is attached to | |
int brightness = 0; // how bright the LED is | |
int fadeAmount = 5; // how many points to fade the LED by |
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 the library code: | |
#include <LiquidCrystal.h> | |
// initialize the library with the numbers of the interface pins | |
LiquidCrystal lcd(13, 12, 10, 9, 8, 7); | |
// the setup function runs once when you press reset or power the board | |
void setup() { | |
// initialize digital pin LED_BUILTIN as an output. | |
pinMode(11, OUTPUT); |
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
int sensorPin = A0; // select the input pin for the photoresistor | |
int CLK = 13; // Pin 13 of Arduino gives pulse to CD4029 module | |
int sensorValue = 0; // variable to store the value coming from the sensor | |
int RESET=11; // connect to reset pin of CD4029 | |
int UD=12; // connect to UD pin of CD4029 | |
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
// Basic test of CD4029 up and down counter module | |
// Module designed by Sagar Sapkota from www.buildcircuit.net | |
void setup() { | |
pinMode(13, OUTPUT);// Connect pin 13 to CLK pinl | |
pinMode(12,OUTPUT); // Connect pin 12 to UD | |
//RESET THE COUNTER | |
// Connect Pin 11 of Arduino to RST Pin | |
pinMode(11,OUTPUT); | |
digitalWrite(11,HIGH); |
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
/* | |
ESP8266 Blink by Simon Peter | |
Blink the blue LED on the ESP-01 module | |
This example code is in the public domain | |
The blue LED on the ESP-01 module is connected to GPIO1 | |
(which is also the TXD pin; so we cannot use Serial.print() at the same time) | |
Note that this sketch uses BUILTIN_LED to find the pin with the internal LED | |
*/ |
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
/* --------------------------------------------------------- | |
* | Experimentation Kit for Arduino Example Code | | |
* | CIRC-RGB .: Colourful Light :. (RGB LED) | | |
* --------------------------------------------------------- | |
* | |
* We've blinked an LED and controlled eight in sequence now it's time to | |
* control colour. Using an RGB LED (actual 3 LEDs in a single housing) | |
* we can generate any colour our heart desires. | |
* | |
* (we'll also use a few programming shortcuts to make the code |
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
/*arduino touch 8 | |
VCC-----------5V | |
GND-----------GND | |
OUT1-----------2 | |
OUT2-----------3 | |
OUT3-----------4 | |
OUT4-----------5 | |
OUT5-----------6 | |
OUT6-----------7 | |
OUT7-----------8 |