Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Recent content by LightWorks

  1. L

    [ARM] Interfacing HC-SR04 Ultrasonic Sensor with STM32L1

    I forgot to answer the other part of the question. It's a standalone sensor, not included as part of the board. here's the layout. I'm using a voltage divider to reduce the voltage, trying to avoid damaging the board pins. - - - Updated - - - Some other change that I made, I've changed the...
  2. L

    [ARM] Interfacing HC-SR04 Ultrasonic Sensor with STM32L1

    Apologies for the late reply. Alright, so I've implemented the troubleshooting method recommended by you, and I was able to point out some issues, some I could resolve and other I couldn't. I've made some minor updates on the code: #include <stdio.h> #include "stm32l1xx.h" //...
  3. L

    [ARM] Interfacing HC-SR04 Ultrasonic Sensor with STM32L1

    I've noticed that all of the similar cases (interfacing HC-SR04 with STM32 board) are using a different method. They are configuring the Echo & Trigger pins as input and output respectively, plus they are using External Interrupts. On the other hand I'm configuring them both as Alternate...
  4. L

    [ARM] Interfacing HC-SR04 Ultrasonic Sensor with STM32L1

    A friend of mine had suggested the same few weeks back, so I'm waiting for the Oscilloscope, Logic Analyzer, and a proper DMM. Till then, I should figure our a good troubleshooting plan.
  5. L

    [ARM] Interfacing HC-SR04 Ultrasonic Sensor with STM32L1

    I've removed the while(1); part from the blinking LED code, and the outcome is exactly the same, it's blinking as it should. Just thought I should mention it.
  6. L

    [ARM] Interfacing HC-SR04 Ultrasonic Sensor with STM32L1

    Hi Andre, As far as I know (not that much), while (1); is some sort of a superloop, which is used to keep your program from exiting until you're ready, so in that case I guess it gives very short time to capture an error in the result of systick function after diving by 1000. However, I've...
  7. L

    [ARM] Interfacing HC-SR04 Ultrasonic Sensor with STM32L1

    Hi All, Since this is my first post, I'm expecting a decent support from the forum members :-D before I write my question, I would like to ensure you that I went through the Reference manual, datasheet, and text book (Embedded Systems with ARM Cortex-M Microcontrollers in Assembly Language and...

Part and Inventory Search

Back
Top