Posted on 2 Comments

Duet (2) WiFi – Getting started

Been a while since I last wrote about the wonderfull controllers from Duet3D, so, seeing as we just had Black Friday, and E3D-online had a super deal on Duet (2) WiFi (was £20 lower that day), I now have myself a brand new Duet WiFi 1.04a

  1. First off – (2)?
  2. Lots of changes!
  3. Getting started using Duet WiFi
    1. Usefull pages
    2. Links to Firmwares and Drivers
    3. Program(s) needed
  4. First Step
  5. Second Step
    1. Check current firmware version
    2. Downloading newest firmware
  6. Setup WiFi
    1. Status of WiFi
    2. Add WiFi SSID
  7. Connect to Web GUI
  8. Check factory config.g settings
    1. Machine name
    2. Delete networking settings
    3. Verify WiFi module on
  9. Update Firmware
  10. Update Web Interface
  11. RepRapFirmware Configuration Tool

1) First off, what’s the (2) i write, you might ask?

Well, the 0.6 and 0.85 are Duet (1) boards, while Duet WiFi and Ethernet are (2).
I guess the numbering started popping up, as they are working up to the release of number 3 next year. Just a guessing of mine mind you. 
Regardless though, it’s means my very first pre-ordered Duet WiFi was also a Duet 2 WiFi.

Duet3D has a dozuki page on their Version Numbering. Although it doesn’t contain a whole lot of information  at the moment, it does show current versioning are up to 1.04, meaning my new Duet Wifi, sorry, Duet 2 WiFi 1.04a is the newest iteration.. unless there is a 1.04b or c, or…

2) Lots of changes!

Up untill now my newest model has been a 1.02, and since then I can see; 3 new mini removable fuses added, new pins for jumpers and for selection of fan header voltage. Reset button has been moved and the Erase button has been replaced by jumper header, so we don’t accidentially Erase our config!

The biggest change I guess, is me though! uhh?
Yes, me, I’ve learned a lot since I wrote my first post about Duet WiFi, both about ferrules (hehe), but also about Duet WiFi, the firmware and practical usage of it, so I’ll take my new wiser fpv goggles on, and take a tour on getting started using the Duet WiFi (obvious I recently started with Quad FPV?)

3) Getting started using Duet WiFi

Lets start by compiling a list of usefull pages and needed programs:

3.1) Usefull pages

3.2) Links to Firmwares and Drivers:

3.3) Program(s) needed

  • We need YAT terminal program. In my previous old post I said Pronterface/Printrun, but that one converts letters uppercase, so it’s no use for setting up most WiFi passwords, and other things.

4) First Step:

Place you’re Duet controller on a safe surface like a silicone pad, a table or piece of paper. Just do not use the anti static bag it came in, as a conveniently platform, as they basically work in reverse that way, from when the electronics are inside.

Connect your Duet WiFi to your computer using the USB cable that came with it.
If you have allready installed the Duet Driver, the board might allready just show up in your Device Manager.
If it does not, install the drivers and you should be fine.
If you need help to get it to show up, you can find detailed instructions here, on Duet3D Dozuki.

Note: If you are using some random USB cable you might experience that nothing happens. I’ve also tried having to reboot my computer before something happened. Especially if I previously had worked in Cura or other programs that likes to hog the Com ports.

From Duet3D

5) Second Step:

Download, install and run YAT. It should automatically connect to your Duet WiFi
If it’s bugging you, you can find detailed instructions here, on Duet3D Dozuki.

5.1) Check current firmware version

Now that you have YAT connected to your Duet WiFi, you issue the command M115 (just enter M115 and hit Enter) and watch the response in the Monitor Window as shown below.

5.2) Downloading newest firmware

Now go to Github page for RepRapFirmware and check for a newer version.

Here we can see that the newest current version is 2.02RC5 (RC = Release Candidate). In order to get this we download the Duet2CombinedFirmware.bin file.
Also download the newest current version of the DuetWebControl-nnn.zip file. This zip archive is what makes up the Web GUI (Graphical User Interface) for our Duet.
Save them someplace you can easily find them for when we are doing the actual upgrade.

6) Setup WiFi

There are a few steps to get the Duet WiFi connected to our local WiFi.

6.1) Status of WiFi

First step is to check out the current status of the Duet’s WiFi module.
You get the current status by issuing M552 command.
Mine was listed as idle, but if yours is listed as Disabled, you just issue M552 S0 to get it into idle mode.

6.2) Add WiFi SSID

Now we use the M587 command to add our local SSID (network name) and password to the Duet WiFi’s internal storage.

You do it using this command:
M587 S”your-network-ssid” P”your-network-password”
If you are having issues, you can get detailed instructions here on the Duet3D Dozuki.

Once added, it will display an “ok” in the Monitor window. Now issue M552 S1 to enable the WiFi Module.
It will now connect to your network and list an IP after 20-30 seconds.

Note: If you disconnect the Duet WiFi before you’ve made the necessary changes to the config.g file using the Web GUI to ensure the WiFi module start up automatically at each power up, you just have to connect using YAT and enable the module again by issuing M552 S1.
If necessary, you can issue M552 to have the current IP displayed

If you can’t connect to the Web Interface even though it displays an IP in YAT, try disabling WiFi (M552 S0) and then enable it again (M552 S1).

7) Connect to Web GUI

Now that we have done all the terminal work in YAT, we can connect to the nice Web GUI of the Duet cards. You just open your browser (I’m using Chrome) and enter the IP listed in YAT. In my case it’s 192.168.1.187 and we are now looking at the Web GUI of our Duet WiFi. Yours might look differently depending on window size of the browser and also versioning of the Web GUI.

DuetTest at the top is the “Machine name” and can be changed to a name of your choice in config.g

8) Check factory config.g settings

Before we do anything else, left-click on Settings -> System Editor and Config.g to open the main configuration file for our Duet WiFi

8.1) Here’s a few things we should do now:

  1. Machine name
    • By editing the line I’ve marked in blue, starting with M550, you can give the Machine for the Duet WiFi a name of your own. I’ll call it Betrue3D xBot. In order to accomplish using 2 words, I need to write it like this: M550 P”BeTrue3D xBot”
  2. Delete networking settings
    • The lines I’ve marked in a red box should either be deleted entirely, or you can insert a ; in front of each of the lines, which means they are disabled. It can be nice to do this for future reference.
  3. Verify WiFi module on
    • The black box shows the startup setting for our WiFi module. The S1 means it’s turned on automatically.

Once you’ve made your changes you hit Save Changes and you also need to power cycle the board before the Machine Name change takes effect. Notice how fast your Web Gui reconnects.. it’s just a super nice experience 🙂

9) Update Firmware

  • Click on Settings General.
    • In the area I’ve marked up with a blue box, you can see the current firmware. As we found version  2.02RC5 on the Github page for RepRapFirmware it means we can update this.
      • From the olden days we had two different firmware files. One for the Firmware Version and one for the WiFi Server Version. These two have been combined (yay) into one, so we no longer need a seperate file for the firmware of the WiFi Server.
    • In the area in the red box you can see current version of Web Interface which is 1.21.2. This is called DuetWebControl on the firmware page and is of this writing version 1.22.5 meaning we also need to update this.
  • We will start by updating to the newest firmware, which you can do by clicking Upload File(s) button and find the firmware file we downloaded previously, or you can simply drag and drop the firmwarefile onto the same button.
Find the firmware file and just double-click it.
The file now uploads super fast
Just click Yes to start the updating process.
Just wait a bit.

Once the firmware version updates to reflect the new firmware file, the updating process is complete.

10) Update Web Interface

Next up we just do the same for the Web Interface. Just double-click the .zip file and the update starts automatically.

If you’r quick, you can see how the individual files are being updated.

All done!

11) RepRapFirmware Configuration Tool

Next step is to head over to the online RepRapFirmware Configuration Tool and run through the guided setup to configure your machine.

When finishing the wizard it will generate all the necessary files for you, which you then upload to your Duet WiFi.

Note: The changes we made in the config.g will be overwritten

I’ve always used Custom Setup, as all my machine are build by myself, so I can’t really comment on the various templates, but regardless of what you do, you should look at this as a basic setup starting point, as you will need to make some manual changes in various files afterwards.

I might do a writeup on the Configuration tool at a later point, but for now, I’ll just provide the link to you 🙂

RepRapFirmware Configuration Tool

Posted on Leave a comment

Duet WiFi – Intro & Explained

We have previsously gone through the Getting Started and Update Firmware.

In this part, we are going to focus some on the layout of the board for basic setup and usage, but primarily we are going to look into the fundamental differences from how other boards and firmwares are put together.

It took me a while to figure it out. The differneces that is. And not talking about the quality and features, as the Duet WiFi is the undisputed winner on this point at the moment.

What I’m talking about is the differnece in how the approach is made to connect hardware and firmware. It is really obvious once you are pointed towards it, but it’s simply just a new way to approach the setup of firmware when working with RepRapFirmware, than any other firmware (that I know).

At first I was mostly just focused on the usage of Gcodes to setup everything, but that is really just the half of it, or rather, a means to an end.

No Pins, but assigned functions

In all other firmwares we have a lot of pins assigned to different functions. Some are obscured like in Marlin, where the pins’ files are mostly off limit to the normal users, over to Smoothieware, where you directly use the pins to create functions for the controller to use.

When working with RepRapFirmware for Duet WiFi, we are working with Gcodes which we use to specify different setup tasks, where the available options are predefined and non-changeable, like FAN0, Fan1 and Fan2.

Example: To setup a fan from the the FAN0 connector, we first need to know and use the Gcode corresponding to FANs, which is M106. After stating M106 we then use the parameter “P” to define the variable (number) at the end of our FAN. In this case 0.

Note: These are what I called the “predefined non-changeable options” -> 0, 1 and 2. By using the M106 Gcode we have allready stated we are working on setting up one or more fans, and we simply use the parameter “P” to define which fan on the system we want to setup.

So, in order to activate our fan to cool our printed object, we need to put this Gcode into our config file, where M106 starts the setup of fan/s and P0 defines we are settin up FAN0:
M106 P0

We can specify (many) more parameters like temperature (thermostatic) controlled and so on.

All clear then? Ok, maybe not yet, but we’ll go through it one step at a time. I’ve marked up the parts, on the photo of the Duet Wifi, we are going to touch on, in future posts in this series, which is going to be plenty for a basic setup for a Cartesian and CoreXY printer.

Summing up

I hope you found the post usefull. I know I learned a lot while figuring out the differneces of this board and firmware compared to the other models I’ve worked with previously.

I originally wanted to also expand on the actual configuration in this blog-post, but it has been moved to a later post due to time constraints (working hard on my BeTrue3D Printer)

Next post

In the next post, we are going to take a step back before we continue with all the setting up of firmware, and start by wiring up our controller instead, which means we start by taking a look at what’s in the pack when buying Duet WiFi.