Loading...
  Show Posts
Pages: 1 [2] 3 4 ... 12
16  Products / Arduino Due / Re: Write register values in code on: March 25, 2013, 10:38:02 am
Good, but sorry really missed the channelname.
17  Products / Arduino Due / Re: Write register values in code on: March 25, 2013, 08:16:48 am
How can I directly write a register value in my code?

For example the PWM_CMR_CPOL (0x1u << 9) change the register value 0 to 1.

Code:
// This doesn't work
#define PWM_CMR_CPOL 1;
That won't work. #define works like a placeholder everywhere the compilers find the term PWM_CMR_CPOL he would replace it with a 1.

Something like this should set the register Value to a 1
Code:
PWM->PWM_CMR = PWM_CMR_CPOL;
18  Products / Arduino Due / Re: Composite Video Generating on: March 20, 2013, 10:35:03 am
I've tried some things with dma, but now my arduino doesn't work anymore. I have seriously no idea what's the problem.

Edit: It works again. I pressed the erease and the reset button at the same time, and were able to upload a sketch again. After that everything worked well again.
Lucky men, I know this kind of happiness...
19  Products / Arduino Due / Re: arduino due rtc and unixtime ? on: March 16, 2013, 05:37:39 am
For all who looking for new versions I will post new ones there:

http://arduino.cc/forum/index.php/topic,144446.msg1084672.html#msg1084672

And on the git link to the git is also in the link above.

Questions and wishes will still answered and discuss there.

Markus
20  Products / Arduino Due / Re: malloc problem on AVR, Arduino 1.5.2 on: March 15, 2013, 03:47:55 am
I also looked on github. deleting that file is basically a non-answer. What needs to happen is there should not be two pieces memory management code. It has to be one or the other, and not both.
May with some define lines it can be solved
21  Products / Arduino Due / Re: Composite Video Generating on: March 10, 2013, 01:56:05 pm
I have it connected to my scope too (which has 1M impedance).
I'm right yo you must have all parallel connected, so the smalest resistor will beat all other if you connect it and messure the impedance value you will get ~75 Ohm even with the 1M impedance. God will be an operational amplifire as voltage follower between the DAC and the rest of the connections or something else how has an high input impedance and an low output impedance.
22  Products / Arduino Due / Re: arduino due rtc and unixtime ? on: March 04, 2013, 03:45:02 am
I'm sorry i forgot to give you karma until today so i will have to keep giving you karma now for helping me. smiley-mr-green

I have already done this in a much dirtier way by  adding six years worth of seconds to the line in rtc_clock.h #define SECONDS_FROM_1970_TO_2000 946,702,800.  I like yours better though, cleaner and works for everybody.  I will install and test.

You know, this has me thinking...  I never checked the unixtime from my old sketch (which i ran on uno w/ DS1307 rtc).  I wonder if it was accurate because it didn't have a way to put the timezone in afaik.  oh well.. i'm too lazy to check because the old project is now a heap of crap in the garage because hurricane sandy knocked my power out for 17 days and the entire aquarium died and it started to reek of low tide. anyways, enough babbling..  kudos!

edit:  It does seem to be working perfectly now...  karma ++ for you..  as soon as i can again because it says i cant do it more than one time per hours.

Sorry for your lost, bad sandy.

Thanks for the karma. So new version only ready for Summertime  smiley
23  Products / Arduino Due / Re: arduino due rtc and unixtime ? on: March 02, 2013, 03:07:58 pm
So tevroc I have make some changes in the rtc_clock.unixtime() function as I had to find out that not all people live in my timezone so you can change it, you can insert rtc_clock.unixtime(UTC-5) or some else UTC+1230 or other known timezones to make an addoption to your time zone.

New one attached please test if I shift in the right direction.
24  Products / Arduino Due / Re: Updating 16u2 USB firmware on: March 01, 2013, 11:58:39 am
All right, working much better now with new USB firmware https://github.com/arduino/Arduino/pull/1267#issuecomment-14058478

Yes much better voll agree, the page for upgrading the Atmel16u2 is really nice but I think I would better and nicer for beginner that there would an Name for the Programming Port Atmel in the Boardslist so that anyone can change the firmware easily from the IDE
25  Products / Arduino Due / Re: arduino due rtc and unixtime ? on: March 01, 2013, 11:08:33 am
The example did not compile at first.  Then i realized it was using the old header file from the other folder for some reason.  after uninstalling your old library, it worked!  thanks again!   smiley-money

edit: upon further inspection something is off.  The unix time stamp that the example gives is off by a few hours.  i used a couple of different websites to verify this.  

http://www.epochconverter.com/
http://www.unixtimestamp.com/index.php

its giving me
Code:
Unixtime: 1362130550
And in plain for everyone
Time: 10:35:51
Date: Fri 01.03.2013

but if you punch that timestamp into the converter it gives you
Code:
TIME STAMP: 1362130550

DATE (M/D/Y @ h:m:s): 03 / 01 / 13 @ 3:35:50am EST

Whats your timezone?

Convert epoch to human readable date and vice versa
1362130550   [batch convert timestamps to human dates]
GMT: Fri, 01 Mar 2013 09:35:50 GMT
Your time zone: Freitag, 1. März 2013 10:35:50 GMT+1

Come from the first link.

Sorry it's german but on this page you can change the timezone http://www.aritso.net/aritso-tools/timestampconverter/ and you will get other times for the unixtime
26  Products / Arduino Due / Re: arduino due rtc and unixtime ? on: March 01, 2013, 08:42:23 am
WOW!   smiley  What fast service!  Thank you!  I would definitely like to try it but i have to leave for work.  I will try it tonight when i get home.
No not for that, I needed an reason to get an hand on it thanks, it's my pleasure if someone used it, btw there is an new version online.
27  Products / Arduino Due / Re: arduino due rtc and unixtime ? Update to the Update on: February 28, 2013, 05:32:25 am
Did you have a link to the Adafruit library if I find some time I will convert it. It's my fault I hadn't any use for the unixtime so i don't implement it sorry...

So the use of the compiletime is implemented, sort of this to use it:
Code:
 rtc_clock.set_time(__TIME__);
  rtc_clock.set_date(__DATE__);
re-used the code from Lady Ada, unixtime will be the next.

So unixtime implemented like the Adafruit library solved the problem:
Code:
rtc_clock.unixtime()
gives you the time in unixtime style.

Sample and Updated code will follow...

And now completed.

Sample for this:
Code:
#include <rtc_clock.h>

// Select the Slowclock source
//RTC_clock rtc_clock(RC);
RTC_clock rtc_clock(XTAL);

char* daynames[]={"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"};

void setup() {
  Serial.begin(9600);
  rtc_clock.init();
  rtc_clock.set_time(__TIME__);
  rtc_clock.set_date(__DATE__);
}

void loop() {
  Serial.print("Unixtime: ");
  Serial.println(rtc_clock.unixtime());
  Serial.println("And in plain for everyone");
  Serial.print("Time: ");
  digitprint(rtc_clock.get_hours(), 2);
  Serial.print(":");
  digitprint(rtc_clock.get_minutes(), 2);
  Serial.print(":");
  digitprint(rtc_clock.get_seconds(), 2);
  Serial.println("");
  Serial.print("Date: ");
  Serial.print(daynames[rtc_clock.get_day_of_week()-1]);
  Serial.print(" ");
  digitprint(rtc_clock.get_days(), 2);
  Serial.print(".");
  digitprint(rtc_clock.get_months(), 2);
  Serial.print(".");
  Serial.println(rtc_clock.get_years());
  Serial.println("");
}

void digitprint(int value, int lenght){
  for (int i = 0; i < (lenght - numdigits(value)); i++){
    Serial.print("0");
  }
  Serial.print(value);
}

int numdigits(int i){
  int digits;
  if (i < 10)
    digits = 1;
  else
    digits = (int)(log10((double)i)) + 1;
  return digits;
}

New library is attached, tevroc would you like to test it.
28  Products / Arduino Due / Re: Due I2C not working on: February 27, 2013, 01:34:06 am
Actually, it's my code which was bad, I modified it and all worked fine for me smiley Sorry for disturbing.
It would be nice if you share your new code with us.
29  Products / Arduino Due / Re: Do not follow Simple Audio Player example - DAC0 now non-functional on DUE on: February 26, 2013, 02:37:33 pm
DAC0 is the one you learn on, DAC1 is the one you then take care of.

Duane B

destructive testing  smiley-confuse
30  Products / Arduino Due / Re: I/O loading on Due on: February 14, 2013, 04:35:31 am
does it only refer to TST, ERASE and JTAGSEL select pins ?
In reference to the Atmel paper I would say so only on this pins
Pages: 1 [2] 3 4 ... 12