Haptic input knob with software-defined endstops and virtual detents
Go to file
Scott Bezek 56feeb484c
Fab automation (#2)
- Use KiKit for fab automation
- Add splitflap scripts for exporting pcb pdfs, and switch to splitflap script for 3d rendering (for consistency with fab automation)
- Added support in 3d rendering scripts for soldermask & silkscreen colors, option to skip virtual components
- Added silkscreen to base and screen pcbs for commit and date info
2022-02-15 01:27:38 -08:00
.github Fab automation (#2) 2022-02-15 01:27:38 -08:00
.vscode Checkpoint View PCB 2022-02-08 18:41:08 -08:00
doc/img Update readme 2022-02-14 10:29:06 -08:00
electronics Fab automation (#2) 2022-02-15 01:27:38 -08:00
firmware vscode recommendations 2022-02-13 09:38:39 -08:00
scripts Fab automation (#2) 2022-02-15 01:27:38 -08:00
util Fab automation (#2) 2022-02-15 01:27:38 -08:00
__init__.py Fab automation (#2) 2022-02-15 01:27:38 -08:00
.gitignore Fab automation (#2) 2022-02-15 01:27:38 -08:00
LICENSE.txt Add README and LICENSE 2022-02-08 21:09:39 -08:00
README.md Fab automation (#2) 2022-02-15 01:27:38 -08:00

SmartKnob

Coming soon...

Hardware

Designs

SmartKnob View

Premium SmartKnob experience. Under active development. Untested & unproven.

Exploded view

Base PCB

Schematic

Interactive BOM

PCB Packet

Gerbers

Screen PCB

Schematic

Interactive BOM

PCB Packet

Gerbers

SmartKnob Handheld

An exploration of a small handheld form-factor. Under active development.

SmartKnob Mini

Planned for the future.

Component Info

Magnetic encoders

TLV493D (Infineon)

A mediocre choice. Easy to prototype with using Adafruit's QWIIC breakout board.

In my testing, it is a little noisy, requiring filtering/smoothing that can slow responsiveness, hurting control loop stability. Or, with less filtering, the noise can easily be "amplified" by the derivative component in the PID motor torque controller, causing audible (and tactile) humming/buzzing.

There is also apparently a known silicon issue that causes the internal ADC to sometimes completely lock up, requiring a full reset and re-configuration. See section 5.6 in the User Manual

In the Master Controlled Mode (MCM) or the Fast Mode (FM) the ADC conversion may hang up. A hang up can
be detected by:
 - Frame Counter (FRM) counter stucks and does not increment anymore.

In my experience testing 4 different Adafruit breakout boards, 2 of them (50%) regularly exhibit this lockup behavior within a minute or two of use.

As of 2022-02-08, there is limited availability of this IC.

Datasheet

MT6701 (MagnTek)

Very promising based on the datasheet and initial tests. Seems to be less noisy than TLV493D, and more responsive (control loop is more stable) using SSI.

  • Lots of IO options - SSI, I2C, and ABZ - should offer good response latency
  • SSI include CRC to validate data
  • No power-down or low-power options - may not be ideal for battery-powered devices
  • Not available from US distributors (Mouser, Digi-Key)

Datasheet

Ordering (LCSC)

Motor drivers

TMC6300-LA

This is a relatively new IC and it's a perfect match! There generally aren't any other drivers (with integrated fets) that meet the requirements for the low-voltage and low-current motors used in this project.

Highlights:

  • 2-11V DC motor supply input
  • Up to 1.2A RMS
  • Tiny (3x3mm QFN)

Datasheet

Product page

Motors

32mm Rotor, Hollow Shaft, Diametric magnet

  • 32mm rotor
  • 15mm overall height (including magnet), 12.75mm height w/o magnet, 9mm rotor height
  • low/zero cogging - excellent for completely smooth input
  • 5.9mm hollow shaft
  • built-in diametric magnet for encoder
  • Proven option

This is overall the easiest motor to get started with. Low cogging and a built-in diametric magnet are great!

AliExpress

~17mm Rotor

  • Not tested yet
  • Stepped 17.3mm and 16.3mm diameter rotor
  • 11.2mm total height, 8.6mm rotor height
  • moderate cogging - not ideal for completely smooth input
  • Rotor has threaded hole on the side that should be usable for keying a cap
  • Very little shaft accessible on bottom - may be tricky to mount a diametric magnet to it. Maybe could replace screw with something else?

AliExpress

Firmware

TODO

Acknowledgements

This project was greatly inspired by Jesse Schoch's video "haptic textures and virtual detents" and the corresponding discussion in the SimpleFOC community.

License

This project is licensed under Apache v2 (see LICENSE.txt).

Copyright 2022 Scott Bezek

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.