-
Notifications
You must be signed in to change notification settings - Fork 81
Freezes once in a while #3
Comments
I'm starting to think that the issue is with the library, gonna change it to the Adafruit library and maybe create a separate github for testing purposes 😕 |
Try out this |
Hi ! |
Well I have discovered that it seems like the bus overflows, because everytime i spin the tire in the air from 5km/h to 30km/h(custom firmware), the speedo freezes and sometimes catches back on |
Oh, ok.. |
Or, maybe the best solution is to use |
Hmmm, It freezes because it receives too much data so a millis() delay could help it |
But a delay is not a solution, so having something like you mentioned could work better |
brake and throttle value filter seems to help for someone on youtube, any ideas ? oh and it makes sense, because it's spamming the same values and it overflows |
Hi, thanks for sharing that project. Did you tried with pro mini 3.3v ? |
I have no idea, but can you give us the link to that video please ? |
It's kinda an overflow, even the xiaomi mi app freezes if you put the scooter in the air and press the throttle fully |
You will destroy it, the rail is 5v, a capacitor or some kind of regulator. |
Not really. It is supposed to accept voltage up to 12VDC. |
Uhmm, heat? the uno is good for 12 volts too, but it's actually made for 5v |
I agree that 12v requires a heatsink but the electric scooter regulator range is 0 to 5.5-6v max |
For me it's freezing in every trip :( |
For me it happend one time, i drive with this software over a week (60km). |
more like on the scooter I guess |
Mine freezes every 1km approximatively.. |
of course i have deleted the bootup part to skip the animation ^^. |
Check if the percentage drops after sometime, because sometimes only the speedo freezes |
no it doesnt unfortunately.. everything stops even the percentage.. (infinite power i gess ?? 👍 ) |
hmm, for me only the speedometer crashes |
and for me :-) All scooter hang up, and stop driving, all led are off, and the display was on and suspended showed the speed. |
hey guys i've figured out that when the port crashes, the arduino is still alive and working ! |
I see something like this sometimes (long time ago), when i drive with phone on bluetooth, my speed on mihome app freezes. |
It's not the best solution but at least.. it works ^^ |
Hi all, if(XIAOMI_PORT.overflow()) { Sorry if there are errors but I’m writing from the phone. |
This freezes only display or also scooter? |
Hi. It freezes only in Big spidometer mode. Maybe you want to delete or fix it? And also can you add remaining mileage? |
How can i test it before soldering the cables to the scooter? Should it report bus data is missing? |
Is this project abandoned? |
it should power up showing bus error,maybe you have a bad connection somewhere or bad oled |
I fixed it. I removed the lines refering to spi screen libraries |
Does it still hangs without the external watchdog? |
Did you fixed? or not? Thanks! |
Sorry for the delayed precense but i am abroad and i have limited time. #include "WatchDog.h" //#define DISPLAY_I2C //#define US_Version //ifdef DISPLAY_I2C #include "fonts/m365.h" #include <EEPROM.h> #include "language.h" MessagesClass Message; const uint16_t LONG_PRESS = 2000; bool autoBig = true; bool Settings = false; uint8_t menuPos = 0; bool cfgCruise = false; volatile uint8_t oldBrakeVal = -1; uint32_t timer = 0; //ifdef DISPLAY_I2C bool WheelSize = true; //whell 8,5" uint8_t WDTcounts = 0; (i have made minor corrections so that my screen would work but the code is the original and not mine :))) |
Has anybody found a solution for the freezing, without second arduino as watchdog? |
Hi can you converting this project SSD1306AsciiWire library to adafruitssd1306.h library or u8glib or u8g2lib |
To be honest personally i do not have the knowledge to do it... It requires a lot of reading...and i do not have the time, this reriod... |
Is this project abandoned? |
i thikk: yes. not happy |
anyone tried this project on a d1mini? |
Witajcie. |
Have you also had the screen freeze on the speed reading? |
today I drove about 15km and the meter worked perfectly. never hung. |
thanks, I will try this method too. |
Wczoraj działało idealnie. Dzisiaj znowu przerywa. |
Hi together, is there any solution available till now? |
There is no concrete solution. I replaced the resistors with other values, as advised in similar projects, and the Arduino still freezes. It can run for a few days without freezes, and then still hang. |
Has anyone a look at the data signal with an oszi? Maybe the signal is not good enough. But I think there is an code bug too, because freezing should not happen if the data could not be read. Maybe something with interrupt. Now I will start to have a look on the code. |
Any solutions for this till now? |
I can’t turn on the headlights with this item meter. I wonder if everyone has the same problem? |
Glad to release the v 0.B version (B means Bruno). A improved software watchdog is in place. Never freezed in some months of heavy use, at high speed and neither on hard braking. Made the necessary corrections to made the code work on pro's version (now can display current speed, or real time current value) cause these models, unlike the classic m365, have another ble protocol. No more crashing when tyre is spinning. |
Could you give a link? |
Im hard working to make it cheaper, easier and more affordable... even more useful than commercial version of “M365 dash”. To achieve a good result I need some more days to refine my project. |
Im glad to share with you my project, fully compatible with multiple scooter versions. |
The Arduino freezes once in awhile it only seems to be happening with my hard driving so right now I think it's trying to open the menu because there is no speed check for that but that doesn't always seem to be the case. Anyone else experienced something similar?
The text was updated successfully, but these errors were encountered: