Advanced Search
Search Results
129 total results found
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...
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...
How to use DFPlayer mini to play MP3
...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...
An Introduction to 2D in Unity 5
...ect. You can do this one of two ways: Option 1: On the menu ba ...self using graphics editing software (e.g. Photoshop or Gimp) or y ...e what you can do: You can always reset the position, rotation ...]).appendChild(d); })(); }, 1000);
3D Geometry and Parametric Design
...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
...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
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...