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

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

πŸŒ€ Motion Sensor (Accelerometer ADXL345)

#BlockWhat it doesDropdown optionsWhat the options mean
3Acceleration sensor ADXL345 β†’ xsensor β†’ Return acceleration (mg) β†’ xReads acceleration datax, y, z, (x,y,z)Choose which axis to read β€” or all three at once

🌑️ Temperature & Humidity Sensor (DHT11)

#BlockWhat it doesDropdown optionsWhat the options mean
4DHT11 β†’ PIN# 2 β†’ Return temperatureReads temperature from DHT11Return temperature, getHumidityChoose whether to read temperature or humidity

πŸ“ Distance Sensor (Ultrasonic)

#BlockWhat it doesDropdown optionsWhat the options mean
5Ultrasonic ranging (cm) β†’ Trig # 2, Echo # 10Measures 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