Arduino - Send Commands with Serial Communication
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
Adding a comment to support quality technology education on CZcams.
I forgot but.... This is exactly how you earned my sub. Like the rants, but this is solid.
Some quality content
I agree !
Love this. Looking forward to the next instalment.
Clickbait Title: ELI DESTROYS automation problems with DATA and LOGIC
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!
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.
I like most of your videos, but I'm glad to see some more tech videos coming out. I hope Silicon Dojo goes well.
Love the snarky news comments, but this is why I SUBd so long ago. Thank you
Here I am Eli. I'm going to watch this.
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.
Thank You!
Posting on Facebook...
Awesome to see examples of applications in addition to the tutorial!
Been wanting to do something like this for a while. Looking forward to these tutorials.
Omg tech content from Eli
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.
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.
Thank you!
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.
It's great, Eli. More, please!
OMG TYSM i now have finished alpha 0.1 of my primitive os (planning to add fdd support)
Why “high”, “low”? Yes, I know it’s the instruction to the interface but is only binary (on/off)?
Yes, it is the only state a digital pin can have on a Arduino.
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
Yes.. please keep doing this kind of teaching.. looking foreword to learn about technology and Iot world
Try an ESP 32 - Wifi + Bluetooth microcontroller.
Great Video. Learned a lot in 17 minutes.
A Serial Monitor monitoring Cereal over Serial to make a Cereal Monitor in a Serial Database dedicated to Cereal readings over Serial.
Wow
It is going to rain
At least a real class
Thanks a lot! Thats what i was looking for ... Muj bien!
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!
I like this content better Eli.
Thank you!awaiting for the next part. :-)
Just the tutorial im looking for.
Great video, thanks a lot
This is all very interesting and informative and all Eli but when are you going to do a Try on Haul?
Really great tutorial. Keep up the great work!!! It helps me out understanding the basics.
Connecting to a high powered GPU, is a good reason to do this, not just a Rasp-Pie.
Excellent.
I appreciate the technology video!
Thank you for the great vid!
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.
Cant you just use Arduino for everything instead of adding raspberry pi?
Thank you Eli
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.
Was just curious what size resistors you use and if it's important. I'm trying to set up 6 lights on mine.
well explained, Thank you!
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
Can you reset arduino board by sending a serial monitor command?
Raz Pi is a computer which sends & receives code language to the controller!!
Good stuff
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?
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?.
Oh thank fuck you actually made this video!
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!
*Posts educational computer content
Viewers:...
*Posts Critiques about tech and news
Viewers: WHOOOO!
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???
The Raspberry Pi has GPIO pins, you can do the same thing without the Arduino.
An arduino mega has 54 digital pins.... creating subsystems allows for interesting projects
@@elithecomputerguy You can use an I2C/SPI expander for 140 GPIO pins on the Pi.
hello, how can I transfer a number or character obtained from python to arduino via serial communication?
Nice vid!! Keep It up!!
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
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.
I missed the part where you explained it, just saw it, awesome job again!
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?
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
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?
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
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
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?
Goodstuff
Anyone else triggered by the non-static strap while touching bare electronics???
I wonder will Eli dedicate a video for ESP8266 microchips
Can anyone help me how to send serial data in arduino nano?
Heck yeah
can I make the arduino start world destruction
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.
#EliForEducationMinister
Ther was totally nothing about command variable data type
is this in C++?
Arduino uses a version of C++ but it’s kinda modified iir
@@TonyDaExpert I see.
How DARE you talk about computers?!? The HORRUH! 😂
no bezel = no view
Came for the political bs, stayed for the actually good content.
Here because if you keep putting junk in, it is what you become.
No kvetching today?!? Check out this:
www.infowars.com/posts/youtube-plans-to-survey-creators-on-their-race-algorithmically-boost-diverse-communities/
wwwwwoah
Shameless full-frontal click-bait.
Is this a series of videos?