Blog

Silent Stepper Brick

Today we want to write about the long story of development of the Silent Stepper Brick. Our current Stepper Brick generates, like most stepper drivers, audible high-pitched noises when a motor is driven. The reason for these noises lays in the motor inductance together with the current control. In full step mode the noise is usually louder then if the motor is driven in micro-step mode (1/4, 1/8, …). Since there are applications in which this audible high-pitched noise is undesirable, we decided to work on a quieter alternative. The Silent Stepper Brick

Development part 1

https://www.tinkerforge.com/static/img/_stuff/silent_stepper.jpg

The size of the Silent Stepper Brick is pre-determined as 4x4cm. If you exclude the space for the board-to-board connectors, the Bricklet connectors and the microcontroller, it is clear that we can only use an integrated driver solution. The TMC2100 is a integrated driver IC that supports different kinds of current control and a silent mode (Stealth Chop). The driver supports a maximum phase current of 1.2A and up to 256 micro steps. Thus stepper motors can be spun precisely and the maximum current fits to the stepper motors that we have in our shop.

We started the development of a first prototype with a TMC2100 driver IC. We found out that the prototype had problems with high motor speeds: The torque would suddenly collapse and the motor could stop abruptly. After a long search we found two reasons for this:

  1. Our layout of the prototype wasn’t optimal, so we had to develop a new one.

  2. Stepper motors have a resonance frequency. If the motor spins at the right frequency it can become unstable. Usually it is easiest to just accelerate quickly trough this frequency. Since we had the additional problems with the layout, we first didn’t realize that we just found a normal behavior and there was no other design error.

After we overcame these problems and were nearly done with the development, there was a price adjustment: Beside the TMC2100 there is also the TMC2130. This driver has many more settings to play around with and additional exciting features. When we started the development the TMC2130 was significantly more expensive then the 2100, so we decided to use the simpler TMC2100. Now suddenly both drivers had nearly the same price, thus we decided to use the TMC2130. We had basically had to start with the development from scratch…

The TMC2100 has a simple interface. It is configurable over a few pins, which results in few settings. The TMC2130 on the other hand has a SPI interface and quite a number of different adjustment possibilities. We had to start the software from scratch and learn about all of the different settings. Since we already had a Stepper Brick the new Silent Stepper Brick did not have the highest priority, so this whole back and force did take a lot of time. The TMC2130 does have a internal clock that is used for the current control etc. The internal clock is however quite inaccurate and the accuracy is highly temperature dependent. In tests we found that the behavior of the driver changed slightly with changing temperatures, which we found unacceptable. We could of course easily provide a precise clock signal with our main processor, but we had to make yet another prototype for this!

EMC Laboratory

During the development of our products we routinely check for electromagnetic compliance. Since the design and the software has a big influence on this, we can only do the tests at the end of the development phase. Clock signals, high frequency buses etc have big influence.

We often visit a professional EMC Laboratory, but since these measurements can be quite expensive as well as time intensive, we now set up our own small EMC pre-compliance testing laboratory.

https://www.tinkerforge.com/static/img/_stuff/laboratory1.jpghttps://www.tinkerforge.com/static/img/_stuff/laboratory2.jpg

We use a Rigol DSA815 spectrum analyzer, a TEM cell and a big metal case to shield the device under test. With this set up we can’t guarantee the same measurement precision as a real EMC laboratory. However, we can usually still find out if a device exceeds the regulatory radiation limits. This way we can find EMC problems oftentimes before we do the real tests in a EMC laboratory.

A spectrum analyzer shows the amplitude for a specified band of frequencies, i.e. the strength of the electromagnetic radiation for individual frequencies. Without any shielding you will measure radio stations, gsm networks etc additionally to your device under test. Thus it is important that we try to shield the whole device during the testing as best as possible.

If a trace on the circuit board carries a signal with a specific frequency, you may find multiples of this frequency with the spectrum analyzer. The following photo shows the multiples of the Frequency 12.8 MHz.

https://www.tinkerforge.com/static/img/_stuff/spectrum_peak.jpg

If you don’t immediately now which part of the circuit might create this frequency, you can use so called near-field probes. These can be used to measure the radiation locally, even down to a single trace or a single pin of a IC.

The interference can have different reasons. It can be a bad layout, steep signal edges, problems with grounding etc. Sometimes it is possible to reduce the radiation with a simple change of a part value (for example a different resistance for a series resistor in a signal path). Often there is no easy fix and the layout has to be revised.

Development part 2

Unfortunately we didn’t write about our measurements of electromagnetic interference without reason. We finished the development of the Silent Stepper Brick in time to be able to produce them this year. As a last step we wanted to do some EMC measurements. We used our own small laboratory for a first test and the measurement results were underwhelming to say the least.

We could easily see the multiples of the clock signal that we connected from the processor to the TMC2130 (see image above). The peaks seem to be barely below the limit, but the risk to go to the EMC laboratory with the board was just too high.

We did already have a series resistor in the trace of the clock line to be able to control the slew rate (edge steepness) of the signal. Unfortunately we were not able to find any resistor value that would significantly decrease the radiation problems. Thus we had to order another prototype. Each prototype will cost about two weeks of time with an additional 1/2 - 1 day time investment to actually build the prototype (including finding and removing solder errors etc).

With the new prototype we wanted to be on the safe side, so we ordered two variants: one with a better clock signal routing and more filter possibilities and one with a completely modified ground layer layout. During the tests of the new prototypes we found out that the new ground layer idea did not help (in fact the results were worse). Fortunately the additional filtering on the other prototype did the trick! We could now be very sure that we would satisfy the regulatory electromagnetic radiation limits.

In sum we made 8 prototypes during the development process of the Silent Stepper Brick:

https://www.tinkerforge.com/static/img/_stuff/silent_stepper_brick_8_prototypes.jpg

What now?

The circuit boards will be ordered next week. Because of Christmas and New Year the delivery will take longer then normal, but we are pretty sure that you will be able to buy Silent Stepper Bricks in the beginning of march. You can look forward for a nice comparison video of the new and old Stepper Brick.

WIFI Extension Firmware 2.0.1

Firmware Version 2.0.1 for the WIFI Extension 2.0 is now available.

The new firmware of the WIFI Extension has now a web interface. You can use it to check the state of the WIFI Extension and to set the configuration (similar to Brick Viewer).

https://www.tinkerforge.com/de/doc/_images/Extensions/extension_wifi2_web_interface_status.jpghttps://www.tinkerforge.com/de/doc/_images/Extensions/extension_wifi2_web_interface_settings.jpg

Additionally there are small bug fixes. In firmware version 2.0.0 you couldn’t use Access Point mode together with static IP, this is fixed now.

The next firmware version of the WIFI Extension will have mesh-network functionality, so stay tuned!

LED Strip Bricklet now with support for RGBW, LPD8806 and APA102

We just released the new firmware version 2.0.6 for the LED Strip Bricklet. When we started with the Bricklet, it only supported WS2801 LEDs. More LEDs were added over time and now we added three more.

https://www.tinkerforge.com/static/img/_stuff/led_strip_bricklet_11_785.jpg

The LED Strip Bricklet now supports

  • WS2801,

  • WS2811,

  • WS2812/SK6812/WS2813 (NeoPixel RGB),

  • SK6812RGBW (NeoPixel RGBW),

  • LPD8806 and

  • APA102 (DotStar).

Especially interesting are the new NeoPixel RGBW and DotStar LEDs. The former has an additional individually controllable white LED and the latter are available with an additional intensity channel or as completely white strips with 24 bit resolution per LED.

Additionally we added more API to make it easier to handle LED strips from different manufacturers. Since the order of the LEDs inside of a package is not standardized, some LEDs are controlled in the order RGB, others are BGR or even different. You can now define the order of the LEDs of your strip with the set_channel_mapping function. After the channel mapping is set correctly the LEDs are always in the sequence RGB or RGBW.

https://www.tinkerforge.com/de/doc/_images/Bricklets/bricklet_led_strip_w_reel_600.jpg

Two new Bricklets: CAN and RGB LED

We have two new Bricklets available: The CAN Bricklet and the RGB LED Bricklet.

https://www.tinkerforge.com/en/doc/_images/Bricklets/bricklet_can_tilted_600.jpg

With the CAN Bricklet you can send and receive frames on a CAN bus. A CAN bus is often used in cars as well as industrial sensors and other industrial parts. We are planning to offer a tutorial on how to use the CAN Bricklet with CANopen soon. The Bricklet has a configurable baudrate between 10kbit/s and 1Mbit/s. It is possible to apply filters to match for frames with a specific identifier.

The CAN Bricklet is available for 19.99€ including VAT.

https://www.tinkerforge.com/en/doc/_images/Bricklets/bricklet_rgb_led_tilted_600.jpg

The RGB LED Bricklet is equipped with a single controllable RGB LED. Each color channel (red, green, blue) has a resolution of 8 bit.

During the design phase of the RGB LED Bricklet we made a rather embarrassing mistake. We tried to fit the LED on Bricklet with a width of 15mm. It didn’t fit, so we had to make it wider. We accidentally ended up ordering the PCBs with a width of 17.5mm, which does not fit in our standard 5mm grid that we use for all Bricks and Bricklets. We will add another 2.5mm in hardware version 1.1. In the meantime the RGB LED Bricklet with hardware version 1.0 is available for half the price (3.49€ instead of 6.99€).

We only have 250pcs with hardware version 1.0 in stock, so we expect that hardware version 1.1 with the correct hole spacing will be available soon!

Brick Daemon Beta for Windows 10 IoT Core (Part 1/2)

A while ago Microsoft released Windows 10 IoT Core that can run on different embedded boards, such as the Raspberry Pi. The normal Brick Daemon for Windows does not work on Windows 10 IoT Core. But now we have a beta version of Brick Daemon that works on Windows 10 IoT Core.

Installation

This version of Brick Daemon has been tested on a Raspberry Pi 2 Model B with the Windows 10 IoT Core versions 10.0.10586, 10.0.14295 and 10.0.14376.

At the moment Brick Daemon for Windows 10 IoT Core can only be installed from source code. If you don’t have Visual Studio 2015 for Windows 10 IoT development installed yet then you can follow Microsoft’s Getting Started guide to install it.

Now you can download and unpack the required Brick Daemon and daemonlib source code from GitHub. The daemonlib source code has to be unpacked to src\daemonlib directory in the Brick Daemon source code directory:

brickd-2.2.2-uwp-beta1
-> src
   -> brickd
      -> client.c
      -> ...
   -> daemonlib
      -> daemon.c
      -> ...

Now open src\brickd\brickd_uwp.sln in Visual Studio 2015 and compile and run the project. You should now see a running Brick Daemon app.

https://www.tinkerforge.com/static/img/_stuff/brickd_uwp_beta1_700.jpg

It’s a beta!

This is a beta version because there is currently one major issue: USB device auto-detection doesn’t work properly for all Bricks.

The Windows.Devices API to access USB devices requires that every USB device has a DeviceInterfaceGUID assigned. Normally this would just work out-of-the box with all Bricks, but Windows 10 IoT Core (at least versions 10.0.10586, 10.0.14295 and 10.0.14376) seem to have a bug that breaks this for all Bricks except the RED Brick. It’s unclear why the RED Brick is not affected by this problem.

Becasue of this all Bricks except the RED Brick need a manual change in the Windows Registry to make the Windows.Devices API accept them. Here’s what you need to once do for every Brick:

Connect the Brick to USB first, then connect to Windows 10 IoT Core using Power Shell and modify and execute the following command:

reg add "HKLM\System\CurrentControlSet\Enum\USB\VID_16D0&PID_063D\6K9mW5\Device Parameters" /v DeviceInterfaceGUIDs /t REG_MULTI_SZ /d "{870013DD-FB1D-4BD7-A96C-1F0B7D31AF41}"

This adds the missing DeviceInterfaceGUID for a Brick with UID 6K9mW5. To add the DeviceInterfaceGUID for your Brick replace 6K9mW5 with the UID of your Brick in the command.

Afterwards you need to reset the Brick. Now Brick Daemon should find it. But sometimes the reg add command hangs for some unknown reason. If this happens restart Windows 10 IoT Core and try again.

There is a thread in our forum for your feedback.

The second part will discuss the technical details and challenges of porting Brick Daemon to Windows 10 IoT Core.