Advanced Search
Search Results
147 total results found
Using an PN532 RFID reader
..."}; //change to your data void setup() { Serial.begin(115200); ...al.println(); Serial.println("Waiting for a card......"); } void ...nt8_t dataRead[16] = {0}; void setup() { pinMode(13,OUTPUT); Se ...al.println(); Serial.println("Waiting for a card......"); } v...
How to connect a Push Button with Digital Input Pull-Up resistor
... how to use a button the normal way. Advantage of using a button t ...his way Fewer External Components N ...in to 2 Getting started void setup() { pinMode(2, INPUT_PULLUP); // Internal pull-up enabled Serial.begin(9600); } void loop() { int b...
Adding content - 3D model from the internet
...? Depending on the model you want you might need to look for it ...uses and this often affects the way in which the model has been pr ...l in your project. You might want to avoid - Models that have ...f the specifications of the hardware involved. You might need to t...
Week 2 - Animation, conditionals & random numbers
... detail. A variable is simply a way of storing information in the ...tions. 5 - The value which we want to store in the computer's me ... and single (=) equals signs Always be sure to use the double equ ...he ball when it bounces off the wall Move up and down instead of ...
What are GPIO pins on Raspberry Pi?
... showThis & 0b0001) # setup button handlers resetbutto ... 3 leds = [26, 16, 20, 21] GPIO.setup(3, GPIO.IN) GPIO.setup(leds, GPIO.OUT) # function to ...leds, GPIO.HIGH) print("waiting for button") resetLigh ... print("reset") # setup button handlers GPIO.add_event...
How to use a relay module
... It is handy when the thing you want to control requires higher po ... In this tutorial, I will use a water pump and a 1-channel 5V rela ... 1 channel relay to control one water pump. Labels on a Relay Modu ...- pin 3 NO - red(+) wire of the water pump COM - red(+) wire of ba...
How to control Arduino without using delay()
...bject FireTimer ledTimer; void setup() { // Initialize digital pi ...bject FireTimer ledTimer; void setup() { // Initialize digital pi ...tors, like giving each person a watch and ask them to action based ... on their own watches. Wiring There are three wi...
Unity for Beginners Workshop
... 1 - Installing Unity Task 2 - Watch and follow the video tutoria ... and prepare all the assets you want to use (Images and sound file ...nstalling Unity Task 2 - Please watch the Unity for Beginners vide ...le 3D objects for the floor and walls, we recommend creating a bas...
How to control Arduino without using delay()
...0; // will store last time LED was updated // constants won't ch ...h to blink (milliseconds) void setup() { // set the digital pin a ... // the interval at which you want to blink the LED. unsigned ...tors, like giving each person a watch and ask them to action based...
Raspberry Pi Image: Retropie for Reviving Vintage Games
...ie image and add additional software later. It's up to you. We are ...ccordingly, one by one. If you want to skip any button configurat ...SB stick is the most straightforward method. You can find other ways of transferring in RetroPie D ...g the USB stick into the Pi and wait for 5-10 minutes. Remove the ...
How to connect a push button or switch
...hes? Buttons and switches are a way of opening and closing a circu ...ir position, they can be a good way of indicating the mode of a de ...vice, such as playing video forward or backwards. Micro switches can with mo ...in 13 #define buttonPin 4 void setup() { pinMode( ledPin, OUTPUT ...
Using a Monochrome 1.3" 128x64 OLED display
... 0x00, 0x00, 0x00 } }; void setup() { Serial.begin(9600); / ...mage into bitmap code image2cpp was created by GitHub user javl an ...d provides a handy way to create bitmaps without inst ...alling any additional software. Know more here. Upload your ...
Making a Force Sensor/ a Button with Velostat & Conductive Fabric
...stat. int sensorPin = A0; void setup() { Serial.begin(9600); } v ...Pin = 2; int buttonState; void setup() { // put your setup code here, to run once: Serial.begin(9600); pinMode(buttonPin, INPUT_PULLUP); } void loop() { // put your main...
Touch sensor - with No Sensor!
...curacy without ANY external hardware. CapacitiveSensor library wil ... return sum / SMOOTH; } void setup() { Serial.begin(9600); // s ...tiveSensor Library The physical setup includes a medium to high valu ...re and or foil if desired void setup() { cs_...
How to use a Heart Beat Sensor
...lculated Beats Per Minute void setup() { pinMode(LED, OUTPUT); ... signal crosses the threshold upward (beat detected) if (Signal ..., and which to ingore. // The SetUp Function: void setup() { pinMode(LED,OUTPUT); // pin that will bli...
Touch sensor - Using an MPR121
... libraries folder Now the software Arduino IDE is ready, you wil ... #define numElectrodes 12 void setup() { Serial.begin(9600); Wi ...re.begin(); // Setup MPR121 MPR121.begin(0x5A); ...R121.h> #include <Wire.h> void setup() { Serial.begin(9600); Wi...
How to get started with Textures and Materials in Spark AR
...ures and Materials in Spark AR Watch this video which explains th ...s and materials in other 3D software like Blender, Cinema4D, and U ..., they probably work in similar ways. However, you should always keep in mind that Spark AR is ... a separate software and might have implemented di...
Arrays
... 100; var y = 100; function setup() { createCanvas(400, 400); ... p5 Editor Now what if we wanted to have a lot of circles, l ...vidually. Going further, say we wanted to manipulate all of our ci ...rcles in a similar way (for example, move them all le...