Advanced Search
Search Results
140 total results found
Using Arduino Leonardo to send USB MIDI data
...y(1500); // controlChange(0, 10, 65); // Set the value of contr ...oller 10 on channel 0 to 65 } void noteOn(byte channel, byte pitch, byte velocity) { midiEventPacket_t noteOn = {0x09, 0x90 | channel, pitch, velocity}; MidiUSB.sendMIDI(noteOn); } ...
Using an MFRC522 RFID reader
...h each identification and a two-way radio transmitter-receiver as ... of that model. SDA - Digital 10 (SS) SCK - Digital 13 (SCK) MOS ...t above #define SS_PIN 10 // Configurable, see typical pin layout above MFRC522 mfrc522(SS_PIN, RS...
How to use a Hall Effect Sensor
...net or an electromagnet with its output varying in proportion to the strength of the magnetic field being detected. Wiring left to 5V (Power) middle to GND right to PIN2 via 10K resistor Getting started Th ...tln(hallSensorState); delay(100); }
Using a Force Sensor
...larized so it's doesn't matter which pin to 5V or GND. Power (one end to 5V) Ground (one end to GND with 10K resistor) Signal (GND side to ...alue; //sensor value range: 0-1023 //200 is light touch //500 i ...talWrite(13, LOW); } delay(100); }
Using a Membrane Potentiometer (SoftPot)
...ensor is simple, the sensor is unpolarized so it's doesn't matter which pin to 5V or GND. Pin1 (the one on the side of the thinner strip) to 5V Pin2 (middle pin) to A0 & via 10k resistor to GND Pin3 (the one ...ntln(softPotPosition); delay(100); }
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 i ...alWrite(13, HIGH); delay(100); }else{ digita ...lWrite(13, LOW); delay(100); } }
How to use a Flat Vibration Switch
... contact with the second pin. So when there's a bump, the two pins will act like a closed switch. When everything is still, the switch is open. Wiring one pin to GND & D2 via 10k resistor one pin to 5V Gett ...Write(ledPin, LOW); } delay(100); }
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 digi ...LOW); //stop vibrating delay(1000); //wait 50 seconds. }
Controlling an actuator with a N-channel Mosfet
...al 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
...13; //motor transistor is connected to pin 3 void setup() { pinMode(motorPin, OUTPUT); } void loop() { digitalWrite(motorPin, HIGH); //vibrate delay(1000); // delay one second digi ...LOW); //stop vibrating delay(1000); //wait 50 seconds. }
How to connect a Light Dependent Resistor (LDR)
...(Power) (2)leg split to GND via 10K resistor (2)leg split to A0 ...ad() to get a integer between 0-1023 representing the voltage, whe ...re 0 is 0V and 1023 is 5V. The code below uses the serial port to output the value every 50ms to the Serial Monitor....
How to build a project onto a VR headset
...the VR platform and headset you want to target (e.g., Oculus Rift, ...ty, enable the VR platforms you want to support (e.g., Oculus, Ste ...ke Oculus Store for Quest apps. 10. Update and Maintain: Regularly ...mpatible with the latest VR hardware and software updates. Remembe...
How to make Animation on NeoMatrix with Processing
...8x8 Adafruit NeoMatrix. Wiring WarningIf you have a bigger matrix ... +5V to 5V GND to GND Library WarningDownload version 1.9.0 or b ...rduino.write(b); delay(10); // Small delay for stability i++; if (i >= totalLEDs){ i = 0; ...
Using MatrixPortal M4 for animation
...e using CircuitPython 9.0.5 (11/10/2024), all libraries and code u ... 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 = ...
Raspberry Pi Image: Video Looper
...rry Pi Video Looper is a simple way to display seamless looping vi ...compressed 4K video format on a 1080p HD display. 4. Plug and Play ...t will encourage the display to wake up. When you are asked if you ...the monitor and run with a 1920x1080p resolution.
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...