Gravity module(SEN0539-EN)
 [email protected]  2025-03-02 01:09:49 542 Views2 Replies
 [email protected]  2025-03-02 01:09:49 542 Views2 Replies I just bought one of these and the thing stooped working after a minute? Code compiled and connections were done according to DF robot. It worked fine for a minute then stopped?
Well chat Gpt fixed the example code and it runs fine on a replacement unit, I want to hook up a small amp to drive a bigger speaker on it next.
the only other question is there a way to improve the MIcs on it?
 [email protected]
 [email protected]  I also could not get one of the sample codes to compile?
C:\Users\Owner\AppData\Local\Temp\.arduinoIDE-unsaved202521-6148-144fj4w.pg0z\sketch_mar1a\sketch_mar1a.ino: In function 'void setup()':
C:\Users\Owner\AppData\Local\Temp\.arduinoIDE-unsaved202521-6148-144fj4w.pg0z\sketch_mar1a\sketch_mar1a.ino:24:11: error: 'Led' was not declared in this scope
  pinMode(Led, OUTPUT);    //Init LIGHT pin to output mode
          ^~~
C:\Users\Owner\AppData\Local\Temp\.arduinoIDE-unsaved202521-6148-144fj4w.pg0z\sketch_mar1a\sketch_mar1a.ino: In function 'void loop()':
C:\Users\Owner\AppData\Local\Temp\.arduinoIDE-unsaved202521-6148-144fj4w.pg0z\sketch_mar1a\sketch_mar1a.ino:87:20: error: 'Led' was not declared in this scope
      digitalWrite(Led, LOW);                                 //Turn on the LED (Active low Logic)
                   ^~~
exit status 1
Compilation error: 'Led' was not declared in this scope
 [email protected]
 [email protected]  

.jpg)