Show Posts
Pages: 1 ... 5 6 [7] 8 9 ... 16
91  Products / Arduino Due / Re: Disabling UART on Due? on: January 12, 2013, 05:45:42 pm
Trying to do some ISO-9141 (car ECU) communications, and i need to send a 5-baud start sequence which is done with:

Code:
pinMode(TX0, OUTPUT);
pinMode(RX0, INPUT);

digitalWrite(TX0, HIGH);
....
Serial.begin(10400);

BR
You mean K-Line I think so you have the same Problem I have with L-Line and the USART may you can use an K-Line Transciever and the Lin support from the SAM.
92  Products / Arduino Due / Re: Arduino Due don't work with sketch of Leonardo on: January 10, 2013, 01:53:45 am
Hi guys,

I'm trying to put a sketch that works fine in the Arduino Leonardo but don’t work in the Arduino Due.
Can somebody help me?

Thanks smiley
The Sketch would help to look at it.
93  Products / Arduino Due / Re: Arduino due DS1307 RTC library on: January 07, 2013, 09:52:45 am
We're talking on 2 different things.

I didn't know that the SAM3X has an RTC built in it.
I've tried to connect a DS1307 to the Arduino Due.
That is why I didn't understand how your library can help me with my project.

If there is a RTC built-in, how can I save the time there. is there a way to connect a battery to the SAM3X, like the one connected to a DS1307 circuit?

Thanks.
The SAM3X has connections for an backup-batterie to power the RTC if the "core" is powered of but the Arduino Due doesn't has Pins for that option.

Sorry for that, but this library is only for the build in RTC for an DS1307 you can use any library from the playground or else (so I think) the wire library is allready portet for the Due so they should work.
94  Products / Arduino Due / Re: Arduino due DS1307 RTC library on: January 07, 2013, 08:10:52 am
So how do I set the time on the DS1307?
I want to set it once, and read the time from it.

Btw. there is no DS1307 on the Due Board. the SAM3X has an RTC on Die.

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(10"hours", 29"minutes", 9"seconds");                <- this line set the time you set the hours, minutes and seconds with that
  rtc_clock.set_date(22, 10, 2012);
}

void loop() {
  Serial.print("At the third stroke, it will be ");
  Serial.print(rtc_clock.get_hours());                                            <- with rtc_clock.get_hours() you get the hours as an int
  Serial.print(":");                                                                          same for the fowolling minutes and seconds.
  Serial.print(rtc_clock.get_minutes());
  Serial.print(":");
  Serial.println(rtc_clock.get_seconds());
  Serial.print(daynames[rtc_clock.get_day_of_week()-1]);
  Serial.print(": ");
  Serial.print(rtc_clock.get_days());
  Serial.print(".");
  Serial.print(rtc_clock.get_months());
  Serial.print(".");
  Serial.println(rtc_clock.get_years());
}

May I had to set more comments in the sample.
95  Products / Arduino Due / Re: Arduino due DS1307 RTC library on: January 07, 2013, 04:47:16 am
Hi Markus,

I'm using an external XTAL.

I uploaded the Due_Rtc_Simple_Sample once and all worked fine.
When I commented out:

 
Code:
//rtc_clock.set_time(10, 29, 9);
  //rtc_clock.set_date(22, 10, 2012);

The date was 1.1.2007

Am I missing something?

No you missed nothing the 1.1.2007 is the the Resetvalue in the Calenderregister (look at the SAM3X Manuel on page 251) so this Date is set after Powering on. I don't know why this Date is set, but there is nothing wrong if it shown.
96  Products / Arduino Due / Re: Arduino due DS1307 RTC library on: January 07, 2013, 02:03:42 am
Hi,

I've tried using RTClib and DS1307RTC libraries but they aren't compatible with the Arduio Due.
I've found this library, but it doesn't use an external RTC.

Any help?
Hello Liad

Did you have an external crystal?

Witch line did you use?

RTC_clock rtc_clock(RC);
or
RTC_clock rtc_clock(XTAL);

The RTC_clock rtc_clock(RC) should work allways.

Markus
97  Products / Arduino Due / Re: TFT library compatible with Due? on: December 23, 2012, 11:06:46 am
Yes, but you need to get itdb02_32s display and mega shield for it from iteadstudio.com, these sources are compatible with that display and propably only with that display, other than 16bit modes are removed and this library only supports arduino due as I replaced and removed code, instead of just making it compatible with due along others. But here's a library, examples work "as is" with mega pins chosen on utft init..

Oh, one more thing.. You need to apply this patch:
https://github.com/cmaglie/Arduino/commit/74dea07f2c7e977bacf5c61f7e8502609b285dbb

Now it works, sorry missed the patch.

Happy X-Mas
98  Products / Arduino Due / Re: TFT library compatible with Due? on: December 23, 2012, 10:56:03 am
Yeah, the library should be cleaned up.. It's a bit messy.. But this is a great starting point for everyone needing a display for due..

Here's one more thing, when using samples (or doing your own) - you need to change bitmap definitions a bit to make it work.. For example, tux.c in UTFT_Rotate_Bitmap example:

Code:
// Generated by  : ImageConverter 565 v1.0
// Generated from: tux.png
// Time generated: 11.10.2010 22:51:32
// Size          : 2 048 Bytes

//#include <avr/pgmspace.h>

const unsigned int tux[0x400] = {
0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xE73C, 0x9CD3, 0x9CF3, 0xA514,   // 0x0010 (16)

it should start like this..
comment out #include <avr/pgmspace.h>
and change variable definition to:
const unsigned int varname[size] = {

Seems not working for me only geht an white screen
99  International / Deutsch / Re: Wortuhr Zeitumstellung (Arduino Due) on: December 21, 2012, 12:27:25 pm
Danke für die schnellen hilfreichen Tipps.

Ich hatte es mir schon gedacht, dass das Programm grundlegend anderst geschrieben werden muss:) funktioniert fürs erste jedoch auch so ganz gut smiley

Werde mich demnächst ans neue Programm rantasten.

Das "taktgefühl" hat der Due übrigens gut im Griff... Hatte zeitgleich eine Stoppuhr laufen lassen. Nach 20 Tagen war die Abweichung kleiner als 0.1 Sekunden. Das sind weniger als 2 Sekunden aufs Jahr.

Für jeden weiteren Tip bin ich natürlich sehr dankbar.

maestro_dom

Also ich habe mal die Wortuhr von hier http://www.mathias-wilhelm.de/arduino/projects/text-clock/ auf den Arduino portiert rödelt auf nen TFT vor sich hin. Sketch füge ich mal an. RTC lib findest du hier https://github.com/MarkusLange/Arduino-Due-RTC-Library. Habe das ganze aber auch mal auf ein LCD gewuchtet neben ein paar anderen Anzeigen, hänge ich auch mal an.

Grundsätzlich hat sth77 recht der Due hat dabei langeweile und viel zu viel Speicher übrig ein AtMega328P reicht da völlig.

Markus
100  Products / Arduino Due / Re: Due I2C Voltage on: December 21, 2012, 06:40:47 am
Hello all,

as mentioned here http://arduino.cc/en/Main/ArduinoBoardDue
Arduino Due's I/O Voltage was changed from 5V to 3.3V.

Does this also mean that we have to change the voltage of the I2C Devices like DS1307, DS1820?

Thanks
Ben
Think so I'm sure (I don't have the I2C Spec to read it) but if the Chip (DS1307 or DS1820) works with 5V the I2C would talk with it to, so if the IC can understand I2C with 3.3V he can listen but the answer would at 5V level so it will damage the Due
101  Products / Arduino Due / Re: TFT library compatible with Due? on: December 19, 2012, 03:03:07 am
I wired it up according to UTFT's documentation, adapting it to the specific TFT. It was not difficult. I should point out that it is an ITDB32WD compatible display that I got off of ebay, and not an ITead original.

The display works natively with 3.3V logic (I had to use resistors to use it with the older Arduinos) so it is actually easier to interface to the Due than to older Arduinos.

Did someone has an benchmark from the lib between oldone on mega how fast is it?

I try to convert the UFT Clock from Henning Karlsen to work with the Due http://henningkarlsen.com/electronics/p_utft_analog_clock.php. But my Calender is blinking the clock is working proper.
102  Products / Arduino Due / Re: TFT library compatible with Due? on: December 17, 2012, 03:18:18 pm
One more thing.. Henning's utouch library (support for touch screen) works out of the box on due..

So now we have initial support for touchscreens with sd slots for due.
Henning's utouch library works without any changes.
103  Products / Arduino Due / Re: can serial.print but not input on: December 17, 2012, 12:55:00 pm
on atmel studio 6 I can printf just fine using the sample code (Atmel Frame work examples) ..
 but input looks to be a differnt baud rate   
not a killer problem but pretty silly ...



/ works fine with sketch  so not the terminals (tried both putty & serial monitor)
All Framework Sample have the baud rate 115200

Markus
104  Using Arduino / Displays / Re: New UTFT Lib on: December 17, 2012, 10:34:53 am
Has anyone successfully used the calibration sketch on a 3.2WD screen  - I am having no luck in getting it to work correctly. When I run subsequently run the Quick Draw example I get a mirror image on the long axis.

Orientation problem, easy to fix by changing the orientation value to fit your needs smiley

I gather you mean to change the orientation of the screen and/or touch panel to either Portrait or Landscape in the initialisation??

I have tried all different combinations with different/ but still incorrect, results.
You need to do the calibration Sketch first and edit then the UTouchCD.h

or alternativ test mine I have the same panel.

Markus
105  Products / Arduino Due / Re: Lin Support on the Due on: December 17, 2012, 03:00:05 am
Maybe USART0 can become an weak handler so I can override it?
Pages: 1 ... 5 6 [7] 8 9 ... 16