2015-02-11 09:32 AM
Hello, i want to program a STM32F4 board in CoIDE so it can transmit a voltage to a pin and then stop for a while and then again transmit voltage to the pin. I want to program the board so it can send periodically voltage to a ultrasound transducer. It has to do something like this:
Can someone help me please? I have programmed easy things like turning on the leds but i'm stuck for doing this. Thank you very much #coide #discovery #stm32f42015-02-11 10:26 AM
And what voltages and currents are you expecting to use? How do other people interface such sensors to micro-controllers?
Can you a) drive it with a timer channel output (TIMx_CHx), or b) drive it from the output of the DAC, perhaps through an op-amp or buffer?2015-02-11 10:39 AM
Well the 5V from the USB bus. I already have the idea how to connect the micro-controller to the sensor. I will use a h-bridge to alternate the wave from positive to negative.
The only thing I don't know how to do is program the micro-controller so it can make a square-wave. It has to arrive to a pin of the board a square wave with the highest voltage that support de pins (3,3V). So it should do something like: 0 ms 0V 1 ms 3,3 V 2 ms 3,3 V 3 ms 0 V 4 ms 3,3 V . . . etc. Thank you for reply