Time Machine – A Smart Clock That Does What You Say Using Alexa Voice Service

With a controller and a seven segment display, showing the time is not a so special feature, but when this clock can listen to the user and do what they want, that’s what worth highlighting a “Time Machine”.

Analysing human voice and take action based on that is not so simple. That’s why using a ready made solution is needed.
Intelligent personal assistant (IPA) is a software designed to perform tasks specified by user voice instructions. Alexa from Amazon, Google Now and Siri from Apple are examples of intelligent personal assistant software.

Some IPAs are designed to be integrated within IoT devices and Alexa is one of them. Amazon has an intelligent cloud service that allows developers to voice-enable any connected product only using a microphone and speaker, it’s called Alexa Voice Service (AVS).

Nick Triantafillou in his project, “Time Machine” used AVS to take the voice command.
The project contains Raspberry Pi 3, 1.2″ 4-Digit 7-Segment Display, wireless speaker and a push button switch.

TimeMachine

Nick followed the steps to enable Alexa Voice Service (AVS) for his Raspberry Pi 3 using this tutorial. To make the project more exciting he used IFTTT service so he can make any conditional action using Alexa’s voice orders with IFTTT.

TimeMachineVUI

To see the full instructions and details of getting all hardware to work with Raspberry, please go to the project page on hackster.io.

Nick demonstrates the project in the video below:

Public Release of ESP32 SoC The Big Brother Of ESP8266

It has been about one year since the announcement of ESP32 SoC and the beginning of its beta testing for some developers.

ESP32Leter
A Letter From Espressif Systems Announcing The ESP32 – Source: twitter

Last Month we covered the release of ESP-WROOM-32 module datasheet,  which promised that “New SDK features, tutorials and example applications will be released over the next few months.”.

The ESP-32 datasheet was released at the end of August. So let us discover the details of ESP-32 SoC.

ESP32 Connectivity

ESP32 is a single 2.4 GHz Wi-Fi and Bluetooth combo chip available in QFN48 (6×6 mm) package. The new chip supports 802.11 b/g/n/e/i protocols with a data-rate up to 150Mbps. The previous ESP8266EX SoC supports 802.11 b/g/n only.

The security is enhanced in ESP32 by supporting WPA/WPA2/WPA2-Enterprise/Wi-Fi Protected Setup (WPS), while ESP8266EX supports only WPA and WPA2.

ESP32 features a BT4.2 controller and host stack with Xtensa Dual-Core 32-bit LX6 microprocessors up to 240 MHz. Keep in mind that ESP8266 has single core and lacks a bluetooth transceiver.

ESP32 Peripherals

ESP32 Block Diagram
ESP32 Block Diagram

A lot of peripherals were added and enhanced. Up to 18-channel ADC with 12-bit resolution, two DAC channels with 8-bit resolution, 4 × SPI, 2 × I2S, 3 × UART and 2 × I2C.
ESP32 also features 1 host (SD/eMMC/SDIO), 1 slave (SDIO/SPI), Ethernet MAC interface with dedicated DMA and IEEE 1588 support, CAN 2.0, IR (TX/RX), Motor PWM and LED PWM with up to 16 channels.

Internal Sensors

Hall, 10 × touch and temperature sensors are internally available in ESP32 SoC.

Cryptographic Acceleration Hardware

Cryptographic acceleration hardware is for AES, HASH (SHA-2) library, RSA and ECC with Random Number Generator (RNG).

Memory

ESP32’s internal Memory units are:

  • 448 KBytes ROM for booting and core functions.
  • 520 KBytes on-chip SRAM for data and instruction.
  • 8 KBytes SRAM in RTC, which is called RTC FAST Memory and can be used for data storage and main CPU during RTC Boot from the deep-sleep mode.
  • 1 Kbit of EFUSE, of which 256 bits are used for the system (MAC address and chip configuration) and the remaining 768 bits are reserved for customer applications.

ESP32 runs user application from external memory just like ESP8266EX. ESP32 supports 4 x 16 MBytes of external QSPI Flash, while ESP8266EX supports up to 16 MBytes only. Could we have in the future a version of ESP32 with an internal ROM for user application like ESP8285 (the ESP8266 with internal ROM version) ?

Price And Development Tools

You can order ESP-32 SoC -the chip only not a module- for about 2.9$/unit from the Espressif store on Taobao.

Ai-Thinker, one of the third-party manufacturers of ESP modules, introduces ESP-3212 module on their Taobao store.

ESP3212

The demo board is currently for some beta users, and not yet officially available for public.

 

ESP32 Demo board - Image courtesy Ady
ESP32 Demo board – Image courtesy Ady

Further Reading

DataSheet
ESP32 Resources
ESP32 Forum
ESP32 SDK User Guide

LTC Design Note: Dual 9A, step-down μModule regulator with digital power system management

CHjKLDLWcAAwD7h

Jian Li, Yingyi Yan and Marvin Macairan have published a Design Note based on LTM4675 dual DC/DC regulator.

The LTM4675 is a dual 9A or single 18A step-down μModule (micromodule) DC/DC regulator featuring remote configurability and telemetry monitoring of power system management (PSM) parameters over PMBus—an open standard I2C-based digital interface protocol. Its 16mm × 11.9mm × 3.51mm BGA package includes analog control loops, precision mixed-signal circuitry, EEPROM, power MOSFETs, inductors, and supporting components. It features a wide 4.5V to 17V input voltage range, and a 0.5V to 5.5V output voltage range with ±0.5% DC accuracy over temperature. LTM4675’s power outputs can be digitally adjusted, margined, and powered up/down at programmable slew rates and sequencing delay times. Maximum turn-on time is 70ms. Telemetry read back parameters include VIN, IIN, VOUT, IOUT, temperature, running peak values, uptime, faults, and warnings. Current read back accuracy is ±2.5% at 9A load over temperature.

LTC Design Note: Dual 9A, step-down μModule regulator with digital power system management – [Link]

Tracespace Online Gerber Viewer (beta)

nixie

This particular PCB viewer takes your Gerber and drill files and gives you individual layer renders as well as very fancy renders of what your completed boards are going to look like.

The tracespace viewer accomplishes all this locally (nothing gets sent to any server!) by converting your files to SVGs. Thanks to the “Scalable” and “Vector” in “SVG”, the renders are easy to examine and quite accurate.

Tracespace Online Gerber Viewer (beta) – [Link]

How to Build a Class-D Power Amp

Thumbnail

Cezar Chirila @ allaboutcircuits.com shows how to build a Class-D amplifier which has amazing efficiency.

What is a Class-D audio power amplifier? The answer could be just a sentence long: It is a switching amplifier. But in order to fully understand how one works, I need to teach you all its nooks and crannies.

How to Build a Class-D Power Amp – [Link]

Exploring Eagle CAD ULPs #1 – PickUp.ULP Select Components Both in Schematic And Layout

EagleUlpSeries

Welcome to the first post of the “Exploring Eagle CAD ULPs” series. Every week we will publish a new post about one useful ULPs in Eagle CAD.
“ULP” User Language Program is a plain text file which is written in a C­-like syntax and can be used to access the EAGLE data structures and to create a wide variety of output files, you can consider it like a plug-in for Eagle.

You can reach the posts published in this series using the following link.

ULPSerPost

When we work on schematic design, we always add parts here and there, adding a missed capacitor for a power pin of a regulator or a missed resistor for a data line and so on.
When we will generate the board file to start routing, we will find the parts scattered in the board.

The first rule in placing and routing in PCBs is to place connected components near to each other, but in the raw board file you will find every component located in a different place according to the order of adding them in the schematic.

This becomes very annoying in big designs. You need to gather the connected components manually, you will using MOVE tool for that. For example, to gather the components C9, C11, Y1 and R1 of a crystal connected to the MCU, you should run the following commands in the layout editor:

MOVE C9;
MOVE C11;
MOVE Y1;
MOVE R1;

Some MCUs have up to 50 capacitors and resistors or more connected to them, so obviously gathering components manually is not the way.

Personally I was doing the gathering process manually until the day I told myself, SHOW tool can highlight the component or components (by selecting them using ctrl+SHOW tool) both in schematic and PCB editor, you should find a similar way.

When I googled about the problem I found an ULP (made by lorenznl) in a response of one of Element14 forum discussions “How can I select components booth in schematic and layout at the same time?”, it was exactly what I was looking forward.

To use this ULP, you must select a group of components using GROUP tool then run “PickUp.ULP” from the schematic editor. Now when you will go to the layout editor, you will find the components you grouped them in the schematic editor movable as a group in the layout editor.

The below GIF demonstrates how this ULP works.

PickUpULP

 

You can download the ULP from here: PickUp_ulp

See you in next post in this series with another useful ULP.

 

kitnic.it – Share your board and Order parts with one click

kitnic

Kaspar tipped us with his nice website which allows you to download Gerbers of a board and order associated parts with one click. Currently supporting: Mouser, Digikey, RS, Newark and Farnell.

Kitnic is a registry of open hardware electronics projects that are ready for you to order and build. Click on any project to get further info, download the Gerbers and see the bill of materials. To quickly purchase the parts from various retailers you should install the 1-click BOM extension.

You can register your board today and get your board manufactured. The first 20 projects that register get vouchers with Dangerous Prototypes’ PCB service. Currently there are 15/20 left.

To register, follow these instructions: https://github.com/monostable/kitnic/blob/master/README.md#submitting-your-project

kitnic.it – Share your board and Order parts with one click – [Link]

Matrix driver IC supports up to 192 LEDs

2016-09-01-eete-jh-issi

Integrated Silicon Solution has released a family of high performance LED drivers, IS31FL3733, IS31FL3736 and IS31FL3737 to support LED matrices consisting of 192, 96 and 144 LEDs respectively. By Julien Happich @ edn-europe.com

ISSI’s LED matrix architecture provides designers with flexibility in controlling individual LEDs or an array of LEDs resulting in simplified color adjustment and lighting zone selection for a large array of LEDs.

Matrix driver IC supports up to 192 LEDs – [Link]

60V-input battery charger; Pb-acid & Li-ion charge algorithms up to 20A

160901edne-linear4013
LTC4013 is a highly integrated, high voltage multi-chemistry synchronous step-down battery charger controller. With a wide input voltage range that spans up to 60V, the LTC4013 uses temperature-compensated 3- and 4-stage charge algorithms to efficiently charge 12V and 24V lead-acid batteries. By Graham Prophet @ edn-europe.com

Alternatively, the LTC4013 will charge a multicell Lithium-based battery stack with float voltages near to the input supply. Mode pins define the float voltage and charge algorithm. Charge current is precision regulated to ±5% and programmable with a single resistor up to 20A (depending on the selection of external components). The LTC4013 features user-adjustable maximum power point tracking (MPPT) circuitry that enables simple power optimization in the case of power-limited sources such as solar panels. The MPPT open-circuit method corrects for panel temperature changes without the inconvenience of adding a solar panel temperature sensor. Applications include portable medical instruments, monitoring equipment, battery backup systems, industrial handhelds, industrial lighting, military equipment, ruggedized notebooks/tablet computers, plus remote powered communication and telemetry systems.

60V-input battery charger; Pb-acid & Li-ion charge algorithms up to 20A – [Link]

Lithium ion batteries that work best at 95°C

20160822142526_li-ion-solide

Numerous laboratories are working towards reducing or eliminating the accidental risks of Li ion batteries by working on solid electrolytes. Researchers at ETH at Zurich are developing unique solid materials which even when brought to high temperatures will not ignite. by Denis Meyer @ elektormagazine.com:

This represents a double advancement over current Li ion batteries which contain inflammable gel electrolytes, because not only does the fire risk disappear, but constraints over form-factor are also much less.

Lithium ion batteries that work best at 95°C – [Link]