Your shopping cart is empty!
Read Analog Sensor Value
- Muhammad Aizzat Iqbal Abd Rashid
- 30 Dec 2024
- Tutorial
- Beginner
- 92
This guide covers how to obtain data from analog sensors when connected to the Robo Uno Shield.
Equipped with six versatile ports, the Robo Uno Shield offers simple connections for an array of modules and sensors. Not using compatible modules? No worries! The shield also includes adapter cables, allowing you to make full use of these ports with other sensor types.
The Robo Uno Shield offers four dedicated analog input ports, labeled Grove 1 to Grove 4. These ports can be used to connect and read values from various analog sensors.Additionally, the shield provides a Maker Port that shares the I²C bus with Grove 4. This port can also be used for analog input, expanding the flexibility of the shield.
For this guide we will be using Maker Soil Module, which is an analog sensor.
Connect the Maker Soil module to the port Grove 1 of the Robo Uno Shield. You can also use any port from Grove 1 to Grove 4. Figure below shows the connection between the module and the Robo Uno Shield.
Note: The DIS pin is the disable pin, where a HIGH signal will disable the sensor. This code does not use this pin
Connect your Arduino to the computer. Please ensure that you use a suitable data cable when programming the board.
Open the Arduino IDE and make sure the correct board and COM port are selected.
Copy and paste the following code to your editor:
Verify and Upload the sketch to your Arduino.
Stack and turn on the power switch of Robo Uno Shield. The expected output is the reading from the sensor should be displayed in the serial monitor. Higher voltage means less moisture.
Was this helpful?    [   Yes ] [   No ]