-
-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot calibrate 0 offset, just hangs. No tilt value in Summary screen. #429
Comments
D1 mini has 4mb memory. Maybe that's your problem? |
So do you find the problem? I have the some. |
@nkaramolegos I haven't messed with them in a few weeks, my guess is the gyro boards though. |
As I stated before, the d1 mini has 4MB memory, not 1MB. These are my settings when flashing without any hassle(and I flashed 5 this weekend): |
well, I feel like an idiot now @ErikdBr lol. for some reason I read your message the other way and was thinking the flash size was 4MB and the board I had only had 1MB. Ill try this when I get some time and report back. Thanks. |
Eh, same issue. I even did the reset first.
Still shows 0.00 for tilt angle and the calibration just hangs and hangs. |
Same here my board has 4MB and the problem remains |
You may have ended up with a corrupt config file (json) and might need to do an erase of the Wemos. I have had issues before that were only cleared by an erase not just a reflash. You can do that either using VS Code/Platform IO and loading the project or a bit more simply using this tool: https://github.com/thorrak/brewflasher/releases/tag/v1.0.1 (It will erase and reload the latest firmware) |
I am on linux. I have tried python3 esptool.py --port /dev/ttyUSB0 erase_flash but didn't help. I will check your proposal but I have to find something similar for linux |
For now I made a trick and seems that works. I press the calibrate button I wait for 10 sec and then I disconnect from the wifi. I wait for 1 min and then I connect to WiFi again and visit the main page of ispindel. In info tab I can see that the calibration was successful (near 90 degrees). I am using the v6.2 of firmware |
thanks @thegreatgunbantoad the erase defiantly worked as my wifi settings are gone, but same issue, the calibration just never finishes, the blue light never goes back to flashing. ill try with 6.2 when I get some more time. can't do it as easy with that tool because its not the latest release. |
Worth trying out the new 6.5.0 pre release. Does sound like your gyro might be bust though, had a few duff ones myself. |
I tried 6.5 and sometimes works but not always. I was trying to made the 25 degrees calibration but I don't know what should i check. The til value or the gravity? I move the ispindel but never the tilts value reach 25 degrees |
After you do the sensor cal with the unit flat (Horizontal) Gyro pointing up, you want to be at 25 deg tilt thereabouts in tap water. Don't get obsessed with a perfect 25, +-5 deg is fine. I've got units that are down at 19ish and work fine. After you have it sitting right in water, grab the SG of your water (my tap water is not 1.000 dead if it's cold) and the tilt reading then try: https://github.com/universam1/iSpindel/blob/master/docs/iSpindelPolyEstimator.xlsx for your polynomial. |
This Poly estimator isn't working. The poly shows as #value, so does the 4 cells behind the chart... |
What program did you use to open it? It should work in Excel or Google Sheets. |
I opened it with Excel. When I open it, there is a poly, but as soon as I change one of the values in the blue cells, it goes to #Verdi (#VALUE in Norwegian). It might perhaps have something to do with decimal symbol, I can play around a bit... Yes, that was it. I had to change cells F7:I7 to use , as decimal separator in the formatting string. |
Those rows above #VERDI! showing a value should mean the #VERDI cell reads okay. That cell is just a formatting function. Ahh that might be it! Cell F7 reads =TEXT(F6,"0.0000E-0"), but it might need you to change the decimal identifier there. |
Can you try in F7 putting in =IFERROR(TEXT(F6,"0.0000E-0"),TEXT(F6,"0,0000E-0")) |
I'm not sure the iSpindel code will handle Euro style decimals in the poly though. Interesting challenge. |
I changed the gyro board and works fine |
I'm having exactly the same problem. Cherryspindel board. I replaced the Wemos D1 mini, replaced the charging module and replaced the MPU6050. Have tried a total of four different MPU6050 gyroscopes. When trying to calibrate, the blue light on the Wemos D1 mini just stays lit. I have to reboot the device manually. Tilt and gravity readings just read 'NaN'. I've read the WHOAMI register values for all four devices and they return as 0x68. It seems like the MPU6050.cpp looks for a device ID of 0x34. I've tested one of the modules with some arduino code and it is reading all the appropriate values for the gyroscope. I've also tested for continuity between the SDA/SCL pinouts from the MPU6050 to the D3/D4 pins on the Wemos. Have also flashed 6.5.0 with no gain. I'm a real beginner, but what about changing Line 67 in the MPU6050.cpp file
Would this work to 'override' the device ID check? |
So I actually edited the code as above and the device works - I get a reading. It cannot complete the offset calibration, however. On the horizontal, it reads 87 degrees. I can move the device in all planes and it changes appropriately - vertically, it reads 176 degrees. |
All your MPU boards have corrupted register. That's it. Maybe chinese fake or defective. |
Thats what @mross286 said. Any1 who has that problem please do read my old comment and Sam's resolution for it. #302 (comment) |
I test them too, I use a built up iSpindel PCB with some headers where the gyro and ESP/Wemos should be should be (Plenty of dodgy ESP boards out there too). |
Good tip, thanks! |
Also worth mentioning the firmware 6.5.0 improves the accuracy of the reading if there is a bit of pitch/roll. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Does somebody has a verified link for MPU 6050 which are not dodgy? |
The last ones I bought was in februari this year: https://nl.aliexpress.com/item/4001203301527.html I see that I paid €6,65 and free shipping. They now more then doubled in price plus € 3 for shipping. |
I'm submitting a ...
Did you follow the general troubleshooting steps first:
Report
Using firmware 6.3.1, i cannot calibrate the 0 offiset, the blue light stays on and it seems froze. i ran through multiple times using the suggestions from the FAQ and from the link at the bottom, following others suggestions. It seems like it just is not flashing properly. I tried flash with a few different settings, as I do have D1 mini, these settings where suggested to be changed:
Console Logs
Here are some excerpts from the console log, but seems like the
Failed to mount FS!
and theAcc Test Connection ERROR!
are bad. I have two iSpindels that are reporting the same exact things. I also am not seeing any tilt info in the summary screen, but when i connect it to ubidots i do get that info. One other thing i wiould like to add is if i go to an older firmware 6.1.3, i can see the tilt value in the summary screen, but i still get the freezing when doing the 0 offset calibration.Initial boot after flash:
Running 0 calibration offset:
Steps to Reproduce (for bugs)
Context
Just trying to do an initial setup and calibration.
Your Environment
Features
Please note by far the quickest way to get a new feature is to file a Pull Request.
The text was updated successfully, but these errors were encountered: