Thursday, October 17, 2019
der Kompass liefert Werte ...
... inkl. Richtungsangabe!
Es funktioniert also erst einmal.
Das Beispielprogramm ist von hier: https://github.com/mprograms/QMC5883LCompass
Die Lib muss in der Arduino IDE über das Menü: Tools/Manage Libraries ... importiert werden.
#include <QMC5883LCompass.h>
QMC5883LCompass compass;
void setup() {
Serial.begin(9600);
compass.init();
}
void loop() {
int x, y, z, a, b;
char myArray[3];
compass.read();
x = compass.getX();
y = compass.getY();
z = compass.getZ();
a = compass.getAzimuth();
b = compass.getBearing(a);
compass.getDirection(myArray, a);
Serial.print("X: ");
Serial.print(x);
Serial.print(" Y: ");
Serial.print(y);
Serial.print(" Z: ");
Serial.print(z);
Serial.print(" Azimuth: ");
Serial.print(a);
Serial.print(" Bearing: ");
Serial.print(b);
Serial.print(" Direction: ");
Serial.print(myArray[0]);
Serial.print(myArray[1]);
Serial.print(myArray[2]);
Serial.println();
delay(250);
}
erstes Problemchen ...
... der Arduino nimmt kein neues Programm entgegen und blinkt fröhlich vor sich hin!
die IDE meldet:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x3a
... und die Lösung ist:
In the Arduino IDE select TOOLS > PROCESSOR > pulldown menu from ATmega328P to "ATmega328P (Old Bootloader)".
conntected and blink

Posted by dermaxe at 8:20 PM
Edited on: Thursday, October 17, 2019 9:19 PM
Categories: Arduino, Zeiterfassung
Edited on: Thursday, October 17, 2019 9:19 PM
Categories: Arduino, Zeiterfassung
Wednesday, October 16, 2019
Teile sind da!

Posted by dermaxe at 7:55 PM
Edited on: Thursday, October 17, 2019 9:20 PM
Categories: Arduino, Zeiterfassung
Edited on: Thursday, October 17, 2019 9:20 PM
Categories: Arduino, Zeiterfassung
Monday, October 14, 2019
Bestellung ist raus ...
... und die weiteren Bauteile für das neue Projekt "Zeiterfassung":
- GY-271 QMC5883 Kompass-Modul 3-Achsen Magnetometer Sensor Arduino HMC5883L (4,75 €)
- D1 Mini Micro SD Card Karten Shield Erweiterung Wemos Speicher Modul (3,00 €)
- 40p 10cm - Jumper Wire Steckbrücken Steckbrett Kabel (2,39 €)
- Arduino Nano Atmega328P BEREITS GELÖTET verlötet fertig aufgebaut (3,74 €)
- RTC DS3231 I2C Echtzeituhr AT24C32 Real Time Clock Modul Arduino Raspberry Pi (3,40 €)
Ein Bluetooth-Modul habe ich noch nicht mitbestellt. Erst mal sehen, wie weit ich komme.
Posted by dermaxe at 7:48 PM
Edited on: Thursday, October 17, 2019 8:00 PM
Categories: Arduino, Zeiterfassung
Edited on: Thursday, October 17, 2019 8:00 PM
Categories: Arduino, Zeiterfassung