Show Posts
Pages: 1 [2] 3 4 ... 3353
16  Using Arduino / Programming Questions / Re: Serial.println unicode characters on: Today at 06:54:34 am
Quote
Source code of what"?
The source code for the Serial.print() method(s). Serial is an instance of the HardwareSerial class, so look at HardwareSerial.cpp (which you do have) to see what Serial.print() does FOR THE UNSPECIFIED VARIABLE TYPE you are using.
17  Using Arduino / Networking, Protocols, and Devices / Re: Need help - Arduino Uno and HC-05 data transmission on: Today at 06:52:17 am
Quote
I should mention that I power my Arduino Uno externally by an 9V battery.
Put the 9V battery back in the smoke detector you stole it from and use a real battery.
18  Using Arduino / Networking, Protocols, and Devices / Re: Wireless Module Serial UART I cant Enter AT- Command mode on: Today at 06:49:56 am
Turning on the internal pullup resistor of an INPUT pin and pulling an OUTPUT pin up to 3.3V are NOT the same thing. You did the former. The device expects you to do the latter.
19  Using Arduino / Networking, Protocols, and Devices / Re: Different latency in same baud rate and distance on: Today at 06:48:13 am
Quote
I configured two doclights in two ends
What is a doclight? Something to illuminate a doctor?
20  Using Arduino / Programming Questions / Re: How to read 500 readings from analog input block in 1 second in simulink? on: Today at 06:44:50 am
Quote
An Arduino can make 8000 analog samples per second, so 500 is no problem.
Taking a reading and ignoring the results, and getting an instruction to take a reading, taking a reading, and sending the results back are two different things. Doing the former 8000 times a second might be reasonable. Doing the latter 8000 times a second is not going to happen.
21  Using Arduino / Programming Questions / Re: Serial.println unicode characters on: Today at 06:41:09 am
Quote
is there any way to print it??
Look at the source code for Serial.print(). There are many overloads, for printing different kinds of values. In the end, they all call Serial.write() to send a single byte.

What kind of variable are you using to hold these non-ASCII characters?
22  Using Arduino / Programming Questions / Re: Problems with Serial1.end() and Serial1.begin() on: Today at 06:37:48 am
Quote
Do you have any solutions for solving this issue or do you know any other possiblities to handle it?
Let me ask a different question. Do you have a good reason for starting and stopping Serial1?

Why does start() return a value, when the value is ALWAYS 0?
23  Using Arduino / Programming Questions / Re: Serial Read Issue on: Today at 06:30:20 am
Quote
I meant when I type 3 in serial monitor and press enter button,
a=3 and b=3 that what happened with me,
We can't see all of your code, so at best we'd be guessing as to what the problem is.

Quote
I need two inputs the longitude and latitude
One digit each?

Longitude and latitude are not commands.

Quote
when program started it ask the user to enter the value of latitude and then the value of the longitude but I cant find the way to do it.
You've obviously tried something. I'd guess, if I were willing to play that game, that you think the Arduino waits for a response. It does not. I'd further guess that you think you can read longitude using one Serial.read() call. You can't.

You need to post all of the code you have now, after reading http://forum.arduino.cc/index.php?topic=97455.0 (which you should have already read).
24  Using Arduino / Programming Questions / Re: Need help with my Duino Tag on: Today at 06:23:48 am
That is an awful lot of code to illustrate that one IR receiver can not receive code from an IR sender. You need to get that fundamental problem resolved BEFORE building on that capability.

That said, the code does something. You did not say what it does. You expect it to do something. You did not say what that is.

The arrangement of the IR sender and the IR receiver should be sufficient to prevent the receiver on one end from receiving what the sender on that end sends. There is nothing that the code should have to do to ignore itself.
25  Using Arduino / Programming Questions / Re: How to read 500 readings from analog input block in 1 second in simulink? on: Today at 05:28:38 am
Quote
these 500 readings represents an arm movement in 1 second
The is about 2 milliseconds to get the request, take a reading and send it to the PC. I do NOT think that that is a realistic expectation.

At whatever rate is possible, it is up to the PC end to loop, asking the Arduino to perform a reading and processing the returned data.

It is NOT an Arduino problem. You should be asking at the Ford dealer.
26  Using Arduino / Programming Questions / Re: Error in PS3BT Code on: Today at 05:24:36 am
Quote
The problem is that it is "expecting a class before '{'.
Maybe copy and paste this code to see if you get an error. Any advice is appreciated, thanks!
If you want more than a snippet of an answer, you'll post more than a snippet of an error message.

That is NOT how to post code. You were supposed to read these before posting here.

http://forum.arduino.cc/index.php?topic=149014.0
http://forum.arduino.cc/index.php?topic=97455.0

Do it now, fix your post, and include the entire error message.
27  Using Arduino / Programming Questions / Re: Serial Read Issue on: Today at 05:17:54 am
Quote
but a Not equal to b;

how to do that .
Send two different "commands".
28  Using Arduino / Networking, Protocols, and Devices / Re: Wireless Module Serial UART I cant Enter AT- Command mode on: September 19, 2014, 08:24:21 pm
Quote
1: Power, 3.3 V to 5 V. (this pin is marked by white square)
Why? Maybe you should connect it to 120V AC.

Quote
5: PIN5 is the AT Control mode, Pull up to high or NC will make module
work as normal, When connect to low, it will enter the AT Command mode.
So, did you?
29  Using Arduino / Programming Questions / Re: Inactivity timeout on: September 19, 2014, 08:08:07 pm
Quote
I have an audio signal that turns ledPin12 on and off via analogRead. I want to be able to write ledPin2 high if ledPin12 has been low for 2 seconds, but once pin 12 goes high, I want pin 2 to go low IMMEDIATELY and reset the timer.
Then what is all the rest of that stuff for? Deal with ONE problem.

Since pin 12 is an OUTPUT, you control when it goes LOW and when it goes HIGH. So, setting pin 2 LOW immediately should not be a problem. Noting when pin 12 goes LOW is easy. Noting how long the pin has been LOW is trivial.

Code:
  ledPin11 = HIGH;
Why are you changing the value in this variable, a pin number, to 1?

Code:
  pulseGenState;
This might as well be
Code:
  47;

Code:
void loop()

{
 
  {
Maybe you need some more curly braces.

Code:
    val = analogRead(0); //selects values 2-27
How?

Code:
    val = map(val, 100, 1000, 2, 27);
This does. The other statement does not.

Code:
    int pulseGenState = digitalRead(ledPin12);
Having global and local variables of the same name is just plain stupid. I quit reading at this point.
30  Using Arduino / Programming Questions / Re: *Lost* Toggling Output using FreqCount library on: September 19, 2014, 07:57:48 pm
Quote
I am stuck trying to write the lines of code that will turn on or off my output given the above information.
It seems trivial.
Code:
if(count >=12450 && count <= 12550)
{
   // Do whatever needs doing
}
Though why count means frequency is a mystery.
Pages: 1 [2] 3 4 ... 3353