Getting started with the D1 Mini and the Arduino IDE

Before you can begin programming the D1 mini from within the Arduino IDE it must first be installed. Follow these easy steps to get started:

  1. Load the Arduino IDE
  2. Navigate to the preferences, File Preferences
  3. Under Additional Boards Manager URLs enter: http://arduino.esp8266.com/stable/package_esp8266com_index.json

    Preferences.png

  4. Navigate to Tools > Board > Boards Manager
  5. Search for esp8266 and click Install, then click close

    Boards Manager.png

  6. Under Tools > Board select the LOLIN(WEMOS) D1 R2 & mini
  7. Connect your D1 mini via USB and allow windows to automatically install the drivers
  8. Select the correct serial port under ToolsPort
  9. You should now be able to upload and test your sketches!

Getting your Arduino online – Using the ESP-01 and Blynk

A short tutorial on using the ESP-01 to connect your Arduino projects to the Internet of Things (IoT) via. The ESP-01 is a WiFi enabled microcontroller that may be used standalone or in combination with an Arduino to enable WiFi control and monitoring of any project.

If you have difficulty getting your ESP-01 to work, see my separate video on flashing new firmware:

The Internet of Things Using Arduino and the D1 Mini – Course Coming Soon!

A quick announcement of my upcoming tutorial series designed around introducing the Internet of Things (IOT) and creating IOT devices using Arduino and the WeMos D1 Mini.

As well as learning all about both IOT and the D1 Mini (no prior experience necessary), I aim to teach you how to build your very own internet enabled weather station and a WiFi controlled switch that can be controlled via an Amazon Alexa.

Come back soon or subscribe to my YouTube channel to be the first to hear of future announcements…

WeMos D1 Mini

Creepy Halloween Doll

In time for Halloween, an Arduino controlled, WiFi-enabled, creepy animated doll. The doll can be controlled manually using a mobile device or set to 1 of 3 automatic modes in order to surprise your friends! Enjoy the video below for now, more details to follow here shortly…

 

For now, the 3D printable parts to enable control of the eyes can be found here:

https://www.thingiverse.com/thing:3152317

The micro servos required to control movement of the head and eyes can be purchased here:

https://www.banggood.com/TowerPro-SG90-Mini-Gear-Micro-Servo-9g-For-RC-Airplane-Helicopter-p-1009914.html?p=KF2715792233201409DJ

Blind Controller v2a is here!

AutoBlind_v2a_Final_2018-Sep-20_12-22-33PM-000_CustomizedView2435222859_jpg.jpg

This will be my ‘more than likely’ final update to the blind controller and is available at thingiverse, now with the following features:

  • New improved gear to help prevent chain slips
  • Incorporation of a magnetic sensor in place of the standard cover to enable control of the blinds to be stopped at a precise location
  • Larger gear surround to accommodate magnetic sensor mod
  • Minor tweaks to button surround to facilitate insertion of an m5 nut
  • Left and right hand sided wall mounts
  • New Arduino sketch for use with magnetic sensor

Note: In case you have already printed it, there is no change to the main body and the previous gear cover and button surround should still fit the original design.

New Project – Creepy Halloween Doll

This weekends project, turn a creepy looking doll into an interactive Halloween prop!

DSC00521.JPG

First step, remove the head and attach a motor.

DSC00522.JPG

DSC00523.JPGTwo options were considered, a stepper (above) and a servo. I wanted the head to be able to turn 360 degrees but the stepper motor was too slow. Even though the servo can only rotate 180 degrees, the speed is good and it was also easier to attach so this is what I decided upon.

With the head back in the dolls body (thanks to a lot of hot glue!) it’s time to test, next up will be programming some sort of routine and maybe add some additional theatrics…

Adding a strobe using a transistor and animating specific moves…

Blind Controller Custom PCB Boards – Installation Instructions

If you want to make your own blind controller but don’t want the hassle of the electronics or simply like the idea of a more compact and safe design, I have created a custom Printed Circuit Board (PCB) which can be purchased via eBay.

DSC00503

Assembly of the blind controller using the custom PCB boards is relatively straight forward, insert the listed components into the labelled slots and solder in place.  Here I’ve listed a few useful hints to save you a bit of time in the process and make sure everything goes smoothly…

Note: Everything but the two buttons are soldered to the same side of the board, check using the photos below before starting out and I advise checking components before soldering as removing them once they are in place can be difficult!

  • Solder the resistors: The resistors simply drop into place and should approximately match the indicated  ratings. Cut away any excess wire.

    C0032.Still001

  • Solder the DC jacks: It is important to do this before the buttons as otherwise you may find one of the button pins clashes

    C0032.Still002.jpg

  • Add header sockets for Arduino Nano and L298N Motor Driver: Solder 2x15pin female header sockets for the Arduino nano. Although the L298N motor driver can be dropped straight in to the board, you may want to consider using a header socket here too as these allows for easy replacement should this component ever fail. The positive pin of the L298N should be nearest the bottom edge of the PCB board.
  • Solder buttons: One button will slot into place without any modification. To save space the second button sits very close to the accessory jack. Cut off the leg whose mounting whole is blocked (this will not effect the working of the controller in any way)
  • Solder LEDs: Yellow at the bottom, green at the top, the short leg (cathode) of both leds should be inserted at the top (nearest the buttons).
  • Solder the RF reciever: This should slot into place with the GND pin nearest the bottom edge of the PCB board. You may want to consider using a header socket as used earlier but there may not be space in the current design to accommodate for this.
  • Insert Arduino: Slot the Arduino nano in place being sure that pin D12 of the nano is alongside the + pin of the L298N (You need to solder pins to your nano in such a way to achieve this).

    C0032.Still003.jpg

  • Upload the latest sketch: Attach the nano to the USB and upload the latest sketch using the Arduino IDE.
  • Connect motor and test: Connect 2 pins from the motor to the L298N, power the controller from the jack at the bottom of the board using a minimum 5V (Center pin positive). Note: The jack is labelled as 12V but I recommend a maximum voltage of 9V.

    C0032.Still004.jpg

  • If everything is working as expected, assemble the electronics inside the housing using screws or hot glue and complete the assembly of the blind controller. If something does not work or behaves unexpectedly check connections using a multi meter and replace any suspect components. I have had broken L298Ns and RF controllers in the past.
  • Calibrated the controller by pressing and holding the buttons to raise or lower the blind to the required start/end position, then (when the orange light is not lit) press and hold until the full extent of required travel has been achieved. Now whilst the orange light is lit hold down the same button and the controller will flash to confirm that this time has been saved to memory. Repeat for the other direction. This may take some time to get perfect, modification of timings in the sketch itself may be easier. An alternative solution is to install the magnetic end stop sensor using the accessory port, details of which can be found on thingiverse. Good luck!

 

 

Magnetic Sensor End Stop For the Automatic Blind Controller

The Blind Controller currently operates up and down blind movements based on calibrated times. This works fine most of the time but does require some patience to set-up and over time can drift resulting in the blinds over or under shooting their intended end point.

To solve this I have been working on a magnetic sensor that attaches to the accessory slot and requires only two small attachments to either end of the blind cord. The designs for these are available from thingiverse here. As well as the 3D-printed attachment you will also need the following:

The 3D Design:

The sensor in place:

DSC00500

The provisional Arduino script is available to download here for those of you who are keen.

Next up: Some housing for the sensor module and a generally ‘neater’ solution.