Show Posts
Pages: [1] 2
1  Products / Arduino Due / Re: Happiness is SdFat with DMA SPI on: November 30, 2012, 06:13:56 pm
Fantastic - this will be the obvious choice for logging applications!
2  Products / Arduino Due / Re: Building a CAN communication protocol interface for Arduino DUE on: November 29, 2012, 08:50:49 am
I was able to order a DUE today, so I'll join the ranks soon smiley

I really appreciate it, that you use both CAN-Transceivers! This will be great for using it as a Gateway!
3  Products / Arduino Due / Re: Building a CAN communication protocol interface for Arduino DUE on: November 17, 2012, 06:59:57 pm
"No CAN due-sville, babydol" ?

Wow Palliser - you seem to be really focused on this :O thanks for spearheading!
4  Products / Arduino Due / Re: Building a CAN communication protocol interface for Arduino DUE on: November 13, 2012, 05:31:55 pm
Hi,

i agree with the notion of making it work within the Arduino IDE without needing too many additional libraries.
I've been using the sparkfun shield and the accompanying library, and it provides the basic functionality of sending and receiving a CAN-Message. It gives you the message-ID and the data Bytes of a received message and requires the same for sending one. Additionally you can set the ID-Filters (although this isn't very intuitive ... and should definitely be improved, as it's the best way to take load off an Arduino UNO smiley-wink )

I think this should be the basic foundation of the DUE-CAN library. Any additional features can be built on top of that in additional library files/layers, but should be modular (imho).

Let me know if we need to design a can shield.

That would be great! I don't know if its possible with the current pinout, but if you could implement a shield with two CAN-controllers, to interface with two independent CAN-Busses or to act as a gateway, it would be fantastic!


I'm excited about this development and I can't wait to see the first implementations!
... Sam
5  Products / Arduino Due / Re: Building a CAN communication protocol interface for Arduino DUE on: November 12, 2012, 11:26:15 am
Hi Palliser,

I'm very interested in your efforts of getting a CAN-Library working on the DUE.
I have been doing a few things with the CAN-Shield and an Arduino UNO and I know a lot about the CAN-Bus, so I will try to help you getting it done! Sad thing is:  I currently have other urgent projects/assignments that i need to address first! (And i need to get a DUE as well smiley-wink )

I'm looking forward to your CAN-Bus library and I'll try to get involved, as soon as i have the time.
... Sam
6  Using Arduino / Storage / Re: PGM_P p = PSTR () problem for included SD library or sdfatlib on: June 04, 2012, 03:29:25 am
Hi Gaute,

I have the same problem - were you able to fix it?

greetings,
Keija
7  Development / Other Software Development / Re: Phi_prompt and Phi_buttons released - interaction with LCD and buttons on: October 05, 2011, 07:58:42 am
Hi,

I recently updated the instructions to reflect the changes brought by arduino 1.0
The pdf now features Instructions for Arduino 0022 and Arduino 1.0 smiley

Keija
8  Development / Other Software Development / Re: Phi_prompt and Phi_buttons released - interaction with LCD and buttons on: September 11, 2011, 02:44:29 pm
Hi Liu,

thanks for featuring me smiley I Hope your students made it through the lesson smiley-wink

Keep up the good work,
Keija
9  Development / Other Software Development / Re: Phi_prompt and Phi_buttons released - interaction with LCD and buttons on: September 09, 2011, 07:37:37 am
Hi Liu,

I've created a walk through of all the steps necessary and added it as a .pdf to this post. As mentioned in the Document, i'll try to avoid steps 2 and 3 by programming a wrapper class, but i haven't found time to do this. If you have any suggestions, or tutorials i'd be thankful smiley

thanks again for your phi_prompt library.

greetings,
Keija


edit:
I just noticed, that the file is not available, if you're not a registered member - I will upload it to a different server, to make it available to everyone smiley
10  Development / Other Software Development / Re: Phi_prompt and Phi_buttons released - interaction with LCD and buttons on: September 08, 2011, 09:13:55 am
Hi Liu,

great! I think i should be able to put it up tomorrow - as i said it's very much of a hack at the moment, but i'll try to modify it in a way, that you'll only need to change the liquid chrystal library and only make minor changes to the rest ( as an example: at the moment you'd have to replace lcd->clear(); with clear(); everywhere it occurs).

I'll prepare a rough Tutorial for tomorrow and will try to improve it - I already have a few ideas smiley
Keija
11  Development / Other Software Development / Re: Phi_prompt and Phi_buttons released - interaction with LCD and buttons on: September 08, 2011, 02:46:01 am
Hi Dr. Liu,

thanks a lot for your Phi-Prompt library, it works like a charm!

I adapted it to use the NewSoftSerial.h library instead of LiquidCrystal, because my display uses a serial connection. It's really just a hack (and not the prettiest) but if you are interested I'd of course share my findings! (which I'll propably do anyway to help other users)

Keep up the great work,
Keija

(I hope it's okay, that i used this Thread, otherwise - let me know!)
12  Using Arduino / Storage / Re: New version of the SdFat SD card library on: July 07, 2011, 03:17:35 am
superb! thank you.

Replaced the old SDfat and encountered no problems other than it working perfectly smiley-wink
13  Using Arduino / Storage / Re: Any Ideas? Write to SD without blocking the processor during the write Process. on: July 05, 2011, 05:47:03 am
Thanks guys for the input .. after giving alle the options much thought and considering your comments I decided to try my logger with a full size SD first, before getting into fancy solutions (i currently only have a micro SD slot).

nonetheless, thanks and I'll update this as soon as I've tested my logger with the new (ordered) SD card and logger Shield.

...keija
14  Using Arduino / Storage / Re: Any Ideas? Write to SD without blocking the processor during the write Process. on: June 30, 2011, 07:52:13 am
  I am a still new but, one strategy would be to send  "keep alive" messages and not request data, before your write schedule and stop the logging long enough to write to the sd card.

Sadly i don't request the data, it is continuosly sent and the CAN controller only buffers 2 messages, and then overwrites them, when new messages are received (about 3-4 per millisecond and a write takes about 1 millisecond smiley-sad ... )

nonethless, thanks for your reply!
15  Using Arduino / Storage / Any Ideas? Write to SD without blocking the processor during the write Process. on: June 30, 2011, 05:36:06 am
Hi folks,

I'm building up a logging solution for the CAN-Bus and i want to capture all sent messages in a raw format to an SD Card.

I'm using the sparkfun CAN shield and an Arduino UNO (but I also ordered a Mega)
http://www.sparkfun.com/products/10039


The logger works great BUT I can't handle CAN messages during the write process, because the CAN receiver and the SD card communicate over Hardware SPI and interrupting the SD card write to receive a new message messes up the write process. So i have to disable Interrupts (over which the CAN messages are received and put into a buffer) and lose a few messages, resulting in an incomplete Log.

Fat16Lib has already been extremely helpful and constructive towards my problem, but it really looks like doing the write with the current setup won't work. Hooking up a different sd shield, that interfaces over software spi would allow interrupts while writing, but will very likely not be fast enough to keep up with the 500kbit CAN-Bus.

So i went back to the drawing board and tryied to come up with new ideas/work arounds, but maybe my incomplete knowledge doesn't generate all possible solutions, so I was hoping you could throw in some ideas to do the write process in parallel to the CAN receive process.

This is what i've come up with so far:
  • find an SD logger, that doesn't block the ATmel while writing (possibly with an extra IC that writes the data to the SD)
  • connect an SD logger over I²C, so that it doesn't use the Hardware SPI (has anyone done this before? It should be almost as fast as hardware SPI, wouldn't it?!?!)
  • Buffer all data into an external RAM and write the captured data to the SD after finishing the log (problem: 50 seconds of log need 1 MB of raw data - I haven't even seen a RAM for arduino that surpasses 256 Kbit...)
  • USE TWO ARDUINOS - This is the solution that I think about the most at the moment!

There have already been several ideas concerning co-processors
( http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1237871297 , http://www.hobby-roboter.de/forum/viewtopic.php?f=5&t=72 , http://excamera.com/sphinx/gameduino/coprocessor.html )
and I know the basics of multiprocessor scheduling and resource handling, so I think it should definately be possible, to have one Arduino read the Data over his hardware SPI from the CAN controller, put it into a shared RAM buffer (of course using correct lock-outs) and then let the other Arduino fetch that buffer to write it to an SD card.
( sth. like: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1293464810/all )


These are the ideas I have come up, but as i've already mentioned, my "knowledge tool-Box" is limited and I bet you have way better ideas or know instantly, that what I'm considering is complete BS smiley-wink

I would appreciate any insight/link/idea that you are willing to share with me, because I've already exceeded my capabilities.
Thanks in Advance, Keija
Pages: [1] 2