Pages: [1]   Go Down
Author Topic: Digital kitchen weighing scale interface  (Read 2647 times)
0 Members and 1 Guest are viewing this topic.
Maastricht Netherlands
Offline Offline
Karma: 0
Posts: 34
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

For a DC motor test bench, I needed a weighing scale which can be read out by a computer. I developed an interface program for the Arduino to read out the scale. There is no additional electronics needed, just two wires between the internal scale electronics and the Arduino.
See here for the site and libraries:

Main program:
/* Scale interface
 * Version 20-12-2011
 * Copyright (C) 2011  Albert van Dalen
 * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License along with this program. If not, see
#include <Streaming.h>
#include "Scale.h"
const byte scalePin = 3;
const byte scaleInterrupt = 1; // = pin 3
Scale scale = Scale();
void setup()
{ Serial.begin(9600);
  attachInterrupt(scaleInterrupt, scaleISR, CHANGE);
void loop()
{ if(scale.ready()) Serial << endl << _FLOAT(scale.gram, 0);
void scaleISR()
{ scale.getWeight(1);

Offline Offline
Shannon Member
Karma: 199
Posts: 11671
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Nice hack - alas I could not manage to take the back off my scale without risking breaking something so I can't investigate it...

[ I won't respond to messages, use the forum please ]

Pages: [1]   Go Up
Jump to: