Double-sided tape is not a good solution, it ends up coming off with vibrations. You should make some pliers.
@fransdekker15 күн бұрын
2:23 VMOT to 3.3V? Must be VDD to 3.3V?
@heltoncarneiro5916 күн бұрын
Hi where can i find this libraries? <ClickEncoder.h> and <TimerOne.h>
@ROSELLEPUYONG22 күн бұрын
Hi can i ask what software you used?
@rebel_yt722224 күн бұрын
Ur project is so useful sir. 🎉❤
@KillerGuy26 күн бұрын
but arent the esp32 gpio pins only rated for 3.3V?
@tanmanh070720 күн бұрын
Same question.
@doit.2029 күн бұрын
const int soundSensorPin = 2; // Sound sensor digital output pin const int ledPin = 13; // LED pin int soundState = 0; // Variable to store the state of the sound sensor int lastSoundState = 0; // Variable to store the last state of the sound sensor int ledState = LOW; // Variable to store the state of the LED (LOW means OFF) unsigned long lastClapTime = 0; // Stores the time of the last detected clap const unsigned long debounceDelay = 500; // Time in milliseconds to wait after detecting a clap void setup() { pinMode(soundSensorPin, INPUT); pinMode(ledPin, OUTPUT); Serial.begin(9600); // For debugging purposes } void loop() { soundState = digitalRead(soundSensorPin); // Detect a rising edge: the moment the sound sensor goes from LOW to HIGH if (soundState == HIGH && lastSoundState == LOW && (millis() - lastClapTime) > debounceDelay) { ledState = !ledState; // Toggle the LED state digitalWrite(ledPin, ledState); // Set the LED to the new state Serial.println(ledState == HIGH ? "LED turned ON" : "LED turned OFF"); lastClapTime = millis(); // Update the last clap time } lastSoundState = soundState; // Update the last sound state }
@Betty19chАй бұрын
What music name? thx!
@TaigaPalenzuelaOkaАй бұрын
pa shout out nga po
@priyasingh-jy4jyАй бұрын
code is not working
@SANGEETA004Ай бұрын
Pls help can i use vibration sensor
@leenakhachaneАй бұрын
the code giving couldnt find rtc error
@marcosdasilva7409Ай бұрын
SHOW
@NiltonRojasSanchez-sb1moАй бұрын
Saludos de peru buen proyecto
@krixpiАй бұрын
Great 🙏🏼
@krixpiАй бұрын
Good vídeo 👌🫶🏼
@thisismeayer5086Ай бұрын
can I have the 3D design?
@nurullahayhanАй бұрын
deste saxbi bıraye delal dembaş
@Madankumaar1990Ай бұрын
Circuit diagram bro
@golamkudduspurkait6881Ай бұрын
TRY TO FOCUS FIRST THEN MAKE VIDEOS PLS
@vu2eafАй бұрын
Are you making it in bulk for sale
@MarceloFontes12 ай бұрын
Where can I find the parts you've used?
@tonkofonko2 ай бұрын
Please HELP ! When I uploaded code to esp32 on my Raspberry Pi Display was only GRAY color and nothing worked.
@raymondmichael4987Ай бұрын
I saw the same question on the older video, he didn’t give an answer too, that’s frustrating. Which display driver did you configure to use perhaps we can work it out together, because I have such a display laying arround 😊
@tonkofonkoАй бұрын
@@raymondmichael4987 bruhhh
@tonkofonko2 ай бұрын
Pls HELP ! My display is filled with GRAY color only ! idk why. How can I fix it ?
@mayurbhosale99812 ай бұрын
Its getting stuck at loop when scanned a tag at same page on screen door open doesn't go back to main page
@m-techno83522 ай бұрын
Can you helm me to make code, if i use rotary encoder, not with two button?
@RixtronixLAB2 ай бұрын
Creative video, always keep it up, thank you :)
@yogenrai56512 ай бұрын
thank you sir for sharing your knowledge and the code .Sir can you please make a video to make menu using buttons if you can
@JudeBellimgham902 ай бұрын
how can i make it work without it being pluged in the computer and how to power it up
@bahothard1962 ай бұрын
Bro my encoder is diffrent type i am not undestand in my encoder have 5 no. Of pin 😢
@mendy9332 ай бұрын
Do I have to use the switch to change directions?I want to use it via arduino
@SidekickElements2 ай бұрын
What motor/spindle are you using here and what rpm does it run at?
@pullup9352 ай бұрын
Great video
@Dipplers3 ай бұрын
What vcr did you get the motor from?
@doit.203 ай бұрын
It was from a sony VCR, i couldn't remember the model number.
@malikamanchanayake50063 ай бұрын
Works like a Charm.... Thanks a lot Bro
@mohamedabdelmalekbouchrika61343 ай бұрын
ro7 tchouf cinema fel hand
@mohamedabdelmalekbouchrika61343 ай бұрын
aya riglilna driver hbb <3333
@doit.203 ай бұрын
// Define pins const int motorIn1 = 2; const int motorIn2 = 3; const int enableA = 9; // for speed control const int buttonPin = 4; const int potPin = A0; // potentiometer connected to analog pin A0 // Variables to store button state and motor state int buttonState = 0; int lastButtonState = 0; bool motorRunning = false; void setup() { // Set motor control pins as outputs pinMode(motorIn1, OUTPUT); pinMode(motorIn2, OUTPUT); pinMode(enableA, OUTPUT); // Set button pin as input pinMode(buttonPin, INPUT); // Start with motor off digitalWrite(motorIn1, LOW); digitalWrite(motorIn2, LOW); analogWrite(enableA, 0); // Speed 0 } void loop() { // Read the state of the button buttonState = digitalRead(buttonPin); // Check if the button has been pressed (transition from LOW to HIGH) if (buttonState == HIGH && lastButtonState == LOW) { // Toggle motor state motorRunning = !motorRunning; // Debounce delay delay(50); } // Save the current button state as the last state lastButtonState = buttonState; // Read the potentiometer value and map it to the PWM range (0-255) int potValue = analogRead(potPin); int speed = map(potValue, 0, 1023, 0, 255); if (motorRunning) { // If motor is running, set the motor speed based on the potentiometer value digitalWrite(motorIn1, HIGH); digitalWrite(motorIn2, LOW); analogWrite(enableA, speed); // Set speed based on potentiometer value } else { // If motor is not running, stop the motor digitalWrite(motorIn1, LOW); digitalWrite(motorIn2, LOW); analogWrite(enableA, 0); // Speed 0 } }
@prestononuselogu99734 ай бұрын
Woah, thanks :)
@doit.204 ай бұрын
#include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #include <RTClib.h> #define SCREEN_WIDTH 128 // OLED display width, in pixels #define SCREEN_HEIGHT 64 // OLED display height, in pixels #define OLED_RESET -1 // Reset pin # (or -1 if sharing Arduino reset pin) Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET); RTC_DS3231 rtc; void setup() { Serial.begin(9600); // Initialize the OLED display if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) { // Address 0x3C for 128x64 Serial.println(F("SSD1306 allocation failed")); for(;;); // Don't proceed, loop forever } // Initialize the DS3231 RTC if (!rtc.begin()) { Serial.println("Couldn't find RTC"); while (1); } if (rtc.lostPower()) { Serial.println("RTC lost power, let's set the time!"); // The following line sets the RTC to the date & time this sketch was compiled rtc.adjust(DateTime(F(__DATE__), F(__TIME__))); // Uncomment the next line to set the date & time manually // rtc.adjust(DateTime(2024, 5, 25, 12, 0, 0)); } display.display(); delay(2000); // Pause for 2 seconds display.clearDisplay(); } void loop() { DateTime now = rtc.now(); // Clear the buffer display.clearDisplay(); display.setTextSize(2); // Larger text size display.setCursor(22, 0); display.print("DoIt.20"); // Display the current date display.setTextSize(1); // Larger text size display.setCursor(0, 25); display.print("Date: "); display.print(now.year(), DEC); display.print('/'); if (now.month() < 10) display.print('0'); display.print(now.month(), DEC); display.print('/'); if (now.day() < 10) display.print('0'); display.print(now.day(), DEC); // Display the current time display.setTextSize(2); // Larger text size display.setTextColor(SSD1306_WHITE); display.setCursor(0, 40); // display.print("Time: "); if (now.hour() < 10) display.print('0'); display.print(now.hour()); display.print(':'); if (now.minute() < 10) display.print('0'); display.print(now.minute()); display.print(':'); if (now.second() < 10) display.print('0'); display.print(now.second()); // Show the buffer on the display display.display(); // Wait for a second before updating delay(1000); }
@doit.204 ай бұрын
const int potPin = 34; // Analog input pin for potentiometer on ESP32 const int ledPin = 5; // PWM enabled pin for LED on ESP32 void configurePWM() { const int freq = 5000; // PWM frequency const int ledChannel = 0; // PWM channel const int resolution = 8; // PWM resolution (8 bits) // Configure LED PWM functionalities ledcSetup(ledChannel, freq, resolution); // Attach the channel to the GPIO to be controlled ledcAttachPin(ledPin, ledChannel); } void setup() { pinMode(potPin, INPUT); // Set the potentiometer pin as input configurePWM(); // Configure PWM for the LED } void loop() { int sensorValue = analogRead(potPin); // Read potentiometer value (0-4095 on ESP32) int brightness = map(sensorValue, 0, 4095, 0, 255); // Map potentiometer value to LED brightness (0-255) ledcWrite(0, brightness); // Set LED brightness using PWM on channel 0 }
@Jeydenbjorn4 ай бұрын
hello i already sent to you a message in skype
@Jeydenbjorn4 ай бұрын
hi good day i already sent a message to your skype
@doit.204 ай бұрын
#include <Servo.h> // Define pins for servos and joystick #define X_AXIS_PIN A0 #define Y_AXIS_PIN A1 #define X_AXIS_SERVO_PIN 9 #define Y_AXIS_SERVO_PIN 10 Servo xServo; Servo yServo; // Define constants for controlling smoothness #define SERVO_STEP_DELAY 10 // Delay between each step (ms) #define SERVO_STEP_AMOUNT 2 // Amount to change angle in each step void setup() { // Initialize servos and joystick xServo.attach(X_AXIS_SERVO_PIN); yServo.attach(Y_AXIS_SERVO_PIN); pinMode(X_AXIS_PIN, INPUT); pinMode(Y_AXIS_PIN, INPUT); } void loop() { // Read joystick values int xValue = analogRead(X_AXIS_PIN); int yValue = analogRead(Y_AXIS_PIN); // Map joystick values to servo angles (0-180) int xTargetAngle = map(xValue, 0, 1023, 0, 180); int yTargetAngle = map(yValue, 0, 1023, 0, 180); // Gradually move servos to the mapped angles moveServoSmoothly(xServo, xTargetAngle); moveServoSmoothly(yServo, yTargetAngle); } void moveServoSmoothly(Servo &servo, int targetAngle) { int currentAngle = servo.read(); if (currentAngle != targetAngle) { int stepAmount = (targetAngle > currentAngle) ? SERVO_STEP_AMOUNT : -SERVO_STEP_AMOUNT; while (currentAngle != targetAngle) { currentAngle += stepAmount; servo.write(currentAngle); delay(SERVO_STEP_DELAY); } } }
@Jeydenbjorn4 ай бұрын
pls reply to me as soon as possible we need yo thanks
@EndangAhmadSyafei4 ай бұрын
Thank "s
@doit.204 ай бұрын
const int ledPin = 14; // Pin to which LED is connected (you can change this pin) const int buttonPin = 15; // Pin to which button is connected (you can change this pin) bool ledOn = false; // Flag to indicate LED status unsigned long lastDebounceTime = 0; // Last time the button pin was toggled unsigned long debounceDelay = 50; // Debounce time in milliseconds void setup() { pinMode(ledPin, OUTPUT); // Set LED pin as output pinMode(buttonPin, INPUT_PULLUP); // Set button pin as input with pull-up resistor } void loop() { int buttonState = digitalRead(buttonPin); // Check if the button is pressed and debounce the input if (buttonState == LOW && (millis() - lastDebounceTime) > debounceDelay) { lastDebounceTime = millis(); // Button is pressed ledOn = !ledOn; // Toggle LED status // Update LED state digitalWrite(ledPin, ledOn ? HIGH : LOW); } }