Bangle.js: the hackable Smart Watch

While Python currently sits atop the throne of the most popular programming language in the world, languages like javascript have been creeping around the throne with different frameworks and APIs that have taken the language beyond use of web development. This was evident in Espruino as it opened up the doors to the use of javascript in programming microcontrollers. The success of Espruino has enabled the development of several great projects one of which is the Bangle.js smartwatch which was announced at the NodeConf EU conference earlier this month.

Bangle.js is the first hackable open source JS and TensorFlow-driven smartwatch. NodeConf EU 2019. Kilkenny, Ireland. November 2019. Photo by Nico Kaiser

The smartwatch is a product of NearForm trying to top their previous NodeConfEU badges and was developed by the NearForm Research team in partnership with Gordon Williams.

Not just your ordinary smartwatch, Bangle.js runs the recently release TensorFlow Lite for microcontrollers which means users can not only develop javascript applications, but they can also develop ML-based applications for the watch. This comes in really handy as the goal, as described by NearForm, is to see things snowball into a community-driven Open Health Platform through which people can build their own health apps ( to run on the watch) and stay in control of their health data.

At the core of Bangle.js is the Nordic Semi Nordic Semiconductor NRF52832 SoC using the Bluetooth LE 4.2 Technology and a 32mbit flash. The device comes with an array of sensors including; a KX023 accelerometer, a single 3 axis compass, a BD 1668 heart rate monitor, and 2 zones on/off Holtek touch controller.  The display is made up of 240×240 Colour LCD, GPS is included using the U-box UBX-M8130 and three buttons are added for control with a buzzer for sound notification.

The Evolution of Bangle.js – Espruino conference badges of 2017, 2018 and 2019 at NodeConf EU 2019.

Some of the hardware specifications of the device are provided below;

  • IP68 Waterproof: up to 10m underwater
  • Nordic 64MHz nRF52832 ARM Cortex-M4 processor with Bluetooth LE
  • 64kB RAM 512kB on-chip flash, 4MB external flash
  • 1.3 inch 240×240 16 bit LCD with 2 zone touch
  • GPS/Glonass receiver (UBlox)
  • Heart rate monitor
  • 3 Axis Accelerometer (with Pedometer and Tap detect)
  • 3 Axis Magnetometer
  • Piezo speaker and Vibration motor
  • 350mAh battery, 1 week standby time
  • 5 x 5 x 1.7 cm case, plastic with stainless steel ring
  • Can be disassembled with just 4 screws

Quite a lot of work has been done on the software. Some of the features currently available include;

To showcase the Machine Learning capabilities of the device, the demo during the NodeConf EU was a gesture-controlled based app that, through the help of the tensor flow lite,  transformed the watch into an HID device for controlling presentation slides.

The Smartwatch is fully programmable and the limits of its ability are defined by your imagination. The smartwatch uses the Open Source (MPLv2) Espruino JavaScript interpreter and it comes with an App Loader to which makes it easy for developers to upload JavaScript-based apps to the device via WEB Bluetooth.

The project is fully Open Source, as such, all the source code,  example apps, tools, and documentation are provided under an Open Source license on the project’s GitHub page.

A Kickstarter campaign has been launched for the project and it has already exceeded its goal with a pledge of $96,090 by 990 backers, with 5 days till the end of the campaign.

More information about Bangle.js is available on the announcement post by Nearform

Free Elektor Article: 0-30V Lead-acid Battery Activator

A well-known electronics store has been selling a very simple lead-acid battery activator for many years. Although I can’t prove it, my lead-acid batteries do seem to last longer since I started using the activator. The principle behind this circuit is very simple. The battery is loaded with a current of about 100 A for a period of 100 µs, which is repeated every 30 seconds. But my circuit is capable of more, which is discussed at length in article from 2017.

  • Original publication: Elektor Magazine no. 3 / 2017 (March & April), p. 120 – 127.
  • Author: Jan Lichtenbelt.
  • Free download expires: Friday 29 November, 2019.

Free Elektor Article: 0-30V Lead-acid Battery Activator – [Link]

HyperDisk: Pocket-sized & High-speed Portable SSD [Attention: SCAM reported]

Physical storage drives have not changed a lot over the years. They have improved in terms of storage capacity and technology but they are definitely still a bit bulky (compared with how small things are becoming) and relatively slow. To offer an improvement to what is currently in the market, GrowthLabs recently announced the launch of a crowdfunding campaign for their Storage Drive device called; HyperDisk.

The HyperDisk

Hyperdisk was designed to become the best backup/storage solution in the market, with super-fast transfer speed, universal compatibility, compact size, and lightweight design. Weighing only 45g and with super slim dimensions of 73.9mm42.8mm10.9mm, the Hyperdisk breaks people’s cognition of heavy and cumbersome SSDs.

While Performance may vary due to variation in the configuration of the host device, Hyperdisk is able to reach a read/write speed of nearly 1000 MB/s when used with a host device and connection cables that support Thunderbolt™,  meaning with the right system configuration, it will take Hyperdrive only 20-22s to copy a 20GB file that will take an ordinary USB memory stick 25mins!

Speed Comparison with similar devices

This super speed is achieved thanks to HyperDisk’s the M.2 NVMe on which it is based along with other features. the M.2NVMe performs virtually 2x faster than SATA SSDs and 10x faster than traditional HDDs. Also, the core and its Intel flash are tightly closed and protected by its shell which offers reasonable protection against shock and vibration, ensuring that the Hydisk runs with a low failure rate and with zero noise.  Besides, the shell is coated with waving aluminum alloy and touched with frosted feel, offering you a sense of the future, and contributing to the effective temperature management system that helps guarantee its perfect performance — around 60℃ in operating and 30℃ in static storage.

Compatible with a Wide Range of Devices

HyperDisk comes with a USB 3.1 Gen 2 USB interface and it is compatible with all Mac and Windows computers, along with Android smartphones and pads that support the Type C OTG or connection via the use of an adapter to convert the USB type to the one supported by the device.

To allow it meet the need of different people, HyperDisk comes with different capacity including 512GB/1TB/2TB, so either your need is an external storage for your phone or computer or you need a storage device for photography or Video, the Hyperdisk has something for you.

Some of the key features of the Hyperdisk in bullet points include;

  • Up to 1,000MB/s read and write
  • 45g only, and smaller than a credit card
  • Intel flash
  • 512GB/1TB/2TB size option available.
  • 3.1 Gen 2 interface (10 Gbps) and M.2 NVMe
  • Compatible with iPad, Mac and Windows computers, Android devices
  •  Change for new within 1 year and 3-year warranty

To increase confidence in the product, HypersDisk currently offers a 3-year limited warranty and a 1-year change for new service, with the later service promising that a new HyperDisk will be sent to you to replace your defective and malfunctioning one within the first year. Besides, The reasons for your return must however, be non-human factors.

The device is only currently being sold only through its Kickstarter campaign which is due to end soon, with global delivery scheduled for January 2020, but the team mentioned the existence of plans for a sale in physical outlets in the near future.

More information on the product and how to participate in the crowdfunding campaign can be found on the project’s page on Kickstarter.

WarpDrive: High-Speed Portable SSD 1TB or 2TB

Even with the advent of several file-sharing platforms and the proliferation of internet access to enable their use, the “old” regular way of moving a file from one place to the other via USB drives is still in vogue. Especially for large files like the video and picture contents which creatives need to move around for editing before the final version is released. However, while the size of these drives has increased over time, the same cannot be said for their quality. The speed at which some of the drives copy data and their design for efficiency is still quite terrible. Solving these inefficiencies is what led Darren Mak and his team to create their new product called WarpDrive.

Weighing only 29g / 1oz, with a thickness of around 10mm, the warp drive is smaller than your standard debit/credit card and is designed to save you time and work efficiently.  It comes with USB Type-C 3.2 Gen 2 NVMe interface through which it provides high-speed data transfer up to 850MB/s, which is 5.6x faster than the average external HDDs.

 

Speed Test

This means you could transfer a video that would normally take say 50 mins with regular USB Memory Stick, in just 47 seconds using the WarpDrive.

Exploded View of the Warp Drive

The enclosure of the WarpDrive is an indicator of how much thoughtfulness went into its design. The enclosure is made of aluminum, which is a great heat conductor, helps to keep the flash controller cool at all times, to ensure the high amount of heat generated as a result of the device’s speed does not affect its performance. Asides from the functional impact of the aluminum enclosure, the metallic surface also gives it an exotic look that complements Macbooks and Ipads Perfectly. To ensure the splendid metallic finish is retained over the lifespan of the WarpDrive, it was made scratch-resistant through the use of a silicone bumper that protects the drive. To further protect the drive and in-turn the data stored on it, the WarpDrive was designed to match up to the IP67 rating. This means it can be dropped into a body of water, up to a meter deep for half an hour, without being damaged.

Water-Resistant

The WarpDrive is compatible with all the popular operating systems and machines including android, Windows, Linux and the macOS operating systems. As mentioned earlier, it comes with USB Type-C connector which makes it easy to connect the device some of the latest devices which uses the Type C port, but it can also be connected to Windows-based PCs and older macOS PCs using a USB Type-C to USB A cable, or to newer iOS gadgets with a USB Type-C to Type-C cable.

Compatible with all kind of devices thanks to the connectors.

A highlight of some of the crucial features of the device is provided in the table below;

WarpDrive Specifications

According to the Crowdfunding campaign being run on Indiegogo, WarpDrive is currently available in Red and Space Grey Colors with the possibility of other colors existing later not ruled out.

The Crowdfunding campaign is expected to run till the end of November 2019, with manufacturing commencing immediately with deliveries scheduled for March 2020.

More information on the product and the crowdfunding campaign can be found on the product’s IndieGoGo page.

Multi-output Power Supply Based on LM2576HV-ADJ

This is a multi-output power supply based on LM2576HV-ADJ and LM317 IC. The power supply provides 3 outputs with input supply up to 55V DC. Output (O1) is adjustable up to 24V DC and load current of 2A, Output (O2) is adjustable to 1.2V-24V with load current up to 500mA and Output (O3) adjustable 1.2V-24V @ 500mA. High voltage LM2576HV-ADJ converts 55V in 24V DC. This output is adjustable but advisable to set the output to 24V DC with help of Trimmer Pot PR1.

Note: Keep PR1 at 50% before power up the project and set the Output-1  24V DC, then O2 and O3 can be set using P1 and P2.

Features

  • Input Supply Up to 55V DC 3Amps
  • Output 1 24V DC Load Up to 2Amps
  • Output 2 1.2V-24V DC Maximum Load 500mA
  • Output 3 1.2V-24V DC Maximum Load 500mA
  • Onboard Power LED
  • PCB Dimensions 47.73mm X 42.65mm

Schematic

Parts List

Connections

Photos

LM2576HV Datahseet

PocketAdmin – Keystroke Injection Device

This is a keystroke injection device (also called badusb). It is similar to a well-known USB rubber ducky made by hak5, but has much extended functionality, lower price and is also completely open source. It looks and feels like an ordinary USB flash drive, but acts as a keyboard that types in a preprogrammed payload. This payload can do anything from configuring a network to installing a reverse shell, since the device can basically do whatever an admin can with a terminal, but taking only a few seconds. This makes it a very powerful tool for automating sysadmin tasks or use in penetration testing.

PocketAdmin – Keystroke Injection Device – [Link]

PocketAdmin – Keystroke Injection Device

This is a keystroke injection device (also called badusb). It is similar to a well-known USB rubber ducky made by hak5, but has much extended functionality, lower price and is also completely open source. It looks and feels like an ordinary USB flash drive, but acts as a keyboard that types in a preprogrammed payload. This payload can do anything from configuring a network to installing a reverse shell, since the device can basically do whatever an admin can with a terminal, but taking only a few seconds. This makes it a very powerful tool for automating sysadmin tasks or use in penetration testing.

Here is quick summary of how PocketAdmin is different from USB rubber ducky (and many others):

  1. Made from inexpensive off-the-shelf parts, with not only open source firmware, but hardware design files as well. This allows the user to do substantial modifications to the design, as well as provides an option to build your own units.
  2. Has a built-in interpreter (compatible with existing ducky script) which takes text files directly, so you never have to install any encoder software and keep converting payload.txt to inject.bin.
  3. Can act as both keyboard and USB disk, allowing for better payloads; the memory chip is integrated, so there is no need to keep sticking SD card in/out of various devices while developing payloads.
  4. Has an OS detection mechanism, which allows you to store multiple payloads simultaneously and have the device automatically pick the correct payload to run.
  5. Extended set of commands for extra functionality, such as: without doing any firmware update the user can set which VID / PID values to use, configure how the device should show up
    (keyboard only / flash disk only / keyboard+disk), change keyboard layout, and many other things.

Hardware

project is designed using KiCad 5.0.2

  • check KiCad pcb file for PCB manufacturing info
  • check KiCad sch file + BOM.txt for component info

Uses integrated full-speed (12Mbit/s) USB2.0 peripheral, with on-board 32MiB flash memory chip for data storage; only 24MiB are available for use due to overprovisioning reasons.

Measured speeds for MSD access : read 728 KiB/s, write 110-150 KiB/s, with higher write speeds being acheived for files smaller than 4MiB. While not very fast, it is enough for most badusb applications.

The pushbutton on the device is referred to as MSD-only button. Normally the payload is run whenever you plug the device into a PC. But if you press and hold this button while inserting the device, it prevents any keystrokes from being typed in and makes the device show up as a flash drive.

Fully assembled unit has dimensions of 59x18x9mm and weight of 8 grams. When opening up the case, be careful no to break the plastic studs near the USB connector and at the opposite (from USB) end of enclosure.

Hardware programmer device used in this project is ST-Link V2

For instructions on how to build and flash the device go check this video:

Firmware

  • programming language used = C
  • flashing software used = openocd
  • IDE used = emacs text editor + Makefile

The firmware was developed on debian 9.7 system, using gcc-arm-none-eabi toolchain (compiler, linker, binutils) and it does use gcc specific extentions. it was successfully compiled and tested with arm-none-eabi-gcc version 7.3.1

depends on libgcc.a, which is included in this repository. linker script, startup code and openocd configuration files are included here as well.

Files usb_rodata.h, hid_rodata.h, msd_rodata.h are not really headers, but integral parts of usb.c, main.c, msd.c respectively. they are not intended to be included in any other files.

For your convenience, a pre-built binary firmware image is available in /extra/ directory. the name format is like this: firmware_RRNNN, where RR stands for board revision (11 = rev 1.1) , NNN stands for firmware version. For example, firmware_12003 means board revision 1.2, firmware version 3

More Information:

Advantech Launches Palm Size Embedded System EPC-U2117

Advantech, a leading embedded computing provider announces its latest fanless embedded system EPC-U2117. The palm-sized system uses the latest Intel® Atom® E3900 processor technology to give a 30% CPU performance enhancement and a 45% graphic performance boost.

EPC-U2117 is designed with dual display output, multiple I/O, and wide range 12-24V DC power inputs, which target smart vending machines, digital signage, smart kiosk, and more. EPC-U2117 is compatible with Microsoft Windows 10 IoT Enterprise, and Linux OS. Furthermore, EPC-U2117 has Advantech’s WISE-PaaS DeviceOn intelligent software integrated for remote system monitoring and management.

Fanless and Palm-size Design with Optimized Thermal Solution

EPC-U2117 is a palm-sized metal chassis which measures only 170 x 117 x 52.6mm for mounting as a desktop PC, or via wall, or DIN-Rail mount. The top extruded aluminum passive heatsink thermal solution is designed for -20 ~60 °C wide temperature operation. It integrates two expansion slots including one M.2 for Wi-Fi or GPU module, and one full size Mini PCIe for 3G/LTE connection or mSATA storage. EPC-U2117 reserves 4 antenna apertures to support wireless connection. With its optimized thermal design and two independent add-on modules for maximum performance, EPC-U2117 offers the best solution for outdoor or harsh environment applications and space limited applications such as outdoor vending machines, passenger information systems, digital signage, smart kiosk and more.

Wide Range Power Source and Dedicated I/O Design for Kiosk and Automation

EPC-U2117 is an ideal choice for applications needing wide range power as it offers 12V to 24V DC input. Customers can directly use our system from different power supplies without extra adapters. EPC-U2117 comes with multiple connectivity and expansion options including one RS-232 and one ccTalk. Furthermore, Intel’s latest processor with better performance makes it fit for smart vending machines or smart kiosks and digital signage. The COM port can also be customized to MDB and RS-422/485 for device control and payment device. It offers four USB 3.0 ports, one audio jack, dual gigabit LAN ports and CANBus for general system control.

WISE-PaaS DeviceOn and Dual Storage for Best System Reliability and Security

EPC-U2117 supports multiple storage, which includes onboard eMMC up to 128GB, mSATA, and 2.5” SSD/HDD for flexible storage options. Customers can install OS and key data in eMMC for best security protection and reliability. If customer request big storage capacity and high data transfer, they can use mSATA or SATA SSD for better storage performance. EPC-U2117 comes with Advantech’s WISE-PaaS DeviceOn software, which offers remote management, system monitoring for better device performance, security, and reliability, and predictive maintenance. WISE-PaaS also supports BIOS/FW OTA to upgrade the system and devices with latest firmware to keep everything running at peak performance.

EPC-U2117 Fanless & Wide-Temp Support

  • Intel® Atom® E3900, series processor; low power, high performance.
  • Supports two gigabit Ethernet and one M.2 & one Full Size miniPCIE module for Wi-Fi, 3G/LTE, mSATA modules.
  • Multiple I/O with 4 x USB 3.0 ports, RS-232 (optional for MDB) and ccTalk(optional for RS422/RS485) ports for data communication.
  • Wide range power input support—12~24V DC input for Industry and transportation.
  • Palm-size, with extended temperature support under -20 ~ 60 °C.
  • Supports Win10 Enterprise 64-bit, Linux OS.
  • Advantech WISE-PaaS/DeviceON SW built-in.
  • Certificated with AWS Greengrass & Microsoft Azure IoT Edge.

EPC-U2117 is a Palm size embedded system solution. It is available now, for more information, please contact an Advantech local sales office, or visit the website.

Bridgetek Looks to Revolutionize Our Workplaces with its PanL Technology

Expanding its PanL building automation portfolio, Bridgetek has now formally launched solutions targeted at the office environment – enabling better use of assets situated there and resulting in significant reductions in day-to-day operational costs.

Through the new PanL Desk Manager (PDM), companies can automatically manage shared working facilities where ‘hot desking’ policies are in place. Desk bookings can be made with utmost effectiveness, so that full utilization of available space is assured and return on the investment is maximized.

Every desk included within the PDM system has a PanL35L display unit placed on it, and these are all connected to a web portal via the office Wi-Fi access points. Designed to comfortably integrate into modern corporate environments, the PanL35L units are stylish and compact (85mm x 70.5mm x 67.8mm). Fully CE and FCC certified, each has a 3.5-inch 320×240 resolution TFT, plus an RGB LED strip indicator (which visually signifies current desk status), built-in buzzer (to alert people of status changes) and 802.11b/g/n-compliant Wi-Fi connectivity.

Staff can set everything up remotely through Microsoft Outlook or by utilizing a downloadable mobile app. By referring to the Desk Viewer (which gives an accurate depiction of the office floorplan), they can see where desks are available at that office location without having to waste time searching throughout the building. In addition, they can determine who has been assigned desk space – thereby allowing them to book neighboring desks if they are working on a particular project with someone. Reserved desk space can be claimed via a QR code. The automatic release feature means that if the person who has booked the space fails to show up on time, it can be made accessible again to other prospective users.

The constituent electronics at the heart of each PanL35L in the PDM system comprises a dual-core 32-bit LX6 microcontroller and a sophisticated BT813Q graphic controller. The display has a 500cd/m2 output brightness and supports the rendering of 16.7 million colors. The PDM’s web portal gives facilities managers a detailed overview of all the desks in their inventory. This can be applied to a floor, entire buildings, or even multiple sites. Using it, they can analyze supply and demand – so that further desk resource may be brought in as required. They can also examine user booking profiles, set time slot duration (and the time before/after booked slots in which desks can still be claimed), allocate desks to certain employees, determine the maximum number of desks that can be booked on any given day and add new desks onto the system with minimal effort (with updates being made to the floorplan accordingly).

Similarly PanL Room Manager (PRM) enables the booking of office meeting rooms. This consists of a series of sleek PanL70Plus display units – all of which have an 800×480 resolution TFT, MEMS microphone, ambient light sensor, buzzer and 1W speaker. Each wall-mounted display unit is located at a room entrance and connected to a centralized hub, with the booking software capable of interfacing with Microsoft Outlook. Through these units, office workers can see which meeting rooms are free at a particular time (and if they are taken, then check who booked them and for how long), as well as making alterations to existing bookings. Access to the room requires entry of a passcode on the PanL70Plus’s touchscreen or swiping of an RFID tag in the office worker’s identity badge.

For more information go to www.brtchip.com

TOP PCB Companies