New answers tagged

1

Here's the final form of my project. I've added motor detach function since it still shivers a bit. #include <SoftwareSerial.h> #include <Servo.h> const int MPU_addr=0x68; // MPU-6050 I2C address int16_t AcX,AcY,AcZ,GyX,GyY,GyZ; SoftwareSerial BTSerial(3, 2); // TX, RX Servo servoMini; Servo servoUp; Servo servoDown; const byte pinMini = 6; ...


1

I think you want something like Blink Without Delay, but with more tasks. Here is my interpretation of your description which extends Blink Without Delay by adding three more tasks to: read the accelerometer perform "just once" perform "also just once" I've added several Serial.print() statements to give a running commentary on what's ...


Top 50 recent answers are included