Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.66 KB

README.md

File metadata and controls

47 lines (32 loc) · 1.66 KB

ng-beacon

Physical Web Beacon shaped after the Angular logo with JavaScript support

ng-beacon bottom view

Copyright (C) 2016, 2017 Uri Shaked

Build your own beacon

Check out the BOM file for the list of materials. In addition, you need to get the PCB printed, I got mine from PCBWay.

Features

  • Physical Web (Eddystone) Beacon
  • iBeacon
  • Built-in JavaScript Interpreter
  • Fully programmable via JavaScript
  • Over-the-air firmware updates
  • Prototyping area where you can add your own sensors and extend the board
  • Runs of CR2032 / CR2024 coin cell battery, can last for several months
  • Built in LED and push button

Hardware

The board uses the nRF52832 chip, which has the following features:

  • 32-bit ARM Cortex-M4F Processor running at 64MHz
  • 512kB flash + 64kB RAM
  • Bluetooth 5 support, up to 2MBPS
  • Up to +4dBm output power, -96dBm sensitivity
  • 3 PWM, 3 SPI, 2 I²C, Serial UART

Code samples

Configure the built-in button to control the LED:

setWatch(() => LED1.toggle(), BTN1, { 
  repeat: true,
  edge: 'falling', 
  debounce: 100
});

More code samples

Firmware

The current firmware is based on Espruino. The latest source code can be found here, and the most recent firmware build can be found in this repo.