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

160 total results found

How to make the Raspberry Pi display a web page fullscreen at power on

Raspberry Pi Tutorials

...be enough for you to be able to setup a Raspberry Pi with GUI mode ...creen.sh export DISPLAY=:0.0 xset s off xset -dpms xset s noblank chromium-browser --noerrdialogs --kiosk https://google.co.uk --incognito Create a folder called autorun inside...

Using a Vibration Motor

Physical Computing Tutorials

...r) Getting started This code is getting the motor to vibrate for 1 second and stop for 1 second. int motorPin = 3; //motor transistor is connected to pin 3 void setup() { pinMode(motorPin, OUTPU ...stop vibrating delay(1000); //wait 50 seconds. }

Making Breathing Light with LEDs

Physical Computing Tutorials

...ED is int fadeAmount = 5; void setup() { pinMode(led, OUTPUT); pinMode(led2, OUTPUT); //optional for 2nd led } void loop() { //breathing light analogWrite(led, brightness); analogWrite(led2, brightness); //optional for 2nd led brightness =...

How to use a Bare Conductive Touch Board with Arduino

Physical Computing Tutorials

...ng the above two tutorials. Hardware Plugin Whenever we use an Ard ...e it opened. Download the Hardware Plugin here: bare-conductive- ...duino-public.zip Create a hardware folder Windows: Libraries/Do ...cuments/Arduino/hardware OR My Documents/Arduino/hardw...

How to build a Simple Robot Arm with Servo Motor and Joystick

Physical Computing Tutorials

...D Workshop to laser cut the hardware. In this tutorial, we will fo ...rvo; Servo angleServo; void setup() { Serial.begin(9600) ; rotateServo.attach(servoRotation); angleServo.attach(servoAngle); } void loop() { // read analog potentiometer val...

Controlling an actuator with a N-channel Mosfet

Physical Computing Tutorials

...ital device. #define actuatorPin 13 void setup() { pinMode( actuatorPin, OUTPUT ); } void loop() { digitalWrite( actuatorPin, HIGH ); delay( 1000 ); digitalWrite( actuatorPin, LOW ); delay( 1000 ); }

Using a Force Sensor

Physical Computing Tutorials

... touch int limit = 200; void setup() { Serial.begin(9600); pinMode(13, OUTPUT); } void loop() { sensorValue = analogRead(sensorPin); Serial.print("Force Level: "); Serial.println(sensorValue); if (sensorValue > limit) { digitalWrite(13, HIGH...

Using a Soil Moisture Sensor

Physical Computing Tutorials

...nge of moisture generally void setup() { Serial.begin(9600); pinMode(13, OUTPUT); } void loop() { sensorValue = analogRead(sensorPin); Serial.print("Moisture Level: "); Serial.println(sensorValue); if (sensorValue < limit) { digitalWrite(13, H...

Using an MFRC522 RFID reader

Physical Computing Tutorials

...h each identification and a two-way radio transmitter-receiver as .../ Create MFRC522 instance void setup() { Serial.begin(9600); // ...s...")); } void loop() { // Reset the loop if no new card is present on the sensor/reader. This saves the entire ...

How to fix "Internal data stream error" in Processing 4

Creative Coding Tutorials

...x (12/2024) Change this line cam = new Capture(this, cameras[0]); to "pipeline:avfvideosrc device-index=0" Full Code import processing.video.*; Capture cam; void setup() { size(640, 480); Stri ..., transformations, or tint. //set(0, 0, cam); }

Using a Membrane Potentiometer (SoftPot)

Physical Computing Tutorials

...he built-in LED when touched lightly. int SOFT_POT_PIN = A0; void setup() { Serial.begin(9600); pinMode(SOFT_POT_PIN, INPUT); } void loop() { int softPotPosition = analogRead(SOFT_POT_PIN); Serial.println(softPotPosition); delay(100); }

Using a HC-SR04 distance sensor

Physical Computing Tutorials

...if the ping sound is reflected away from the sensor by an a diverg ...distanceSensor(13, 12); void setup () { Serial.begin(9600); //initialize serial connection so that we could print values from sensor. pinMode(13, OUTPUT); } void loop () { ...

Touch sensor - Using an CAP1188

Physical Computing Tutorials

...s to help you debug your sensor setup. The CAP1188 has support for both I2C and SPI, so it easy to use with any microcontroller. If you are using I2C, you can select one of 5 addresses, for a total of 40 capacitive touch pads on one I2C 2-wire bus. Using t...

How to use a Flat Vibration Switch

Physical Computing Tutorials

...ED on most Arduino boards void setup() { Serial.begin(9600); } void loop() { int state = digitalRead(vibrationPin); if (state == HIGH) { digitalWrite(ledPin, HIGH); Serial.println("Vibration detected!"); } else { digitalWrite(ledPin...

How to use a Reed Switch

Physical Computing Tutorials

... // LED pin - active-high void setup() { Serial.begin(9600); // Since the other end of the reed switch is connected to ground, we need // to pull-up the reed switch pin internally. pinMode(REED_PIN, INPUT_PULLUP); pinMode(LED_PIN, OUTPUT); } v...

How to use a EMG Muscle Sensor

Physical Computing Tutorials

...ZE]; int data_index, sum; void setup() { // Serial connection begin Serial.begin(115200); pinMode(13, OUTPUT); } void loop() { static unsigned long past = 0; unsigned long present = micros(); unsigned long interval = present - past; past ...