Doubts Arduino

1

Good evening guys,

Well, I have some doubts about Arduino, but I'll give it a contextualized one. Well then, I'm going to use Arduino on a project of mine, and I've been looking for a lot of it to learn, but I find little material specifying how Sensor circuits work, and I'll do something using 3 ultrasonic sensors that captured the dimensions of an object / box, obtaining through the calculation V = hcl, the volume of the object / box then basically is as follows (a schematic made quickly in illustrative paint):

The distance of the sensors will be 2 meters from the base.Bom ai goes the two doubts that I have:

1 - It will be necessary a plate for each sensor, or to connect the distance, using extenders, in a single plate. And besides the factor of distance a plate holds the 3?

2nd - What is the most suitable circuit board model?

If you can answer at least the 2nd thank you that is the most important, thank you !!

    
asked by anonymous 22.07.2015 / 04:36

3 answers

2

Generally, the ultrasonic sensor used in the Arduino requires two digital pins to operate. One pin to trigger the wrist, another to receive it.

The pulseIn function is used to determine the time spent from pulse generation to receiving. Basically, this function waits until a certain pin changes its state to HIGH or LOW, depending on what is specified in one of the function's arguments. From the time returned by pulseIn, the distance from the object to the sensor is determined. You can set a timeout , otherwise this function could block your code.

An Arduino UNO board (one of the most traditional on the market) has 13 digital pins, two of which are for RX / TX (serial communication). If you use serial communication, then you have 11 pins to make these connections. Since there are 3 sensors, you will spend 6 digital pins. The rest you can use for Led, Button, etc.

Answer: An Arduino UNO board will be enough to build your device.

Update

I do not know if the 2m distance between the Arduino and the Sensor will damage the signal. You have to take a test. As the Arduino UNO is priced very affordable, in addition to the sensors, I believe that doing a PoC (Proof of Concept) with these components will be very low cost.

    
22.07.2015 / 21:28
0

Hello, it is possible for a small hack, as a curiosity, to connect the ultrasonic sensor on a single pin, it sends and then the same pin is listening.

The distance of two meters, good depends on the roughness of the surface, the positioning, etc., and in addition there will be a decrease in accuracy.

    
19.04.2017 / 12:57
0

Hello you can use the arduino uno (the easiest to find), since it has 13 digital ports and knowing that you will use three ultrasonic sensors (each sesnor uses 2 digital ports, one for sending and one for receiving the signal), you will still have 7 ports available to add more features to your project.

    
13.08.2017 / 23:44