Welcome Guest! To enable all features please Login or Register.
Options
Go to last post Go to first unread
scott@scottelford.biz  
#1 Posted : Wednesday, January 16, 2019 4:06:22 PM(UTC)
scott@scottelford.biz

Rank: Advanced Member

Groups: Registered
Joined: 5/31/2017(UTC)
Posts: 66
Australia

Thanks: 1 times
For my project, I want to be able to track then number of cycles that the battery bank goes through.
I have an output that I can use, but I want a way to track the number of time the bank has charged. This number is going to get up to around the 20K plus number.
i also need to be able to send this data several devices at some point in time. They will be local & remote.
As there is currently no way that I know of displaying this data locally, eg serial print or similar way. I need a way to display the count inside this program. Any ideas?

Local display will be via a nextion display, I'm hoping. Remote will be on a computer screen via ethernet, still require a custom node to be built for this yet. Local comms between battery unit might be done via RS 458 or similar.
EmbrioAdmin  
#2 Posted : Sunday, January 20, 2019 6:20:27 PM(UTC)
EmbrioAdmin

Rank: Administration

Groups: Administrators
Joined: 12/11/2014(UTC)
Posts: 639

Thanks: 1 times
Was thanked: 36 time(s) in 33 post(s)
You should be able to do a serial.print in a custom node. It might interfere with the connection program which does a lot of its own serial.prints (I don't quite remember but I think Embrio will just ignore input data that's not in the correct format so it shouldn't mess things up). But for the final program a serial print should work fine.

I'm not sure what you mean that you need a way to display it "inside" the program.

As a side note, I'm wondering if you should look into saving your counter in EEPROM in case your Arduino resets. Something like this https://www.arduino.cc/en/Reference/EEPROM might be a good idea, maybe write a node that has an integer input and a trigger input, firing the trigger updates the EEPROM value and that value is shown on an output integer. Let me know if you need help writing that node, I'd be interested in adding that to the library or one of the built in tabs.
scott@scottelford.biz  
#3 Posted : Monday, January 21, 2019 7:53:50 PM(UTC)
scott@scottelford.biz

Rank: Advanced Member

Groups: Registered
Joined: 5/31/2017(UTC)
Posts: 66
Australia

Thanks: 1 times
By inside I mean you can see it working like it does when you use serial print with an arduino.
This would help debug the code, I use this alot when adding math to code to make sure it's right and I'm doing it the right way around. Once it's working as I want I remove the serial print from the code and keep going.

I'm at the point in my project where I'm adding in math to work with the analogue inputs & out puts.

I know I'm going to need your help to get this all started, but once I have a grip on it, should be good..lol

I'm using the note tab and it's a great help. Still have some trimming to do but so far so good.

I'm changing the I/O's to suit the Industrial shield that I have and will connect it up, hopefully this week, as this is the unit I'm going to be using in the battery bank.

I will be adding an nextion display to the system as the next main part so more changes to come..

I might need some help with the coding for the display, mainly were strings go etc.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error