Show Posts
Pages: 1 ... 7 8 [9] 10 11 ... 16
121  Products / Arduino Due / Re: Native USB port, keyboard, how to toggle VBOF (5V native USB) at PB10 UOTGVBOF on: December 03, 2012, 09:43:52 am
May it helps take a look at Page 1108 from the full SAM3xa Manuel

Thank you Markus, this is exactly the right place to look.

My problem: I am such a beginner, that I can not write code to toggle UOTGVBOF. It dose not work with digitalWrite().

From page 1108 of the full SAM3xa user manual:

• VBUSPO: VBus Polarity Off
0: The UOTGVBOF output signal is in its default mode (active high).
1: The UOTGVBOF output signal is inverted (active low).

Greetings, Conrad

I'm not sure but try this line in your viod Setup()

Code:
UOTGHS->UOTGHS_CTRL = UOTGHS_CTRL_VBUSPO;

Markus
122  Products / Arduino Due / Re: Native USB port, keyboard, how to toggle VBOF (5V native USB) at PB10 UOTGVBOF on: December 03, 2012, 08:56:18 am
May it helps take a look at Page 1108 from the full SAM3xa Manuel
123  Products / Arduino Due / Re: 5V Clock module with arduino DUE on: December 03, 2012, 04:14:37 am
hey guys.
hope you can help me out. We tried to switched from UNO to DUE due to performance issues and now we try to get the old clock module (5V exactly this one, http://bildr.org/2011/03/ds1307-arduino/) working on the DUE.

I've found the to possible SCL / SDA Ports and tried both.
I've also tried 5V and 3.3V.

Do I have to power the module with 5V and use resistors? Or can I also use 3.3V with this Module?

Thanks for helping me out in this one,
kind regards, tobi

The DS1307 would not work with 3.3V and the TWI Signals need an Levelshift from 5V to 3.3V.

5V would damage the DUE

If i'm right:
SDA and SCL (Pins 20&21) have Pullups --> TWI0
SDA1 and SCL1 (after Pin13) doesn't have Pullups --> TWI1

Btw. if you have an Due with RTC crystal (between the LED line RX,TX,L,ON and the chip, near the chip) you can use the internal clock.
124  Products / Arduino Due / Re: Arduino Due Wifi example not working on: December 03, 2012, 01:52:52 am
Wifi and Tone are not yet ported for the Due. Wifi Library is the next in my todo list for the coming week.

Sorry guys there are a lot of libraries out there... :-(

Sounds like cmaglie is the poor guy how is sitting chained in the basement how was told he can get out, but only if all work has been done.

Are you doing this alone cmaglie?
125  Products / Arduino Due / Re: Which one is the working Due version? on: December 02, 2012, 08:44:50 am
Let me count:

We have the official (IC10 near Atmel 16U2) in 2 versions (with crystal/no crystal)

The Old one (IC10 between headers)

and several other...

need pictures to say what is what

 smiley-confuse
126  Products / Arduino Due / Re: Which one is the working Due version? on: December 01, 2012, 05:00:49 pm
Well, I bought a board, that I expect to be complete.

Yes right, but if you look at all pictures from the Due on the Arduino pages, the Main or the Product Page, no picture shows an Board with an Crystal on it, so I think more and more the one with an Crystal an anormaly. And older pre Final boards are not relevant for the final release, its an another question why they decided to release them without the Crystal. How Boards without the final marks on the surface are getting to customers is an mystery from the mail-order. May it can solved...
127  Products / Arduino Due / Re: Which one is the working Due version? on: December 01, 2012, 02:50:02 pm
Do we really need to calculate this??? on an product that is randomly shipped with or without crystal?, with or without headers?, with or without labelling on the board?
Wrong question its not the point if you get an board with or without an crystal, if you want an working crystal/RTC with the most possible accuraty you need the right capacitors. So the question is what is the right value. In the schematic the value are 22pF but the Spec says max is 20pF...
128  Products / Arduino Due / Re: Which one is the working Due version? on: December 01, 2012, 01:37:22 pm
Quote
Thanks again.

I tried soldering on a watch crystal by itself and it is not enough - in fact it is worse, only 42 seconds per minute! With capacitors it runs at a more conventional 60 seconds per minute smiley But there is no easy place to solder the capacitors on (I was literally holding them between the crystal and the shielding of the USB port, which can't have helped the accuracy much).

Capacitors are really really important for the Crystal to work proper, they needed that the main frequenz of the Crystal swing. On page 1407 of the full SAM3xa is an formel to choose the right value.
129  Products / Arduino Due / Re: Which one is the working Due version? on: December 01, 2012, 09:10:54 am
Quote
Thanks, that's useful to know. Could you have a close look under a magnifying glass and tell me if the capacitors next to the crystal are also missing? I'd probably be able to solder the crystal back on if I needed it, but the capacitors would be impossible.
I can,

From Arduino Store now Crystal no capacitors.

From eBay Crystal and capacitors.
130  Products / Arduino Due / Re: Which one is the working Due version? on: December 01, 2012, 08:29:06 am


Hey guys,

    I'm going to manufacture few pieces of Due PCB boards, but I'm really confusing about this above. The small chip 74LVC1G125DCK has been moved to left bottom corner. Seems that's the right position.

    The current EAGLE file released on Due production page matches the second one board in that picture. So it's not the latest one.

    Hope Arduino team release the latest one soon.

Best,
Tony

And the Story goes on,

I have buy just for fun an secound Due from ebay. And now there are the diff.



On the Due from ebay is everything the same, the box, the sticker and the package insert it looks in all way like the actuell one with all labels on the surface, except one part it has the Crystal for the RTC on the surface.

With this I have make an test I used stimmers Sketch for the http://arduino.cc/forum/index.php/topic,130125.msg980484.html#msg980484 RTC and put this in the void setup to use the external Crystal.

Code:
#define SUPC_KEY   0xA5u

void setup() {
  Serial.begin(9600);
  SUPC->SUPC_CR |= SUPC_CR_KEY(SUPC_KEY) | SUPC_CR_XTALSEL;
}

So there we are if I used the internal RC the RTC lost 5sec in 1 Min so it is nearly 10% to slow with the external Crystal is goes sync with my PC clock.
131  Products / Arduino Due / Re: DUE temperature sensor API on: November 29, 2012, 02:12:18 am
Quote
Everybody may, use and criticize.
Thanks - I don't like your hair!  smiley-razz
Strange my wife say's the same.
132  Products / Arduino Due / Re: DUE temperature sensor API on: November 28, 2012, 10:50:05 am
So I make an shot for the Temp-Sensor on the SAM

Code:
float trans = 3.3/4096;
float offset = 0.8;
float factor = 0.00256;
int fixtemp = 27;

void setup() {
  Serial.begin(9600);
}

void loop() {
  float treal = fixtemp + (( trans * temperatur() ) - offset ) / factor;
  Serial.println(treal);
  delay(10);
}

uint32_t temperatur() {
  uint32_t ulValue = 0;
  uint32_t ulChannel;
 
  // Enable the corresponding channel
  adc_enable_channel(ADC, ADC_TEMPERATURE_SENSOR);

  // Enable the temperature sensor
  adc_enable_ts(ADC);

  // Start the ADC
  adc_start(ADC);

  // Wait for end of conversion
  while ((adc_get_status(ADC) & ADC_ISR_DRDY) != ADC_ISR_DRDY);

  // Read the value
  ulValue = adc_get_latest_value(ADC);

  // Disable the corresponding channel
  adc_disable_channel(ADC, ADC_TEMPERATURE_SENSOR);

  return ulValue;
}

Everybody may, use and criticize.
133  Products / Arduino Due / Re: Happiness is SdFat with DMA SPI on: November 28, 2012, 04:19:59 am
Please share the modifications with us.

Can't what for that.
134  Products / Arduino Due / Re: analog inputs on: November 23, 2012, 02:10:20 am
Quote
In some way both wrong,
No I said:-
Quote
The board has analogue inputs labeled A0 to A11 that's twelve inputs.
That is in no way incorrect.
The fact that the board has a few more analogue inputs dedicated to an other function was mentioned further back in the thread.

In fact you are wrong saying:-
Quote
there a 14 analog pins
There are in fact 15 analogue pins, the 16th input to the multiplexer is the internal temperature monitor.
But only 12 are supported in the software as used by the digitalRead(pin) function.

Yes Mike, you are right I'am wrong, my fault. I missed ADC14 on Pin52, and yes my wrong 12 supported by the corefiles from the IDE. Sorry.
135  Products / Arduino Due / Re: analog inputs on: November 22, 2012, 10:40:55 am
Quote
but I can't see more than 10 analog inputs on the board.
.?
The board has analogue inputs labeled A0 to A11 that's twelve inputs.

In some way both wrong, there a 14 analog pins the last 2 are on TWI0 but they have Pull-ups
Pages: 1 ... 7 8 [9] 10 11 ... 16