A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By alonewolfx2
#8988 thank you for your explanation.
User avatar
By dynek
#29870 Any chance to see a diagram of how it should be hooked up. I don't seem to understand how to deal between 3.3V and 5V.

All I need to have this working is one 3.3V GPIO -> level shifter -> and a 5kΩ (or 1k I saw both values mentioned) resistor between echo and trigger ?
User avatar
By AusUser
#57479 Hi there I'm also interested in this. I've found two articles with two approaches, https://sheldondwill.wordpress.com/2014/02/04/using-an-ultrasonic-sensor-hc-sr04-with-a-3-3v-micro-controller-tiva-c-series/ Using a 1K on the echo pin (although the diagram show the trigger pin)

and

https://sheldondwill.wordpress.com/2014/02/04/using-an-ultrasonic-sensor-hc-sr04-with-a-3-3v-micro-controller-tiva-c-series/

This has 2K2 and 4K7 on the echo pin