Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

147 total results found

Week 1 - Coordinates, shapes and colour

Creative Coding Workshop: Introduction to Creative Coding

... What is a sketch? What do the setup() and draw() functions do? Ad ...tten. Sketch - Why a sketch? setup() and draw() Within the sket ...ch we have two functions: setup() and draw(). p5.js calls/runs ...r us in a particular order. The setup function runs first and only o...

Using a Monochrome 1.3" 128x64 OLED display

Physical Computing Tutorials

... 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 ...

Touch sensor - with No Sensor!

Physical Computing Tutorials

...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_...

Using an PN532 RFID reader

Physical Computing Tutorials

..."}; //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

Physical Computing Tutorials

... 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

Spark AR Importing 3D content from different sou...

...? 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

Creative Coding Workshop: Introduction to Creative Coding

... 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?

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 7-Segment LED Backpack

Physical Computing Tutorials

...e 13 pins (5 'characters' and 8 total segments each) This backpack so ...rduino. #include <Wire.h> void setup() { Wire.begin(); Serial. ... while (!Serial); // Leonardo: wait for Serial Monitor Serial.p ...done\n"); } delay(5000); // Wait 5 seconds for next scan } G...

How to use a relay module

Physical Computing Tutorials

... 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()

Physical Computing Tutorials

...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

Unity

... 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()

Physical Computing Tutorials

...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

Raspberry Pi Raspberry Pi Image

...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

Physical Computing Tutorials

...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 ...

Making a Force Sensor/ a Button with Velostat & Conductive Fabric

Physical Computing Tutorials

...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...

How to use a Heart Beat Sensor

Physical Computing Tutorials

...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

Physical Computing Tutorials

... 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...