Show Posts
Pages: 1 ... 13 14 [15] 16 17 ... 32
211  Products / Arduino Due / Re: SOLVED Is itoa broken in 1.5.2? on: August 04, 2013, 10:53:10 pm
Check itoa.c at
Quote
...\arduino-1.5.2-windows\arduino-1.5.2\hardware\arduino\sam\cores\arduino\

For example:

The equivalent for

Code:
xstr[8]='0'+((x/10UL)%10UL); // tens digit

is

Code:
ltoa((x/10UL)%10UL,xstr, 10);

I am not sure if this help.
212  Products / Arduino Due / Re: SOLVED Is itoa broken in 1.5.2? on: August 04, 2013, 08:16:45 pm
I want to clarify that the current Due supporting Arduino IDE 1.5.2 is not beta and is stable (IDE 1.5 BETA was the first supporting DUE version) but I agree with you that UNO is a good choice to start playing with C/C++ basic programming and also to get familiar with the Arduino world . Good luck!
213  Products / Arduino Due / Re: SOLVED Is itoa broken in 1.5.2? on: August 03, 2013, 05:01:52 pm
Hello frogeye,
I am happy it worked!

In IDE 1.0.3 atoi is a part of the AVR Libc for 8-bit microcontroller. I am not sure but you should consider things like 1.03 or any other before 1.5 BETA was designed supporting AVR MCUs. The people from Arduino started supporting the Due board (SAM3) sice the 1.5 BETA version. I understand when you say the code ran Ok under IDE 1.03, it was running in a UNO, or Leonardo, etc... but not Due. Am I right? Due is a different monster. smiley-twist
214  Products / Arduino Due / Re: Is itoa broken in 1.5.2? on: August 03, 2013, 03:00:08 pm
Have you tried adding
Quote
#include <itoa.h>
at the beginning of the code? Regards!
215  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: August 02, 2013, 07:46:13 pm
Hello zabaat.

According to Atmel doc11057 (page 1207) http://www.atmel.com/Images/doc11057.pdf, each of the two CAN controllers inside SAM3X8E has 8 mailboxes implemented. Thus, you have 16 mailboxes available which is more than enough for a general purpose CAN project. It is a hardware limitation of the MCU. Notice also that the component_can.h file from the CMSIS library on the Arduino Due...
Quote
(...\arduino-1.5.2-windows\arduino-1.5.2\hardware\arduino\sam\system\CMSIS\Device\ATMEL\sam3xa\include\component)
... there are only 8 defined mailboxes per CAN controller (MB0->MB7). On the other hand, you could optimize the use of the mailboxes implementing the Producer<->Consumer mode where you need half of the amount of mailboxes as compared to the clasical Transmit<->Receive mode. Can you tell us more about you application?. Why more than 16 mailboxes? Regards!
216  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: August 01, 2013, 02:08:31 pm
Hello djusthof,
I don't know which due_can.h file you pulled but the one from collin80 here: https://github.com/collin80/due_can only has 241 lines and I see you are getting error in line 538?. Thus, I would recommend you to download again the library and try it again. Regards.
217  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: August 01, 2013, 12:03:25 pm
Hello djusthof,
Could you show us part of the errors you are getting? Thanks.
218  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: July 30, 2013, 08:15:46 am
Hello Rich,
I would recommend you to move (cut and paste) the CAN library folder 'due_can' from

Quote
\\fs02\users\richardpel\arduino-1.5.2-windows\arduino-1.5.2\libraries\

to

Quote
\\fs02\users\richardpel\arduino-1.5.2-windows\arduino-1.5.2\hardware\arduino\sam\libraries\

Please, let me know.

EDIT:
Remember also that the variant files should be located at:

Quote
\\fs02\users\richardpel\arduino-1.5.2-windows\arduino-1.5.2\hardware\arduino\sam\variants\arduino_due_x
219  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: July 29, 2013, 11:36:55 am
Hello Rich,

Please see my reply #181.

http://forum.arduino.cc/index.php?topic=131096.181

Regards,
Wilfredo
220  Products / Arduino Due / Re: [Finally a working EMAC library] Connecting an Ethernet PHY to Arduino Due on: July 28, 2013, 05:56:11 pm
Small web server example using Taijiuino.

As some of the followers of this thread know, I have been working porting the EMAC library and example from AS6 ASF SAM3X-EK to the Arduino Due environment. Even though I tried to put the Due in action, it is very hard under its actual design. Thus, I migrated to Taijiunio and AS-Sam3x (third parties Due based boards). So far, we have a very raw workable library but also we have been very busy to finish it. We have some plan to continue next month (Paul, Thibaut and me).    
In the meantime of our EMAC library development and taking advantage that the raw EMAC library is working decently, I have decided to explore, what is, our next frontier: to use the potential EMAC cababilities of Arduino Due (now available in the Taijiuino board) an convert it in a small web server. Thus, I made a raw porting of the AS6 ASF lwIP Atmel example. This example features a basic HTTP web server using lwIP TCP/IP stack and the EMAC driver of the Taijiuino in mode standalone (without OS).

Plugging directly the Ethernet cable into the Taijiuino EMAC kit to my laptop and configuring the network to local mode setting up a 'point-to-point' network, now I can launch my Google Chrome web browser and typing the IP address assigned automatically to the Taijiuno (DHCP mode) and see an index.html page that comes with the example (converted into a static C struct, with HEX codes, with the help of a small Perl script).

Here attached a couple of pictures of the Taijiuino in action and the serial output. I have planned (of course) to polish and finish this raw code of the web server (it is messy and big now) into the Arduino IDE environment and create some input/output functions like turn on/off digital outputs using buttons in the web page, or change analog signals using a painted potentiometer or show status of some parameters in the board (temperature, voltage, etc.) but...that will take some weeks. Regards!



221  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: July 25, 2013, 09:32:26 am
Hello jspobuk,

As I mentioned in my reply #125, I am not sure if the CAN library support J1939. Definitively the one that have gasped more with it is Collin80. Please, read his reply 126 about the masking. Anyway, if you have the specific brand and model of your J1939 device, please, let us know. May someone else is working with it or we could make time to read about it and try to help you more.

http://forum.arduino.cc/index.php?topic=131096.126

Regards.
222  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: July 22, 2013, 09:16:35 pm
I was double checking that. I also believe you forgot to mention the following remaining lines:

In variant.h:
Code:
static const uint8_t CANRX = 68;
static const uint8_t CANTX = 69;

In variant.cpp
Code:
// 68/69 - CANRX0/CANTX0
  { PIOA, PIO_PA1A_CANRX0,   ID_PIOA, PIO_PERIPH_A, PIO_DEFAULT, PIN_ATTR_DIGITAL,                  ADC14,  NO_ADC, NOT_ON_PWM,  NOT_ON_TIMER }, // CANRX
  { PIOA, PIO_PA0A_CANTX0,   ID_PIOA, PIO_PERIPH_A, PIO_DEFAULT, PIN_ATTR_DIGITAL,                  ADC15,  NO_ADC, NOT_ON_PWM,  NOT_ON_TIMER }, // CANTX

I have a check-out list somewhere. I will try to find it but in the meantime remember:

1. CANH0<->CANH1    /    CANL0<->CANL1
2. 'direct mode' in the transceivers connecting pins 5(EN) to 3V3 and pins 8(Rs) to GND.
3. Serial monitor of the Arduino IDE 1.5.2 with autoscroll and newline modes activated.

EDIT: Terminal resistors (120 ohm) between CANL and CANH lines.
223  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: July 22, 2013, 08:40:09 pm
Hello jspobuk,
I don't remember if you followed the directions I gave you in my (reply #181). Remember, if you have the wrong variant files, the communication can't be established.

http://forum.arduino.cc/index.php?topic=131096.181

Please, keep us posted. Regards,
-Wilfredo

 
224  Products / Arduino Due / Re: The Due uses the SAM3X8E... But can we compile for other chips? Which ones? on: July 17, 2013, 08:32:20 am
SAM4E16 remains as a good choice. SAM4E-EK has recently been launched (March 2013 - $249). Why SAM4E? ask jtw11.
225  Products / Arduino Due / Re: The Due uses the SAM3X8E... But can we compile for other chips? Which ones? on: July 15, 2013, 08:22:59 pm
Palliser:
USB host behavior? What functionality does that give you?  Is that where it can act as a keyboard or mouse, or is it where it functions as removable storage media?  Or does it allow it to interface with mice and removable storage media directly?

Due's native USB port behaves as a USB host for connected peripherals such as mice, keyboards, and smartphones (communication via Google's ADK). Last thing I did was a mouse pointer controller with a toy gun using an accelerometer, just for fun.

Here info of the library (still under development).
http://arduino.cc/en/Reference/USBHost
Pages: 1 ... 13 14 [15] 16 17 ... 32