Advanced Search
Search Results
133 total results found
How to make Animation on NeoMatrix
... +5V to 5V GND to GND Library WarningDownload version 1.9.0 or b ...started The example shows the upward arrow first and then the anim ... colour-changing pattern. The upward arrow is for identifying the ...; //matrix->show(); //delay(1000); matrix->clear(); numImag...
How to use DFPlayer Pro to play MP3
...ack wire Connect L+ & L- if you want stereo audio File handling ...FRobot_DF1201S.h> #include "SoftwareSerial.h" SoftwareSerial DF1201SSerial(2, 3); / ...e wire connection!"); delay(1000); } player.setVol(0); p ...eonardo, you should not use SoftwareSerial. The Leonardo already h...
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. }
Steam VR setup Tutorial #3 - Interactable object setup
...to learn how to create two "throwable" objects but first, we are g ... create a plinth to put the throwable objectS on so it is easier t ...now see a cube intersecting the walking plane. Now let's chan ...y, you can call it whatever you want, we suggest a meaningful name...
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...
How to send data to p5.js from Arduino
...the value to the Serial delay(100); //little delay to prevent Ard ...ble: function openPort() { // wait for the serial.open promise to return, // then call the initiateSerial function serial.open().then(initiateSerial); // once the port opens, ...
How to send data to Processing from Arduino
...the value to the Serial delay(100); //little delay to prevent Ard ...arameters //map(theVariableYouWantToMap, min.ValueOfRawData, max ...d max. value is 1023. //and I want to map the background colour from black to white, 0(black) - 255(white) floa...