Advanced Search
Search Results
134 total results found
Variables
... 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
...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
...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
... 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
...{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
...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
...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
...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
...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
...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
...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
... 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
...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
... 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
...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 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 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
... 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...