Forum >Gravity module(SEN0539-EN)
TroubleshootingGravity

Gravity module(SEN0539-EN)

userHead sharklaserhead@gmail.com 2025-03-02 01:09:49 132 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?

2025-03-03 22:41:27

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?

userHeadPic sharklaserhead@gmail.com
2025-03-02 03:01:27

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

userHeadPic sharklaserhead@gmail.com