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 Ultrasound sensor HC-SR04 to GND and +5V, Echo and Trigger to the following pins: | |
#define trigPin 2 | |
#define echoPin 3 | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(9600); // Sets the baud rate to 9600 | |
SensorSetup(); | |
} |
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
/* | |
AnalogReadSerial with analogWrite | |
Reads an analog input on pin 0, prints the result to the Serial Monitor. | |
And then it turns the LED accordingly. | |
This example code is in the public domain. | |
*/ | |
// the setup routine runs once when you press reset: |
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
/* | |
MotorControl v1.0 | |
This code example programs a sequence of movements into Arduino Romeo v2 | |
This example code is in the public domain. | |
*/ | |
int E1 = 5; //M1 Speed Control |
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
''' | |
mouseddddddddd | |
v | |
date | |
This project .... | |
Team members |
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
from microbit import * | |
import neopixel | |
from random import randint | |
import time | |
#Zoom in & out | |
np = neopixel.NeoPixel(pin0, 16) | |
pixel_id = 0 | |
locked = False |
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
//NYU Shanghai 2021 Spring | |
//Coded by Eric Parren for Interaction Lab IMA | |
float x; | |
float y; | |
float diameter = 100; | |
float speed = 2; | |
float xDirection = 1; | |
float yDirection = 1; | |
void setup() { |
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[] h, s, x, y, spdX, spdY; | |
// String[] ixlab = new String[2]; one possible syntax | |
String[] ixlab = {"Celia", "Derek", "John", "Jordan", "Netania", "Saffronia", "Elena", "Millie", "Kaitlyn", "Novia", "Xiaorong", "Helen", "Lisa", "Rudi"}; | |
void setup () { | |
size(800, 800); | |
rectMode(CENTER); | |
colorMode(HSB, 360, 100, 100); | |
h = new int[ixlab.length]; |
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
float x1, x2, x3, x4; | |
float y1, y2, y3, y4; | |
color c1, c2, c3, c4; | |
float angle; | |
void setup() { | |
size(600, 800); | |
//x = random(width); | |
//y = random(height); |
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
/* Exoskeleton glove - UWC Hackathon | |
with two servos connected to pins 8 & 9 | |
and two buttons on pins 2 & 3 | |
Modified by RC - 2020/03/12 | |
Created by Pranav - 2020/03/05 | |
*/ | |
#include <Servo.h> |
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
/* | |
Audio signal test for "traffic light" team | |
Location: UWC | |
Date: Jan 9 - Nov - 2020 | |
*/ | |
int pushButtonGreen = 7; //green button | |
int pushButtonYellow = 6; //yellow |