working srf05 with 3.3V

Go To Last Post
14 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


Hey there

is it possible to work with SRF05 module in 3.3V?

Last Edited: Sun. Feb 20, 2022 - 05:31 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Do you have 5v rail in your system somewhere or just 3.3v only?

“Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it?” - Brian W. Kernighan
“Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.” - Antoine de Saint-Exupery

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

all of system work with 3.3V

my MCU is stm32

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It is the /almost/ same circuit as SR04, so: 5V only.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How I can connect 5V module to 3.3V MCU?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This says 3.3V or 5V:

 

https://www.adafruit.com/product/4007

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

hasanzadeh99 wrote:
How I can connect 5V module to 3.3V MCU?

 

You need a level shifter between them. It can be simplified if you know schematics, for example if 5V does work "open collector".

 

As for 5V, it is easy to provide by one of cheap board, search for this:

0.9-5V To 5V DC-DC Step-Up Power Module Voltage Boost Converter Board 1.5V 1.8V 2.5V 3V 3.3V 3.7V 4.2V To 5V

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hasanzadeh99 wrote:
How I can connect 5V module to 3.3V MCU?

does this "3.3V MCU" have 5V-tolerant IO pins ?

 

EDIT

 

Oh - I missed:

hasanzadeh99 wrote:
my MCU is stm32

So, as Ross said (below), why are you not asking on ST's own forum?

 

See your other thread: https://www.avrfreaks.net/commen...

 

Some pins on STM32s are 5V tolerant - see the datasheet for details.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Mon. Feb 21, 2022 - 08:51 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

hasanzadeh99 wrote:
my MCU is stm32
So why aren't you  asking your question over at their site?

Ross McKenzie, Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What MCU module that you had ?

www.tokopedia.com/madagang .Buy and Donated cheap electronics and manuscripts.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

valusoft wrote:
why aren't you  asking your question over at their site?

Seems he now has: https://community.st.com/s/question/0D53W00001NWTmISAX/is-it-possible-to-connect-srf05-module-ultrasonic-to-stm32f030k6t6-and-work-with-33v

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


clawson wrote:
This says 3.3V or 5V: https://www.adafruit.com/product...

But that seems to be  a slightly different module:

 

 

Which, of course, raises the question: if 3.3V operation is important, why not just pick a 3.3V module in the first place??

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

awneil wrote:
But that seems to be  a slightly different module:
yeah I know that. What I was suggesting is "why have a battle with 3/5 boundaries if you can buy almost exactly the same thing in a 3V ready form to start with?" Too often we seen threads here about people designing system with the "wrong" components and then having an uphill struggle to make it work. But if you design in the right components from the start you can have a smooth, carefree journey to the solution instead. 

 

(of course if you already ordered 10K pieces of the 5V one and "have to make it work" then I guess that's different but, as always, doing the upfront design work pays dividends and that includes designing in the right components in the first place).

Last Edited: Mon. Feb 21, 2022 - 11:41 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:

if you design in the right components from the start you can have a smooth, carefree journey to the solution instead. 

yes STM32 module had 5V and 3,3V

www.tokopedia.com/madagang .Buy and Donated cheap electronics and manuscripts.

Last Edited: Mon. Feb 21, 2022 - 01:31 PM