Giter Club home page Giter Club logo

Comments (21)

MattLeshman avatar MattLeshman commented on August 19, 2024

1st! You need to open the Serial Monitor on Tools.
2nd! Sets the right Baud Rate for communications. (If this does not match the value set up in your sketch in Setup, characters will be unreadable). Example: Serial.begin(9600); Some sketches or other applications may use a different Baud Rate.

from fx-saberos.

MattLeshman avatar MattLeshman commented on August 19, 2024

That's in theory.
I do all that but can't configure my accelerometer yet.
I figured out that my problem with Gravity Color was a bad calibration of my MPU6050.
How we can configure the offsets manually?

from fx-saberos.

FatherCool avatar FatherCool commented on August 19, 2024

But what do I send when I open serial monitor. It seems to do nothing regardless of what I send.

from fx-saberos.

MattLeshman avatar MattLeshman commented on August 19, 2024

If you configure the right Baud the serial monitor will send you a message like "press any key to continue" and then you press "any key" and the sketch will set up the offsets.
When it's done the Serial Monitor will ask you if you want to save the offsets to the EPROM.

In other way, if you don't see any legibly message on your serial monitor, try with other Baud.

from fx-saberos.

FatherCool avatar FatherCool commented on August 19, 2024

The communication baud in the sketch says 115200. I set it to that and it still does nothing. Not liking the look of this!!

from fx-saberos.

Protonerd avatar Protonerd commented on August 19, 2024

If you need to recalibrate your MPU, use this one, same as I use to test my DIYino boards:
https://github.com/Protonerd/DIYino/blob/master/DIYino_Testsketch_Pro.ino

Let us know how it performs for you.

from fx-saberos.

FatherCool avatar FatherCool commented on August 19, 2024

Ok I'll have a go with that once its downloaded.

from fx-saberos.

FatherCool avatar FatherCool commented on August 19, 2024

Ok I ran that and it said connecting to DFplayer and then connected to DFPlayer and that was it nothing else.

from fx-saberos.

MattLeshman avatar MattLeshman commented on August 19, 2024

Thank you! I will try that one too.

from fx-saberos.

FatherCool avatar FatherCool commented on August 19, 2024

Well I have still had no life from the calibration program. I also uploaded the fxsaberos sketch to see if that did anything and it doesn't. Whether its because the mpu6950 calibration hasnt run though I don't know.

The nano I am using is a cheap copy though with a ch340 serial chip, would that make a difference or is that what others are using?

I do get a fare few orange warnings on the fxsaberos sketch when compiling it though. Not sure why.

I don't understand why some people can run it and some can't. Surely if we all build the same thing and upload the same sketch it has to work?

from fx-saberos.

jbkuma avatar jbkuma commented on August 19, 2024

from fx-saberos.

FatherCool avatar FatherCool commented on August 19, 2024

It doesn't run.

I have uploaded the simple led blink test sketch to check the board and that runs no problem.

I have just put a multimeter across the 3v3 pin and ground and only got 1.84v which is the wire going to the mpu6050. Do you think that that is an issue? I would have thought that the sketch would have just returned an mpu6050 fail.

Would you advise that I rebuild with new parts?

from fx-saberos.

jbkuma avatar jbkuma commented on August 19, 2024

from fx-saberos.

jbkuma avatar jbkuma commented on August 19, 2024

If the MPU6050 isn't working your serial monitor should look like this:

Send any character to start sketch.

MPU6050 Calibration Sketch

Your MPU6050 should be placed in horizontal position, with package letters facing up.
Don't touch it until you see a finish message.

MPU6050 connection failed

from fx-saberos.

FatherCool avatar FatherCool commented on August 19, 2024

No I don't receive anything through the serial monitor at all. When I ran protonerds other sketch I got a dfplayer connected prompt but still nothing from the mpu6050 part of it at all.

from fx-saberos.

jbkuma avatar jbkuma commented on August 19, 2024

I just uploaded the calibration sketch to nano with nothing attached to it, straight from the package and got those results. Are you sure you are uploading the calibration sketch to the board properly?

from fx-saberos.

FatherCool avatar FatherCool commented on August 19, 2024

I believe so. It compiles fine and shows the red RX light and then a little TX light before saying upload done.

from fx-saberos.

FatherCool avatar FatherCool commented on August 19, 2024

Will it work on a mega as I have one of those spare to use as a test bed?

from fx-saberos.

FatherCool avatar FatherCool commented on August 19, 2024

Ok update. I have stripped everything from the board to run it naked so to speak. The sketch with nothing attached now runs and talks to the serial monitor correctly. I can only assume that something was causing an issue connected to the board. The bad news is that I have managed to rip off the copper track on the 3v3 pin completely during de-soldering to the board is a dead stick now for purpose in any case.

New board required!!

from fx-saberos.

jbkuma avatar jbkuma commented on August 19, 2024

It seems like something was bad with the board already since the 3v3 line was low, perhaps it was shorted or the regulator was fried. Fortunately Nanos are plentiful and cheap these days!

from fx-saberos.

FatherCool avatar FatherCool commented on August 19, 2024

Yes indeed. I am just frustrated that I now need to wait to get another!!

from fx-saberos.

Related Issues (20)

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.