Blog

New Bricklets February 2018 part 2: Outdoor Weather Bricklet and more

In the last blog entry we introduced the new Remote Switch Bricklet 2.0, Motion Detector Bricklet 2.0, Analog In Bricklet 3.0 and NFC Bricklet.

In todays part we want to present the Outdoor Weather, Temperature IR Bricklet 2.0, Rotary Encoder Bricklet 2.0 and the Solid State Bricklet 2.0.

As mentioned in the previous blog entry, all of the new Bricklets have a 7 pole Bricklet connector.

Outdoor Weather Bricklet

In the past we discovered that it is pretty hard to make a water proof enclosure that can be used for environment measurements with Bricks and Bricklets. To circumvent this problem we now offer the Outdoor Weather Bricklet. The Bricklet serves as a receiver for the Outdoor Weather Station WS-6147 and the Temperature/Humidity Sensor TH-6148.

With a 433MHz receiver the Bricklet is able to receive measurements from up to 255 outdoor weather stations as well as up to 255 sensors. Every sensor gets a unique ID at the first startup that can be used to match measurements to specific sensors/stations.

The Outdoor Weather Station WS-6147 is easy to build up and it measures temperature, wind speed, wind direction, rain as well as humidity. The measurments are transferred wirelesly with a frequency of 45 seconds. Additionally we add the Temperature/Humidity Sensor TH-6148 to our product line. The sensor measures temperature in °C as well as humidity in %RH.

The Outdoor Weather Brickelt in combination with the Outdoor Weather Station or the Temperature/Humidity Sensor is the perfect solution to add outdoor weather data to  the Starter Kit: Weather Station.


Temperature IR, Solid State Relay und Rotary Encoder Bricklet 2.0

The Temperature IR Bricklet, Solid State Relay Bricklet and Rotary Encoder Bricklet got an update to hardware version 2.0. All of the three Bricklets have a user configurable status LED as well as the new 7 pole connector. The Temperature IR Bricklet 2.0 and the Rotary Encoder Bricklet 2.0 additionally got the new and improved callback API. With the utilization of a co-processor we were able to increase the sampling rate of the Rotary Encoder. It is now practically impossible to ever loose any steps.

The technical specification of the three Bricklets stays essentially the same. The Temperature IR Bricklet 2.0 contactlessly measures temperature in the range of -70°C up to 380°C, the Solid State Relay Bricklet 2.0 can switch solid state relays with up to 380V/25A AC or 50V/80A DC and the Rotary Encoder Bricklet 2.0 is rotatable by 360° and it has 24 single steps in sum.

Outdoor Weather Station, new NFC Bricklet and product updates

It is time again to introduce new Bricklets! Since yesterday we got eight new Bricklets in our shop. Some of them are improved versions of existing Bricklets, but we also released some completely new developed Bricklets.

The following Bricklets are new in our product range:

To be able to introduce all eight new Bricklets in detail we will start with four in this blog entry and introduce the next four in a second part. In the first part we will introduce Remote Switch 2.0, Motion Detector 2.0, Analog In 3.0 and NFC Bricklet. The second part will deal with Temperature IR 2.0, Rotary Encoder 2.0, Solid State Relay 2.0 and the new Outdoor Weather Bricklet.

As we already wrote, the new Bricklets will replace the old counterparts. All of the new Bricklets have a co-processor and thus a 7-pole connector, as we already announced in the Outlook for 2017.

Since we have some of the predecessors still in stock, we will sell them off with a discount of 30%. Of course only as long the the stocks last!

Remote Switch Bricklet 2.0

The Remote Switch Bricklet 2.0 will replace the old Remote Switch Bricklet. The new Bricklet has all of the features that the old Bricklet has. You can still use it for home automation and it come with a 433MHz radio module including a corresponding SMA antenna. You can use the Bricklet together with the standard (PT2262 or HX2262) remote mains switches, as the predecessor. Additionally the new Remote Switch Bricklet 2.0 can now also receive data from a remote!

Motion Detector Bricklet 2.0

The Motion Detector Bricklet will be replaced by the Motion Detector Bricklet 2.0. The new Bricklet has many improvements. We don't use a ready-made module anymore, instead we developed our own PIR solution. The Bricklet is more compact and it has a detection angle of 120°, compared to 100° of the old Bricklet. The PIR sensitivity of the new bricklet can be controlled via API. So you can change the detection range depending on your application. A special gimmick of the Bricklet is the blue backlight. The backlight is dimmable and can be controlled via the API (for example during a motion detection). Since the backlight consists of three individually dimmable LEDs, you can also use it to show small animations!

Backlight in action:

Analog In Bricklet 3.0

The Analog In Bricklet 3.0 replaces the Analog In Bricklet 2.0. The specification is comparable to the predecessor, but it has the advantage that the analogue signal is measured directly on the Bricklet, it is not transferred through the Bricklet cable anymore. The voltage measurement is done on the Bricklet by the processor and the measurement is transferred digitally. Additionally the API more averaging possibilities.

NFC Bricklet

The successor of the NFC/RFID Bricklet has the name NFC Bricklet. For the old Bricklet we put "RFID" in the name, since technically the 13.56MHz NFC frequency is part of RFID. Unfortunately some customers falsely believed that the Bricklet is also compatible to the 125-134kHz RFID frequency. To make sure that there can't be any confusion we just removed "RFID" from the name. Because of that the Bricklet does not need the "2.0" at the end.

Like the old Bricklet, the new Bricklet can read and write NFC Forum Type 1 and 2 as well as Mifare Classic tags. Additionally it supports NFC Forum Type 3 and 4 including the necessary encryption. It also supports NFC P2P as well as card emulation. The API now has support for reading and writing NDEF directly. In sum the new features are a huge improvement and it is easier to use too.

While i am writing this blog entry we have already sold 41 of the new NFC Bricklets (they are available in the shop since yesterday) although there has not yet been any announcement. So this Bricklet obviously attracts a large interest! We are very sorry for the long waiting time. The transition from the old NFC/RFID Bricklet to the new Bricklet unfortunatly took way longer then we expected.

Brick Firmware Update

We just released new Brick firmwares that fix three important bugs:

  • Fix RS485 timing bug. This is a very old bug that we were not able to figure out for many years. Bricklets that use I2C (for example Temperature Bricklet) would somtimes give false values every few 1000 messages if RS485 was used. This was caused by a mix of I2C/RS485 timing constraints. We now use DMA for I2C Messages to fix this.
  • The handling of the initial enumeration (the enumerate callback with enumeration type = CONNECTED) has been completely reworked. Double enumerations don't happen anymore and the enumeration also works if a USB cable is connected to an already powered stack. This also fixes some other strange behavior. For example: In a RS485 network, if you restarted the RS485 master stack you had to restart the slave stacks as well, otherwise they wouldn't enumerate again. With the update the RS485 slaves will automatically re-enumerate if the RS485 master re-enumerates itself.
  • We will now never do a real hard reset if triggered by USB. USB has reset/suspend/resume messages that triggered a hardware reset (internal messages). There are several possibilities, when a PC can trigger these messages. For example on startup or when the USB hardware detects EMI. So far the Brick firmware simply resets the hardware. With the new firmwares the USB state machine will be properly resetted (as requested by the PC), but everything else will keep on running. So the Bricks/Bricklets will not loose state and for example a stepper motor will keep running until the request is fully processed. From the PC perspective the Brick will disconnect and immediately connect again. A new initial enumeration will be send. If you have problems with unwanted resets (for example if a relay switches an inductive load) this will probably fix this issue! The PC will still reset the USB, but from the user perspective everything will keep running and working, no lost messages or similar.

Especially the last one (relay switching resulting in stack resets) is a problem that we have heard sometimes, but we where never able to reproduce that. A few weeks ago we finally were able to create a setup here where we could reliably reproduce this problem. After many hours of debugging it turned out that the problem is that the PC registeres an EMI event through the USB cable and as a result tells the Brick to reset itself (on Linux this happens if you get the dmesg message "disabled by hub (EMI?), re-enabling ..."). This reset will now not result in a real hardware reset anymore and everything will just keep running even if your USB hub does a reset.

To fix this we had to restructure a lot of code, we used this restructering to improve the hotplug/enumeration functionality a lot.

You can update your Bricks through Brick Viewer.

New Bricklets Part 3 - RGB LED Matrix Bricklet and Thermal Imaging Bricklet

Today we want to introduce the last two of our new Bricklets: The RGB LED Matrix Bricklet and the Thermal Imaging Bricklet.

The blog entries for the other Bricklets can be found here:

RGB LED Matrix Bricklet

The RGB LED Matrix Bricklet is equipped with 8x8=64 WS2812B RGB LEDs. Each RGB LED has three single LEDs (red, green and blue) that can each be controlled with a 8-bit value. The API allows for a control rate of up to 120Hz. If you turn all of the LEDs to their maximum intensity, the power supply needs 5V with at least 4A. You can find an appropriate power supply in our shop.

Thermal Imaging Bricklet

(Longer Video at Youtube: https://www.youtube.com/watch?v=xb44krsgmaM)

The Thermal Imaging Bricklet is our new favorite Bricklet. It is equipped with a 80x60 pixel thermal imaging camera. The camera does have a radiometry function, i.e. you can read actual temperatures with the camera. To do this the Bricklet has a so called "Temperature Image Mode". In this mode each pixel corresponds to one temperature measurement. The temperatures have 16-bit resolution and a measurement range of -273°C-381°C or  -273°C-6279°C. The resolution is 0.01°C for the small range and 0.1°C for the bigger range. There temperature measurements can be used for monitoring (predictive maintenance etc). Alternatively the Bricklet has the a "High Contrast Image Mode". In this mode the camera calculates temperature distributions (cluster) und divides the measured temperatures into 256 cluster. For each pixel you get the cluster number. To make an image out of this data you can use a function that gives each cluster a color. A typical thermal imaging camera uses a mapping that has black/blue colors for cold temperatures and red/yellow/white colors for hot temperatures. You can see an example of this in the video above. The Brick Viewer offers different mappings.

This means that there are no temperature information anymore in the High Contrast Image. Because of this you can also define a spotmeter. The spotmeter provides a maximum, minimum and average temperature value of a user definable image region. All of this settings can be controlled through the API. You can find more information about tempertures, image modes, spotmeter etc in the API documentation.

Since the Bricklet can be used like any other Bricklet in the system of building blocks, you can use it as a USB thermal imaging camera. Together with the WIFI Extension or the Ethernet Extension you can also easily build your own network capable thermal imaging camera. We are excited to see what kind of thermal imaging projects our customers will come up with!

New Bricklets Part 2 - Motorized Linear Poti Bricklet and RGB LED Button Bricklet

Today we want to introduce two more of the new Bricklets: The Motorized Linear Poti Bricklet and the RGB LED Button Bricklet.

In the last blog entry we introduced the DMX Bricklet and the Humidity Bricklet 2.0. You can find it here.

Motorized Linear Poti Bricklet

Compared to the Linear Poti Bricklet, the Motorized Linear Poti Bricklet has a 100mm potentiometer that can not only be moved by hand but also with an integrated motor. Depending on the position of the silider the potentiometer gives values between 0 and 100. The API can be used to cause different behavior depending on the use case. It is possible to tell the potentiometer to retain a specific set-point (this can be manually overdriven). If it is not configured to hold a position, the Bricklet will only drive to the set-point once and after that the user can control the position again. The Bricklet is designed in a way that allows to use several of them next to each other with mimum space requirements. You can use the two inside threads of the potentiometer for mounting to the top of a panel or the mounting holes of the Bricklet to mount at the bottom.

RGB LED Button Bricklet

The RGB LED Button Bricklet is a big button with integrated RGB LED. The cap of the button can opened and an inlay can be inserted. The inlay can either be a printed foil or even a simple piece of printed white paper. Each color channel (red, green, blue) can be controlled with 8-bit resolution. This means that any color can be shown and the brightness is also controllable. As always you can use callbacks to react to changes of the button.