GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsThe Elecrow Pro Micro nRF52840 is pin compatible with the nice!nano and ships with the Adafruit UF2 bootloader, so it shows up as a USB drive and programs from the Arduino IDE with Adafruit's nRF52 core. It has a LiPo charger on board. The sketch makes it a BLE HID keyboard that sends the right and left arrow keys, which every slide program understands.
LiPo cells can burn if shorted; insulate the pads and never puncture the cell.
Tick anything you already have and the total updates.
Elecrow Pro Micro nRF52840
Follow the colours: red is power, dark grey is ground, blue is a signal.
3.7 V LiPo on the battery pads, charged from USB-C.
ble_clicker.inoVerify & upload in Electrolark#include <bluefruit.h>
BLEHidAdafruit hid;
const int NEXT = 2, PREV = 29; // P0.02 and P0.29 as GPIO numbers
void setup() {
pinMode(NEXT, INPUT_PULLUP);
pinMode(PREV, INPUT_PULLUP);
Bluefruit.begin();
Bluefruit.setName("Geeko Clicker");
hid.begin();
Bluefruit.Advertising.addFlags(BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE);
Bluefruit.Advertising.addAppearance(BLE_APPEARANCE_HID_KEYBOARD);
Bluefruit.Advertising.addService(hid);
Bluefruit.Advertising.addName();
Bluefruit.Advertising.restartOnDisconnect(true);
Bluefruit.Advertising.start(0);
}
void tap(uint8_t key) {
uint8_t keys[6] = {key, 0, 0, 0, 0, 0};
hid.keyboardReport(0, keys);
delay(20);
hid.keyRelease();
delay(200); // simple debounce
}
void loop() {
if (digitalRead(NEXT) == LOW) tap(HID_KEY_ARROW_RIGHT);
if (digitalRead(PREV) == LOW) tap(HID_KEY_ARROW_LEFT);
delay(10);
}
Double-tap reset to enter the bootloader, then pick the new port.
Remove the device from the laptop's Bluetooth list and pair again after uploading.
Pin labels differ between nice!nano clones; check the board's pinout card and change the numbers.
Days to weeks with a small LiPo, because BLE idles at very low current.
Yes; the same board runs ZMK keyboard firmware.
Yes, any device that accepts a Bluetooth keyboard.
5 parts: Elecrow Pro Micro nRF52840 Dev Board Compatible w/ nice!nano V2.0, 2 × Tactile Push Button Switch, Lithium Polymer (LiPo) Cell 3.7V, Solderless Breadboard and Dupont Jumper Wires (40 pcs). On this page you can tick the parts you already have and add only the rest to your cart.
No. This page has the complete, tested code (ble_clicker.ino).
About ₹1,018 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
BLE HID keyboards with Adafruit Bluefruit; Charging a LiPo from the board's charger; Debouncing buttons.
LiPo cells can burn if shorted; insulate the pads and never puncture the cell.
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Records where you went every five seconds, ready to open on a map.
Two boards, two radios: press the button at the gate and it rings indoors.
Check temperature, humidity and pressure from any phone on your Wi-Fi.
Lessons are free to read. Maker (₹499/month) and Pro add quizzes, worked problems and certificates, paid with your Geekobot account. See plans
Learning project. Check every circuit and the datasheet of each part before you power it up.