Arduino Workshop - Chapter Two - Using Serial Monitor

Поділитися
Вставка
  • Опубліковано 30 січ 2025

КОМЕНТАРІ • 17

  • @ryanbarrera2595
    @ryanbarrera2595 6 років тому

    Thanks for the upload

  • @ildisonorevolesannita1026
    @ildisonorevolesannita1026 3 роки тому +1

    sorry for my English
    does the the serial monitor function only when arduino is connected with the PC?

  • @generalpackagingequipmentc3678
    @generalpackagingequipmentc3678 4 роки тому

    Very helpful.

  • @onkarkumar9247
    @onkarkumar9247 6 років тому +2

    Can you tell me how can I erase the old data from my Arduino Uno board to upload a new one

  • @batticha462
    @batticha462 6 років тому

    why you don't use the auto format option after copying the sketch ?

  • @babyyoda756
    @babyyoda756 4 роки тому

    Can't u use ctrl+t to do the indentation?

  • @catiru510
    @catiru510 5 місяців тому

    my serial monitor says "not connected. select a board to connect automatically" how can i fix this??

  • @daveklebt7732
    @daveklebt7732 6 років тому

    Ah Crap, I read that title as using Two Serial ports, since At Mega has two ports. can I shunt the data of one Serial.read() to print that out in the second Serial port and view that in the serial monitor?
    It be helpful to he able to see the incoming data, while using it...

  • @martinspence4783
    @martinspence4783 6 років тому

    i have been watching your workshop it is great i am having a problem when i try to manage my library or upload to my library it keep saying cc.arduino.contribuion.librery please can you help

  • @hissenguinho
    @hissenguinho 6 років тому

    For some reason my serial monitor doesn't make a new line :( do you know the reason?

    • @mouneermahomed7507
      @mouneermahomed7507 6 років тому +1

      Hissenguinho try Serial.println(); instead of Serial.print();

  • @jettanat1351
    @jettanat1351 2 роки тому +1

    int ledPin = 3;
    int buttonPin = 2;
    int potPin = A0;
    void setup() {
    // setup pin modes
    pinMode(ledPin, OUTPUT);
    pinMode(buttonPin, INPUT_PULLUP);
    pinMode(potPin, INPUT);
    // initialise serial port with baud rate of 9600
    Serial.begin(9600);
    }
    void loop() {
    // read the state of buttonPin and store it as buttonState (0 or 1)
    int buttonState = digitalRead(buttonPin);

    // read the value of the pot, divide it by 4, and store it as potValue
    int potValue = analogRead(potPin);
    int filteredPotValue = potValue / 4;
    // turn led on with the value of potValue
    analogWrite(ledPin,filteredPotValue);
    // print the value of the button
    Serial.print("Button: ");
    Serial.print(buttonState);
    Serial.print(" ");
    // print the value of the pot
    Serial.print("Pot: ");
    Serial.print(potValue);
    Serial.print(" ");
    // print the value of the pot / 4 with a line return at the end
    Serial.print("Pot/4: ");
    Serial.println(filteredPotValue);
    }