SparkFun Electronics Commentsurn:uuid:214d0e4e-f1b1-d287-ce26-ac5b4c9f82492024-03-29T05:37:34-06:00SparkFun ElectronicsCustomer #187451 on SEN-13261 - SparkFun OpenScaleCustomer #187451urn:uuid:f5a85891-4647-a4de-fe20-5101d2da73192018-08-12T21:05:08-06:00<p>While helping someone else to use OpenScale I decided to build a quick prototype of a small weight scale. I create a brief article on it (including code) on the following <a href="https://www.electro-tech-online.com/articles/building-a-simple-weight-scale.859/" rel="nofollow">link</a> for anyone that finds it useful.</p>
Customer #94013 on SEN-13261 - SparkFun OpenScaleCustomer #94013urn:uuid:0fdac6ac-f61e-b744-5e5e-3f71eb3a5e5d2018-01-23T16:43:28-07:00<p>Can someone help me? I want the scale data to display on a 16 x 2 LCD Display using the Sparkfun SerLCD board using the Serial Out ports on the OpenScale board. I've connected the TX on the OpenScale to the RX on the SerLCD. I've tried the basic "Hello World" sketch using the SoftwareSerial library. I don't know what the pin out is. I tried a few combinations, based on what I thought the the ATmega schematic said, but no luck. I'm connecting via USB to power the board. I thought that might be an issue, but connecting from a battery pack with a USB connector didn't work either.<p>I have my own custom sketch for the OpenScale, which works fine over USB serial. I just want that data to display on the LCD.</p><p>Thanks!</p></p>
LightningHawk on SEN-13261 - SparkFun OpenScaleLightningHawkurn:uuid:2c5d526c-6114-0c72-49b7-1c7e91734a7d2017-11-15T10:22:41-07:00<p>Sweet! Thanks for sharing your solution as well.</p>
Customer #1181579 on SEN-13261 - SparkFun OpenScaleCustomer #1181579urn:uuid:2ae41269-84a1-0edb-a886-87a5cf64fa982017-11-15T10:21:16-07:00<p>Thank you for your quick reply and for solution !<p>I found a solution but your solution is the right.</p><p>this is my solution:
double B = (int) (currentReading * 1000.0 ) / setting_division_value ;</p><p>double C = (B * 1000.0 + 0.5) / 1000.0 ;</p><p>double D = (C / 1000.0) * setting_division_value ;</p><p>double R = (D * 1000.0 + 0.5) / 1000.0 ;</p><p>"setting_division_value" is saved in the memory by the user.</p><p>Regards,</p></p>
LightningHawk on SEN-13261 - SparkFun OpenScaleLightningHawkurn:uuid:a82c670e-3b2b-4900-1515-ad00cafef1d22017-11-14T08:44:35-07:00<p>This is not formatted nor complete but should get you on the right track. You'll also have to figure out how to set the number of decimal places along the way.<p>For the example of rounding the thousandths place by 5 (your example):</p><p>weight=1.252</p><p>x = weight *1000 // move decimal place to use modulus function (x=1252)</p><p>y = x % 5 // get the remainder for rounding (y=2)</p><p>if y < 3 //rule for rounding down</p><p>{</p><p>roundedWeight = x - y //subtract the modulus to round down (roundedWeight =1250)</p><p>roundedWeight = roundedWeight/1000 // again you have to figure out the decimals and types here (roundedWeight =1.250)</p><p>//in python the print line would look like: print("{0:.3f}".format(roundedWeight))</p><p>}</p><p>if y > = 3 //rule for rounding up</p><p>{</p><p>roundedWeight = x + (5-y) // when rounding up the modulous needs to be subtracted from 5 then added to the original weight.</p><p>//for example, if weight was 1.254, x= 1254, y = 4, roundedWeight = 1254+(5-4) = 1255.</p><p>roundedWeight = roundedWeight/1000 // again, need to figure out the deicmals.</p><p>}</p><p>The other functions will follow a similar pattern based on the assigned graduator. If you have any more questions let me know and hope this helps.</p></p>
Customer #1181579 on SEN-13261 - SparkFun OpenScaleCustomer #1181579urn:uuid:e3ce8438-76a4-6466-988f-aea8fa9de6d82017-11-14T03:29:33-07:00<p>Can anyone help me to solve this problem.
I want to round three decimals with the number assigned by a graduator 2 gr ,5 gr, 10 gr, 50 gr ,100 gr.
For example, if we have currentReading 1.251 kg and we want the accuracy of 5 gr the total weight must be displayed 1.250 and if we have currentReading 1.253 kg weight must be displayed 1.255 and so on..
Thanks in advance!</p>
LightningHawk on SEN-13261 - SparkFun OpenScaleLightningHawkurn:uuid:7b530b11-bfd5-3191-5ae7-05b1e128827f2017-06-13T12:07:07-06:00<p><a href="https://www.amazon.com/Ozeri-Digital-Multifunction-Kitchen-Elegant/dp/B004164SRA/ref=sr_1_4?ie=UTF8&qid=1497376593&sr=8-4&keywords=kitchen+scale" rel="nofollow">Here's</a> the kitchen scale I used.</p>
Customer #1019680 on SEN-13261 - SparkFun OpenScaleCustomer #1019680urn:uuid:58fc4e35-9e41-88fb-1ae0-85a894e4e7d22017-06-12T13:43:03-06:00<p>For the kitchen scale, is there any amazon link you can share that is easy to tear open and use? The user guide doesnt provide any particular kitchen scale compatible with the the 10kG load cell.</p>
Customer #123207 on SEN-13261 - SparkFun OpenScaleCustomer #123207urn:uuid:afe34577-409b-0db3-f4b4-f8f9c1ce57862017-06-12T08:35:52-06:00<p>I have seen similar "jitter" in my readings; big jumps for brief periods of time. I'm assuming it's a noise issue with ADC not helped by my un-shielded wiring. I also believe some the erroneous values are made worse by possible overflow/underflow in the averaging routine in the HX711 library. One thing that helped me was to modify the firmware to read (10) raw samples, scale them individually before summing/averaging, discard the lowest and highest individual readings, and then summing and averaging the remaining (8) scaled samples (see rudimentary code below):<p>long i, j, min, max;
long rawReading[10];</p><pre><code>//----------------------------------------------
// Take 10 readings w/ scale factor
j=0;
for(i=0;i<10;i++)
{
rawReading[i] = scale.read(); // Take a single reading from the ADC
rawReading[i] /= 8870; // Scaling (hard-coded scale factor)
}
//----------------------------------------------
// Find lowest and highest reading
min=9999;
max=0;
for(i=0;i<10;i++)
{
if(rawReading[i] > max)
max = rawReading[i];
if(rawReading[i] < min)
min = rawReading[i];
}
//----------------------------------------------
// Sum and remove lowest and highest and average readings
for(i=0;i<10;i++)
j += rawReading[i];
j -= min;
j -= max;
j/=8; // Final value
</code></pre></p>
Ramza on SEN-13261 - SparkFun OpenScaleRamzaurn:uuid:d38da5d7-7873-9eb7-7329-4815074a4e162017-05-31T17:03:39-06:00<p>You can simply comment this out in the Openscale code.
Look for
setting_tare_point = (long)8647409;
add // to comment it out</p>
Ramza on SEN-13261 - SparkFun OpenScaleRamzaurn:uuid:5d658f23-af51-fd61-90e6-ba390f39a5cd2017-05-31T17:00:13-06:00<p>Yes, I was able to do this.
I used an arduino uno and I connected the Serial out of the Openscale to the arduino. So GND <-> GND, and the TX of Openscale to RX of Arduino.<p>For your code, just do the regular Serial setup for 9600 baud, and do Serial reads for the data.</p></p>
Customer #1002333 on SEN-13261 - SparkFun OpenScaleCustomer #1002333urn:uuid:39e27687-8a44-591c-8f4e-0248542354582017-05-24T11:49:13-06:00<p>Has anyone tried to re-use the Temp signal as a GPIO? Theoretically you should be able to, but I was just curious if anyone has?</p>
Customer #918806 on SEN-13261 - SparkFun OpenScaleCustomer #918806urn:uuid:3e2720fb-cb18-fe27-a6dc-238db86088112017-03-31T08:37:59-06:00<p>My OpenScale SEN-13261 has been reading undisturbed since about 5:20 pm yesterday with a 100 lb load; however, I'm occasionally getting outlier readings (+/- ~2700 lbs). Refer to the plots below; Is this noise from the HX711 ADC, or a firmware bug? Plotted values are the max/avg/min of the last 50 readings from OpenScale serial port.<p><strong>load cell #1 plot:</strong><br>
<a href="https://drive.google.com/file/d/0BwybDKGshwnmVmNpbDZ5UERGM2s/view?usp=sharing" rel="nofollow">load_cell_1</a><br>
<strong>(on board) temperature #1 plot:</strong><br>
<a href="https://drive.google.com/file/d/0BwybDKGshwnmMm03WXUxVUdFUzA/view?usp=sharing" rel="nofollow">temperature_1</a></p><p><strong>Steps I've taken to resolve the issue:</strong><br>
* Increase the time between OpenScale readings from 100 ms to 150 ms<br>
* Flash the latest firmware from Github to OpenScale<br>
* Re-read OpenScale documentation & search google</p><p><strong>Any ideas on what to do about the outliers?</strong><br>
<em>Is anyone else seeing this same issue?</em></p><p>Thanks in advance!</p></p>
Customer #365903 on SEN-13261 - SparkFun OpenScaleCustomer #365903urn:uuid:ffaec58c-a2eb-9375-b9a6-ddec8fc91bd72017-03-30T09:47:16-06:00<p>At 5v input required, how does one get this to run outside on a single 3.7v cell with Sunny Buddy? Seems strange that this was (as I understand it) initially designed to measure a beehive weight in an outdoor project, but then relies on 5v and has no wifi/ESP8266 option or terminal.</p>
Customer #903845 on SEN-13261 - SparkFun OpenScaleCustomer #903845urn:uuid:d7c3e523-afa6-5245-da2f-72b3783c6ff22017-02-14T10:00:54-07:00<p>Hi,<p>I want to</p><ol>
<li>Battery power this from a 5v regulated source</li>
<li>take the output from the serial out connections (i will send over BLE)</li>
</ol><p>when i try to power this using 5v it works but does not start to send data on power, it just idles unless i connect via usb to the ftdi chip.</p><p>how do i make it start sending readings without connecting it to a usb port?</p><p>regards,</p><p>james.</p></p>
Customer #650726 on SEN-13261 - SparkFun OpenScaleCustomer #650726urn:uuid:dbf5ffcb-ae6e-1998-31f6-882c58b2c5422016-12-30T11:21:10-07:00<p>Hello,
Is possible to connect it to arduino?
i'm using a xbee on arduino to send some data.</p>
Customer #790198 on SEN-13261 - SparkFun OpenScaleCustomer #790198urn:uuid:4d999b98-b21e-6145-a999-d55051200c232016-11-24T15:31:20-07:00<p>Can you interface wit this on i2c or SPI? I'm imagining setting up a screen for weight readout, but perhaps I should go with my own arduino and the HX711 load cell amplifier if I want to create a standalone device?</p>
LightningHawk on SEN-13261 - SparkFun OpenScaleLightningHawkurn:uuid:d9785baa-cc86-bfe8-4f96-40e9653dce402016-11-17T10:17:52-07:00<p>The Atmega328 on Openscale is there to handle communication. There is no I/O broken out for something like blinking an LED or reading potentiometer output. However, I think you might be able to record and process data from the load cells in Labview. Labview does give you access to I2C and SPI functionality on the MCU-the SPI pins are accessible on OpenScale through the AVR programming header and SDA and SCL can be accessed from the drains of Q1 and Q2 - This will give you the Temp data. I haven't used OpenScale with Labview but I might try now. I don't see how it could be a greater benefit to use Labview in this case but I don't see why it wouldn't be possible. If resolution is what you are looking for though the Atmel MCU used on OpenScale is the same as the chip used on an Arduino so the resolution should be the same.</p>
Customer #836772 on SEN-13261 - SparkFun OpenScaleCustomer #836772urn:uuid:bf3442b0-43f0-bbb2-cb89-da50ff933b8e2016-11-17T09:45:59-07:00<p>Is there a way to read the OpenScale in Labview?
I just downloaded makerhub and have been experimenting with Arduino connected into LabView. I'm playing with an example which needs more resolution then a standard Arduino, can I plug my OpenScale into the program and record a potentiometer output using it?</p>
LightningHawk on SEN-13261 - SparkFun OpenScaleLightningHawkurn:uuid:d5e723ed-3a81-7b48-3975-dc7ff9c0816c2016-11-07T10:21:29-07:00<p>Hi, Thanks for bringing this to our attention. It has been updated.</p>
frada on SEN-13261 - SparkFun OpenScalefradaurn:uuid:4a6b25e9-6825-0757-cff3-491a143f8c332016-11-07T07:34:48-07:00<p>Hi,<p>opening the Eagle files available for OpenScale I see that probably they are related to a previous revision of the schematic/pcb because the combinor for individual load sensors is not present.</p><p>Is there any chance to have the Eagle files updated to the current release of the PCB?</p><p>Thank you for your answer.</p><p>Regards</p></p>
Customer #836709 on SEN-13261 - SparkFun OpenScaleCustomer #836709urn:uuid:be15801c-474c-d478-845e-978c99109e882016-09-13T11:37:13-06:00<p>In the latest firmware the loadcell tare value is not taken from EEPROM, its hardcoded to 8647409.
is it a bug?</p>
LightningHawk on SEN-13261 - SparkFun OpenScaleLightningHawkurn:uuid:7ea9d16c-9903-b741-1b79-350b3afc7f3e2016-08-22T09:53:36-06:00<p>Yes. You'll need to re-calibrate once every season (at least) to take into account changes in temperature and humidity in the environment. Creep is the change in load cell signal occurring with time while under constant load and with all environmental conditions and other variables also remaining constant. Load cells tend to creep meaning they will change their output slightly over time when a weight is left on the scale for long (30+ minutes) periods of time. Creep is load cell specific so keep your data sheet handy and perform some tests. There's an example calibration in the hook-up guide. If you need more info, I found this helpful: http://www.scalemanufacturers.org/pdf/loadcellapplicationtestguidelineapril2010.pdf</p>
Customer #836709 on SEN-13261 - SparkFun OpenScaleCustomer #836709urn:uuid:b42bc2d6-8500-3521-7627-170a568e6bca2016-08-22T04:35:53-06:00<p>What is the meaning of "A load cell with OpenScale can remain in place for months without needing user interaction", does it mean OpenScale needs calibration after using it for some months?</p>
Customer #834586 on SEN-13261 - SparkFun OpenScaleCustomer #834586urn:uuid:8d651cab-9f6d-4984-d12e-bcf37641523a2016-08-20T03:47:12-06:00<p>I have a bathroom scale with four load sensors, each sensor has four wires (not three). How do you suggest I connect it to the Openscale please? I can't see any reference to four wire sensors in the hookup guide. Thank you.</p>
Customer #727973 on SEN-13261 - SparkFun OpenScaleCustomer #727973urn:uuid:15507de2-5581-36c9-7a8f-a819b6c9c9592016-08-06T12:29:19-06:00<p>In the Hookup Guide", the link to "the text configuration menu" is broken...</p>
Customer #727973 on SEN-13261 - SparkFun OpenScaleCustomer #727973urn:uuid:e9086a53-efa4-466c-4021-dbd273e241d42016-08-06T11:41:46-06:00<p>I found : the colors from the cell are not the same as the openscale !
It seems it works !
Thank for the reply !</p>
LightningHawk on SEN-13261 - SparkFun OpenScaleLightningHawkurn:uuid:caca4e67-9547-40fa-2bc9-6a57200ca26a2016-08-05T11:58:15-06:00<p>"No Remote Sensor Found" refers to an external temp sensor that is connected to the screw terminals on the board. I've never used that load cell before and I couldn't help much with mounting it. I'm sure you can some documentation on mounting the load cell. Have you been in the calibration menu yet?</p>
Customer #727973 on SEN-13261 - SparkFun OpenScaleCustomer #727973urn:uuid:b0c48520-0d4d-81bc-a631-f88dab100c602016-08-05T11:44:46-06:00<p>Dear sir,
I am trying to use openscale with :<p>http://www.aliexpress.com/item/2PCS-lot-100KG-150kg-electronic-platform-scale-load-cell-pressure-balanced-cantilever-load-weight-sensor/1649112894.html?spm=2114.13010608.0.56.zVLOrD</p><p>I get : "No remote sensor found"
Could it be a problem with the cells or which mistake can I make ?
Yours faithfully
Pierre</p></p>
ksteddom on SEN-13261 - SparkFun OpenScaleksteddomurn:uuid:441f2e29-88a6-7ec1-3d07-7294774033ab2016-07-22T07:34:00-06:00<p>The link to the hookup guide is MIA.</p>
Customer #472537 on SEN-13261 - SparkFun OpenScaleCustomer #472537urn:uuid:3bae95f5-5b56-5bbc-cb04-7ca5037bc30f2016-07-22T06:23:07-06:00<p>Question: The ability to capture data, coupled with sending that data, via blue - tooth module, or wifi, with a potential AWS backend?<p>Thanks!</p></p>