Description
What it is
The CS100A is an ultrasonic chip compatible with the HC-SR04, used for measuring distance in electronic projects such as those based on Arduino. This sensor operates on a wide range of voltages from 3V to 5.5V.
Features
- Compatible with HC-SR04
- Supply voltage: 3 ~ 5.5 V
What it is for
The main uses of the CS100A include creating home alarm systems that send notifications when a certain distance is exceeded. The sensor can be used in combination with a Wi-Fi module to transmit the detected information.
Tutorial: How to use CS100A
The CS100A is an ultrasonic sensor that can replace the HC-SR04 in Arduino projects. Ideal for beginners and makers of all levels, it allows distance measurement with a supply voltage from 3V to 5.5V.
What you need
- Arduino Uno or compatible
- CS100A
- JST/dual connectors to connect the Arduino to the sensor
Steps
- Connect the CS100A connectors to the Arduino: VCC to 5V, GND to GND, TRIG to a digital pin (e.g., 7), ECHO to another digital pin (e.g., 8)
- Open Arduino IDE and install the NewPing library
- Write the following code in your sketch
Example code
NewPing sonar(7, 8); void setup() { Serial.begin(9600); } void loop() { delay(50); Serial.print(sonar.ping_cm()); Serial.println(" cm");}
Mini project
Create a home security system that sends a notification when a certain distance is exceeded. Use the CS100A to measure the distance and a Wi-Fi module to send the notifications.
Common mistakes
- Do not check the sensor power supply voltage
- Use incompatible connectors
- Insert the TRIG and ECHO pins incorrectly
Recommended accessories
- 16×2 LCD module to display measured distances
- ESP8266 Wi-Fi module to send data over the internet
- 3D printing to create the sensor holder
- USB-C rechargeable batteries as power source
Frequently asked questions
Can the CS100A be used with Raspberry Pi?
Yes, but a logic level converter may be necessary to ensure voltage compatibility.
What are the maximum distances that the sensor can measure?
Check the product’s datasheet to obtain this precise information.






Reviews
There are no reviews yet.