HC-SR04

For general Flowcode discussion that does not belong in the other sections.
medelec35
Matrix Staff
Posts: 1964
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 629 times
Been thanked: 659 times

Re: HC-SR04

Post by medelec35 »

Thank you for the interesting post with your findings.
I do have an Eblocks2 suggestion which will be great for connecting any modules, via male Dupont connectors.
Don't let the name mis lead you.
I even use one to connect My logic analyser to.
For example, if I have and Eblocks2 gLCD and a BL0011 or BL0055 upstream programming board and I want to Monitor the SPI waveform's.
What I use is:
BL0162 - Servo Motor , but connect my logic analyser to it (it does not have to be used for servo motors)
Or you can use it to connect the HC-SR04 module to it etc.

BL00157 Colour gLCD .

Finally, both Eblock22 are connected to the same port via BL0156 - Splitter
That way a BL0119 EB2 to EB is not required with the added advantage is the BL0162 - Servo Motor will supply 8 x I/O channels, 8 x +5V and 8 x GND pins.
Yes, you can use the BL0162 for both inputs and outputs.

As you are a VC if you would like the splitter and servo motor board, I can see what I can sort out for you.

They do make testing a lot easier. :)
Martin

chipfryer27
Valued Contributor
Posts: 1575
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 357 times
Been thanked: 561 times

Re: HC-SR04

Post by chipfryer27 »

Hi Martin

I have both the BL0080 and EB-006 sitting on a bench at any time, and being inherently lazy just grab the one closest to me (who wants to stretch and extra 50cm or so?) :) I've a mixture of old and new E-blocks and years ago built some "breakout" boards to fit the EB-006 with pins as external connection. This allows me to jumper to whatever and also clip to the desired pin, and with the BL0119 I can mix-n-match.

That is a really good suggestion regarding the BL0162 - Servo Motor though.

As I have little need to use Servo's I barely glanced at it, but now I can see its value. Using it I get access to each pin on a port and as a bonus a +5v and Ground per data pin too (which could power some module).

Initially I didn't see why I would want the splitter. If a module was using say four-pins of a port, all it does is allow me to use the other pins, just like my breakouts would do. Now I've thought on it the value isn't in that at all. The value is I get access to ALL pins so not only do I get to use other pins I can also monitor activity on any pin too, well if I grab some breakouts to go alongside.

Regards

medelec35
Matrix Staff
Posts: 1964
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 629 times
Been thanked: 659 times

Re: HC-SR04

Post by medelec35 »

The reason for the splitter is so you can connect for example the Echo pin of ultrasonic distance sensor to pin C1 and the logic analyser also to pin C1
Can you PM me and let me know if you would like additional Eblocks and we can take it from there.
Martin

Post Reply