Tutorial 06 for Arduino: Serial Communication and Processing

Serial.flush() has changed in Arduino 1.0. You can use this instead:

You can download the parts list, code, and schematics from this episode on my website:

Submit your arduino project to element14’s arduino contest for a chance to win a soldering station: http://www.youtube.com/watch?v=P5QpyIaycFo

This tutorial series is sponsored by element14. Check out their arduino group!

Follow me on twitter: http://www.twitter.com/sciguy14

Duration : 0:20:0

25 thoughts on “Tutorial 06 for Arduino: Serial Communication and Processing

  1. @555262 The …
    @555262 The serialEvent() is called whenever serial data is collected. It’s kind of? like an interrupt

  2. @tomd966 Yes, …
    @tomd966 Yes, you’ll need to use a jumper or switch so the arduino? is listening to the computer

  3. @2BeN3 I am having …
    @2BeN3 I am having the same problem with the Serial.flush(); command. Anyone know? why?

  4. I found this on the …
    I found this on the Arduino site…

    Waits? for the transmission of outgoing serial data to complete. (Prior to Arduino 1.0, this instead removed any buffered incoming serial data.)

    Has something changed since this video was posted?

  5. very good videos, …
    very good videos, this is helpful? stuff for sure. good audio, that’s important.

  6. Hi, every time the …
    Hi, every time the input updates the draw() is called, and serialEvent() called after that .. right ? but that raises a question.. how come the serialEvent() is called after draw? .. Please explain . thx .

  7. Does anyone have …
    Does anyone have VB.NET code to read data input from? a USB weight scale?
    I have a scale that connects to my PC via serial. When an item is placed on the
    scale, the weight is displayed in a textbox .
    I am trying to emulate this in my own custom application using the same scale.

  8. can I press a …
    can I press a button on the? arduino to get a sound (note) from the computer
    (I’m trying to make a laser harp)

  9. How can I send …
    How can I send chars like 100 to arduino and get 100 back?

    If I do it like this I get 1, 0 and? the last 0 back separetly!

    So how can I get arduino to understand hundreds and tens?

    >>same question for me jeremy. can you please do a tutorial? for this, it would be extremely helpful tnx! love your videos btw! keep it up!

  10. Thank you very much …
    Thank you very much for these tutorials, they’ve taught me a lot.
    If I’m plugging an? RFID reader into the rx pin on the uno, when programming would I use serial differently to ensure it communicates with the rx pin and not with the computer??

  11. Hey Jeremy, great …
    Hey Jeremy, great video, was very helpful in my arduino project. I was wondering if you have any idea how to use processing to make the pc think a button on its keyboard or mouse was clicked. I’ve already used a? tilt sensor to move the cursor

  12. great, …
    great, comprehensive instructions, clear instruction and great exlpaination of the parts of the programming.? awesome work.

  13. @hugosdominoes If …
    @hugosdominoes If I’m not mistaken, you need to your? a char array.

  14. How can you send …
    How can you send multi-digit numbers over? serial? For example if you wanted to control the brightness of an led through the serial monitor how would you make the arduino interpret 255 as 255 and not 2, 5 and 5?

  15. How can? I send …
    How can? I send chars like 100 to arduino and get 100 back?
    If I do it like this I get 1, 0 and the last 0 back separetly!
    So how can I get arduino to understand hundreds and tens?

  16. I’m wondering if …
    I’m wondering if anyone on here could take a look at a few lines of code that I have written. I am trying to just make sure a small video camera stay on and stay recording, I am going to put it in a weather balloon. I believe it to be very simple code (to someone who? know what theyre doing) but I have had some trouble with the REC button working. I have sent Jeremy Blum a msg? directly via FB but he never responded. Please respond to this post if ur interested or email bryan246@gmail.com thanx

Leave a Reply