Embla-Flatlandsmo / maneki-neko

A beckoning cat implemented with the nRF Connect SDK on the Adafruit ItsyBitsy nRF52840

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Maneki Neko

Maneki Neko model Maneki Neko model

The 3D model is made by Mats N. Olsen

Project structure

Folder Description
code Software for the microcontroller unit
production Models for 3D printing the parts
schematics Images describing the way the electronics are wired

Hardware description

The project supports using both nRF52840 DK and Adafruit ItsyBitsy nRF52840 Express. The enclosure is made for the ItsyBitsy, but enclosure.scad has been included so you can make it fit for a different board if you want.

nRF 52840 DK

Wiring

Pin Name
P1.10 Encoder 1 Line A
P1.11 Encoder 1 Line B
P0.27 Encoder 2 Line A
P0.26 Encoder 2 Line B
P0.13 Servo PWM output

Adafruit ItsyBitsy nRF52840 Express

A full schematic has been made for the ItsyBitsy nRF52840 Express:

Full system schematic for ItsyBitsy

Wiring

Pin Name
13 Encoder 1 Line A
12 Encoder 1 Line B
11 Encoder 2 Line A
10 Encoder 2 Line B
7 Servo PWM output

Software Description

This project uses the nRF Connect SDK v2.0.2.

Setup using the nRF Connect SDK Toolchain Manager

Prerequisite: nRF Command Line Tools

  1. Install ncs v2.0.2: Follow nRF Connect SDK (ncs) setup tutorial to install the nRF Connect SDK (ncs) toolchain.

  2. Make sure you are able to build and program a basic project following the nRF Connect SDK building tutorial

  3. Clone this project into the ncs installation folder: After installing nRF Connect SDK v2.0.2, open command prompt through the toolchain manager. Then, type git clone https://github.com/Embla-Flatlandsmo/maneki-neko

First time setup for Adafruit ItsyBitsy nRF52840

Before building for the first time, you must copy the folder code/boards/adafruit_itsybitsy_nrf52840 into the boards/arm/ directory of your zephyr installation.

For example, if ncs is installed at C:/ncs/v2.0.2 then you would copy the folder so it resides at C:/ncs/v2.0.2/zephyr/boards/arm/adafruit_itsybitsy_nrf52840

Before flashing, you must update the Adafruit UF2 bootloader (see tutorial)

Building and Flashing

Before building the project, make sure you are able to build and program a basic project following the nRF Connect SDK building tutorial.

For both of the boards, follow the steps for building in the command line.

Adafruit ItsyBitsy nRF52840 Express

  1. Navigate to maneki-neko/code and build the program by calling west build -b adafruit_itsybitsy_nrf52840
  2. Connect the ItsyBitsy to your host computer using USB
  3. Tap the reset button twice quickly to enter bootloader mode
  4. Flash the image by dragging and dropping the file maneki-neko/code/build/zephyr/zephyr.uf2 into the ITSY840BOOT drive
  5. The program should now run on your device

nRF52840 DK

  1. Navigate to maneki-neko/code and build the program by calling west build -b nrf52840dk_nrf52840
  2. Connect the nRF52840 DK to your computer using USB
  3. Call west flash
  4. The program should now run on your device

About

A beckoning cat implemented with the nRF Connect SDK on the Adafruit ItsyBitsy nRF52840


Languages

Language:C 76.2%Language:OpenSCAD 18.4%Language:CMake 5.3%