Stabilometric platform with Arduino

Stabilometric platform with Arduino © GPL3+

Project stabilometric platform made with Arduino. Stabilometric platform can be used for medical rehabilitation and games.

  • 107 views
  • 2 comments
  • 0 respects

Components and supplies

Apps and online services

About this project

Code

4hx711multi_stabilo_nano.inoArduino
#include "HX711-multi.h" 
#define CLK 13 // clock pin to the load cell amp 
#define DOUT1 A0 // data pin to the first lca 
#define DOUT2 A1 // data pin to the second lca 
#define DOUT3 A2 // data pin to the third lca 
#define DOUT4 A3 // data pin to the fourth lca 
#define BOOT_MESSAGE "MIT_ML_SCALE V0.8" 
#define TARE_TIMEOUT_SECONDS 4 
byte DOUTS[4] = {DOUT1, DOUT2, DOUT3, DOUT4}; 
#define CHANNEL_COUNT sizeof(DOUTS)/sizeof(byte) 
long int results[CHANNEL_COUNT]; 
HX711MULTI scales(CHANNEL_COUNT, DOUTS, CLK);
void setup() 
{ 
Serial.begin(115200); Serial.println(BOOT_MESSAGE); Serial.flush(); pinMode(11,OUTPUT); tare(); 
} 
void tare() 
{ 
bool tareSuccessful = false; unsigned long tareStartTime = millis(); 
while (!tareSuccessful && millis()<(tareStartTime+TARE_TIMEOUT_SECONDS*1000)) { tareSuccessful = scales.tare(20,10000);} 
}
void sendRawData() 
{ 
  scales.read(results); for (int i=0; i<scales.get_count(); ++i) {;   Serial.print( -results[i]); 
  Serial.print( (i!=scales.get_count()-1)?"\t":"\n"); } delay(10); 
} 
void loop() 
{ 
  sendRawData(); 
}

Schematics

stabilo-project_xN6xwWmSUX.jpg
Stabilo project xn6xwwmsux

Comments

Similar projects you might like

OMNI Wheel Robotics Platform

Project in progress by Jeremy S. Cook

  • 3,784 views
  • 2 comments
  • 20 respects

Level Platform Using Accelerometer

Project tutorial by Mark Tashiro

  • 25,103 views
  • 19 comments
  • 38 respects

Project "Gallon" - Smart Drinking Water Monitoring Platform

Project showcase by Team DycodeX

  • 19,217 views
  • 7 comments
  • 46 respects

Servo-Controlled, Light-Tracking Solar Panel Platform

Project tutorial by scott mangiacotti

  • 17,431 views
  • 12 comments
  • 52 respects

Getting Started with the Smartcar Platform

by Dimitris Platis

  • 14,731 views
  • 10 comments
  • 49 respects

Arduino IoT with SAP HANA Cloud Platform

by derapados

  • 7,070 views
  • 11 comments
  • 10 respects
Add projectSign up / Login