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
/* | |
This example shows how to get start with Cytron 4 Channel Motor Driver (FD04A) | |
and Maker UNO (Arduino Uno compatible) | |
Product page: | |
Cytron 4 Channel Motor Driver: https://www.cytron.io/p-fd04a | |
Maker UNO: https://www.cytron.io/p-maker-uno | |
Created by: |
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
/* | |
This example shows how to measure motor's RPM through built-in | |
hall sensor encoder. | |
Product page: | |
DC Motor IG42E-24K: https://www.cytron.io/c-84-dc-motor/c-91-dc-geared-motor/c-494-ig42-with-encoder-planetary-gear/p-ig42e-24k | |
Cytron 10Amp DC Motor Driver: https://www.cytron.io/p-md10c | |
Maker UNO: https://www.cytron.io/p-maker-uno |
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
/* | |
Project Video: https://www.youtube.com/watch?v=Dzq4tnJ0LjA | |
Product required: | |
1. Grove - Finger-clip Heart Rate Sensor | |
https://www.cytron.io/p-grv-heart-finger | |
2. Maker UNO: | |
https://www.cytron.io/p-maker-uno | |
Tutorial: |
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
import I2C_LCD_driver | |
from time import sleep, strftime | |
from datetime import datetime | |
mylcd = I2C_LCD_driver.lcd() | |
mylcd.lcd_display_string("Internet Time", 1, 0) | |
while True: | |
mylcd.lcd_display_string(datetime.now().strftime('%b %d %H:%M:S'), 1, 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 <Wire.h> | |
#define SLAVE_ADD 0x08 // Set Arduino I2C address | |
#define NOTE_C5 523 | |
#define NOTE_E5 659 | |
#define NOTE_G5 784 | |
#define BUTTON 2 | |
#define BUZZER 8 | |
int 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
/* | |
Project: Arduino Radar | |
Software: Processing IDE 3.4 | |
Item used: | |
- Maker UNO | |
- Analog Distance Sensor (10-80cm) | |
- TowerPro MG946R Metal Gear Servo | |
*/ | |
import processing.serial.*; |
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> | |
#define SLAVE_ADD 0x08 | |
#define NOTE_C5 523 | |
#define NOTE_E5 659 | |
#define NOTE_G5 784 | |
#define BUTTON 2 | |
#define BUZZER 8 | |
#define POT_PIN A0 |
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> | |
#include <Wire.h> | |
Servo myservo; | |
#define SLAVE_ADD 0x08 | |
#define NOTE_C5 523 | |
#define NOTE_E5 659 | |
#define NOTE_G5 784 | |
#define BUTTON 2 |
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
from gpiozero import LED, Button, Buzzer | |
from time import sleep | |
import os | |
LED1 = LED(17) | |
LED2 = LED(18) | |
LED3 = LED(27) | |
LED4 = LED(22) | |
LED5 = LED(25) | |
LED6 = LED(12) |
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
import telepot | |
import picamera | |
import RPi.GPIO as GPIO | |
GPIO.setmode(GPIO.BCM) | |
GPIO.setwarnings(False) | |
def handle(msg): | |
global sendPhoto | |
global chat_id |