Comments (21)
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.
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.
But what do I send when I open serial monitor. It seems to do nothing regardless of what I send.
from fx-saberos.
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.
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.
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.
Ok I'll have a go with that once its downloaded.
from fx-saberos.
Ok I ran that and it said connecting to DFplayer and then connected to DFPlayer and that was it nothing else.
from fx-saberos.
Thank you! I will try that one too.
from fx-saberos.
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.
from fx-saberos.
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.
from fx-saberos.
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.
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.
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.
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.
Will it work on a mega as I have one of those spare to use as a test bed?
from fx-saberos.
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.
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.
Yes indeed. I am just frustrated that I now need to wait to get another!!
from fx-saberos.
Related Issues (20)
- Flame effects HOT 2
- button HOT 3
- NPXL pcb wiring
- No sound - Speaker without amplifier or additional power? HOT 3
- hum loop cut HOT 1
- problem with the two buttons config
- Sound problem with the Config Mode HOT 2
- problem with arduino nano and mpu HOT 2
- Problem with the MP3-TF-16P sound HOT 4
- sound problems HOT 2
- Exceeds available space on Nano with DIYINO_PRIME and PIXELBLADE HOT 2
- Df player freezes and resets HOT 9
- Button HOT 4
- Boot sound not playing HOT 8
- Possible to change mainColor to being set by RGB sensor module? HOT 4
- Issue compiling HOT 1
- Crossguard Saber HOT 2
- Lockup on clash HOT 2
- No audio, button doesn't work, LED strip lights up red HOT 3
- Hum and development HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fx-saberos.