Show Posts
Pages: 1 2 [3] 4 5 ... 40
31  International / Generale / Re: Consiglio Hardware per un Progetto on: February 20, 2012, 02:59:14 pm
Per quanto riguarda l'orario, è consigliabile un modulino rtc con batteria integrata. Per generare l'ora in formato "leggibile" puoi usare la libreria Time che trovi nel playground ("pesante" dal punto di vista dell'occupazione di memoria ma facile da usare e molto completa).
Il logging dovrai farlo quasi certamente su una scheda sd. Nuelectronics produce uno shield che mi pare si chiami datalogger (lo trovi facilmente con google) che integra entrambi.
Per quanto riguarda la versione di arduino, a occhio e croce direi che come spazio di memoria (in tutti i sensi) una UNO dovrebbe bastare, ma visto l'elevato numero di I/O digitali, a meno di usare uno shield di espansione è necessario passare al mega.

(correggetemi se ho scritto castronerie :-P )
32  International / Generale / Re: Datalog on: February 20, 2012, 02:47:19 pm
Si ho provato a caricare gli esempi ma non succede niente; nella sd (che ho formattato fat e che è da 512mb)non c'è scritto nulla.


Cosa intendi dire con "non succede niente" ? Quale/i esempi/o hai caricato ? Se uno sketch di esempio necessita di "qualcosa" sulla sd è sufficiente creare qualche file di testo con un PC ed inserire poi la scheda sull'Arduino. Occhio al tipo di formattazione, però: se ricordo bene, le librerie disponibili per Arduino supportano soltanto il formato FAT16. Sono da escludere quindi schede di memoria superiori ad 1GB (a dire il vero mi pare funzionino anche le 2GB, ma non sono sicuro al 100%).
33  International / Generale / Re: Datalog on: February 20, 2012, 02:39:33 pm
Dimenticavo: come avrai notato lo shield in questione ha due periferiche: la scheda sd e l'RTC (real time clock). Il mio consiglio (parlo per esperienza personale :-) ) è di iniziare a prendere confidenza con le necessarie librerie una alla volta (gli esempi inclusi nell'installazione di Arduino sono molto utili in questo senso).
34  International / Generale / Re: Datalog on: February 20, 2012, 02:32:28 pm
Shield molto interessante...

Cerca di essere più preciso: hai scritto o almeno provato a compilare ed eseguire qualche sketch ? Quali sono, se li hai provati, le parti degli esempi che non comprendi ? Qual è il tuo livello di conoscenza del C/C++ ?
35  Development / Other Software Development / Re: Code share: some of my util classes on: February 20, 2012, 02:24:24 pm
Is the compiler smart enough not to package up unused code?

I think unreferenced code is stripped by the linker. Therefore you get into the final .hex file only the code that is actually called (to be precise, that appears to be called at compile time - there's no run-time analysis of dead codepaths, of course).
36  Development / Other Software Development / Re: Code share: some of my util classes on: February 20, 2012, 02:19:26 pm
This brings me to a question I had in my mind since I first posted SimpleTimer on the Playground... what's the best place to share some Arduino code ? Playground seems a bit too "official" sometimes, while libraries posted here in the forum are quickly buried to oblivion due to the sheer amount of activity going on.... The github idea is good IMHO, but it seems the staff doesn't have enough time to bring it forward.
I think some improvement is needed in this area.

I apologize with the OP for hijacking his thread ;-P I'll have a look at the libraries ASAP.
37  Using Arduino / Project Guidance / Re: How Rugged Is Arduino on: February 20, 2012, 02:03:15 pm
I guess whatever is best for communicating with email software.

google for gobetwino, might be the app you are searching for.

...and then somebody still comes up asking why Arduino is so succesfull ;-)
38  Using Arduino / Programming Questions / Re: structure question on: February 20, 2012, 08:34:51 am
That brings us back to why are we wasting our time with C/Arduino when eventually you will be told you cant get there from here.

We got quite far from the original question, haven't we ?

My suggestion is to put aside your frustration and post the full code of your sketch.
39  Using Arduino / Storage / Re: Need advice: What storage to use for program data on: February 20, 2012, 06:18:09 am
The internal EEPROM write limits should be of little concern unless you plan to update the parameters very frequently. The size could become a problem instead, if the number of parameters gets really high. I suggest you start with the eeprom to keep things simple. You can later switch to an external eeprom or even an sd-card.
40  Using Arduino / Interfacing w/ Software on the Computer / Re: Pin interfacing with visual c++ on: February 20, 2012, 03:50:25 am

Sorry, haven't compiled a pc-based firmata program myself, but there are precompiled test programs on the main page...

41  Using Arduino / Installation & Troubleshooting / Re: Strange behaviour Duemilanove on: February 19, 2012, 06:22:27 pm
No idea, really. Could it be a faulty usb cable ? First two things I'd try are another usb cable and a different usb port on the PC.

42  Using Arduino / Installation & Troubleshooting / Re: Upload fails with Linux, with Windows it's fine on: February 19, 2012, 06:19:54 pm
Yes I have a 2009. Sorry And1G I edited my post two times ;-P
Unfortunately I don't have an UNO right now to make a test.
43  Using Arduino / Installation & Troubleshooting / Re: Upload fails with Linux, with Windows it's fine on: February 19, 2012, 06:11:55 pm
Saying Error opening serial port '/dev/ttyACM0' in red over the console output

Are you sure the Arduino board is identified by /dev/ttyACM0 ? On my Ubuntu PCs (different versions) the serial port is always listed as /dev/ttyUSBx, where x can be 0, 1, etc.

This is what I see if I run dmesg right after pluggin in an Arduino in my laptop:

[235444.328124] usb 4-2: new full speed USB device number 11 using ohci_hcd
[235444.512305] ftdi_sio 4-2:1.0: FTDI USB Serial Device converter detected
[235444.512374] usb 4-2: Detected FT232RL
[235444.512381] usb 4-2: Number of endpoints 2
[235444.512386] usb 4-2: Endpoint 1 MaxPacketSize 64
[235444.512392] usb 4-2: Endpoint 2 MaxPacketSize 64
[235444.512396] usb 4-2: Setting MaxPacketSize 64
[235444.516473] usb 4-2: FTDI USB Serial Device converter now attached to ttyUSB0


uname -a
Linux (hostname removed) 3.0.0-15-generic #26-Ubuntu SMP Fri Jan 20 17:23:00 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux


(edit: after posting my comment, I realized I skipped a really important part of the OP's post... Sorry!)

(edit 2: I used an Arduino 2009 board)
44  Development / Other Software Development / Re: Trouble writing a library on: February 19, 2012, 06:05:05 pm
This might be something for you - - to consider. Would enable you to copy and paste faster after some exercise.
(there are probably more footmouses from different suppliers)

Just watched the promo. No comment about the style... oh, and that "song" at the end... :-P
But the product really looks interesting. In fact, it would be a cool idea for an Arduino project (mumble, mumble...)

I recall that using libraries in a library on the Arduino platform have some issues.

Can't find the link right now, but recently I've read a very good explanation of why every .h file used, even indirectly, must be included in the sketch too. The Arduino toolchain copies the sketch and all the used libs' source files (.h and .cpp) into a temp directory before starting the compilation. To find out which files needs to be copied, the sketch is scanned for #include statements. This scan doesn't extend to the #included files, though, so either a .h file is included by the .ino (or .pde) file, or it doesn't get copied to the temp dir, and doesn't exist for the compiler.
This has one advantage: you don't have hidden dependencies. You look at a sketch and you can see each and every lib that you'll need to compile it.
45  Using Arduino / Installation & Troubleshooting / Re: Software installation: libraries on: February 19, 2012, 05:46:04 pm
User libraries go into sketchbook/libraries/<lib_name>

After copying a new library the IDE, if running, needs to be restarted, otherwise the newly installed lib won't appear in the menu.
Pages: 1 2 [3] 4 5 ... 40