Close

Does this project spark your interest?

Become a member to follow this project and don't miss any updates

Scale interface

A simple USART / Bluetooth interface for a kitchen scale

1.2k 4 4 3

This project was created on 07/09/2014 and last updated 4 months ago.

Description
This project is about adding an USART (and optionally Bluetooth) interface to a kitchen scale. This is done by measuring a PWM duty cycle if a ramp-compare ADC in the scale. The PWM duty cycle is directly (or within acceptable margin of error) proportional to the applied weight.
You can read more here: http://adam-dej.github.io/2014/07/08/scale-interface.html
Components
  • 1 × Scale with a ramp-compare ADC with accessible PWM pin
  • 1 × ATMega8 Microprocessors, Microcontrollers, DSPs / ARM, RISC-Based Microcontrollers
  • 1 × USART Bluetooth module
  • 1 × Various small stuff everybody has in a shelf

Discussions

Bruce Land wrote 4 months ago null point

It the error dominated by noise or by ADC accuracy, do you think?

Are you sure? [yes] / [no]

Adam wrote 4 months ago null point

I'm not using ADC of the AVR, I'm just measuring the duty cycle of ramp-compare ADC of the scale. The inaccuracy comes from the nature of this hack, I'm just measuring, in effect, the maximum voltage (by measuring the duty cycle) the ramp-compare ADC ramps to. The scale knows the exact voltage at which the sampled voltage from the tensometer is equal to the ramped voltage, and sometimes it ramps the voltage a little higher than is actually necessary. This is manifesting itself as the +-5 grams error. The +-2 grams error may be caused by the imprecise measurement of the conversion constant (duty cycle vs weight ratio) or by the fact that the voltage of the capacitor in the ramp-compare ADC is not directly proportional to the charging time.

Are you sure? [yes] / [no]

Bruce Land wrote 4 months ago null point

What is the accuracy?

Are you sure? [yes] / [no]

Adam wrote 4 months ago null point

The reported measurements are constantly changing by +-5 grams, but their average is within 2 grams of what is displayed on the display of the scale.

Are you sure? [yes] / [no]

Similar projects