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

136 total results found

Adding content - 3D model from the internet

Spark AR Importing 3D content from different sou...

...? Depending on the model you want you might need to look for it ...uses and this often affects the way in which the model has been pr ...l in your project. You might want to avoid - Models that have been made f ...f the specifications of the hardware involved. You might need to t...

Week 3 - Iteration, arrays, objects and pixel arrays

Creative Coding Workshop: Introduction to Creative Coding

... is only performed once. If we want to perform a conditional oper ...lear to see that loops help us avoid repetition and reduce the numbe ...riables can be used in the same way as you use any other variable. ...our own objects is a very handy way to encapsulate related functio...

Using the MAX9814 mic amplifier

Physical Computing Tutorials

...olume and initialize it to 0 void setup() { Serial.begin(115 ...lize serial communication } void loop() { MicVolume = analo ... up your own threshold, e.g. : void loop() { MicVolume = analo ...olume is above this threshold a warning comes up in the Serial Mon...

How to use a Rotary Encoder Button

Physical Computing Tutorials

... rotary encoders rotate all the way around continuously and are di ...e time for the button in ms void setup() { Serial.begin(9600); ...e(buttonPin, INPUT_PULLUP); } void loop() { // if you're not usi ... tick on every change interrupt void interrupt() { encoder.tick();...

How to use DFPlayer Pro to play MP3

Physical Computing Tutorials

...ack wire Connect L+ & L- if you want stereo audio File handling ...FRobot_DF1201S.h> #include "SoftwareSerial.h" SoftwareSerial DF1201SSerial(2, 3); / ...X TX DFRobot_DF1201S player; void setup(void){ Serial.begin(115200); DF ...GLE); player.setVol(20); } void loop(){ if(!player.isPlaying...

How to use a rotary encoder

Physical Computing Tutorials

...aft angle. This allows you to always know the exact position, even ... volatile int lastEncoded = 0; void setup() { // Setup the encode ...NGE); Serial.begin(9600); } void loop() { // Print the encoder ...0); // Adjust for your needs } void updateEncoder() { // Read the...

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 ...you are using Arduino Leonardo! void setup() { // Start the serial ...volume, 255 = minimum volume } void loop() { // Loop from 1 to 5 ...

Unity for Beginners Workshop

Unity

... 1 - Installing Unity Task 2 - Watch and follow the video tutoria ... and prepare all the assets you want to use (Images and sound file ...nstalling Unity Task 2 - Please watch the Unity for Beginners vide ...le 3D objects for the floor and walls, we recommend creating a bas...

Raspberry Pi Image: Retropie for Reviving Vintage Games

Raspberry Pi Raspberry Pi Image

...ie image and add additional software later. It's up to you. We are ...ccordingly, one by one. If you want to skip any button configurat ...SB stick is the most straightforward method. You can find other ways of transferring in RetroPie D ...g the USB stick into the Pi and wait for 5-10 minutes. Remove the ...

An Introduction to 2D in Unity 5

...ect. You can do this one of two ways: Option 1: On the menu ba ...se this for initialization void Start () { Debug.Log ( ...e is called once per frame void Update () { Debug.Log ...self using graphics editing software (e.g. Photoshop or Gimp) or y...

Connecting a Potentiometer

Physical Computing Tutorials

...e between 0V to 5V, at the half way the voltage on pin #2 would be ...ne ledPin 13 #define potPin A0 void setup() { pinMode( ledPin, OU ... pinMode( potPin, INPUT ); } void loop() { digitalWrite( ledPin, HIGH ); delay( analogRead( potPin ) ); ...

How to send data to p5.js from Arduino

Physical Computing Tutorials

.... #define potPin A0 int value; void setup() { Serial.begin(9600); ... pinMode( potPin, INPUT ); } void loop() { value = analogRead( ...ble: function openPort() { // wait for the serial.open promise to return, // then call the initiateSerial fu...

How to use IR Breakbeam Sensor

Physical Computing Tutorials

...frared; detects changes in long-wave IR (heat) in its field. ... 0; int lastState = 0; void setup() { pinMode(LEDPIN, OU ...lup Serial.begin(9600); } void loop(){ sensorState = digitalRead(SENSORPIN); // read the state of the p...

How to get started with Textures and Materials in Spark AR

Spark AR Materials and Textures in Spark AR

...ures and Materials in Spark AR Watch this video which explains th ...s and materials in other 3D software like Blender, Cinema4D, and U ..., they probably work in similar ways. However, you should always keep in mind that Spark AR is ... a separate software and might have implemented di...

Using a Vibration Motor

Physical Computing Tutorials

...motor to vibrate for 1 second and stop for 1 second. int motorPin = 3; //motor transistor is connected to pin 3 void setup() { pinMode(motorPin, O ...UTPUT); } void loop() { digitalWrite(motorPi ...stop vibrating delay(1000); //wait 50 seconds. }

Making Breathing Light with LEDs

Physical Computing Tutorials

...the LED is int fadeAmount = 5; void setup() { pinMode(led, OUTPUT ...PUT); //optional for 2nd led } void loop() { //breathing light analogWrite(led, brightness); analogWrite(led2, brightness); //optional for 2nd led brightness = brightness +...

How to use a PIR sensor

Physical Computing Tutorials

... // PIR status void setup() { pinMode(ledPin, OUT ... Serial.begin(9600); } void loop(){ pirStat = digitalRead(pirPin); if (pirStat == HIGH) { // if motion detected digitalWrite(ledPin, HIGH); // turn...

How to use a Hall Effect Sensor

Physical Computing Tutorials

... store the state of the sensor void setup() { Serial.begin(9600); ...ffect sensor pin as an INPUT } void loop() { hallSensorState = digitalRead(hallSensorPin); // Read the state of the sensor Serial.println(hallSensorState); delay(100); }