Advanced Search
Search Results
164 total results found
Using a TCS34725 RGB Color Sensor
...ples > Adafruit TCS34725 > colorview in Arduino IDE, upload to Ardui ...5 > examples_processing > colorview in Arduino IDE, copy and paste ... code in Processing, we have to set up the serial port for the communication between Arduino and Processing. Go ...
How to use a Neopixel strip
...or lengthen them flexibly. Once set up, they are very durable and efficient. They are commo ...eoPixel library will be used. **Warning**Download version 1.9.0 or below for a more stable performance. We have a tutorial on how to install a library here. Gett...
DFRobot Sensor Testing: HX711 Weight Sensor, Voice Recorder Module Pro, Speech Synthesis Module V2
...but you can change the pitch by setting the tone from 0-9 (0 is the deepest). Please see here for their official tutorial. Voice Recorder Module Pro This module has an integrated recording and playback function and supports I2C communication. It can store ...
How to make the Raspberry Pi display a web page fullscreen at power on
...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
...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
...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
...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
...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
...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
... 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
...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
...h each identification and a two-way radio transmitter-receiver as ...IN 9 // Configurable, see typical pin layout above ...N 10 // Configurable, see typical pin layout above .../ Create MFRC522 instance void setup() { Serial.begin(9600); // ...
How to fix "Internal data stream error" in Processing 4
...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); }
How to connect a Light Dependent Resistor (LDR)
... A0 int value; int limit; void setup() { Serial.begin( 9600 ); pinMode( ldrPin, INPUT ); pinMode(LED_BUILTIN, OUTPUT); } void loop() { value = analogRead( ldrPin ); Serial.println( value ); if(value < limit){ digitalWrite(LED_BUILTIN, ...
Using a Membrane Potentiometer (SoftPot)
...t or rotational measurement. Durability: No mechanical wear like t .... 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(sof...
Using a HC-SR04 distance sensor
...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
...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
...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...