WeMos D1 mini – getting going

Arduino, Technology No Comments »

I’m going to write this here for later versions of me to refer back to.

Using a WeMos mini D clone – how to get it working with micropython.

Flashing the thing is fairly straight forward using esptool – just remember that the tool is case sensitive – so – this means that you need to write COM4 rather than com4.

What else? THONNY is kinda useful as a simple ide.

My soldering is shitty.

Check the address of the i2c device. i2c.scan() returns a decimal – you need to convert it to hex. In my case I was getting errors like this:

Traceback (most recent call last):
File “”, line 2, in
File “BME280.py”, line 153, in init
File “BME280.py”, line 159, in _load_calibration
File “BME280.py”, line 119, in readU16LE
File “BME280.py”, line 102, in readU16
OSError: [Errno 19] ENODEV

Kinda strange – indicates no device being detected. At first I thought it wasn’t soldered correctly. Then maybe pins were wrong but no….

The default address in the BME280.py file was 0x76. I needed 0x77.So I changed it in the library then finally found out that it doesn’t update the lib on the device. I will remember for next time.

What is good though is that because I could get a stack trace for the error – I could go into the lib and call the I2C stuff at low level – that was how I found out about the device was actually working and wired correctly, it just needed the correct address.

So – part 1 of many just works. Happy:)

Planning and record making

Drinks, Food, Outside stuff, Technology No Comments »

So – you have a few batches of wine (or indeed, whatever) on the go. You wrote everything down in your book and now you go to your notebook and find out that one of the kids has used it for school. Disaster has struck…

No notes.

It’s not exactly the end of the world but it’s inconvenient at best.

Here’s an online idea for you that may help save some frustration and a few batches of wine.

The internet has many useful tools and services that you can take advantage of for free. Of these – I would like to introduce you to:

OneNote is a Microsoft program and may not be free – sort of depends on your license. EverNote is free for all, although you may be limited in the amount of records you store (but for our purposes – it will do fine).

Trello uses a “board” to store a number of Lists. Each list is made up of cards. A card can have various information with it (due date, photos, text etc).

If we use one board called say “Wine” and then make a list per batch of wine. We call a list after a batch of wine e.g. “strawberry”. We create a card for “Starting” and in the card we put a due date of the day started. I also put in a link to the recipe and some other stuff in there.

Then, when you rack the wine, you create another card called “rack” with a due date the day you rack. Continue with adding a card for each time you do something. A nice way to keep records. But, wait, there is more…

The “Due Date” field can be used to plan. Create a card for say “Bottling” and put a due date in the future – and you get the basis of a planning system as well. Nice. When you’ve done the job on the card – mark it as done (and make sure the date is the date you did it) – so you can have a good indicator of where you are.

How does that look in practice? A bit like this:

wine planning on trello
A Trello Board.

And this is what a card looks like:

A Trello card

Give Trello a go – it’s kinda cool. You can also share your boards with other people. This lets people work together for say maybe if you have a shared room or such and need to see where certain things are. (I don’t want to use the term “project management” but you get the idea).

This is all well and good but it’s not a real notebook – more of a scheduling tool. This is where we bring IFTTT (If This Then That) into play.

We can make it so that when you enter a new card – it adds to your online notebook. By connecting Trello to IFTTT and then into OneNote or EverNote then you can take your note taking to a new level.

First, make sure you have a OneNote available online. EverNote is always available online so it may be a little easier to deal with.

Then go to IFTTT and create an account. There are some good resources there that explain the next step – linking IFTTT to Trello and also to your OneNote/EverNote. When those two services are added – you need a recipe like the following to do the lifting of creating notes from cards:

Example IFTTT recipe.

When this recipe is run it will add a new page to your notebook. For me – this is OneNote and looks something like this:

OneNote in action.

This is just the start of where this can go. Using services like IFTTT, we can link numerous things together to get some useful and handy solutions in place.

Fatty Piston

Technology No Comments »

This one may make you wonder but don’t…

What do two pieces of PVC pipe and one end cap have in common with the BBQ? Nope, I didn’t know either until I read about this wonderful contraption/concoction. Read the following link:

Cowgirls Country Life

Today after supposed to be walking and being health with the Scouts and having bad weather cancel play, I dropped by the hardware store. I wanted some fire bricks for the Weber. Sadly they didn’t have any but they did have the above mentioned PVC pipe. So I got some with the fatty piston in mind.

After a few minutes with some glue and the Dremel, I gone made me a new kitchen tool…

fatty piston

Fatty Piston

Hint if you make one of these, PVC pipe dust gets every where.

So, what am I going to make with this?

Right now, I don’t know but I’m sure I can find something good tomorrow and report back:mrgreen:

Drum kits?

Arduino, Music, Technology No Comments »

I’ve just seen this link:

Make your own drum kit

So I am going to:)

On top of the Raspberry Pi – I’ve ordered an Arduino starter kit already and with the winter coming in and kids wanting to play – it’s a good time to start and this I think is a good first big goal after doing all the little learning projects that get you this far.

 

Raspberry PI

Raspberry PI, Technology No Comments »

After much delay, I finally got the Raspberry PI up and running.

It’s now running Wheezy on an 8Gb card clocked to a modest 800MHz. It’s slow running X but this I knew.

What really did surprise me was the lack of effort needed to connect it to the wifi. Really was a case of bang in a USB dongle, use the wifi-config tool to set up the SSID info and boom – it’s connected. Well impressed. It’s also stable which is even more impressive.

One thing though to remember – the PI don’t do good on an under powered power supply – so using that old black berry charger rated at 500mA just won’t cut the mustard. Samsung’s USB Travel charger is rated at a very nice 1A. LIKE.

What am I going to do with the PI?

Well – for now – just brush up on Linux and Python etc. I will try turning it into an FM Transmitter. Of course this is probably illegal but the range is only 100m +/- and use a frequency that is not (much) used;) And it won’t be 24/7.

After that?

There are some cool things to do with simple I2C bus stuff and then maybe look at interfacing to Arduino and generally messing around. All good fun.

There might be something in this…

Musing, Technology, Wellness No Comments »

It’s often thought that gamers are the “yoof” of today. It ain’t so. It ain’t even the 30 somethings anymore…

The lady in this link is 86!

Serious Gaming…

There is a lot to be said for this. Gaming keeps the mind active, the fingers nimble and the reactions quick. And in any event – I want to do this if ever I get to that age.

Maybe if the lady used Just Dance with the KINECT that would be amazing.

Example from smartphone

Technology No Comments »

And this is an example if posting from my Android phone. Also it allows you to directly embed pictures.

image

Cool.

Posting from a third party client

Technology No Comments »

Ok…

When writing entries for a Blog, it’s common to use the editor that comes with WP in a browser. This is ok for many things but sometimes you just need something else, for example if you are using a smartphone or such like. One of the reasons being you need more so screen than normally available via the browser.

What to do?

Simple, download and install WordPress client through Google Play. Works well.

It doesn’t offer the full feature such as if you have maps installed etc but it still does a good job.

Give it a go:-)

Using Google Maps in WP

Technology No Comments »

Adding a map of the location or other visual information to a post can greatly increase the wealth of information given.

WP has the ability to add plugins. These are little programs (if you will) that add functionality outside of the main WP application. One of these plugins allows you to include a map of the location you are posting from. Ok, this is most likely something that you won’t want to do for all posts but it can be good for somethings. Say bragging rights etc.

For this blog I’ve installed WP Geo. This installs really easy but does require a Google API Key. The installation routine explains how to do this and the Google site is pretty straight forward – you just need a Google account to do it with.

There may be a problem for some folks who use WP and that is the service is hosted and you may not be able to install it directly. If that is the case then I would suggest to contact the system admins of the site and ask if they can install the add in for you.

Anyways – once it’s installed it works really simply. It just adds a block under the normal text editor with a map. If you set a lat/lon for where you are or where you want to show the map of then it will display the map. If you leave it blank or clear it then it will remove the map. Simple. ANd it doesn’t cost anything (until you are getting over 20k impressions a month or so).

And what does the map look like? See below;)

Something else – this is just a simple addition – it is possible to do a lot more things with Maps. These will require a bit of fiddling with and perhaps a small dive into PHP but looking around on the web there are a lot of tutorials that explain how to do all this.

It’s really down to your own creativity and determination to get the results you want.

Without a map?

Technology 3 Comments »

some text

This post has the map attached to it but because I haven’t played with the map – I hope it doesn’t appear.

Ok – if I look at the site on a different machine then it also doesn’t show.

So would appear that it only appears if it’s messed with. The question then is how to remove the map?

Close

Loading ...

Sorry :(

Can't connect ... Please try again later.

%d bloggers like this: