Giter VIP home page Giter VIP logo

Comments (5)

scottbez1 avatar scottbez1 commented on June 14, 2024 3

Also, by the way, for testing the knob without the strain gauges, you can press [space] in the serial monitor to switch to the next mode in lieu of activating the strain gauges.

from smartknob.

scottbez1 avatar scottbez1 commented on June 14, 2024 2

The strain gauge thresholds will need to be manually calibrated based on your physical assembly (every build will be different).

The code outputs a HX711 reading value to the serial console once per second by default. You can check that this changes when you touch a strain gauge.

Then once the strain gauges are permanently installed, you can get a reading when nothing is pressed and set this as the "lower" value, and then press down on the knob and get a reading there and set that as the "upper" value here:

const int32_t lower = 950000;
const int32_t upper = 1800000;

from smartknob.

zinwalin avatar zinwalin commented on June 14, 2024 1

The strain gauge thresholds will need to be manually calibrated based on your physical assembly (every build will be different).

The code outputs a HX711 reading value to the serial console once per second by default. You can check that this changes when you touch a strain gauge.

Then once the strain gauges are permanently installed, you can get a reading when nothing is pressed and set this as the "lower" value, and then press down on the knob and get a reading there and set that as the "upper" value here:

const int32_t lower = 950000;
const int32_t upper = 1800000;

Hi Scott, your reply saved lots of time, there's no console output for HX711 reading by default, cause the lower and upper values are too high on my side, so the logic for HX711 is not run. After I lower the values, it works. Appreciated for your reminders.

from smartknob.

zinwalin avatar zinwalin commented on June 14, 2024

Also, by the way, for testing the knob without the strain gauges, you can press [space] in the serial monitor to switch to the next mode in lieu of activating the strain gauges.

Yes. I get used to press space to change mode.

from smartknob.

scottbez1 avatar scottbez1 commented on June 14, 2024

Glad to have helped!

from smartknob.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.