Using Wemos D1 Mini & Oled Shield

Category : Arduino, Electronics

In this guide I’ll show you how to use the shield and it’s two buttons. Lets get to it.

Resoltion is 64×48
Button A is by default pin D3.
Button B is by default pin D4.

Buttons can be customized by soldering jumper pads under the shield.

Parts:

Wemos D1 Mini @ Aliexpress

Oled Shield @ Aliexpress

PS, be sure to get the shield with A & B buttons when you buy it, there are a few types to choose from.

Code:

There are several libraries to choose from, but I found the one from Sparkfun to be suitable for my use.

Download it, then unzip in libraries folder and restart Arduino IDE. Then paste my code:

#include <Wire.h>  // Include Wire if you're using I2C
#include <SFE_MicroOLED.h>  // Include the SFE_MicroOLED library
 
#define PIN_RESET 255  //
#define DC_JUMPER 0  // I2C Addres: 0 - 0x3C, 1 - 0x3D
 
MicroOLED oled(PIN_RESET, DC_JUMPER); // Example I2C declaration
 
void setup()
{
  // Before you can start using the OLED, call begin() to init
  // all of the pins and configure the OLED.
  oled.begin();
  // clear(ALL) will clear out the OLED's graphic memory.
  // clear(PAGE) will clear the Arduino's display buffer.
  oled.clear(ALL);  // Clear the display's memory (gets rid of artifacts)
 
  pinMode(D4, INPUT); // Setting D4 B Button as input
  pinMode(D3, INPUT); // Setting D3 A Button as input
}
 
void loop()
{
  oled.clear(PAGE);     // Clear the screen
  oled.setFontType(0);  // Set font to type 0
  oled.setCursor(0, 0); // Set cursor to top-left
  oled.print("Line 1");
  oled.setCursor(0, 8); // Set cursor to top-left
  oled.print("Line 2");
  oled.setCursor(0, 16); // Set cursor to top-left
  oled.print("Line 3");
  oled.setCursor(0, 24); // Set cursor to top-left
  oled.print("Line 4");
  oled.setCursor(0, 32); // Set cursor to top-left
  oled.print("Line 5");
  oled.setCursor(0, 40); // Set cursor to top-left
  oled.print("Line 6");
 
 
  if (digitalRead(D4) == LOW)
  {
    oled.setCursor(0, 40); // Set cursor to top-left
    oled.print("B Pushed");
 
  }
 
  if (digitalRead(D3) == LOW)
  {
    oled.setCursor(0, 32); // Set cursor to top-left
    oled.print("A Pushed");
 
  }
  oled.display();
}

You should now see this when buttons are pressed:

Thats it! Now play around with it. Hope this short guide was helpful.

Using Wemos D1 Mini with SHT30 Sensor Shield

Category : Arduino, Electronics

SHT30 is a temperature and humidity sensor, almost the same as DHT22 only much smaller. They also measure a larger range, from -40 to 125 C.

Parts:

What we need is a Wemos D1 Mini board, which can be found on Aliexpress for around 5$. And of course the SHT30 shield can also be found on Aliexpress for a few dollars.

SHT30 @ Aliexpress

Wemos D1 Mini @ Aliexpress

Code:

Next up is installing the Arduino Library for the SHT30, unzip in libraries folder and restart Arduino IDE.

Then in Arduino IDE select the example called SHT30_SHIELD, or use example code below,  just to verify that our sensor is working correctly.

#include <WEMOS_SHT3X.h>
 
SHT3X sht30(0x45);
 
void setup() {
 
  Serial.begin(115200);
 
}
 
void loop() {
 
  if(sht30.get()==0){
    Serial.print("Temperature in Celsius : ");
    Serial.println(sht30.cTemp);
    Serial.print("Temperature in Fahrenheit : ");
    Serial.println(sht30.fTemp);
    Serial.print("Relative Humidity : ");
    Serial.println(sht30.humidity);
    Serial.println();
  }
  else
  {
    Serial.println("Error!");
  }
  delay(1000);
 
}

Then open up the serial monitor and you should see it reporting temperature and humidity:

Thats it! Now play around with it. Hope this short guide was helpful.

ImmersonRC Vortex

Category : RC

So, I thought I’d share a video a friend of me recorded while we where on our FPV trip.

There is also a exciting crash in the end!

My Makerfarm Prusa i3v 10″

Category : 3D Printers, Electronics

Thought I write a quick review of my Makerfarm Prusa i3v 10″.

IMG_2965

Of all my printers this is the one I’m most satisfied with, mainly because of it’s large build area and speed. It’s also easy to modify.

I’ve changed a few thing on it, to improve the quality and speed:

Wider spool holder

IMG_2970

The on that came with it wouldn’t fit all my different rolls of filament, so I printed out this part from thingiverse. Basicly just makes it hold wider spools, fit’s perfectly. Make sure you print it will high infill rate, I used 80%.

Aluminium heat bed mount & isolation

IMG_2969

I used a thin sheet of glava isolation which greatly reduce heatup times, and a aluminium bed mount. The bed mount makes it more rigid as large wood sheets tend to flex. You can find glava or similar rock/glass isolation at your local hardware store. Makerfarm sells the aluminium bed upgrades. Click here to get it.

Astrosyn stepper motor dampers

IMG_2971

Not so easy to see in this picture, but it’s impressive how quiet it became after I mounted these to my X and Y axis motors. Haven’t bothered to install dampers to my Z axis motors yet, since they aren’t running all the time while printing.

I also added washers to all my screws holding the motors in-place, this reduces pressure on the wood pieces. Not sure if this is necessary but I felt the small screw head was drilling it’s way into it.

These are the dampers for Nema 17 steppers. Since Astrosyn does’t normally ship to Norway I had to contact them and arrange a deal.

E3D V6 with 0.5mm nozzle

IMG_2968 IMG_2966

This one is a major improvement! Faster print speeds and better quality. My main bottleneck now is the extruder mechanism, when running at extremely high speeds it will slip. I had to cut the extruder fan shroud to make it fit on the e3d, but apart from that it’s a easy installation.

You also need to modify your firmware, I got mine from makerfarm with E3D support added. You can download it here.

Is windows taking forever to show the contents of Downloads folder?

Category : Windows

Mine does, and it’s varying from 10 seconds to almost 30 seconds. It’s very furstrating since I frequently open this folder to find whatever I downloaded trough the browser.

There’s a very simple fix to this problem:

Guide

Right click on your Downloads folder and select Properties, then choose the Customize tab. Choose “General Items” from the drop-down box and hit Apply!

That’s it.

Wanhao Duplicator i3 mods I’ve done

Category : Electronics

wholeprinter

I’ve had my Wanhao i3 for a few months now, and I must say it’s not perfect. I wasn’t expecting a perfect printer either.

But there are a few very annoying issues that needs to be fixed IMO, even tho many users have had no big complaints. My major struggle on this one are uneven bed adjustments. I can have a perfect print, and the next time I print it screws up at the first layer. It’s almost like I have to re adjust for each print.

You might be thinking that this is my first printer and I’m just not used to this, but I have been using 3d printers since early last year and now own 6 printers. And my latest in the collection is the Wanhao i3, and I feel I’m quite familiar with bed leveling. Not claiming to be an expert.

Anyhow, these are the mods I have done so far:

Heatbed isolation.
heatbed

This can be done several ways, but I choose a rather quick fix for it. Simply cutting a cork mat I bought off ebay, and taping it to the underside of my heatbed with kapton tape. This helps on heating up the bed faster, and makes for a more evenly distributed heat pattern.

MicroSD to SD card adapter.
sd-card

Easy fix, you can find one here. I used some adhesive tape to keep it locked in place on top of the electronics box.

LED lights.
ledextruder ledtio

Many ways to do this one, but I used a pair of led strips with adhesive tape on them, and a 1W led emitter on the extruder. Just make sure you order some 12v ones.

Z-Axis stiffening.
screwdetail2 screwdetail

Link to all parts are on this post on thingiverse. As you can see on the first picture I have added two threaded rods and stiffens my Z-Axis. This mod I would really recommend, makes the whole printer much more rigid, resulting in higher quality prints.

After you have attached the threaded rods and nuts, you need to use some angling tool to make it perfect 90 degrees.

There are other useful parts in that post too. And I also recommend printing the front and back Y brace. And adding a ziptie to make the bed belt go more evenly.

strips

This summons up all mods I’ve done to my i3 so far. It’s still not as good or reliable as I want it to be, but it’s much better.I’m far from done, my next mod will be a replacement of the hotend part with a all metal one from Swiss Made. It will be interesting to see how it performs with that one installed.

Merry Christmas!

Category : Stuff

Just a short post wishing you all a Merry Christmas!

 

I also had some time to print some decorations with my 3d printers, nothing fancy, but they are decorative? Aren’t they?

IMG_2937

IMG_2939

IMG_2946

Got a Chinese only Youth router from Xiaomi? And want English firmware?

2

Category : PC

 

Well, I did!

Seems like sellers are shipping their routers with different firmware’s. Some come with Chinese only and some with a option to change it to English if it haven’t been done already.

If you are one of the unlucky ones who got one with Chinese language only, keep reading! I’ll show you how to flash your router and change it to English. This guide is for the mini version of the Xiaomi router, the one powered by a micro usb.

If you haven’t bought one, I can recommend this seller as that unit came with English firmware.

 

Let’s move onto the guide:

Download english firmware and keep it somewhere on your disk.

Then logon to your router, it’s default address is 192.168.31.1, now you will see something like this:

Proceed by pressing the blue button, and this will show up next:

In the first text-box you enter WiFi ssid, and second box is WiFi passkey. The click the button to proceed to next step.

First text-box is the router “location”, really not important. Whats important is the second one, which is the login password for administrating the router. The check-box underneath is to copy settings from WiFi, which makes the password for login exactly the same as WiFi passkey. Not recommended, and should be something else! Then click the button to proceed to next step, router will now restart and show a orange led, wait until it’s blue and refresh, or reconnect if your on WiFi.

Now login with your password. Then click arrow.

You will now click the second text up in the middle of the screen, which is highlighted in white bold text. Second click the orange circle. Then the first button (grey button) under the version number in blue.

Now choose file and select the English firmware, and click the blue button to upload it to flash memory.

It will now show this while it’s upgrading to new firmware, give it some minutes. The led will turn orange again and blue when it’s done. It might actually be in English when you logon next time, but if it’s not I’ll show where you can change it.

Navigate to the same page where we found the firmware upgrade button, but this time scroll down to the bottom.

There should be a drop-down text-box which you can select English language, and it will change to English!

You now have a English Xiaomi Youth mini router!

 

Xiaomi Youth Mini Router – English Firmware!

Category : PC

minirouter

 

I was looking all around the web for this firmware,  since mine came with Chinese and no option to change it in the router gui. Luckily a Chinese sellers from aliexpress sent it to me!
So I thought I could share it here, so that if anyone other needs it they won’t have the same struggle finding it.

PS, this firmware isn’t english by default, it requires you to go into settings and change language. There are several videos on youtube explaning this.

Click here to download

Please leave a comment if you have questions.

I’m still alive! :P

Category : Stuff

I’m just writing this short post to let you know I’m still here, and I’m still checking my blog regularly. So it’s not that I have given up on it, I’ve just been busy lately.

So hang on, I’m going to post more projects etc soon!