In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Today, the editor will share with you the relevant knowledge points about how to achieve automatic watering in MicroPython. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.
Experimental purpose:
Learn the method of extending the simple Icano interface in the PC system
Learn TurnipBit splicing programming
Learn the working principle and application method of soil sensor
Required original devices:
TurnipBit development board
TurnipBit expansion board
One usb cable
Soil moisture detection module
Some DuPont lines
The principle of soil moisture detection module:
The soil moisture detection module is mainly used to measure the soil volume water content. Based on the principle of electromagnetic pulse, the apparent dielectric constant (ε) of soil is measured according to the propagation frequency of electromagnetic wave in the medium, and the soil volumetric water content (θ v) is obtained. when the soil moisture reaches a certain standard, it begins to water.
Connection method:
The TurnipBit expansion board corresponds to the LED interface as follows:
Source code:
Open the TurnipBit visual programming address www.turnipBit.com
The code is as follows:
From microbit import * while True: if pin5.read_digital (): pin8.write_digital (0) display.show (Image) else: pin8.write_digital (1) display.show (Image.HAPPY)
Visual programming chart
These are all the contents of the article "how to achieve automatic watering in MicroPython". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.