Rummys Blog An world of endless Monday

Monday, 8 October, 2018

An IoT Mousetrap Part 2

Filed under: ESP,ESP32,World of Warcraft — Andrew.Rowbottom @ 11:35 am

The Mousetrap code has gone through several iterations, this iteration Number 2  has changed the code quite a lot..

The aim of this iteration was to significantly reduce the “ON” time from 3seconds to reduce the consumed watts in this phase.


I have switched from connecting to WiFi (about 3 seconds on time!) to using espNow sending to a “receiver” permanently connected to my Raspberry Pi, this is to reduce the “On” time during the regular status updated. I’ll try to post some information about using espNow in another post.


The “On” time is now reported as approx 300ms (mainly due to the huge number of status messages I send), well down from the roughly 3 seconds connecting to WiFi and sending using MQTT/HTTPS takes.

Unfortunately this has not made a huge difference to the overall battery life which is still running at around 3 months for a fully charged “600mAh” LiFePo4.

Further investigation is showing 2 major current draws:

  1. the LDO at approx 70µA
  2. the pullup/down current approx 70µA

Iteration #3 will look at how to reduce this .. until I un-solder the LDO Voltage-Regulator I’m limited to removing the pull-up/pull-down current. There are a few options:

  1. switch from using the internal pullup/down to an external resistor
  2. use the wakestub and poll the switch/mousetrap state regularly but not too frequently
  3. use the ULP and poll using that.

Wednesday, 21 February, 2018

Tile Sport and CE Mark

Filed under: World of Warcraft — Andrew.Rowbottom @ 10:42 am

Is it me or is the “Tile Sport” not actually European CE marked?

The Tile mark looks like (forgive the potato quality):

You decide!

Sunday, 18 September, 2016

wharncliffe test

Filed under: World of Warcraft — Andrew.Rowbottom @ 6:50 pm

Autoselect Routes to display : simply use bounding boxes

Alongside raw route information, stash expected update frequency? So that long straight stretches where the rider isn’t expected to go wrong dont update as often, but as they approach corners the refresh rate goes up.

Segment the compass/bearing rotation so that there aren’t as many refreshes (depends on how strongly google redraw the map)
Allow the blue dot to move up the page a way before bringing it back to “below-center” .. again google may already do this

Tested code with a 15 second recording interval.
A couple of bug revealed themselves.
One where the code seemed to resurrect itself and then fell over because it had cleaned itself up.
One where the map stopped updating after I had accidentally “dismissed” the program while it was recording. Hopefully this will be reproducable.
One where it took longer than 15 seconds to get a good lock, rx and consequently the next 15 seconds boundary was fairly far away,
though I feel that this may not actually be wrong.

Battery consumption was
Before run: 6% in approx 1h20m = 4% per hour
During Recording: 25% in 2h 10m = 11.5% per hour
While Running: 35% in 3h 5m = 11.4% per hour

so @15 second intervals (actually a little less) = 7.5% per hour
pretty decent .. would give about 7 hours recording on 80% battery .. and I think it could be improved by deleting some background apps from my watch..

Monday, 22 August, 2016

wearRoutes more testing

Filed under: World of Warcraft — Andrew.Rowbottom @ 3:25 pm

I’ve been occasionally testing wearRoutes “recording” during my drive in.
I’ve found a number of problems, so far all seem to be related to the watch going into “Deep Sleep” which means that the normal way of asking for code to run in e.g. 30 seconds often means it *doesn’t*.
Even when it does run the damn watch will go back to sleep while it’s waiting for some location data and so not get the data it wants.

I’ve worked around the second problem by acquiring a partial_wake_lock – aka forcing the watch to stay awake while it’s waiting for a decent GPS reading. Fortunately it looks like this won’t kill the battery (too much) because a usable location usually arrives within 10 seconds, meaning the watch can sleep for 20 seconds out of every 30. Not perfect, but not bad either.

The first problem manifests like so…
a) I schedule in some code to run in 30 seconds (this code asks for the Location)
b) The code actually runs anything upto 5 minutes later (varying considerably though usually about 1.5 minutes)

I’m going to have to delve even further into android and use the Alarm Manager — nothing seems to be trivial, or perhaps I’ve covered all the trivial stuff 🙂

Tuesday, 9 August, 2016

wearRoutes real world test #2

Filed under: World of Warcraft — Andrew.Rowbottom @ 1:12 pm

I’ve done some tweaking to try to reduce the battery usage and ran wearRoutes on my watch for 2 hours in “record” mode, almost entirely on the “stats” screen, so no map burning, though I suspect that the stats screen actually burns more CPU than the map screen, since it has “bigger” updates.

This version differed from the previous version in may ways, but mainly the stats screen updates roughly 4 times a minute – though not actually at 15 second intervals due to this ‘n’ that.

The results were, interesting.

First the battery which drained pretty constantly at about 7..8% per hour – 14% in 2 hours (98% to 84% ), this is about half the rate at which the battery drained in the last test, so I guess I’m probably doing something right, though I was deliberately not “poking” it.

A few interesting features showed up in the location handling.

  • The “distance” travelled was at 2km before I even reached the end of the first field, and the logs show that it had briefly locked onto a cell tower with an appalling accuracy of 1.4km. So I need to discard poor accuracy points. A “feature” of these points is an elevation of exactly ZERO which is a nice little indicator.
  • The second feature is that it looks like all of the points are duplicated in the gpx log!I can’t tell if this is my code messing up or if it really truly did receive duplicate points! I’m really not sure where these are coming from, but there’s a fair chance they’re causing extra useless screen updates.
  • The “instantaneous” speed was mostly though not entirely missing from the data collected, it was present on the data with good accuracy

On the plus point I’ve separated the location gathering code from the rest of the system so it should be fairly easy to sort out.

To Do

  • filtering to exclude the “elevation = 0.000” points, a quick test produces a track with no particularly noticeable speed spikes, though there are a few “gaps” in the logs that way.
  • See if I can rework the location gathering to be “persistent” about getting quality data, this should have a side effect of getting more valid “instant-speeds”.

Tuesday, 1 October, 2013


Filed under: World of Warcraft — Andrew.Rowbottom @ 11:38 am

Long silence, skincare broken by me droping Guild Wars 2 and taking up Final Fantasy XIV A Real Reborn, drugs FFXIV for short.

I’m enjoying it, it doesn’t have quite the same “suck-in” that GW 2 had, but it is a slower paced game. Slower suits me well, I’m not as twitchy as I used to be.

There are quite a substantial number of improvements in this re-release over the previous version, for starters it’s quite playable.

Two things I miss from the old game though;

  • The dialog has been toned down, it used to be slightly risqué, but there seems to be a lot less of that, I suspect that what is still present in the game is a case of cut&paste from the previous version.
  • The cut scenes are more first person, in the previous version, as far as I played it at least, I was given the impression that I was a lowly adventurer overhearing, and being caught up in, bigger things. I felt that this quite suited a role-playing environment. Our characters aren’t special, at the low levels, even humble sheep could give us a run for our money! I find it a little immersion breaking when I’m greeted by NPC’s as if I were the saviour of the world.

I was really surprised to discover that I had to do dungeons to progress my personal story-line. A surprisingly nice idea. It’s a big jump for me to group together with other players and do group content,  being forced into it is exactly what I needed to get me over the initial reluctance. On the down side the “Duty Finder” (automatic LFG”) is not world specific, so there is little chance of making any real-friends.

Will post again soon about how broken the economy seems at the moment.

Tuesday, 2 October, 2012


Filed under: World of Warcraft — Andrew.Rowbottom @ 4:54 pm

I was out in my gold to pounds conversion by 100 times! I’ve corrected the post now.

Friday, 14 September, 2012

Guild Wars 2 is a blast

Filed under: World of Warcraft — Andrew.Rowbottom @ 12:20 pm

last post was from me in the stress testing phase, approved since then the final version of GW2 has been released.

I’m having a total blast so far. I’m still in the trying out playstyles phase, patient at this point I’ve tried Mesmer, Ranger, Engineer and Elemental. Elemental seems to be me, though I was quite enjoying the Engineer also.


Tuesday, 10 April, 2012

Flowers the Archer

Filed under: World of Warcraft — Andrew.Rowbottom @ 7:11 pm

I’ve got 2 characters in FFXIV.. the subscription model is not what I was expecting.

For FFXIV you pay a base subscription of about £4/month… that gets you nothing as far as I can tell.

Then extra characters cost about £2.10. So the minimum fee is really about 6 pounds a month.

I have a thaumaturge and an archer. Both on Ragnarok and both with the same surname Equiphile.


Heres a screenie of my Archer taken from a cutscene, patient so the image quality is a fair bit better than when I’m actually playing.

Sunday, 8 April, 2012

That’s wierd

Filed under: World of Warcraft — Andrew.Rowbottom @ 7:19 am

This week I finally managed to level Flowers the smuggler up to the end of Chapter 1 of her storyline.

And then I stopped playing. Cancelled my subscription and everything.

That was a surprise, information pills even to me, recipe but then I went and subscribed to Final Fantasy XIV. Yup, that old game that isn’t actually very good!

I think my main reason for going back to FF XIV is twofold; I really didn’t get on with the lack of humour in SWTOR while FFXIV has a decent amount of this seasoning. There’s something about the graphics in FFXIV that does it for me.

The UI, despite the recent patches, still smells, and it is still a grindy game. But it’s much less of a shock after coming from SWTOR than it was after coming from WOW.

Anyway, there you are.. I’m now playing a different MMORPG again.

Older Posts »

Powered by WordPress