Tutorial 06 for Arduino: Serial Communication and Processing
User comments:
[2012-05-22 12:55:14] fisktomte - this only works ...
this only works with 0 - 9 and u get the same back hows do i do if i want to send it 12 and get a 12 back? quick ansver would be nice???
[2012-05-19 23:55:07] suklaasc - Does processing ...Does processing simply run any function you define after setup()? I noticed you never make any function calls or define a main method in even after you created your own functions
[2012-05-18 19:04:58] Durincekliznjan - I have one problem, ...I have one problem, I'm just begin to using arduino and all have work ok, until i had trying some others comannds. Now, all of my Serial.println -s are followed by numbers 10 and 13.... every time.. please any help..... sorry for my poor English
[2012-05-18 18:17:37] TT1TTOne - Can anyone please ...Can anyone please help me find a similar example but with an C++ application instead of Processing?
[2012-05-11 20:01:19] YorukBeyi45 - ı have a question ...ı have a question also ,in computers usb output is 5V, so there is no need to conversion to Rs232 level to ttl level.At the beginning of video ı was confused about what you told,plz make things clear for me :)
[2012-05-01 17:25:35] zgrkpnr1 - Maybe it is ...Maybe it is irrelevant but, can you explain how can i send "ctrl+A" or "ctrl+B" or something with CTRL or ALT through serial.print or serial.write. I tried using ascii codes. But when do Serial.write(ascii code) it doesn't send ctrl+A. it sends only the letter A.
[2012-04-28 14:14:09] expertmax1 - Hi, I am using an ...Hi, I am using an arduino to communicate with a OBD2 car interface using the ISO-8141-2 protocol. I want to get the values of the "Engine Coolant Temperature" sensor and print it on the arduino serial monitor. The PID value of this sensor is 0x05 and the mode which enabled the real-time data stream function is 0x01. I have read everywhere online and I don't get it. I'm using a MC33290 as an interface converter. Thanks !
[2012-04-28 07:51:40] TheBlackhawk2399 - the : while( ...the : while(Serial.available() > 0) { Serial.read(); is not working too i get a bunch of garbage
[2012-04-22 12:45:30] inventorrr - The LED does not ...The LED does not light up completely. You must give a hard output. pinMode(13, OUTPUT);
[2012-04-21 17:43:24] Mau1wurf1977 - Instead of using ...Instead of using processing can you use Visual Express 2010 C# instead? Because serial communication is a set standard right?
[2012-04-20 17:18:53] onejordangerous - It doesn't come up ...It doesn't come up automatically, but Ctrl+Shift+M or (Tools-->Serial Monitor) gives you the window. Pretty easy!
[2012-04-19 07:50:01] dhruvrai23 - Jeremy, Can you let ...Jeremy, Can you let me know why do you write "Serial.begin() ==0;" What i do not understand is that why do you write 0, and not anything else.
[2012-04-17 15:11:42] TheAngryJazz - This was a great ...This was a great tutorial ! Serial Communication is really interesting, i hope you will do some follow up videos with more stuff to experiment with using serial communication!
[2012-04-14 21:29:20] lamarts100 - Nice video. I'm ...Nice video. I'm trying to control more than one led serially...any ideas?
[2012-04-04 15:40:26] microchoc - what do you do if ...what do you do if it more than one digit number your dealing with ie a 4 digit number
[2012-03-31 13:25:28] addhavoc - in the the ...in the the potentiometer example my background keeps flashing from black to the blue color, any idea why?
[2012-03-24 19:19:04] randomblocks - Couldn't you just ...Couldn't you just replace the int with char so its a character type?
[2012-03-08 01:48:09] shebotnov - why use float if ...why use float if brightness is in int from 0-255 ?
[2012-03-07 14:56:02] dhakagod - ok geniuses ... ...ok geniuses ... need some help. I have an arduino which is programmed to receive data from my computer. Is there a way I can view the program that was uploaded to the arduino ? or is it secured and only the programmer can give it to me ? I need the source to know the baud rate type of things and to verify the data packet format. Thanks
[2012-02-29 21:25:29] DethScarred - I don't own an ...I don't own an arduino. Does the window with the Java icon automatically pop up when you use Serial.begin(9600); ?
[2012-02-28 09:18:32] francisroan - hey jermy do u know ...hey jermy do u know any code that reads serial and see it from 1 to 180 that automatically turn a servo correspondingly ????
[2012-02-28 04:59:34] shearbanding - Here is a brief ...Here is a brief intro: "arduino.cc/playground/Interfacing/Processing"
[2012-02-28 04:58:09] shearbanding - An easier way to ...An easier way to have Arduino interact with Processing is actually using a library call "Firmata". Firmata allows you to not only take signal from Arduino to Processing, but also the other way around -- from Processing to Arduino. So one of the many cool things you can do is to use your mouse (Processing can recognize the movement of mouse) to control a servo hooked up to Arduino.
[2012-02-26 23:06:07] shebotnov - muchias gracias or ...muchias gracias or w/e =)
[2012-02-24 22:03:31] capnjgtube - Jeremy, I have been ...Jeremy, I have been stuck on the multiple invalid glitch for a week. I've tried both combinations "(Serial.flush & while(Serial.available()>0) Serial.read();" and copied and pasted the whole code right from your pde file but I still get repeats. I can't move forward till I understand and correct this problem. Could it be that Arduino 1.0 is playing well on my Duemilanove? Thanks for your help. Jim G.
[2012-02-17 22:16:00] hablahei1 - This is genious. ...This is genious. You, my dear sir, is a genious.
[2012-02-12 22:08:02] aggrav8d - More advanced ...More advanced control of your projects: marginallyclever daut com/2011/10/controlling-your-arduino-through-the-serial-monitor/
[2012-02-09 10:28:14] nrsmac - Serial.flush() in ...Serial.flush() in Arduino 1.0 has changed. the new syntax is (Serial.available()[GREATER-THAN]0) { Serial.read(); } Glad I could help
[2012-02-05 03:21:24] Mrwaldimar - Hi I done the ...Hi I done the second project of serial communication but the screen color does not change. There is a message on processing 1.5.1 (last version on line) : WARNING: RXTX Version mismatch Jar version= RXTX-2.2pre1 native lib Version = RXTX-2.2pre2 Thanks
[2012-02-03 21:42:16] lazerusmfh - @sciguy14. Start ...@sciguy14. Start this video, and turn on audio transcribing, then read the first few sentences of what it transcribes. HILARIOUS.
[2012-02-02 07:56:01] enticed2zeitgeist - Is Processing ...Is Processing object oriented? It almost seems like it is.
[2012-01-30 03:11:18] mrdove500 - Is there a way you ...Is there a way you can post some videos just about the programming?
[2012-01-29 11:38:35] MrHack4never - @sciguy14 not to ...@sciguy14 not to sound like a perfectionist, but USB isn't RX/TX based, it is DATA+/- based DATA+ != DATA-
[2012-01-28 13:29:04] amorag59 - nvm figured it out ...nvm figured it out, search serial-win.pdf in google
[2012-01-27 01:42:15] UDK11 - hey sup just have a ...hey sup just have a question when i press verify button on the computer it get an error that says 'else' without a previous 'if' any idea????? i try by replacing the 'else if' and 'else' statement by using just the 'if' statement and it didnt showed any error but the LED turns on with any button i press and the arduino sends back "Led is On Invalid!" at the same time with any button the number 0 works good to turn the LED off with the right message. any ideas?? thanks for your time!!
[2012-01-26 06:34:25] amorag59 - Is there a way to ...Is there a way to read serial values from the COM3 port (or which ever port) in say Codeblocks (c++)? Rather than Processing.
[2012-01-22 08:48:43] fabsaiz - Awesome video. ...Awesome video. This is exactly what I've been looking for! In the first half of the video you use numbers to send commands to the arduino via serial monitor. how do i send more than one digit, for example "10" or send a command "fan on"? Before i saw your video i was only wanting to send a few commands but now that i have a better understanding I want to do more and expand on my original idea.
[2012-01-10 00:49:06] TheForgaven - What would the code ...What would the code be for writing an LED's brightness with Serial Communication? So I would want to be able to type any number from 1-255 and have that number correspond with its brightness. I know I could probably right seperate lines for each number, but that would take forever. So bassicly how do you write 1 "through" 255 and have it turn on the LED at the brightness of the typed number.
[2012-01-03 15:36:38] 2BeN3 - Thanks a lot. Your ...Thanks a lot. Your videos have been really helpful btw!