Arduino - Send Commands with Serial Communication

Sdílet
Vložit
  • čas přidán 27. 08. 2024
  • Find Code at: www.elithecomp...
    With the Arduino IDE Serial Monitor you can send commands to your Arduino.
    Functional Parts in the Project:
    Arduino Uno - store.arduino....
    560 Piece Jumper Wire Kit - amzn.to/2MsCLjL
    220 Ohm Resistors - amzn.to/2RiiMD9
    Breadboard Kit - amzn.to/2Xih5ei
    LED Kit - amzn.to/2Rjhs2N

Komentáře • 97

  • @philipvecchio3292
    @philipvecchio3292 Před 3 lety +35

    Adding a comment to support quality technology education on CZcams.

  • @adrianmoore2750
    @adrianmoore2750 Před 3 lety +10

    I forgot but.... This is exactly how you earned my sub. Like the rants, but this is solid.

  • @DjapDude11111
    @DjapDude11111 Před 3 lety +19

    Some quality content

  • @rgoonewardene380
    @rgoonewardene380 Před 3 lety +6

    Love this. Looking forward to the next instalment.

  • @philipvecchio3292
    @philipvecchio3292 Před 3 lety +11

    Clickbait Title: ELI DESTROYS automation problems with DATA and LOGIC

  • @wolbachia4103
    @wolbachia4103 Před 3 lety +3

    This series is exactly what I need for my current project. Your tutorials are amazing, thank you for putting it out here for all of us!

  • @wagnermotors99
    @wagnermotors99 Před 3 lety +1

    Ive been using arduino for years and never knew it could communicate with serial, it opens up so many more possibilities. Cant wait to see more on this.

  • @josephjewell8397
    @josephjewell8397 Před 3 lety +3

    I like most of your videos, but I'm glad to see some more tech videos coming out. I hope Silicon Dojo goes well.

  • @blackdog542
    @blackdog542 Před 3 lety +1

    Love the snarky news comments, but this is why I SUBd so long ago. Thank you

  • @Cognitoman
    @Cognitoman Před 3 lety +1

    Here I am Eli. I'm going to watch this.

  • @kostickar777
    @kostickar777 Před 3 lety +2

    Hey, just wanna thank you for the stuff you are putting/ did put out. I am now watching through your networking classes and I have to say they are so easy to understand compared to lectures from my networking teacher. Same with arduino stuff, you actually got me to dust off my good o'l arduino.

  • @donarnold8268
    @donarnold8268 Před 3 lety +3

    Thank You!
    Posting on Facebook...

  • @superblazedmonkey
    @superblazedmonkey Před 2 lety

    Awesome to see examples of applications in addition to the tutorial!

  • @MrChucklesMonster
    @MrChucklesMonster Před 3 lety +1

    Been wanting to do something like this for a while. Looking forward to these tutorials.

  • @daltonbrady2492
    @daltonbrady2492 Před 3 lety +1

    Omg tech content from Eli

  • @durkadurka2323
    @durkadurka2323 Před 3 lety

    Very cool! Once had a school project to get a micro drone to hover at a specified height. We used arduino with a sonar module to determine drone height and fed that to a raspberry pi for PID controller computation.

  • @haze42082
    @haze42082 Před 3 lety

    Oh dude I'm with you on this, cool video, thanks! Much respect for putting in tons of hard learned info into a short video like this. I learned more about arduino in this 17min video than I did from watching hrs of videos on the damn thing lol. Thanks again, great video.

  • @sethaaron510
    @sethaaron510 Před 3 lety +1

    Thank you!

  • @yankee12312
    @yankee12312 Před 3 lety +3

    Is it possible to do all of this with just the Pi? Can you hook up sensors and relays to the Pi? Also.. your code would be cleaner with a switch case statement instead of all those ifelse's. But I understand for a tutorial for beginners ifelse's are easier to understand.

  • @opacity7021
    @opacity7021 Před 3 lety

    It's great, Eli. More, please!

  • @joveaaron-real
    @joveaaron-real Před 2 lety

    OMG TYSM i now have finished alpha 0.1 of my primitive os (planning to add fdd support)

  • @JimAllen-Persona
    @JimAllen-Persona Před 3 lety +1

    Why “high”, “low”? Yes, I know it’s the instruction to the interface but is only binary (on/off)?

    • @lgrfbs
      @lgrfbs Před 3 lety

      Yes, it is the only state a digital pin can have on a Arduino.

    • @lemfet3526
      @lemfet3526 Před 3 lety

      Nope. High will output 5V and low will output 0V
      0V is not off because you can connect a led between the 5V and that pin (reverse the led) and it will also turn on

  • @mohammed_najib
    @mohammed_najib Před 3 lety

    Yes.. please keep doing this kind of teaching.. looking foreword to learn about technology and Iot world

  • @FilmFactry
    @FilmFactry Před 3 lety +1

    Try an ESP 32 - Wifi + Bluetooth microcontroller.

  • @dipto100
    @dipto100 Před 3 lety

    Great Video. Learned a lot in 17 minutes.

  • @EightDelta
    @EightDelta Před 3 lety +1

    A Serial Monitor monitoring Cereal over Serial to make a Cereal Monitor in a Serial Database dedicated to Cereal readings over Serial.

  • @gabakusa
    @gabakusa Před 3 lety

    Wow
    It is going to rain
    At least a real class

  • @karlstudnik6121
    @karlstudnik6121 Před 2 lety

    Thanks a lot! Thats what i was looking for ... Muj bien!

  • @tomoguitaro
    @tomoguitaro Před 3 lety +1

    May I suggest a direction/extension to this series. Some machine learning or AI processing on a data set to make it worth involving the pi when the Arduino mega can do a lot. I happen to be collecting a stream of about a dozen sensors and values from a solar battery array that I built. I want to pass information between the devices store it in a database and eventually stream live data to a webpage for people to look at and potentially use as an accessible real world data stream for people to experiment with processing when they may not want to build a bunch of hardware. It is a 3 kW solar system with east and west facing panels connected to two charge controllers, a 4 kW battery and a 4 kW inverter. The Arduino currently prints a line in .csv format every 20 seconds and the python code running on the pi’s terminal stores it to a file from which I graph a few subsets of the data to visualize. A 55 gallon water heater with 4 kW heating elements and a refrigerator are the primary load. I store battery voltage, output voltage and current from both solar arrays using voltage dividers on a protoshield and hall effect sensors, Temperature and humidity inside the building where the equipment is located as well as in an adjacent garden area, top and bottom temperature of the water heater, power from both solar charge controllers, power consumed by the inverter, power from the grid into the inverter when battery is low, and the state of several relays and contactors in a .csv file every 20 seconds.
    This all being said I would be happy to volunteer some or all of my data stream if you think it would be interesting to process in some meaningful way to operate the system more effectively. I plan to add a wind generator and some other weather sensors to the system.
    Thank you for the awesome videos!

  • @propaul4428
    @propaul4428 Před 3 lety

    I like this content better Eli.

  • @hooplernono7033
    @hooplernono7033 Před 3 lety

    Thank you!awaiting for the next part. :-)

  • @shifter11101
    @shifter11101 Před 2 lety

    Just the tutorial im looking for.

  • @TomasCarrascoFerrarezi

    Great video, thanks a lot

  • @wilburjones4084
    @wilburjones4084 Před 3 lety

    This is all very interesting and informative and all Eli but when are you going to do a Try on Haul?

  • @michaelrj9
    @michaelrj9 Před 3 lety

    Really great tutorial. Keep up the great work!!! It helps me out understanding the basics.

  • @magnuswootton6181
    @magnuswootton6181 Před 3 lety

    Connecting to a high powered GPU, is a good reason to do this, not just a Rasp-Pie.

  • @BeginningofDays
    @BeginningofDays Před 3 lety

    Excellent.

  • @steineronie
    @steineronie Před 3 lety

    I appreciate the technology video!

  • @Ganonne
    @Ganonne Před 3 lety

    Thank you for the great vid!

  • @gugolple
    @gugolple Před 3 lety

    May I suggest that you use esp32/esp8266, they are very very similar to arduino and can be programmed with the arduino IDE, but they work on 3.3Volts meaning they operate at the same voltage than the raspberry pi the can be directly connected (arduino works at 5V and may damage the raspberry pi without a level converter).
    Another advantage for the esp32/esp8266 is that they can be connected to the wifi network, giving you the capacity of building an IOT device.
    I hope my two cents helped anyone.

  • @gabakusa
    @gabakusa Před 3 lety

    Cant you just use Arduino for everything instead of adding raspberry pi?

  • @bonkers191
    @bonkers191 Před 3 lety

    Thank you Eli

  • @jacquelinewalker6357
    @jacquelinewalker6357 Před 5 měsíci

    why can't you just do it off a regular laptop/can u do it with vs code?/ok i found out i could use vs code from chat. I do appreciate you. your very well needed. Glad you don't mind helping those with less.

  • @christopherlewis2754
    @christopherlewis2754 Před 3 lety

    Was just curious what size resistors you use and if it's important. I'm trying to set up 6 lights on mine.

  • @Anothecloudguy
    @Anothecloudguy Před 3 lety

    well explained, Thank you!

  • @Thomas-bs2em
    @Thomas-bs2em Před 2 lety

    What if I wanted to setup the arduino with an input other than the USB? could serial.read() be setup for that?
    Great Video BTW

  • @markanthonynilo9198
    @markanthonynilo9198 Před 4 měsíci

    Can you reset arduino board by sending a serial monitor command?

  • @notnecessary7730
    @notnecessary7730 Před 3 lety

    Raz Pi is a computer which sends & receives code language to the controller!!

  • @webdeveloperninja9220
    @webdeveloperninja9220 Před 3 lety

    Good stuff

  • @summerfarrell792
    @summerfarrell792 Před rokem

    HI Eli, i loaded your code in the IDE but its giving me an error with the command definition. specifically "command = Serial.readStringUntil('
    ');" The message i get is this "'command' was not declared in this scope" any tips to fix?

  • @melannieworld
    @melannieworld Před 2 lety

    I have a claw machine, which i would like to setup something like this to move the claw and drop the claw by using my computers keyboard. Any ideas, where to start?.

  • @sazfiury8803
    @sazfiury8803 Před 3 lety

    Oh thank fuck you actually made this video!

  • @waterflyer123
    @waterflyer123 Před 3 lety

    I'm excited for more arduino content! So I don't have to pull my hair out again! It seems you have lost all of yours eli!

  • @potatogenic
    @potatogenic Před 3 lety

    *Posts educational computer content
    Viewers:...
    *Posts Critiques about tech and news
    Viewers: WHOOOO!

  • @nicholaschiappini5040

    why can i send a command in my serial monitor, i can typ it in but when i hit enter nothing happens, also my serial monitor looks different and it has no place that says SEND for me to click on???

  • @xboxlive6
    @xboxlive6 Před 3 lety

    The Raspberry Pi has GPIO pins, you can do the same thing without the Arduino.

    • @elithecomputerguy
      @elithecomputerguy  Před 3 lety

      An arduino mega has 54 digital pins.... creating subsystems allows for interesting projects

    • @xboxlive6
      @xboxlive6 Před 3 lety

      @@elithecomputerguy You can use an I2C/SPI expander for 140 GPIO pins on the Pi.

  • @gitaris87
    @gitaris87 Před 2 lety

    hello, how can I transfer a number or character obtained from python to arduino via serial communication?

  • @davidcaballol
    @davidcaballol Před 3 lety

    Nice vid!! Keep It up!!

  • @016632
    @016632 Před rokem

    so how do I send a command from my pc not from serial port? can i make a bat file and then convert to exe to be targeted with a press of a button? I have project requiring rs232

  • @christopherlewis2754
    @christopherlewis2754 Před 3 lety

    Hey there Eli, I'm currently enrolled in a computer hardware class and I'm working on my final project. I was just curious if you had a diagram of how you connected the hardware on your Arduino to make this assignment work? I was going to imitate what you did, attribute it to your video as a source, and then add to it. Awesome video and any help that you can provide is greatly appreciated.

    • @christopherlewis2754
      @christopherlewis2754 Před 3 lety

      I missed the part where you explained it, just saw it, awesome job again!

  • @overratedgaming3831
    @overratedgaming3831 Před 3 lety

    Would there be a way to test for the beginning of the command and than a value written after to convert to an int, for example, “Duty:123” to control pwm signal to led or fan controller?

    • @overratedgaming3831
      @overratedgaming3831 Před 3 lety

      I’ve been using substring and startsWith to test for the initial command but it gets trickier when looking for the 1-3 digit value, I’ve tried breaking the string down byte by byte and then adding the char if it isNumeric to an int (not sure if that’s the actual term) I’ve found a way to make it work but the code is exhausted and I can only assume it’s consuming to the processing power

  • @InterdimensionalWiz
    @InterdimensionalWiz Před rokem

    how can i run hex files from an sd card on arduino? can i use an arduino nano to read sd then uart send it to a mega2560 flash and then the mega is reset to run the code?

  • @martinesser7615
    @martinesser7615 Před 3 lety

    Eli what do you think Donald Trump thinks about serial communication ? Do you think Biden is more of a I2C guy ? I think AOC is more of an AVR Person

  • @donkeypoopdragon
    @donkeypoopdragon Před 10 měsíci

    Thanks for telling us that pyserial isn't thread or multiprocess safe , Eli! Grrrrrrr jk thanks for the vid. Yeah u can't use this with threading or multiprocessing major bummer

  • @Randy778
    @Randy778 Před 3 lety

    I found this channel because of it´s educational value. And Yes Eli is right about the cr***y nature of the so called "AI".
    I noticed the decline of various channels and the promotion of few selected ones. I found this to be a bad idea too. Variety is spice after all thus i didn´t understood how economically unsavvy gigant corporations can be. Maybe they tweak the interface mask a bit and use the strenghts of the search algorythms to provide a better product? Perhaps even start banning chat-bots? I believe lots of useless interaction comes from chatter bots so perhaps we see the great chat bot deletion instead of the idiot auto-bot flagging currently underway?
    I got banned for posting my first actions as world-dictator ... i mean these auto-bot flaggers are shite to a amusing degree, aren´t they?

  • @michaelgtripp
    @michaelgtripp Před 3 lety

    Goodstuff

  • @ThaylorHarmor
    @ThaylorHarmor Před 3 lety +1

    Anyone else triggered by the non-static strap while touching bare electronics???

  • @Suchy1213
    @Suchy1213 Před 3 lety

    I wonder will Eli dedicate a video for ESP8266 microchips

  • @bendigorafaelh.6610
    @bendigorafaelh.6610 Před 2 lety

    Can anyone help me how to send serial data in arduino nano?

  • @marlondowney4033
    @marlondowney4033 Před 3 lety

    Heck yeah

  • @shorb2289
    @shorb2289 Před 3 lety

    can I make the arduino start world destruction

  • @xue2sheng
    @xue2sheng Před 3 lety

    Saved to be reviewed with my kid to improve our English dealing with an interesting subject. Be able to explain stuff it's a skill I cannot hand down myself. Knock on wood Disney (our typical source to learn English for foreigners) won't have melt his brain when he is old enough to follow the topic.

  • @inthemoodforambience
    @inthemoodforambience Před 3 lety

    #EliForEducationMinister

  • @Heron31415
    @Heron31415 Před 2 lety

    Ther was totally nothing about command variable data type

  • @Cognitoman
    @Cognitoman Před 3 lety

    is this in C++?

    • @TonyDaExpert
      @TonyDaExpert Před 3 lety

      Arduino uses a version of C++ but it’s kinda modified iir

    • @Cognitoman
      @Cognitoman Před 3 lety

      @@TonyDaExpert I see.

  • @MinPlanck
    @MinPlanck Před 3 lety +1

    How DARE you talk about computers?!? The HORRUH! 😂

  • @regbar0
    @regbar0 Před 3 lety

    no bezel = no view

  • @morezco
    @morezco Před 3 lety

    Came for the political bs, stayed for the actually good content.

  • @YouAdii
    @YouAdii Před 3 lety

    Here because if you keep putting junk in, it is what you become.

  • @KameraShy
    @KameraShy Před 3 lety

    No kvetching today?!? Check out this:
    www.infowars.com/posts/youtube-plans-to-survey-creators-on-their-race-algorithmically-boost-diverse-communities/

  • @markpascual100
    @markpascual100 Před 3 lety

    wwwwwoah

  • @keybutnolock
    @keybutnolock Před 3 lety

    Shameless full-frontal click-bait.

  • @trig1dentity
    @trig1dentity Před 3 lety

    Is this a series of videos?