README.md 1.49 KB
Newer Older
Carsten Presser's avatar
Carsten Presser committed
1
2
3
4
# Catears
Features:
* Fits Logitech G533 Headsets and similar models.
* Compatible to the `Arduino Nano 33 BLE` to make software development easy
cpresser's avatar
cpresser committed
5
6
* USB-C Jack on the back for charging and programming

Carsten Presser's avatar
Carsten Presser committed
7
![Mounted PCB](/photos/mounted_front.jpg)
cpresser's avatar
cpresser committed
8
9
![3D Render of the PCB](/export/catear_pcb.png)

10
11
12
13
14
# 3D Printing
* The design file should be printed as is and mirrored, to make two ears
* The PCB is symmetrical and will fit in both ears
* The battery compartment fits a 803040 single cell lipo

cpresser's avatar
cpresser committed
15
16
17
18
19
20
21
# Program with the Arduino IDE
Install a few things to get it to work. Ther versions listed here are the ones which were used for testing. Any other later version should work as well
* The **Arduino IDE** [1.8.13]
* Add the Board: (Tools -> Boards -> Boards Manager) **Arduino MBed OS Nano Boards** [2.6.1]
* The following libraries are required (Tools -> Manage Libraries)
  * **ArduinoBLE** (by Arduino) [1.2.1]
  * **APA102** (by Pololu) [3.0.0]
22
  * **Arduino_APDS9960** [1.0.4]
Carsten Presser's avatar
Carsten Presser committed
23
24

# Programm the Bootloader
cpresser's avatar
cpresser committed
25
The arduino bootloader is used, it can be uploaded with openocd.
Carsten Presser's avatar
Carsten Presser committed
26
`sudo openocd -f /usr/share/openocd/scripts/interface/cmsis-dap.cfg -f /usr/share/openocd/scripts/target/nrf52.cfg -c "program bootloader.elf verify" -c "reset run" -c shutdown`
27

28
If you bought a used nRF52 chip (as I did), delete it first by writing to the `ERASEALL` register like so:
29
`sudo openocd -f /usr/share/openocd/scripts/interface/cmsis-dap.cfg -f /usr/share/openocd/scripts/target/nrf52.cfg -c "init"  -c "reset halt" -c "nrf52.dap apreg 1 0x04 0x01"`