Blocks Area

External Sensor

πŸ“Š External Sensor – Your “Extra Senses”

What it is: Blocks for reading data from external sensors.

What it does: Connects to and reads specialized sensors.

Example: Measures light, temperature, or distance.

πŸ‘‰ These are the robot’s senses (sight, hearing, touch).

Β 

🧩 Fun Guide to External Sensors Blocks (Clu-blocks Pro)

🌍 Important! These blocks let your robot sense the world around it β€” temperature, motion, distance, and more. It’s like giving your robot eyes, ears, and skin!


πŸ› οΈ I2C Setup & Sensor Configuration

# Block What it does Dropdown options What the options mean
1 I2C setup β†’ I2C extend β†’ SCL = 2, SDA = 10, frequency = 100000 Sets up I2C communication β€” Needed for sensors like accelerometers β€” SCL/SDA are data pins
2 count with I2C β†’ I2C extend β†’ xsensor β†’ Acceleration sensor (ADXL345) Initializes an I2C sensor β€” Prepares the ADXL345 to start sending data

πŸŒ€ Motion Sensor (Accelerometer ADXL345)

# Block What it does Dropdown options What the options mean
3 Acceleration sensor ADXL345 β†’ xsensor β†’ Return acceleration (mg) β†’ x Reads acceleration data x, y, z, (x,y,z) Choose which axis to read β€” or all three at once

🌑️ Temperature & Humidity Sensor (DHT11)

# Block What it does Dropdown options What the options mean
4 DHT11 β†’ PIN# 2 β†’ Return temperature Reads temperature from DHT11 Return temperature, getHumidity Choose whether to read temperature or humidity

πŸ“ Distance Sensor (Ultrasonic)

# Block What it does Dropdown options What the options mean
5 Ultrasonic ranging (cm) β†’ Trig # 2, Echo # 10 Measures distance using sound β€” Sends a sound pulse and measures how long it takes to bounce back β€” great for obstacle detection

🧠 Quick Tips for Students

  • Use I2C setup before using any I2C sensor β€” it’s like plugging in the wires.
  • Use ADXL345 to detect movement, tilt, or vibration β€” perfect for motion-triggered actions.
  • Use DHT11 to monitor room conditions β€” like turning on a fan if it’s hot.
  • Use Ultrasonic to avoid obstacles β€” great for robot navigation or parking sensors.
  • Combine sensors to make smart robots β€” like a weather station or a self-driving rover!
On this page