![]() ![]() ![]() # read 10 lines from the serial output for i in range( 10): Serial( '/dev/tty.usbserial', baudrate = 4800, timeout = 1) as ser: In Python, the implementation is quite simple: The library is easily installed using pip3 ( pip3 install pyserial). Luckily, the PySerial library provides easy access to all matter of serial communication (Raspberry Pi and otherwise). In theory the Rapsberry Pi was an easy solution, all we needed was the Python code to make it happen. In the rain, the Raspberry Pi could easily be tucked away in a waterproof container, which was another issue we faced with using laptops in the field. All totalled we needed to collect bathymetric data for 5 days, which represented a significant challenge even with multiple batteries.Įnter the Raspberry Pi, which runs on 5 volts and can easily log serial data provided a suitable USB adapter. However, the two lakes we needed to map were massive, and we needed a large amount of detail. Usually the lakes we do research on are quite small, and the battery life of our laptops (around a few hours) is not an issue. On the laptop, we used sofware called UnderSee Explorer (formerly Contour3D) which as far as I can tell, is now completely out of business. ![]() Our usual approach is to use an old Windows XP laptop with a serial port to log data from our Garmin GPS/Depth sounder unit. A few months ago I needed to create detailed bathymetric maps for a water utility with which I was doing research. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |