Show Posts
Pages: [1] 2 3 ... 5
1  Products / Arduino Yún / Re: Datalogger example - date dependent filename on: September 05, 2014, 03:35:38 pm
Hey sonnyyu,
awesome, it works! It compiles in IDE 1.5.6.r2 but not in 1.5.7 for whatever reason, but who cares?! Thank you so much!
Have a nice weekend
2  Products / Arduino Yún / Re: Datalogger example - date dependent filename on: September 05, 2014, 01:08:27 pm
Hi wildpalms,
thanks for the suggestion. Last night I wildly tried some stuff, including  the char filename [] thing.
I tried your entire code snippet, but unfortunately I got
Dataloggeryun.ino: In function 'void loop()':
Dataloggeryun.ino:85: error: storage size of 'filename' isn't known
But I think there must be a way, especially because we know the length of the filename quite exactly, do we not?!
3  Products / Arduino Yún / Datalogger example - date dependent filename on: September 05, 2014, 03:10:31 am
Hello all,
I am trying to make Yún do what I want, but I am not a linux person, so it takes time. For a datalogger project I would like to get the files named after the date like "ddmmyy.txt". I tried to tweak the getTimeStamp routine and build a namestring, but the compiler does not like it:
  String namestring;
  namestring += "/mnt/sd/";
  namestring += getDayStamp();
  namestring += ".txt";
  File dataFile =, FILE_APPEND);
gives me
Dataloggeryun.ino: In function 'void loop()':
Dataloggeryun.ino:90: error: no matching function for call to 'FileSystemClass::open(String&, int)'
C:\Users\Sebastian\Documents\Importe ab 0605\arduino-1.5.6-r2\libraries\Bridge\src/FileIO.h:81: note: candidates are: File FileSystemClass::open(const char*, uint8_t)

probably because I do not really understand what the rearranged code does and requires in terms of variables and all (again, I am not a linux person and I already understand that one cannot treat the code that way (obviously)). My getDayStamp seems to be ok; but that is not the point here, I think.
I would be very happy if someone could provide some code to achive a day-stamped filename (and therefore a new file after midnight every day). Thank you very much in advance, have a nice weekend
4  Topics / Science and Measurement / Solved, kinda : Something like an ARDULAB, please! on: August 05, 2014, 08:55:36 am
Hello all,
after not getting very far with my programming knowledge I found a solution, which is just really hard to solder, but should do the trick: the MAX14502. It should be even possible to make a shield with it, but I will clone a Leonardo and marry them together. Or look, what a surprise: They published schematics! Yeah!
5  Products / Arduino Yún / Re: Temperature Web Panel doesn't run for me on: August 05, 2014, 08:03:16 am
I discovered that the contents of the www directory are not uploaded to the SD card unless the sketch is uploaded using WiFi.  It certainly would have been nice to mention this in the documentation of the TemperatureWebPanel example.  
Thank you very much, gorillapilot. This little finding ended two frustrating weeks. Well.... not that it works already, but I get more than 404, finally.
I wrote my fair share of manuals and instructions, so I know it is easy to forget to mention some thing or other, or to assume that something is known. But a bit of information like this has to go asap to the sketch!
I find the documentation very unhelpful. I did a lot with classical arduinos, so I am not a total noob, but with the Yun I get nowhere. And most of the comments and posts seem like the geek-speak I am annoyed about when it comes to... well ... linux. Nevertheless, the Yun has wonderful potential, and maybe some of its fathers remember that
Arduino is an open-source electronics platform based on easy-to-use hardware and software. It's intended for anyone making interactive projects.
So let's keep it up, shall we?! After all, Arduino lives from its community as it does from its founders. Thanks to all for the collaborative effort!

PS: Thank you Federico, the REST switch did the trick. Cool!
6  Using Arduino / Project Guidance / Re: TemperatureWebPanel Example - Arduino not getting client request from server on: August 05, 2014, 07:19:02 am
I have seemingly the same problem. Is there any solution yet?
Thanks, cheers
7  Using Arduino / Interfacing w/ Software on the Computer / Re: Enhanced Serial Monitor - DOWNLOAD available on: May 06, 2014, 03:25:22 am
Hi Allan,
wow, very impressive, congratulations. May I get a copy please?
8  Topics / Science and Measurement / Re: Something like an ARDULAB, please! on: May 04, 2014, 04:13:37 pm
that looks promising in deed. Maybe I can figure out how to access the onboard sd card and write all the files to the sketch folder. Thanks!
9  Topics / Science and Measurement / Something like an ARDULAB, please! on: April 21, 2014, 03:12:24 pm
Hello all,
I am not sure where to put this topic exactly; maybe it is not overly misplaced here:
I am building scientific hardware based on Arduinos for a while. One thing I really would like to have is what the guys at seem to have accomplished: a datalogger MCU with USB-stickish easyness of downloading the data: plug and pull the data to your computer. Awesome! Does anybody have an idea on how this is accomplished? I neither do have the money for the chinese approach (buy one and reverse-engineer the crap out of it), nor do I know any other, simpler board that is alike. Unfortunately, I am not a programmer, so I cannot put something "easy" together in C or so to send a string or whatever of data to the serial monitor or a tailored program. I really mean a simple solution like the board appearing as a USB-stick in the explorer (or whatever it is called on a mac). If there are any hints, I would appreciate it very much.
I think this is something really usefull which seems to be missing in the entire arduino universe (hell, I'd return the esplora and the robot for anything like it). It would come in really handy in scientific experiments and would make some stuff a lot easier (like monitoring environmental conditions with a logger that can be read out and charged via an easy to seal mini-usb-port).
Again, any help is appreciated. Many thanks in advance! Let's keep up the contribution!
10  Using Arduino / Project Guidance / Re: Aruino CASIS project on: April 21, 2014, 02:54:34 pm
That statement seems a little oversimplified. What is "space" exactly? There is a difference between LEO (low Erath orbit) and deep space. The ARDULAB seems to be certified for orbits of 400 km. There were 2560s in various space missions even higher up. So I would not concur without a test (which I'll do in 2016. I'll keep you informed).
For the cameras check with adafruit, they have some stuff which might be helpful. Good luck with your space experiment and keep us posted!
11  International / Deutsch / Re: Servo "murmelt" die ganze Zeit on: April 16, 2014, 03:05:28 pm
Danke für die Tips. Ich habe das mit den 20 ms probiert, aber das ist keine Lösung.
detach() funktioniert. Das Servo hat halt keine Haltkraft mehr, aber die  Stromaufnahme geht gegen Null und es ist endlich still. Die Kraft des Servos ist natürlich auf den Widerstand des Getriebes reduziert, aber das reicht. Da ich langsam über eine for-Schleife den Wert erreiche, ist er auch der nächste Anfangswert, ich lese es nicht aus, und es klappt ohne Sprünge.
Schönen Dank und gute Nacht
12  International / Deutsch / Servo "murmelt" die ganze Zeit on: April 16, 2014, 06:02:34 am
Hallo zusammen,
ich habe einige Servos an einem MEGA, um mit Spritzen Flüssigkeiten zu pumpen und zu mischen. Wenn die Servos in einer definierten Position sind, dann regeln sie alle paar Sekunden nach; das meine ich mit "murmeln". Ich benutze die 1.5.2 IDE, die Servo-library und DES 806 BB MG Servos von Graupner (natürlich separat mit 5V versorgt).
Das Gemurmel nervt ganz schön und zieht auch Strom; das muss nicht sein, finde ich. Mein erster Ansatz war nun, nach dem Anfahren einer Position den Pin auf LOW zu legen, denn sonst liegt ja permanent das Regelsignal an. Womöglich fängt das Kabel auch Störungen ein?! Durch das Fehlen des Signals sinkt die Haltekraft, was aber nicht so schlimm wäre. Störender ist, dass das Servo nach einem Reset nicht mehr in die am Ende vom Setup angegebene Ausgangsposition fährt. Warum macht es das?
Hier noch der Code, soweit er fertig ist. Die Funktionsdefinitionen hab ich nicht mit kopiert, die setzen nur Pins rauf und runter.
#include <Servo.h>
#include <LiquidCrystal.h>
//#include <ADC.h>
//#include <Sleep.h>
//#include <Timer1.h>
//#include <Timer2.h>
#define ETS 0

//Analoge Eingänge
int strom12V = A0;
int strom5V = A1;
// Potis 1-3
int pot1 = A2;
int pot2 = A3;
int pot3 = A4;
// Servo Feedback oder sonstige Potis
int pot4 = A5;
int pot5 = A6;
int pot6 = A7;
int pot7 = A8;
int pot8 = A9;
int butl = A10; //Links
int butr = A11; //Rechts

//Servopins (wird weiter unten attached)
Servo servo5; //Pin 2
Servo servo4; //Pin 3
Servo servo3; //Pin 4
Servo servo2; //Pin 5
Servo servo1; //Pin 6

//Freie PWM-Pins
int pwm7 = 7;
int pwm6 = 8;
int pwm5 = 9;
int pwm4 = 10;

int inb = 11; //ccw input
int pelt = 12; //duty cycle
int ina = 13; //cw input

//Pins 14-21 (Kommunikation) nicht rausgefuehrt bis auf RX1/TX1 und SDA/SCL

LiquidCrystal lcd(32, 30, 22, 26, 24, 28); //Display Pins RS, E, D4, D5, D6, D7

// Thermometer auf pin 34
// RS485 enable auf Pin 36

int Switch1 = 40;
int Switch2 = 42;
int Switch3 = 44;
int Switch4 = 46;

//Ventile ueber ULN2803
int v9 = 23;
int v10 = 25;
int v11 = 27;
int v12 = 29;
int v13 = 31;
int v14 = 33;
int v15 = 35;
int v16 = 37;
int v1 = 39;
int v2 = 41;
int v3 = 43;
int v4 = 45;
int v5 = 47;
int v6 = 49;
int v7 = 51;
int v8 = 53;

int pos1 = 90; //Nullposition Servo1
int pos2 = 90; //Nullposition Servo2
int pos3 = 130; //Nullposition Magnet3
const int dist = 130; //Magnet weg vom Schlauch, Wert pr�fen!
const int prox = 50; //Magnet am Schlauch, Wert pr�fen!
int dval = 200; //delay value f�r die Pumpzyklen
int airval = 50; //delay f�r Luft Pumpen
int fluval = 25; //delay zum Abfallpumpen
int wval = 10; //delay nach Ventilumschalten
unsigned long time = millis();

void setup()
//pinMode(0, INPUT); //RX0
//pinMode(1, OUTPUT); //TX0
pinMode(2, OUTPUT); //servo5
digitalWrite (2, LOW);
pinMode(3, OUTPUT); //servo4
digitalWrite (3, LOW);
pinMode(4, OUTPUT); //servo3
digitalWrite (4, LOW);
pinMode(5, OUTPUT); //servo2
digitalWrite (5, LOW);
pinMode(6, OUTPUT); //servo1
digitalWrite (6, LOW);
pinMode(7, OUTPUT); //pwm7
digitalWrite (7, LOW);
pinMode(8, OUTPUT); //pwm6
digitalWrite (8, LOW);
pinMode(9, OUTPUT); //pwm5
digitalWrite (9, LOW);
pinMode(10, OUTPUT); //pwm4
digitalWrite (10, LOW);
pinMode(11, OUTPUT); //INB
digitalWrite (11, LOW);
pinMode(12, OUTPUT); //PELT-PWM
digitalWrite (12, LOW);
pinMode(13, OUTPUT); //INA
digitalWrite (13, LOW);
//pinMode(14, OUTPUT); //TX3
//pinMode(15, INPUT); //RX3
//pinMode(16, OUTPUT); //TX2
//pinMode(17, INPUT); //RX2
//pinMode(18, OUTPUT); //TX1
//pinMode(19, INPUT); //RX1
//pinMode(20, ?); //SDA
//pinMode(21, OUTPUT); //SCL
pinMode(22, OUTPUT); //D7
pinMode(23, OUTPUT); //v9
digitalWrite (23, LOW);
pinMode(24, OUTPUT); //D6
pinMode(25, OUTPUT); //v10
digitalWrite (25, LOW);
pinMode(26, OUTPUT); //D5
pinMode(27, OUTPUT); //v11
digitalWrite (27, LOW);
pinMode(28, OUTPUT); //D4
pinMode(29, OUTPUT); //v12
digitalWrite (29, LOW);
pinMode(30, OUTPUT); //RS
pinMode(31, OUTPUT); //v13
digitalWrite (31, LOW);
pinMode(32, OUTPUT); //E
pinMode(33, OUTPUT); //v14
digitalWrite (33, LOW);
//pinMode(34, OUTPUT); //Tempsensoren
pinMode(35, OUTPUT); //v15
digitalWrite (35, LOW);
pinMode(36, OUTPUT); //
pinMode(37, OUTPUT); //v16
digitalWrite (37, LOW);
pinMode(38, OUTPUT); //
pinMode(39, OUTPUT); //v1
digitalWrite (39, LOW);
pinMode(40, INPUT); //sw1
pinMode(41, OUTPUT); //v2
digitalWrite (41, LOW);
pinMode(42, INPUT); //sw2
pinMode(43, OUTPUT); //v3
digitalWrite (43, LOW);
pinMode(44, INPUT); //sw3
pinMode(45, OUTPUT); //v4
digitalWrite (45, LOW);
pinMode(46, INPUT); //sw4
pinMode(47, OUTPUT); //v5
digitalWrite (47, LOW);
pinMode(48, OUTPUT);
pinMode(49, OUTPUT); //v6
digitalWrite (49, LOW);
pinMode(50, OUTPUT);
pinMode(51, OUTPUT); //v7
digitalWrite (51, LOW);
pinMode(52, OUTPUT);
pinMode(53, OUTPUT); //v8
digitalWrite (53, LOW);
//Analoge Pins sind automatisch als Input definiert.

//Display initialisieren
lcd.begin(20, 4);

//Servos initialisieren
// Serial.begin(115200);

void loop()
analogWrite(6, LOW);
        analogWrite(5, LOW);
        analogWrite(4, LOW);
        analogWrite(3, LOW);
        analogWrite(2, LOW);//bringt die Servos zum Schweigen
        int Switch3stat = digitalRead(Switch3);
int Switch4stat = digitalRead(Switch4);
if (Switch4stat == HIGH)
//-------------------------------------------------------------------------------no 1
for(pos1 = 90; pos1 >= 65; pos1 -= 1)//Luft raus 500µL Servo 1
delay(500);//Druckausgleich abwarten
for(pos1 = 65; pos1 <= 115; pos1 += 1)//Zellen und Lysepuffer mischen
pos1 += 1;
if(pos1 == 70)//bring in the beads!
pos1 += 1;
}//ca. 10 sek Füllzeit
for(pos1 = 115; pos1 >= 125; pos1 += 1)//Luft nachziehen und alles in die Spritze holen
//sleep(3600000);//hier wird eigentlich 60 min incubiert!
alllow(); //beendet no 1
Hat jemand schon mal sowas erlebt und behoben? Bin für jeden Hinweis dankbar. Schöne Grüße
13  Using Arduino / Microcontrollers / Re: DIY Leonardo Project with internal 8 MHZ RC on: March 03, 2014, 09:16:10 am
did this project go anywhere? If so, would you mind sharing it? By mistake I replaced a damaged chip on a Leonardo with an RC-version and would like to make it work.
Thank you!
14  International / Deutsch / Re: 3V3 arduino mit 5V programmieren? on: November 17, 2013, 01:39:46 pm
Hallo Gerald,
ach ja, das ist natürlich auch eine Möglichkeit. Danke und danke auch an alle anderen!
So richtig hab ich es noch nicht verstanden, die Schutzdioden müssen doch bis 5V abkönnen, wenns der ganze Prozessor kann, oder werden die mit VCC "vorgespannt"?
Ich denke doch, in einer 3V3-Schaltung kann man den Prozessor mit 5V programmieren, solange es den anderen Komponenten nix ausmacht, oder?! Ich werde es wohl mal einfach ausprobieren.
Schönen Abend
15  International / Deutsch / Re: 3V3 arduino mit 5V programmieren? on: November 13, 2013, 07:45:26 am
Dankeschön, Uwe, das hab ich befürchtet. Dann werd ich wohl den MAX per jumper abkoppeln und ganz normal mit 5V Sketche hochladen. Oder nochmal drüber schlafen...
Pages: [1] 2 3 ... 5