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

128 total results found

How to control Arduino without using delay()

Physical Computing Tutorials

...te a FireTimer object FireTimer ledTimer; void setup() { // Init ...ialize digital pin LED_BUILTIN as an output pinMode(LED_BUILTIN, OUTPUT); // Initial ... a delay of 1000 milliseconds ledTimer.begin(1000); } void loop( ...ck if the timer has fired if (ledTimer.fire()) { // Toggle th...

Making Breathing Light with LEDs

Physical Computing Tutorials

What is a LED? LED (Light Emitting Diode) is a sem ... when current flows through it. LED includes two pins, Cathode(-), ...n controlling the brightness of LED, speed control of DC motor, con ... is breathing light. The second LED in this tutorial is optional. W...

How to use 7-Segment LED Backpack

Physical Computing Tutorials

What is 7-Segment LED Backpack? This version of the LED backpack is designed for these ... of everything, drawing all the LEDs in the background. All you hav ...steps. It cannot dim individual LEDs, only the entire display at on ... while (!Serial); // Leonardo: wait for Serial Monitor Serial.p...

How to control Arduino without using delay()

Physical Computing Tutorials

...sh but pauses everything controlled by the same Arduino and the sam ... There is a built-in example called BlinkWithoutDelay which demonst ... to set a pin number: const int ledPin = LED_BUILTIN; // the number of the LED pin // Variables will change: ...

Pi War 2024 Log

Raspberry Pi

Documentation of Pi War 2024 Pi Wars is an international, challeng ...ight, and the other controls forward and backwards. Problems with batteries Thi ... print("Hello.") def right_forward(): motor1a.value(0) m ... motor2b.value(1) def left_forward(): motor2a.value(0) m...

How to control Raspberry Pi Pico via Wifi

Raspberry Pi Tutorials

...ome a ubiquitous and convenient way for people to access the inter ...de will turn on/off the onboard LED on Pico via wifi without an ext ... address**/light/on to turn the LED on go to http:// **IP address** .../light/off to turn the LED off import network import sock...

How to use Waveshare E-Paper Display with Raspberry Pi

Raspberry Pi Tutorials

What is a Waveshare E-Paper Display? A Waveshare E-Paper Display is an el ... tutorial, we will be using the Waveshare model epd7in5V2, a Raspb ...ub git clone https://github.com/waveshare/e-Paper.git Go to the D ...minal or use a Python-based software such as Visual Studio or Thon...

How to Display Animation on Waveshare E-Paper Display

Raspberry Pi Tutorials

How to use Waveshare E-Paper Display? Please ...er and save them in a folder called ‘animation’ Rename all jpg to ...port logging import random from waveshare_epd import epd7in5_V2 import time from PIL import Image,ImageDraw,ImageFont import traceback logg...

What are GPIO pins on Raspberry Pi?

Raspberry Pi

... that it focuses on buttons and LED instead of the actual GPIO pins .... i.e. LED = OUTPUT, button = INPUT. Some ...understand, like turning on the LED is literally leds.on(). gpiozero is simple and ...t if you are not actually using LEDs or buttons, it can be a bit co...

8th Wa...

How to use a Heart Beat Sensor

Physical Computing Tutorials

...l monitor and blink the builtin LED to indicate each beat. int Puls ... connected to analog pin A0 int LED = LED_BUILTIN; // On-board ... LED int Threshold = 550; ...inute void setup() { pinMode(LED, OUTPUT); Serial.begin(115200...

Finding your way around Spark AR (UI Explainer)

Spark AR First Look at Spark AR

Watch this video by Meta explaining the UI and different panels in Spark AR

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 ...get your button controlling the LED built into the Arduino. #define...

Combining codes & circuits

Physical Computing Workshop: Beginner Physical Computing

...ept one code at one time. If we want it to do multiple things at t ...values from sensor. pinMode(LED_BUILTIN, OUTPUT); } Variable ...s the distance value, and if we want to use the data, we will need ...if statement is the most common way to make a simple interaction b...

Radio Communication: How to use RFM69HCW Radio Data Module

Physical Computing Tutorials

... #define RFM69_RST 2 #define LED 13 // Singleton instan ... //while (!Serial) delay(1); // Wait for Serial Console (comment o ...line if no computer) pinMode(LED, OUTPUT); pinMode(RFM69_RST, ...al.println("RFM69 radio init failed"); while (1); } Serial....

How to use Grove Serial Bluetooth v3.0

Physical Computing Tutorials

...obtaining a copy * of this software and associated documentation ...files (the "Software"), to deal * in the Software without restriction, includin ...nd/or sell * copies of the Software, and to permit persons to who ...m the Software is * furnished to do so, sub...

What is a Raspberry Pi Pico?

Raspberry Pi

...the Raspberry Pi Foundation. It was announced in January 2021 and ... or 4. Instead of being a full-fledged computer, the Raspberry Pi P ...show up as an external drive called RPI-RP2. Copy the MicroPython . ...le code will blink the built-in LED every 0.5 seconds, using the ma...

Using built-in example code and Reading the hookup diagram

Physical Computing Workshop: Beginner Physical Computing

...d the code. 2. Blinking Orange LED The orange LED labelled as L should be blinking now. 3 ...rol and what are they. pinMode(LED_BUILTIN, OUTPUT); we are using ...the built-in on-board tiny LED and it is an output as it is a ...ill loop forever. digitalWrite(LED_BUILTIN, HIGH); means we are w...