Show Posts
Pages: [1] 2 3 ... 161
1  Using Arduino / Programming Questions / Re: build truncated on: October 01, 2014, 11:29:29 pm
Sounds like you commented out most of your code.

Mark
2  Using Arduino / Programming Questions / Re: Problem with tacho on: September 30, 2014, 05:40:00 am
The correct way to deal with this is to STOP trying to sample the sensor using digitalRead() (polling) and use an interrupt!. This is just what the external interrupts are provided for!

Mark
3  Using Arduino / Project Guidance / Re: IP camera and arduino on: September 30, 2014, 05:34:33 am
On the linux side - doh.

Mark
4  Using Arduino / Programming Questions / Re: Where does 93 bytes of RAM go? on: September 29, 2014, 10:28:29 am
Ram is layed out as (low to high) global data, heap, free ram, stack with the stack extending down towards the heap.

Nick an address is 2 bytes.

Mark
5  Using Arduino / Programming Questions / Re: Writingto digital pins a byte at a time on: September 29, 2014, 10:20:18 am
If you look at devices that take parallel data/address you will find that they have at least 1 if not 2 or 3 extra lines to provide control. So you setup the data on the parallel data bus and then toggle the control line(s) to execute the operation.

Mark
6  Using Arduino / Programming Questions / Re: Where does 93 bytes of RAM go? on: September 29, 2014, 05:50:29 am
For an array you store the address of the array as well as the data.

Mark
7  Using Arduino / Programming Questions / Re: Where does 93 bytes of RAM go? on: September 29, 2014, 05:18:08 am
A look at the IDE generated main.cpp (or is it .c) may show something. Any local vars there will be on the stack for the life time of the sketch.

Mark
8  Using Arduino / Programming Questions / Re: Where does 93 bytes of RAM go? on: September 29, 2014, 05:07:53 am
Mmm how about the the stack pointer, and when you are in setup() the space used by the call to setup on the stack.

Mark
9  Using Arduino / Programming Questions / Re: A. Uno interfacing with SD Card on: September 24, 2014, 11:08:44 am
Then he knows that he is years out of data get an upto date copy of the lib.


Mark
10  Using Arduino / Programming Questions / Re: Control DC motors? on: September 24, 2014, 04:02:12 am
You have the motor connected to A3 when it should be connected to D3. analogWrite() works on the digital pins NOT the analog pins.

Mark
11  Using Arduino / Programming Questions / Re: Control DC motors? on: September 22, 2014, 08:03:25 pm
Code:
  int motorPin = 3;
  pinMode(motorPin, OUTPUT);

Goes in setup(). What external hardware are you using?

Mark
12  Using Arduino / Project Guidance / Re: Can I use 2 accelerometers on an audrion UNO board on: September 22, 2014, 04:13:30 pm
Yes (with SPI).

Mark
13  Using Arduino / Programming Questions / Re: Serial ASCII on: September 22, 2014, 01:54:37 pm
Really puzzling?

Code:
void loop () {
  Serial2.write("01");
  Serial2.write("p+");
  Serial2.write(01);
  Serial2.write("03");
  delay(3000);
}
No very simple the SOH value is a single char with the value 01 NOT the string you are sending! The same applies to the ETX.

So it is
Code:
void loop () {
  Serial2.write(1); //single char not a string!
  Serial2.write("p+");
  Serial2.write(01);
  Serial2.write(03);//single char not a string!
  delay(3000);
}
14  Using Arduino / Project Guidance / Re: Arduino Speech Recognition on: September 22, 2014, 10:41:41 am
Quote
So how can I control Commands without pc?
?????

The Uno is a computer!

Mark
15  Using Arduino / Programming Questions / Re: Arduino freezing segfault? on: September 22, 2014, 05:35:57 am
Just which Arduino are you using?

Mark
Pages: [1] 2 3 ... 161