Coder Social home page Coder Social logo

usaber's People

Contributors

jakes0ft avatar neskweek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

usaber's Issues

GetSwingMagnitude always returning Large

Hi!

I'm running the example MPU6050MotionManager and when I swing or clash I'm always getting Large. I played with different thresholds but I didn't make it work.

Could you pleas help me to find out what I'm missing?

Thanks!

  • Arduino Nano
  • MPU6050 (GY-521) Calibrated with its offsets
  • VCC to 3v3
  • SCL to A5
  • SDA to A4
  • INT to D2
  • GND to GND

DFPlayerSoundPlayer doesn't work

Hi again!

I've been trying to make DFPlayer work with no luck. Everything is wired correctly (in fact, if I use DIYuniSoundPlayer it works, more or less), the program compiles (DFPlayer_SoundTest example) and runs, all the message are shown through the monitor but nothing sounds.

Any idea? Has it ever worked?

Thanks!

Problem Compiling

Hi, USaber won't compile for me, I'm wondering if it's a version or compiler issue. I'm just compiling the WT588 player example.

                 from /opt/arduino-1.8.0/libraries/USaber/USaber.h:59,
                 from /home/rob/Arduino/sketch_feb19a/sketch_feb19a.ino:6:
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:134:9: error: 'DIYinoSoundSerial' does not name a type
  inline DIYinoSoundSerial * getSerial() {
         ^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:605:2: error: 'DIYinoSoundSerial' does not name a type
  DIYinoSoundSerial * mp3Serial;
  ^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h: In constructor 'DFPlayer::DFPlayer()':
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:125:9: error: 'class DFPlayer' has no member named 'mp3Serial'
   this->mp3Serial = NULL;
         ^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h: In destructor 'DFPlayer::~DFPlayer()':
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:129:15: error: 'mp3Serial' was not declared in this scope
   if (NULL != mp3Serial) {
               ^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:130:17: error: 'class DFPlayer' has no member named 'mp3Serial'
    delete this->mp3Serial;
                 ^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h: In member function 'void DFPlayer::setSerial(uint8_t, uint8_t, bool)':
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:145:21: error: 'class DFPlayer' has no member named 'mp3Serial'
   if (NULL != this->mp3Serial) {
                     ^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:146:17: error: 'class DFPlayer' has no member named 'mp3Serial'
    delete this->mp3Serial;
                 ^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:149:9: error: 'class DFPlayer' has no member named 'mp3Serial'
   this->mp3Serial = new DIYinoSoundSerial(receivePin, transmitPin);
         ^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:149:25: error: expected type-specifier before 'DIYinoSoundSerial'
   this->mp3Serial = new DIYinoSoundSerial(receivePin, transmitPin);
                         ^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:151:9: error: 'class DFPlayer' has no member named 'mp3Serial'
   this->mp3Serial->begin(9600);
         ^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h: In member function 'uint8_t DFPlayer::updateFifoCount()':
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:187:21: error: 'mp3Serial' was not declared in this scope
   this->fifoCount = mp3Serial->available();
                     ^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h: In member function 'void DFPlayer::send()':
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:263:9: error: 'class DFPlayer' has no member named 'mp3Serial'
   this->mp3Serial->write(this->sendBuffer, DFPLAYER_BUFFER_LENGTH);
         ^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h: In member function 'void DFPlayer::receive()':
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:278:41: error: 'class DFPlayer' has no member named 'mp3Serial'
   while (not isNoReceiveBit() and this->mp3Serial->available()
                                         ^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:279:16: error: 'class DFPlayer' has no member named 'mp3Serial'
     and (this->mp3Serial->available() % DFPLAYER_BUFFER_LENGTH == 0)
                ^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:281:4: error: 'mp3Serial' was not declared in this scope
    mp3Serial->readBytesUntil(0xEF, buffPtr, DFPLAYER_BUFFER_LENGTH);
    ^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:289:27: error: 'class DFPlayer' has no member named 'mp3Serial'
   this->fifoCount = this->mp3Serial->available();
                           ^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h: In member function 'uint16_t DFPlayer::getCurrentTrack()':
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:362:16: error: 'class DFPlayer' has no member named 'mp3Serial'
   while (this->mp3Serial->available()
                ^
/opt/arduino-1.8.0/libraries/USaber/sound/DFPlayer.h:363:15: error: 'class DFPlayer' has no member named 'mp3Serial'
    and (this->mp3Serial->available() % DFPLAYER_BUFFER_LENGTH == 0)) {
               ^
exit status 1
Error compiling for board Arduino Leonardo.```

Have you seen this one before?  Arduino 1.8.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.