Open sgbaird opened 1 week ago
I set up the RS232 connection with the scale. As shown below, I needed to unplug the auto trickler as it was plugged into the RS-232C serial interface. Currently, it prints “ST” when the weight measurement is stable and “US” when the weight is actively changing and unstable.
That was fast! Great. There should be a second pico 2ch rs232 module available (I think in the same room?), so we can have one for the US solid scale and one for the A&D scale in the office.
Got HiveMQ set up and publishing with no issues, so I’m moving on to the app now. Do you want this one to have the autotrickler feature too? I’ll have to figure out a way to make it work since they both use the same port.
Nice! You'll use the same port, but adjust the MQTT topic structure to differentiate between the two devices. I think a separate app might be better, but I'm open to the idea of integrating it into the existing app.
I think you misunderstood, I meant the physical port on the scale, where both the Raspberry Pi (for the RS232 connection) and the AutoTrickler are connected. But as you can see, only one can connect at a time.
Ah, my bad 😅 The autotrickler can be left disconnected for now.
I set up the app in a private space on my personal account to test it out first. It is currently identical to the previous one but ready to be implemented into the AC Hugging Face Spaces. Side note: no Pico-2CH-RS232 here, just an empty box.
App is public and scale is embedded into GatherTown.
Great! Could you also open a PR with device code and an example of orchestrator code, as well as transfer the hugging face repo to AC?
Done!
As a follow up to #20, the goal is to get a similar interface and IolT setup to that of the US Solid scale. Some related material at https://ac-microcourses.readthedocs.io/en/latest/courses/robotics/3.2-serial-communication.html. In particular:
The connection at the back of the scale is similar. We have two scales (the 1 mg and the 0.1 mg resolution). The 0.1 mg resolution scale is at NRC. Let's focus on the 1 mg at UoT.