![]() It can communicate with any STM8 (or STM32) microcontroller located on an application board. ST-LINK/V2 is an in-circuit debugger/programmer for the STM8 and STM32 microcontrollers with SWIM and JTAG interfaces. This results in a bidirectional communication based on an open-drain line and provides a non-intrusive read/write access to RAM and peripherals during the program execution. The STM8 MCUs debug system interface allows a debugging or programming tool to be connected to the MCU through a single wire. The designer of the “official” module (tailored on an STM chip) provided it with the single-wire interface module (SWIM) program header, so reverse-engineering of such modules may be possible to a certain extent. As for your measurement, it depends on where you are starting your manual measurement. Furthermore, the HC-SR04 tester introduced here is never 100% accurate (normally about 1 to 2 cm out). In principle, it can “conditionally” detect the distance of objects between 2 and 400 centimeters. I have seen too many posts highlighting the erroneous distance reports of the HC-SR04 ultrasonic sensor module. The compact module helps us to test HC-SR04 modules quickly without a costly microcontroller setup (no code lines/solder smokes) and/or build an extremely portable minimalistic sonar device. It’s undoubtedly a nice concept and clever design. MCD3631BS (three-digit, common-anode, super-red LED display).STM8S103F (multi-purpose 8-bit microcontroller).Key components of the HC-SR04 tester module Because the module delivers the same data through two headers (tx/rx) onboard - yes, the serial interface - you can try it with your terminal application through a standard 5-V USB-TTL adapter, too. It can be used for distance measurement with a plug-in HC-SR04 module to display results (distance in centimeters) on an integrated three-digit LED display. ![]() On to the shortcut: Recently, I came across a cheap module with the label “HC-SR04 Ultrasonic Distance Measurement Control Board.” The module, also named “LC Mini Ultrasonic Tester,” consists of an 8-bit STM microcontroller as the brain (as informed by my supplier). Take note, I already penned a simple tutorial here in year 2014 it’s a done deed (). A bit of Googling will hopefully get you tons of guides on that. In truth, my intent is not to provide a new translation of some well-worn “Arduino & Ultrasonic Sensor” tutorial, which are available all over the web.
0 Comments
Leave a Reply. |