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

134 total results found

Variables

Python for Beginners

... result of 2. However, you may want to use a certain value more t ... action, we'll keep things this way for now in order to better und ...he second path is the file that was run with this version of Pytho ...second line in our code. Python was able to get to this point in t...

Using a HC-SR04 distance sensor

Physical Computing Tutorials

...if the ping sound is reflected away from the sensor by an a diverg ...le more accurate ones are over £100. Wiring Wiring up the sensor is ...alWrite(13, HIGH); delay(100); }else{ digital ...Write(13, LOW); delay(100); } }

Making a Force Sensor/ a Button with Velostat & Conductive Fabric

Physical Computing Tutorials

...op() { int sensorValue = analogRead(sensorPin); // gives analog values for the sensors Serial.println(sensorValue); delay (100); // change for the speed of se ...println(buttonState); delay (100); // change for the speed of serial monitor }

Touch sensor - Using an MPR121

Physical Computing Tutorials

... libraries folder Now the software Arduino IDE is ready, you wil ....println(i); } } delay(100); // Small delay to reduce seri ....getFilteredData(11)); delay(100); // Adjust for readability } CSV Example This is an example using the MPR121 ...

Arduino Nano 33 Sense Rev2

Physical Computing Tutorials

...{border-collapse:collapse;width:100%;background:#fff;} th,td{pa ...{border-collapse:collapse;width:100%;background:#fff;} th,td{padding:10px;border:1px solid #ddd;text-align:left;font-size:14px;} th{background:#f0f0f0;font-weight:bold;} ...

Using a Vibration Motor

Physical Computing Tutorials

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

Controlling an actuator with TinkerKit Mosfet

Physical Computing Tutorials

...mall, cheap module which takes away all these headaches, on the Ar ...other side of your actuator) **Warning**The TinkerKit Mosfet can ...( actuatorPin, HIGH ); delay( 1000 ); digitalWrite( actuator ...Pin, LOW ); delay( 1000 ); } Advanced Example You can...

Controlling an actuator with a N-channel Mosfet

Physical Computing Tutorials

...l device. #define actuatorPin 13 void setup() { pinMode( actuatorPin, OUTPUT ); } void loop() { digitalWrite( actuatorPin, HIGH ); delay( 1000 ); digitalWrite( ...ctuatorPin, LOW ); delay( 1000 ); }

Using a Whadda Vibration Motor Module

Physical Computing Tutorials

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

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...

Making a website for your HTML, JS, CSS or p5.js files

Creative Coding Tutorials

...something goes wrong, you can always go back to when it did work! ...e. Very important!!!1!!1! The way that GitHub pages work is that ...). For instance, if my username was 'jonny' my GitHub pages URL wi ...uld see the below page. What we want to do is click the link that ...

Using MatrixPortal M4 for animation

Physical Computing Tutorials

... bitmap spitesheet. If you just want to test the code, you can dow ...to 64 x 32 px Draw whatever you want Add new frame and draw until ...DEFAULT_FRAME_DURATION = 0.1 # 100ms FRAME_DURATION_OVERRIDES = { ...URATION direction = 1 #1 for forward, -1 for backward def load_im...

Hello World

Python for Beginners

...t the "type" of Python file you want PyCharm to create. For this e ...print(), we provide the text we want Python to print. This text mu ...ere you can type what it is you want to print. In this example, I waited until I had typed out "prin ...own PyCharm's list of potential ways for completing your code. No...

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 ...void scale mismatch. Unity uses meters as the default unit 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 rate...

Projection Mapping in MadMapper

Projection Mapping Intro to Projection Mapping

...ale projection (anything over 3 meters), MadMapper’s high-resolution ...s://madmapper.com/madmapper/software. Software Setup  Before launching MadMapper, make sure your displays are not mirrored: macOS: Go to System Preferences > Displays, and unch...

How to send data to p5.js from Arduino

Physical Computing Tutorials

...physical component, the potentiometer, which can be replaced with oth ... This example sends the potentiometer value measured from Arduino to ...the value to the Serial delay(100); //little delay to prevent Ard ...ble: function openPort() { // wait for the serial.open promise t...

How to send data to Processing from Arduino

Physical Computing Tutorials

...physical component, the potentiometer, which can be replaced with oth ... This example sends the potentiometer value measured from Arduino to ...the value to the Serial delay(100); //little delay to prevent Ard ... //map(a, b, c, d, e) has 5 Parameters //map(theVariableYouWantToMa...

How to use DFPlayer mini to play MP3

Physical Computing Tutorials

... Speaker(-) black wire potentiometer Wiring right pin to 5V (Power) ...ample, we are using the potentiometer to control two audios. It will ...he first audio when the potentiometer turns to the right and play the ...e sure you are using .mp3, not .wav or any other audio formats. #i...