Batch weighing system

lastchancename:
Aus_sparky, roughly where do you live?
I may be able to help you out if we're close enough. Melb SE.

You sound like a bit of 'over the shoulder' guidance will push you along with fundamentals.

Hi,

Sorry I haven't replied for a while as I am back at work now. I need to buy myself a decent book on arduino as the one I was sold is only very vague and does not explain things in good detail (hence my struggles). What suburb are you in??

Thanks, Rob.

Glen Waverley
Send a PM for more details!

odometer:
What do you mean, a "word" of data? And what is a "target weight"?

Instead of trying to describe the output, show us the output. Use copy-and-paste.

The word of data I am talking about is what the digital scale sends to the arduino which is basically the weight that is on the scale. The target weight or preset weight is what I want to replicate and the data I want to save. I'm sorry but I don't have any more code to post, that is why I am after guidance.

Aus_sparky:
The word of data I am talking about is what the digital scale sends to the arduino

Why do you call it a “word”?
What does it look like? Can you show it to us (instead of just telling us about it)?

Try running the code you posted in reply #9. Try running it with nothing on the scale. What exactly shows up on the Serial monitor? Do not describe it to us; just copy and paste it into a reply so we can see it.
What does a weight of “zero” look like? What does it do when you put a 5 lb. bag of sugar (or the Australian metric equivalent thereof) on the scale? What happens when you put the bag of sugar on the scale, then tare the scale (push a button to make it show zero) and then remove the bag? Does the scale go into negative numbers? What happens on the Serial output?

Again, please show us rather than just telling us.

Aus_sparky:
The word of data I am talking about is what the digital scale sends to the arduino which is basically the weight that is on the scale. The target weight or preset weight is what I want to replicate and the data I want to save. I’m sorry but I don’t have any more code to post, that is why I am after guidance.

It’s often called a ‘sentence’ - a single ‘message’ which might be formed from one element of data, or a combination of values delimited in some way for the receiver to parse apart as needed.

We can’t guess at what the data ‘looks like’ - so it’s impossible to suggest the best method to ‘decode’ it. It may be ASCII, binary, delimited in some way, include a preamble, checksum etc.

That’s why @odometer suggested sending a capture of the actual data
Remember - I mentioned PuTTY serial logging in a PM…?

Hi,

When running the code attached to post # 9, it displays what ever weight is on the scale pan. If nothing is on the pan, zero is displayed when the data is sent to the Arduino. The A&D scale sends the data out in ASCII.

odometer:
Why do you call it a "word"?
What does it look like? Can you show it to us (instead of just telling us about it)?

Try running the code you posted in reply #9. Try running it with nothing on the scale. What exactly shows up on the Serial monitor? Do not describe it to us; just copy and paste it into a reply so we can see it.
What does a weight of "zero" look like? What does it do when you put a 5 lb. bag of sugar (or the Australian metric equivalent thereof) on the scale? What happens when you put the bag of sugar on the scale, then tare the scale (push a button to make it show zero) and then remove the bag? Does the scale go into negative numbers? What happens on the Serial output?

Again, please show us rather than just telling us.

I can post something, I will set everything back up tomorrow and post it for you.

ok, so while the scale is empty, it sends 0.00 over and over again continuously?
Same when an item is weighed...? How many digits?
No carriage returns, linefeeds, no decimal offsets, negatives, units etc
The number means nothing if it's out of context.

lastchancename:
ok, so while the scale is empty, it sends 0.00 over and over again continuously?
Same when an item is weighed...? How many digits?
No carriage returns, linefeeds, no decimal offsets, negatives, units etc
The number means nothing if it's out of context.

No, the data is only sent from the scale by manually pressing a button on the scale keypad. Initially I had it setup so that it was sending out fourteen characters excluding the terminators, but now I have it setup for nine excluding the terminators (I changed the data format in the scale).

The initial format looked something like this: ST,+00012.78_ _ g CR LF (the underscores are actually horizontal square brackets).

It now looks like this: +00012.78 CR LF

Aus_sparky:
No, the data is only sent from the scale by manually pressing a button on the scale keypad.

What is the good of that, then?

Initially I had it setup so that it was sending out fourteen characters excluding the terminators, but now I have it setup for nine excluding the terminators (I changed the data format in the scale).

What is a terminator?

The initial format looked something like this: ST,+00012.78_ _ g CR LF (the underscores are actually horizontal square brackets).

What are "horizontal square brackets"?

It now looks like this: +00012.78 CR LF

How hard is it to do what I asked and just copy and paste the output from the Serial monitor into the reply box? (preferably inside code tags, to reduce the chances of it getting mangled by the forum software)

odometer:
What is the good of that, then?
What is a terminator?
What are "horizontal square brackets"?

How hard is it to do what I asked and just copy and paste the output from the Serial monitor into the reply box? (preferably inside code tags, to reduce the chances of it getting mangled by the forum software)

No, it's not hard to copy and paste the serial monitor output, but I have other things on that delay my reply. I don't appreciate your tone either... All I ask is if people are willing to assist, please be patient as I am very new to this type of programming. I'm sure you were once too.

Aus_sparky:
No, it's not hard to copy and paste the serial monitor output, but I have other things on that delay my reply.

Then we have other things on that delay our reply.