I'd like, eventually, to have several gauges showing different useful items of information. Given that I've got two working, it makes sense to use them both. Average wind speed and maximum gust will work nicely for the moment.
Some changes in the code are necessary. To drive multiple gauges from one serial line we end up with a master/multiple-slave type situation. There are various protocols that would be good for this: RS485 is the one I'm most familiar with, but I2C would work too. Before I go down that road though, I'm of the opinion that simplest=best so I'm going to try sticking with just using the TX pin from the Pi and dividing it between multiple 'slaves'.
So, I need some new arduino code. I'm going to use a single identifier character to indicate which gauge the message is for. As before, a new line indicates message complete. I'm also going to add a character to 'reset' or zero the gauges.
It's getting a bit long to be posting the code up here, so I signed up for Github.
They work! Hurrah! And yes, it's extraordinarily windy today.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.