Show Posts
|
|
Pages: 1 [2] 3 4 ... 40
|
|
16
|
Using Arduino / Programming Questions / Re: Stand Alone Arduino?
|
on: February 21, 2012, 07:12:22 am
|
Your arduino doesn't have anything like enough power to run a sql database To be precise it wouldn't need to host the server, just the client access libraries. [me@mypc] ls -lha /usr/lib/libmysqlclient.so.16.0.0 -rw-r--r-- 1 root root 2,1M 2011-02-10 10:30 /usr/lib/libmysqlclient.so.16.0.0
That's on a 64 bit Ubuntu installation.
|
|
|
|
|
17
|
International / Italiano / Re: led lampeggiante
|
on: February 21, 2012, 06:18:00 am
|
|
Se non ricordo male nei micro inizializzati per Arduino (cioè con il bootloader già caricato) viene installato anche uno sketch di test che appunto fa lampeggiare il led collegato al pin 13 della scheda. Se ciò è corretto, allora il led lampeggiante sta a significare che il bootloader è presente. In ogni caso, che male fa provare a programmarlo ? Al massimo riceverai un errore...
I miei 2 cent...
|
|
|
|
|
19
|
Using Arduino / Programming Questions / Re: "Serial" not declared in 1.0
|
on: February 21, 2012, 02:15:06 am
|
|
I can't see what could be wrong... download the correct version of arduino (32 or 64 bit ?), unpack, launch, compile. I've never encountered any problems so far on windows or linux systems. Anyway, the good news is that 23 works. More 1.0 weirdness ;-)
|
|
|
|
|
20
|
Using Arduino / Project Guidance / Re: Code Optimization and LCD/Buttons problems
|
on: February 21, 2012, 02:12:14 am
|
Unless I've overlooked something, I don't see how this code can work... default: clearLCD(); // OK if(currentMillis - previousMillis > interval) { // OK // save the last time you blinked the LED // leftover from copy-n-pasting the blinkWithoutDelay example... previousMillis = currentMillis; // from here on, currentMillis - previousMillis == 0 (*) selectLineOne(); Serial.print("Please select"); selectLineTwo(); Serial.print("what to display"); clearLCD(); // how can the user see the messages if we clear them so soon ? }
if(currentMillis - previousMillis > interval) { // never true, as we alread did (*) previousMillis = currentMillis; selectLineOne(); Serial.print("Button 1 for"); selectLineTwo(); Serial.print("Temperature"); clearLCD(); }
if(currentMillis - previousMillis > interval) { // never true, as we alread did (*) previousMillis = currentMillis; selectLineOne(); Serial.print("Button 2 for"); selectLineTwo(); Serial.print("p.H. levels"); clearLCD(); }
if(currentMillis - previousMillis > interval) { // never true, as we alread did (*) previousMillis = currentMillis; selectLineOne(); Serial.print("Button 3 for"); selectLineTwo(); Serial.print("Oxygen Levels"); clearLCD(); }
if(currentMillis - previousMillis > interval) { // never true, as we alread did (*) previousMillis = currentMillis; selectLineOne(); Serial.print("Button 4 for"); selectLineTwo(); Serial.print("Yeast Levels"); clearLCD(); } break;
|
|
|
|
|
21
|
Using Arduino / Programming Questions / Re: Stand Alone Arduino?
|
on: February 20, 2012, 07:51:56 pm
|
|
Well, no, I don't have experience with that shield, but I suspect it's not possible to talk directly to a database from the Arduino. An idea is to have a webapplication on a PC that acts as a bridge between the (http) requests coming from the Arduino and the database.
|
|
|
|
|
24
|
Development / Other Software Development / Re: Code share: some of my util classes
|
on: February 20, 2012, 04:50:15 pm
|
Here's main.cpp from Arduino 1.0: #include <Arduino.h>
int main(void) { init();
#if defined(USBCON) USB.attach(); #endif setup(); for (;;) { loop(); if (serialEventRun) serialEventRun(); } return 0; }
At least setup() and init() are called, even on an "empry" sketch, therefore some code has to be compiled in.
|
|
|
|
|
30
|
Using Arduino / Programming Questions / Re: "Serial" not declared in 1.0
|
on: February 20, 2012, 03:41:10 pm
|
Can you confirm that there is nothing else to do but extract & launch arduino.exe ? Sorry for the silly question, but do you launch arduino.exe "directly" from the archive (uncorrect) or did you first extract the full archive and then launch arduino.exe ? My 1 cent 
|
|
|
|
|