Go Down

Topic: Serial Communication (Read 4632 times) previous topic - next topic


AWOL

#76
Mar 06, 2012, 10:48 pm Last Edit: Mar 06, 2012, 11:32 pm by AWOL Reason: 1
So what does reply #68 mean?
If your responses were less monosyllabic and more forthcoming with useful, relevant information, I'd be more inclined to be more forthcoming with useful replies.

Have you contacted user jeet_jawi?
S/he is in the same part of the world as you, and has astonishingly similar software and problems to you.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

cutebuddy6

Well now it means nothing Reply #68

AWOL

Reply #68 was one of your replies, so if you don't understand it, we're pretty well buggered, aren't we?

Shall I just delete this thread now, and we can restart on some more sensible footing?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

cutebuddy6

no but my issue remains the same its not transmitting from one board to other its just communicating with the PC and  board, and i want to do work on  Board to Board communication

AWOL

#80
Mar 06, 2012, 11:15 pm Last Edit: Mar 06, 2012, 11:18 pm by AWOL Reason: 1
Quote
my issue remains the same its not transmitting from one board to other

Please show your evidence for this assertion.

Please understand that you have a very large credibility gap in this thread, starting as it did with an assertion that code that could not possibly even compile, did, according to you, compile.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.


AWOL

Great camera work.*
How about posting some code?




*Not

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

cutebuddy6

Code: [Select]
#include <LiquidCrystal.h>
#include <NewSoftSerial.h>

LiquidCrystal myLCD = LiquidCrystal(12, 11, 5, 4, 3, 2);


// khali pin 6
void setup() {
  Serial.begin(9600);
  myLCD.begin(16,2);
  //pinMode(13, OUTPUT);  // diagnostic led on Wiring-board
  //pinMode(6, OUTPUT);
  myLCD.print("Arduino");
  delay(1000);
  myLCD.clear();
  myLCD.home();

}
void loop() {
 
  if (Serial.available()>0){
  char ch=Serial.read();
  if(ch=='A')
  {
     myLCD.setCursor(0,1);
    myLCD.print("Cutebuddy6");
  }
  }
 
 
  if (Serial.available())   {
    float z= Serial.read();
    myLCD.setCursor(0,0);
    myLCD.print(z);


  }
}


AWOL

#84
Mar 07, 2012, 09:03 am Last Edit: Mar 07, 2012, 09:05 am by AWOL Reason: 1
Code: [Select]
float z= Serial.read();
You really aren't listening, are you?

Why don't you enter the following into the search box, up there on the right:
"PaulS SOP EOP"
and watch the magic unfold.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

cutebuddy6

i am sorry actually i have not saved the code sorry

Nick Gammon

I'm sorry that you are sucking in some top technical experts on this forum to try to answer your questions when you are not paying the slightest bit of attention to what they are saying. Five or six pages of wasted time, when you haven't attempted to answer a question on page 1 of this thread. It isn't that you don't understand. The problem is that other people, who need answers to their questions, and who are prepared to listen, might be overlooked.

I pointed out a page or so ago that you can't read a float like that, but you persist in doing so.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

cutebuddy6

Sir its requested that i am paying 100% on you Questions which type of DATA variable should i use

AWOL

You're not paying us anything.
Money or attention.

Now, the question of reading ASCII representations of numbers comes up here on the forum at least once a week.
There is plenty of code and advice posted on the subject, so go look for it using the search terms I've already posted.
When you've got some actual questions and results, come back and post them.
If they work, we'll be happy for you, because you'll have learned a valuable lesson.
If they don't work, we'll help you fix them, but, as Mike pointed out in the very first reply to this thread WE WON'T WRITE IT FOR YOU.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

dxw00d

#89
Mar 07, 2012, 09:29 am Last Edit: Mar 07, 2012, 09:31 am by dxw00d Reason: 1

which type of DATA variable should i use


What does Serial.read() return? For a clue, read the reference page for it.


Why don't you enter the following into the search box, up there on the right:
"PaulS SOP EOP"
and watch the magic unfold.


Have you done this? It's very important that you do, which is why I mentioned Paul's username as a place to start in reply #29 (good grief, that was 60 replies ago, and no further forward).

Go Up