Show Posts
Pages: 1 [2]
16  Using Arduino / Interfacing w/ Software on the Computer / Re: COM Port Communication with VB on: February 28, 2013, 06:58:15 am
Quote
It happens the same to me, when using the programming port with the Arduino Due, I can only connect to the Native USB.
That would be logical. The programming port is for, well, programming the Arduino. You aren't programming the Arduino from the Terminal application, are you?

I am not, but wouldn't I be able to communicate to Arduino Uno via Serial.print() and Serial.read() commands?

I don't understand why the port is not available when I try to open it from another program different from Serial Monitor (which is supposed to be the same).
17  Using Arduino / Interfacing w/ Software on the Computer / Re: COM Port Communication with VB on: February 28, 2013, 06:37:55 am
Quote
is this the same issue?
No.

Quote
However, when I use the Monitor Serial, I don't get the error and all the data flow fine, so nothing is locking the port
You aren't trying to use the Terminal program at the same time as the Serial Monitor, are you? Have you closed the IDE?

Yes, of course I have tried to connect via Terminal after closing the IDE.
It happens the same to me, when using the programming port with the Arduino Due, I can only connect to the Native USB.

What is it then?

18  Products / Arduino Due / Re: speed of analogRead on: February 27, 2013, 07:49:55 pm
I'm working on a similar project at the moment. If analogRead is too slow for you it is possible to put the ADC in 'free-running' mode and read the registers directly - doing this I am getting conversions in 1uS (although I have not tested for accuracy yet). This is the code I was using to test speed:

Code:
void setup() {
  Serial.begin(9600);
  int t=analogRead(0);

  ADC->ADC_MR |= 0x80; // these lines set free running mode on adc 7 (pin A0)
  ADC->ADC_CR=2;
  ADC->ADC_CHER=0x80;
}

void loop() {
  int t=micros();
  int q=0;
  int a0;
  for(int i=0;i<1000000;i++){
    while((ADC->ADC_ISR & 0x80)==0); // wait for conversion
    a0=ADC->ADC_CDR[7];              // read data
    q+=a0;
  }
  t=micros()-t;
  Serial.print("1 million conversions in ");Serial.print(t);Serial.println(" micros");
}

This piece of code is great!! I'm sampling at 1MHz (one channel) in my Due.
Would the registers setup change for two channels?

Thank you

19  Using Arduino / Interfacing w/ Software on the Computer / Re: COM Port Communication with VB on: February 27, 2013, 07:14:24 pm
If I try to use a Terminal program with an Arduino Uno (R3 SMD) under windows 7, I get the message: "The port is not available".

However, when I use the Monitor Serial, I don't get the error and all the data flow fine, so nothing is locking the port....is this the same issue?

Thank you
20  Using Arduino / Sensors / Re: HB-100 Micro-wave Doppler effect sensor on: February 12, 2012, 01:22:19 pm
Hi all.

I have on question about that HB-100 sensor... which is its bandwith?
I mean, which is the maximum speed it could detect?

Thank you.  smiley
Pages: 1 [2]