• Please visit and share your knowledge at our sister communities:
  • If you have not, please join our official Homebrewing Facebook Group!

    Homebrewing Facebook Group

Replacement firmware for iSpindel (GravityMon)

Homebrew Talk

Help Support Homebrew Talk:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
Wouldn't a reed switch always closed instead of the normal power switch work? lot less complicated than the magnetic switch, Then just a magnet in the base will turn off the device.

However I thought the gravity mon software was configured to put the ispindel into off mode when inverted vertically?
 
Wouldn't a reed switch always closed instead of the normal power switch work? lot less complicated than the magnetic switch, Then just a magnet in the base will turn off the device.

However I thought the gravity mon software was configured to put the ispindel into off mode when inverted vertically?
There is a feature in gravitymon that will go into indefinite sleep when placed on the cap. You will need to force a reset to get out of that mode.

I have tested using an open reed switch and magnet to do that.
 
Wouldn't a reed switch always closed instead of the normal power switch work? lot less complicated than the magnetic switch, Then just a magnet in the base will turn off the device.

However I thought the gravity mon software was configured to put the ispindel into off mode when inverted vertically?
if this in response to my magnetic reset, it it's not a power on off switch but a way to reset the device and force it into configuration mode when it goes to sleep, a bit lighter than a glass reed switch but definitely a bit more complicated. just another option for anyone interested.
 
Great news, any things that you see could be improved ?
Not much really.
I'm a little bit unsure about the Home --> "Force Gravity Mode" button behavior:
If I tick it to disable sleep mode, enter another menu and return to Home, it is unticked.
Have not checked if there's a connection with the battery voltage is higher than 4.15V (= always config mode)
 
Not much really.
I'm a little bit unsure about the Home --> "Force Gravity Mode" button behavior:
If I tick it to disable sleep mode, enter another menu and return to Home, it is unticked.
Have not checked if there's a connection with the battery voltage is higher than 4.15V (= always config mode)
I will check that, it should remain ticked even if you move between menus.
 
hi @mperi have designed a pcb to take the ESP32C3 super mini form factor module (I am busy making it a shared project on pcbway), there are 2 problems, 1) I still need to get the blue led working looks like I may have to create a separate environment for this as the normal C3 has a multi colour led and doesn't look to be compatible in this regards, 2) I can get the board up and running on the 1.4 version but when I try to load the 2.0 version I get an I2Cread error 263 and it will not run, do you have any ideas what the issue may be.
 
hi @mperi have designed a pcb to take the ESP32C3 super mini form factor module (I am busy making it a shared project on pcbway), there are 2 problems, 1) I still need to get the blue led working looks like I may have to create a separate environment for this as the normal C3 has a multi colour led and doesn't look to be compatible in this regards, 2) I can get the board up and running on the 1.4 version but when I try to load the 2.0 version I get an I2Cread error 263 and it will not run, do you have any ideas what the issue may be.
That error have been there for a while and i finally found the issue an hour ago. The led pin on the esp32c3 is the same as the data for the gyro so this is the root cause. The fix is to disable (not use) the led on that board so if the pins are the same as for your board the new build in the dev branch should work
 
hi @mper does this mean that jtag is automatically enabled on the current version? I have been using gpio6 and 7 for my i2c comms as pin 8 is the blue led which I would like to work as it gives me an indication of the state of the system.
I am still not sure where to find the pin definition for the LED, maybe you could point me in the right direction.
 
hi @mper does this mean that jtag is automatically enabled on the current version? I have been using gpio6 and 7 for my i2c comms as pin 8 is the blue led which I would like to work as it gives me an indication of the state of the system.
I am still not sure where to find the pin definition for the LED, maybe you could point me in the right direction.
JTAG is a hardware setup not software, the LED is defined as PIN_LED which is the same pin used for the Gyro in the ispindle design. This is defined in the header for your board.
 
JTAG is a hardware setup not software, the LED is defined as PIN_LED which is the same pin used for the Gyro in the ispindle design. This is defined in the header for your board.
thanks @mper will have to do my homework on jtag as I haven't had issues with it on the 1.4 version, I haven't had the LED activated on any of the super minis I have programmed so far and version 1.4 worked with gpio6 and 7 but not on version 2 so somehow jtag must have been activated and switched the i2c to 8 and 9 which would cause an i2c error as it is not connected.
 
thanks @mper will have to do my homework on jtag as I haven't had issues with it on the 1.4 version, I haven't had the LED activated on any of the super minis I have programmed so far and version 1.4 worked with gpio6 and 7 but not on version 2 so somehow jtag must have been activated and switched the i2c to 8 and 9 which would cause an i2c error as it is not connected.
Lets move this discussion to a thread on github instead of here.
 
New beta out now, hopefully the last one before release. I have had some issues with temperature sensor (sensor not found) on some devices so if you have issues let me know. I'm considering switching to another onewire library that seams to fix the problem. I finally go the C3 version to work now as well..

Release v2.0.0 beta 3 · mp-se/gravitymon (github.com)
 
Last edited:
New beta out now, hopefully the last one before release. I have had some issues with temperature sensor (sensor not found) on some devices so if you have issues let me know. I'm considering switching to another onewire library that seams to fix the problem.

Release v2.0.0 beta 3 · mp-se/gravitymon (github.com)
I have just finished a brew using s2mini/ v2.0.0b2. No temp issues with that one, except the "Force Gravity Mode" button still wanted to change status after switching between menus.
I'll check out if it is connected to high battery voltage.

The oddest thing brewing "Oktoberfest", was the hybrid Fermentis K-97.
Never used it before. Finished off in 4 days @18C with lots of krausen giving the spindel a challenge reporting correct values
 
I have just finished a brew using s2mini/ v2.0.0b2. No temp issues with that one, except the "Force Gravity Mode" button still wanted to change status after switching between menus.
I'll check out if it is connected to high battery voltage.

The oddest thing brewing "Oktoberfest", was the hybrid Fermentis K-97.
Never used it before. Finished off in 4 days @18C with lots of krausen giving the spindel a challenge reporting correct values
The force gravity is fixed in the new version, so that should work now.

You should try Kveik some time, one time it was done after 36 hours.... That was like a volcano eruption... And a thick krausen will make it hard to get some correct angles, even so if there is some that sticks to the tube.
 
The force gravity is fixed in the new version, so that should work now.

You should try Kveik some time, one time it was done after 36 hours.... That was like a volcano eruption... And a thick krausen will make it hard to get some correct angles, even so if there is some that sticks to the tube.
I can confirm force gravity is working fine in v2.0.0b3. Excellent work!

I normally take out the spindel(s) and clean it/them when primary fermentation is nearly over to get more correct readings the rest of the time.

Kveik: Yes, it is a "different league". Need to use two 50W tubular heaters in my fridge to get high enough temperature
 
I'm on the latest beta firmware, is it normal for this error only when plugged into USB-C? "No gyro is detected. Try to reboot / power-off. If this persists, check for hardware issues." I will also randomly get no temperature sensor found.
 
I'm on the latest beta firmware, is it normal for this error only when plugged into USB-C? "No gyro is detected. Try to reboot / power-off. If this persists, check for hardware issues." I will also randomly get no temperature sensor found.
You should not get any errors when charging, unless the output voltage is too high and causes issue with the gyro, see if you can check the voltage on the gyro board.

The temp sensor is probably related to the library im using which, i have switched too an alternative in the dev branch which you can test. Just select dev branch in github and download the bin you need from the bin directory

I will do a release when im back from vacation
 
I had an odd issue with an ESP32-S2 mini. I installed the firmware on the board before soldering to the PCB to test it out. Powering it up via USB-C on the computer, the program wouldn't execute. Nothing shows up via serial monitor.

When I downgraded to 1.4, the GravityMon AP point popped up, but when I tried to select the configuration mode, it did the WiFi scan, then immediately disconnected. I can pull up the serial log later if that would help.
 
I had an odd issue with an ESP32-S2 mini. I installed the firmware on the board before soldering to the PCB to test it out. Powering it up via USB-C on the computer, the program wouldn't execute. Nothing shows up via serial monitor.

When I downgraded to 1.4, the GravityMon AP point popped up, but when I tried to select the configuration mode, it did the WiFi scan, then immediately disconnected. I can pull up the serial log later if that would help.
Try to do a full erase, sometimes that helps with wifi issues if the flash has become corrupted
 
Without resetting the whole device, is there a way to reset the 0 degree setting (flat on a table)?
Yes trigger the mode where you access the ispindel 192.168.4.1 web page ( usually using reset button a couple of times) then it's in the configuration menu.

You don't lose your data with this reset. Is this what you mean?
 
Yes trigger the mode where you access the ispindel 192.168.4.1 web page ( usually using reset button a couple of times) then it's in the configuration menu.

You don't lose your data with this reset. Is this what you mean?
Not with gravitymon, this is only required before wifi is configured
 
Last edited:
Big thanks, it appreciated.
One thing it'd be nice to implement if you ever get time; I use a third order polynomial for my tilt formula. It'd be nice if the built in polynomial calculator had an option to use third order polynomial so I don't have to use an external system to generate it.
 
Back
Top