Digi XBee3 is the latest Digi development board with LTE-M radio. The board supports micopython. Here I am going to show you how to connect rain drop sensor with Digi XBee3 and how to code in micropython.
DemoCodeClone from my GitHub repository
Step 1 : | ConnectingConnect all the component according to the attached schematics below.
Step 2 : | Setup IDEDownload and install XCTU from this link
Step 3 : | CodingRun the XCTU and add you radio module into the IDE.
Then go to micropython terminal and click on "Open". Press ctrl+B to begin then press ctrl+E to enter to paste mode. Copy and paste below code into the terminal.Then go to micropython terminal and click on "Open". Press ctrl+B to begin then press ctrl+E to enter to paste mode. Copy and paste the github code into the terminal. Press ctrl+D to exit from paste mode and run the commands. If everything went well, you will be able to see once on the terminal. Now try to apply some water drops on the sensor and see the terminal shows zeros. "1" means no rain.
Comments