Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

116 total results found

Arrays

Programming Tips and Tricks

... p5 Editor Now what if we wanted to have a lot of circles, l ...vidually. Going further, say we wanted to manipulate all of our ci ...rcles in a similar way (for example, move them all le ...ing. Arrays in p5 The easiest way to create an array in p5 is a ...

How to send data to p5.js from Arduino

Physical Computing Tutorials

...("sensor value: " + inData, 30, 50); } // if there's no port sele ...ble: function openPort() { // wait for the serial.open promise to return, // then call the initiateSerial function serial.open().then(initiateSerial); // once the port opens, l...

Using the MAX9814 mic amplifier

Physical Computing Tutorials

...op() { MicVolume = analogRead(MicPin); if (MicVolume > 400) { // If the volume is above this threshold a warning comes up in the Serial Mon ...tln("Loud noise"); delay(500); } else { Serial.println(MicVolume); } }

How to use DFPlayer mini to play MP3

Physical Computing Tutorials

...e sure you are using .mp3, not .wav or any other audio formats. #i ...nclude "SoftwareSerial.h" #include "DFRobotDFP ... // Connects to module's TX SoftwareSerial softwareSerial(PIN_MP3_RX, PIN_MP3_TX) ...al port for DFPlayer Mini softwareSerial.begin(9600); // Star...

3D Geometry and Parametric Design

Creative Coding Concepts

...pace and making this content viewable in low-fi VR headsets. I ha ...ve been making a piece of software using openFrameworks to explo ...elling and explain how this software can be used as a tool to expl ...elow is a screenshot of the software: Code available here. Aims ...

Bonus round: putting an existing Unity project into git

Games Workshop: Version Control for Games Design

...liar with the command line, the way to use it is to type a command ...weird crap in it which we don't want to keep track of. We need a g ...ere's the .gitignore content we want to use - this is the list Git ...f you're working on Mac, you'll want to add this to it too: # ===...

How to get started with Face Tracking in Spark AR

Spark AR TEMPLATE : Basic Face Tracking

Face Tracking in Spark AR Watch this video which explains the basic features of the Face Tracker in Spark AR. There are multiple different starter templates in Spark AR that make use of face tracking. To make your development easier, choose a template t...

How to get started with World Effects in Spark AR

Spark AR TEMPLATE: World Effects

World Effects in Spark AR Watch this video which explains the basics of World Effects in Spark AR. There are multiple different starter templates in Spark AR that make use of world effects. To make your development easier, choose a template that is most...

Using a Vibration Motor

Physical Computing Tutorials

...nsistor is connected to pin 3 void setup() { pinMode(motorPin, OUTPUT); } void loop() { digitalWrite(motorPin, HIGH); //vibrate delay(1000); // delay one second digitalWrite(motorPin, LOW); //stop vibrating delay(1000); //wait 50 seconds. }

Using a Whadda Vibration Motor Module

Physical Computing Tutorials

...nsistor is connected to pin 3 void setup() { pinMode(motorPin, OUTPUT); } void loop() { digitalWrite(motorPin, HIGH); //vibrate delay(1000); // delay one second digitalWrite(motorPin, LOW); //stop vibrating delay(1000); //wait 50 seconds. }

Using Arduino Leonardo to send USB MIDI data

Physical Computing Tutorials

...city MidiUSB.flush(); delay(500); Serial.println("Sending n ...ity MidiUSB.flush(); delay(1500); // controlChange(0, 10, 65); // Set the value of controller 10 on channel 0 to 65 } void noteOn(byte channel, byte pitch, byte velocity) { mid...

How to use a EMG Muscle Sensor

Physical Computing Tutorials

...Get Started #define SAMPLE_RATE 500 #define INPUT_PIN A0 // envelopeee buffer size // High value -> smooth but less responsive // Low value -> not smooth but responsive #define BUFFER_SIZE 64 // EMG Threshold value, !!!!need to change!!!! // Check by plo...

Arduino Nano 33 Sense Rev2- IMU sensor

Physical Computing Tutorials

...d to use the Arduino_BMI270_BMM150 library instead of Arduino_LSM9 ...th #include <Arduino_BMI270_BMM150.h> in all existing codes if you ...d. #include "Arduino_BMI270_BMM150.h" float x, y, z; int degreesX ...s. #include "Arduino_BMI270_BMM150.h" float x,y,z, ledvalue; void...

AR with Unity - Step #3 - Adding content to your project

Unity AR Image target AR tutorial

... set to Single Image, also, be aware that your image size should m ...scale so if your image width is 50cm you should type 0.5 Usually, it doesn't take long for your image to upload and get rated, be patient, if it does not refresh automatically, just c...

Touch sensor - with No Sensor!

Physical Computing Tutorials

...curacy without ANY external hardware. CapacitiveSensor library wil ...edium to high value (100K ohm - 50M ohm) resistor between the send pin and the receive (sensor) pin. The receive pin is the sensor terminal. A wire connected to this pin with a piece of ...

Using a Sparkfun MP3 Trigger

Physical Computing Tutorials

...fun electronics that provides a way to play MP3 files from a Micro ...s from the SD card via Serial. Warning If you are using Mac OS X ... Serial.write( i ); // Wait a bit delay( 1000 ); } } Sample MP3 files To help you get up and running...

UE Installation and Set-up

Unreal Engine Basics

...finishes, run the installer and wait for it to complete. Creat ...ect which Engine components you want to install. This is where you .... Click the Install button and wait for the installation to complete. Depending on your system specifications and I...

How to hack a brainwave EEG toy - Force Trainer II

Physical Computing Tutorials

What is a NeuroSky Brainwave? NeuroSky Brainwave is a technology that uses EEG ...roSky chip can be found on brainwave-controlled toys such as the S ...tar Wars Force Trainer. The toy can be ...orial, we are using an UNO, hardware Serial (pins 0 & 1) is shared...