Jump to content
Toggle sidebar
Search
Create account
Log in
Personal tools
Dark mode
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information
Editing
LN Tank Scale Creation
(section)
Page
Discussion
English
Read
Edit
Edit source
View history
More
Read
Edit
Edit source
View history
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
= Downloading and Testing Code = In order to download and test the code, some programs and files must be on the computer beforehand. Thonny must be installed to download the code to the Pico, Serial Port Terminal should be installed to interact with the scale after the code is on the Pico, and Git should ideally be installed to make the code acquisition process easier. The interpreter file for the Pico should also be installed on the computer. To download the code to the host computer, go to the Aeon Laboratories Github page and download the LN Tank Scale code. It should consist of two files, main.py and hx711.py. Download by cloning the repository with Git, or any other method of choice. Once the code is downloaded, plug the scale into the host computer with the USB cable. The board should already be in boot mode since it's the first time plugging it in, but if the drive isn't appearing then manually start it in boot mode by holding the reset button on the board while plugging it in. Once the drive appears, copy the interpreter over to it in file explorer, which should restart the device. Use Thonny to open the two files, and make sure to select the correct device in the bottom right of the window. The correct one is called Micropython(Raspberry Pi Pico), not Micropython(RP2040). Download the hx711.py to the Pico. If you want to test the code, run the main on the computer before downloading to the Pico to make sure it's running properly. Relevant commands include: z - displays the device name, the date of the code's last change, and the free memory on the Pico g [g1] [g2] - displays the gain, or sets the gain for each bridge amp. Omitting g2 causes g1 to be used for both amps. r [i] - displays a reading from the scale, or sets the output to display a reading on an interval of i seconds. h - displays a header showing the meaning of each value of the scale's readings shutdown - shuts down the board Once the code is verified to be working correctly, download main.py onto the Pico using Thonny, then close Thonny. From this point onward, use the serial port terminal to interact with the board (turn CRC codes off beforehand). If necessary, unplug and re-plug the board in to re-initialize the code. Also, be aware of a bug in the serial port terminal program that causes the wrong COM port to be used. If the COM ports in the program and in the program window's header (upper left corner) don't match, select the proper COM port and click the reset button in the bottom right corner.
Summary:
Please note that all contributions to Aeon HACS Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Aeon HACS Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)