Sending Multiple Pieces of Data through the Serial Port :: Viewer Question #3

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ม.ค. 2025

ความคิดเห็น • 79

  • @programmingelectronics
    @programmingelectronics  4 ปีที่แล้ว +1

    ****If you like this, I think you'll like the premium Arduino training we offer. You can check it out here**** bit.ly/3lHyzcB

  • @TheeSlickShady_Dave_K
    @TheeSlickShady_Dave_K 9 ปีที่แล้ว +3

    I may watch some of these vids more than once to comprehend the concept, but when I finally get it, the light goes on and my world is illuminated!!
    Thanks again Michael !
    We all appreciate the time and effort you put into these vids to help us along :-)

  • @knowall5792
    @knowall5792 6 ปีที่แล้ว +4

    One of the best Arduino series videos. I haven't taken up the project yet, but I know where to look at for immediate coaching, when I am stalled in any of my project. Please keep on guiding us and keep on building your video library. I already subscribed to your channel.

  • @vishnusrinivas7761
    @vishnusrinivas7761 7 ปีที่แล้ว +13

    please make a tutorial how to do the same thing in two arduino boards.

  • @johnrees44..G4EIJ
    @johnrees44..G4EIJ 4 ปีที่แล้ว +1

    Fantastic delivery and explanation....Thank you very much..John..UK

  • @SarikaMuktare
    @SarikaMuktare 5 หลายเดือนก่อน

    Thanks for the video, found very much informative👍

  • @malgailany
    @malgailany 11 ปีที่แล้ว +1

    Very stimulating video.
    An interesting thing to do is the ability to determine the loop time, i.e., how much time does it take to complete one cycle for a given baud rate: (read data, send it to PC, get acknowledge signal from PC, repeat ..).
    Thank you.

    • @programmingelectronics
      @programmingelectronics  11 ปีที่แล้ว

      I agree! I really want to wrap my head around that cycle time - but I am just not there technically yet - I will have to do some researching to understand what elements will effect that full cycle time.

    • @malgailany
      @malgailany 11 ปีที่แล้ว

      Bude rate, instructions:some of them take more clock cycles than others. Maybe setting a timer to a specific value to generate an interrupt periodically will provide a measurable and constant loop time.
      Thank you for the well prepared and clear videos.

  • @jnguarin
    @jnguarin 9 ปีที่แล้ว +1

    Superb tutorial! Awesome, thanks!!!

  • @printfhello747
    @printfhello747 10 ปีที่แล้ว +2

    i`ve been searching for a method like this :D
    thanks so much
    i never thought about arrays i was just sending int values multiplied by 10 /100/1000/ and so on
    and filtering them using some if conditions
    thanks so much :)

  • @tejeetmagar2846
    @tejeetmagar2846 6 ปีที่แล้ว +1

    Is it same applicable for Two arduino I2C Communication can you please make video on the same

  • @tghentertainment776
    @tghentertainment776 4 ปีที่แล้ว +1

    It would be amazing if Arduino made a voice based addon which commented and read out your code and what itll do just like you do becuase you help me understand it more!! Thank you bro, ya helped.

  • @MilanKarakas
    @MilanKarakas 8 ปีที่แล้ว

    Hello. I have general issue understanding parsing. I am using example code with some change, and want to transfer 900 bytes from "OpticalFlow", or optical mouse with lens, which has 30x30 pixels (total of 900). So I made this change to the code:
    void serialEvent(Serial cPort)
    {
    comPortString = cPort.readString();
    if (comPortString != null)
    {
    comPortString=trim(comPortString);
    String[] values = split(comPortString,',');
    try
    {
    for ( n=1; n

  • @russelperedo4907
    @russelperedo4907 6 ปีที่แล้ว

    sir can i ask something? how can i create a system like i want to register my phone number to gsm module using keywords, then after that my number will be receive message if the sensor trigger. in short my number already registered to the system that will send message if the sensor will trigger. thanks

  • @Xxxxxxhood
    @Xxxxxxhood 9 ปีที่แล้ว +1

    Thank you for this tutorial! It is super helpful!
    But what if you are receiving multiple values through one sensor, like a 3 axis accelerometer/magnetometer? How would you transmit all these values?

    • @programmingelectronics
      @programmingelectronics  9 ปีที่แล้ว

      SometimesIdo There are a couple ways to do it, one might be to send each item one at a time, and then have the receiving program know which order is which - i.e., Y axis first, then Z then X, or whatever. This is question is definately high the lesson request list, so I will make sure it gets added to the cue - thanks for commenting!

  • @mrtn_gr
    @mrtn_gr 7 ปีที่แล้ว

    Thank you so much this was so helpful ! Anyone knows if i can make an array in processing with the values that i get from the sensor ?

  • @206flyer3
    @206flyer3 5 ปีที่แล้ว +1

    Thanks for your videos, they are great ! I need to do the same but with a second Arduino. If you can do a video on that it will be a lot of help. I can't find tutorials for sending multiple sensor data via serial, Arduino to Arduino.

    • @aineerafi5728
      @aineerafi5728 5 ปีที่แล้ว

      yes i am also looking a way to do it. if anyone knows

  • @nobertsingh4747
    @nobertsingh4747 6 ปีที่แล้ว

    loved the video sir thank you very much.

  • @SerAzulito
    @SerAzulito 5 ปีที่แล้ว

    hello all.
    you have a great channel.
    I have a question hope you can help. I am "new" with the Arduino. and I want to know. if you can send the same message at the same time(or almost) on two different serial ports from the Arduino.
    thank you.

  • @omnomnom504
    @omnomnom504 5 ปีที่แล้ว +2

    An arduino and a computer meet at a serial port:
    Arduino: AAAAAAyy!
    Computer: Ay what's new

  • @roeljohnrebosa1767
    @roeljohnrebosa1767 6 ปีที่แล้ว +1

    can you make tutorial about arduino to c# program? thanks

  • @pruthvijagadeesh5158
    @pruthvijagadeesh5158 4 ปีที่แล้ว

    sir, it was very helpful. how to do reverse sir I mean from processing to Arduino serial communication sending multiple dataa

  • @muhammadfaizbinnas
    @muhammadfaizbinnas 6 ปีที่แล้ว

    sir, can I know 1 normal LED can send how many bytes or bit when transmit the data?

  • @derrickadusei7987
    @derrickadusei7987 4 ปีที่แล้ว

    Pls I have been working on a similar project like this but mine is to send 3 pwm values from processing to 3 different pwm pins. Pls help me with it

  • @bttws
    @bttws 9 ปีที่แล้ว +2

    Thank you! I have finally got it!

  • @saadabdullah2811
    @saadabdullah2811 2 ปีที่แล้ว +1

    Can I get help regarding my project if, Ill get the course ?

    • @programmingelectronics
      @programmingelectronics  2 ปีที่แล้ว

      Hi Saad - great question! We won't write code for you, but we'll definitely try and guide you in the right direction.

  • @ChrisGrazioli
    @ChrisGrazioli 8 ปีที่แล้ว

    Out of pure curiosity, how would one go about reading the serial port off the arduino or any UART to something like a laptop using PuTTY or something like it. I know arduino IDE does this through the software, but thats not my question. My question is actually getting into the down and dirty communication

  • @navneetbrar1605
    @navneetbrar1605 3 ปีที่แล้ว

    can Arduino transmit and receive simultaneously...Single way it works fine but does not work in proper way...Any suggestions to di it

  • @ludovicvauthier3130
    @ludovicvauthier3130 8 ปีที่แล้ว

    Hello, thanks for tutorial! I'm looking for help:
    I have a project with arduino uno + 3 ultrasonic sensors in differents directions.
    I want to read this 3 values independently in arduino and send them in Unity 3d to move 3 different objets. How can i do this?
    Its already working with one sensor, serial port and readline(), but with many values Unity just read all the values like one and move all my 3d objects together. Thanks you community!

  • @motti9000
    @motti9000 6 ปีที่แล้ว

    Hi
    great course!!! can you help me please with softwareSerial ?....I just can't work with nextion display via this lib.
    I'm trying to control relay board via arduino uno ...
    tnks
    Motti Vaknin

  • @RovanRCTube
    @RovanRCTube 6 ปีที่แล้ว

    I need to find a way to capture the oscillation point of a moving object.
    To visualize this, Picture a rail with a distance sensor at each end. The target would oscillate between the 2 end points with the center being 180. To the left the max measurement would be 270 and max 90 to the right. When the target moves to the right then switches direction I want to capture the farthest measurement lowest number serial data to trigger a device when the target is at a certain point on the left. Then I want to capture the oscillation point highest number on the left to in turn trigger the device at a certain point on the right. Due to changing loads on the device being triggered the oscillation points will change randomly.
    Can this be done?
    Below is a rough draft of comments without any code.
    //Arduino uno
    // vl53l0x sensors
    // distance sensor1 value 181 to 270 degrees
    //distance sensor2 value 179 to 90 degrees
    //1 stepper Nemo 17 or 23
    //Stepper full rotation 0-359 steps (clock wise count 0 north)
    //Home 180, max rotation from 270 to 90 degrees.
    // orientations. 270 right, 90 left.
    //sensors placed at the ends of a rail with oscillating target.
    //if sensor1 value oscillates set sensor1 to highvalue of oscillation
    Oscillation at 172-173-172 would set value at 173
    // if sensor2 lowalue is = 178
    // run stepper to 183 when sensor1 reaches 182 //1degrees
    // if sensor2 lowalue is =177
    // run stepper to 184 when sensor1 reaches 183
    // if sensor2 lowalue is =176
    // run stepper to 185 when sensor1 reaches 184
    // if sensor2 lowalue is = 175
    // run stepper to 186 when sensor1 reaches 185
    // if sensor2 lowalue is =174
    // run stepper to 187 when sensor1 reaches 186
    // if sensor2 lowalue is =173
    // run stepper to 188 when sensor1 reaches 187
    // if sensor2 lowalue is = 172
    // run stepper to 189 when sensor1 reaches 188
    // if sensor2 lowalue is =171
    // run stepper to 189 when sensor1 reaches 188
    //Etc....... to lowvalue of 90
    //use < at end max run to 270
    //If sensor 2 value oscillates set sensor2 to lowvalue of oscillation
    Ocilation at 186 - 185 - 186 would set value at 185
    // if sensor1 highvalue is 182
    // run stepper to 177 when sensor2 reaches 178
    // if sensor1 highvalue is 183
    // run stepper to 176 when sensor2 reaches 177
    // if sensor1 highvalue is 184
    // run stepper to 175 when sensor2 reaches 176
    // if sensor1 highvalue is 185
    // run stepper to 174 when sensor2 reaches 175
    //Etc........to highvalue of 270.......
    //use > at end max run to 90.

  • @raywilliams1049
    @raywilliams1049 7 ปีที่แล้ว

    The overall explanation was great and the explanation of the Arduino sketch very clear but I am struggling to successfully use Python to write the "Processing" side of the exchange. Any help on doing that would be very welcome.

  • @thesloable
    @thesloable 9 ปีที่แล้ว

    Nice tutorial. One question! What's the diff between Serial.print() and Serial.write()?

  • @vishalgusaiwal6982
    @vishalgusaiwal6982 4 ปีที่แล้ว

    my project is sand drawing robot.i want to send pixel array of image to arduino using python.actually i have to send binary image.i have used serial port but it is not showing any useful response.pllzz give me a solution for this.

  • @tsraikage
    @tsraikage 9 ปีที่แล้ว +1

    i've done it but i noticed one thing... it doesnt send negative... i want do the same with servo motors in arduino i have everything perfectly but as i know serial can only receive 0-255 and how can i sand negative?

    • @tsraikage
      @tsraikage 9 ปีที่แล้ว +1

      Tarash Sajaia nevermind problem was that i was making calculations in arduino soo i send everything to processing and then allow it to make calculations... so it works

  • @farahammar7442
    @farahammar7442 6 ปีที่แล้ว

    Hello, thanks for tutorial! I'm looking for help:
    I have a project with arduino uno + barecode reader +RFID tag.
    I want to read this barecode in arduino and send it in the RFID tag . How can i do this?p

  • @rodrigobrasilia7506
    @rodrigobrasilia7506 8 ปีที่แล้ว

    Thank you! Amazing explanation.

  • @JNET_Reloaded
    @JNET_Reloaded 3 ปีที่แล้ว

    wheres the code? i need a link plz

  • @shubhamchauhan1801
    @shubhamchauhan1801 5 ปีที่แล้ว

    can you please tell us how to send a string of minimum 3 characters to arduino by using pyserial

  • @girinathperiyasamy189
    @girinathperiyasamy189 5 ปีที่แล้ว

    i am using arduino uno. i am receiving stx04XC34PAM600001etx in serial port. i want to remove stx and etx and display the remaining 15 digit in LCD.kindly support

  • @zomeldevera596
    @zomeldevera596 6 ปีที่แล้ว

    How can i send two different analog input to c#

  • @danielgodwin5619
    @danielgodwin5619 6 ปีที่แล้ว

    hello sir pls can you show us how collect this data in c#?

  • @CandraJunus
    @CandraJunus 4 ปีที่แล้ว

    Can you send data from python to arduino like sending arrays of data (x, y, z) or coordinates? please make a learning video

  • @alvigela4746
    @alvigela4746 9 ปีที่แล้ว +1

    Nice video. Thanks.

  • @yawarsaeed6499
    @yawarsaeed6499 3 ปีที่แล้ว +1

    Awesome 👍

  • @petruspretorius14
    @petruspretorius14 9 ปีที่แล้ว

    Good day. I worked through your video and I understand how to send multiple data. I would like to ask of you if you could please do something like receiving multiple data and storing it in an array? Or can you send me a sample program that can receive 2 integers and store it in an array? Would you please help.

  • @PabloRo15
    @PabloRo15 5 ปีที่แล้ว

    I'm working with an arduino Mega and matlab, I'm sending an array of size 7 (spins wheel 1, 2, 3, time, sense of spin of the wheel 1, 2, 3), then i graph this array on matlab but i want to send back to arduino 3 values of pwm from matlab, can someone help me with this? This is not my main language sory if i commited mistakes

  • @ChrisGrazioli
    @ChrisGrazioli 8 ปีที่แล้ว

    Why would the serial port have a negative number of bytes? Wouldn't it just be simpler to have something like if(Serial.available() = 0){ }

  • @jogomez1988a
    @jogomez1988a 8 ปีที่แล้ว

    What is the difference of serial.print(); and Serial.write();

  • @LuisFernando-ih2ij
    @LuisFernando-ih2ij 9 ปีที่แล้ว +1

    I wanna do this but in vice versa... send multiple pieces of data from processing to arduino, please help!!!!

    • @MayavanAMC
      @MayavanAMC 6 ปีที่แล้ว

      th-cam.com/video/jZ5VVmJMU-0/w-d-xo.html

  • @01059871
    @01059871 9 ปีที่แล้ว

    What wild would happen if we just send data using serial.write over and over without worrying about the handshake?
    Thank you

    • @fulesmackofule
      @fulesmackofule 9 ปีที่แล้ว

      Emmanuel Chavarría The receiver end could mix up the input values (x,y,push).

  • @davidizquierdogomez
    @davidizquierdogomez 6 ปีที่แล้ว

    vEry nice tutorial, thanks a lot. BTW, what do you mean by "I beat that into the ground? :D

    • @davidizquierdogomez
      @davidizquierdogomez 6 ปีที่แล้ว

      How the data can be downloaded. Is it possible to download the whole data set coming out the potentiometer or the button in a txt or csv file?

  • @016632
    @016632 5 ปีที่แล้ว

    how you put that info into an array from an array python array --> arduino array

  • @snaprollinpitts
    @snaprollinpitts 10 ปีที่แล้ว +1

    as Arte Johnson would say, very interesting"

  • @nathonbrown3596
    @nathonbrown3596 8 ปีที่แล้ว

    that make a great pong game

  • @savaliyachintan5216
    @savaliyachintan5216 7 ปีที่แล้ว

    Ahmedabad