Reddit Reddit reviews SainSmart HC-SR04 Ranging Detector Mod Distance Sensor (Blue)

We found 15 Reddit comments about SainSmart HC-SR04 Ranging Detector Mod Distance Sensor (Blue). Here are the top ones, ranked by their Reddit score.

Electronics
Security & Surveillance Equipment
SainSmart HC-SR04 Ranging Detector Mod Distance Sensor (Blue)
Using IO trigger for at least 10us high level signalThe Module automatically sends eight 40 kHz and detect whether there is a pulse signal backIF the signal back, through high level ,time of high output IO duration is the time from sending ultrasonic to returning. Test distance = (high level time velocity of sound (340M/S) /2Power supply :5V DC, quiescent current : <2mA,effectualangle: <15 ranging distance : 2cm~500 cm resolution : 0.3 cm
Check price on Amazon

15 Reddit comments about SainSmart HC-SR04 Ranging Detector Mod Distance Sensor (Blue):

u/Shadow703793 · 7 pointsr/arduino

Build a line following or obstacle avoiding robot.

You can make it as simple or as complex as you want. Lets take a line following robot for example. On the simple side your code would just check for variation and either move left or right. On more advanced version of the bot, you can use PID so your movements are much more smoother.

Anyway, here's a parts list to get you started:

  • Arduino Uno ($20)

  • Magician Chassis ($15). This has 2x wheels + (geared) motors with one ball caster. [Note: This chassis is a bit fragile, so be careful. There are other chassis you can take a look at]

  • DRV8833 Dual Motor Driver Carrier ($7)

  • Ultrasonic sensor ($6) (one is good enough to start with, you'll probably want 2 more for a proper obstacle avoiding bot)

  • 3-4x QTR-1RC Reflectance Sensor ($7.50-$10). These are great little things you can use for line following OR as a DIY wheel encoder.

  • Some limit switches like this to act as bumper detectors would be a good idea as well.

    Total: ~$60 before S&amp;H

    There you go. You have everything to make a small obstacle avoidance robot AND/OR a line following robot.

    (PS: You can build a line following robot without a micro controller using just comparators if you want to)


    I built this little guy from stuff I had laying around (I tend to have a lot of things laying around because I buy in bulk lol). Here is a video of the older version of the above bot driving around.

    Also check out the tutorials here: http://tronixstuff.wordpress.com/tutorials/ and if you have any questions, post here or the actual arduino.cc Forums.

    edit:

    This is a great little bot. Just swap the PICAXE with Arduino.

    edit:

    On a side note, the FRC team I mentor at started building bots like above because FRC season is over so they needed something to do. Robotics is fun :D

    If you have any questions just ask.
u/doubleplusunsigned · 6 pointsr/arduino

Yep, Arduino is a great starter robot platform. It's got all the low-level I/O to make it work. A Raspberry Pi is not out of the question, but it's better at small form-factor general purpose computing.

If you can solder and have enough budget for it, the Zumo Platform is one of my favorites.

If you want to home-brew, you can get various shields and sensors and whatnot to make something on your own.

I advocate getting a genuine Arduino to start with for a variety of reasons. The biggest one is that the Arduino folks make a very high quality product, and you don't want to be chasing board issues on your first product. There are a whole slew of clones available that would probably be fine, but are much better for your 2nd or 3rd project once you're more comfortable with your programming and connection skills.

There's also more specialized boards like Pololu's A-Star line and the Ruggeduino that are great if you know why you want something like that. But for now, the stock Arduino Uno is probably a pretty safe bet.

u/b4ux1t3 · 4 pointsr/raspberry_pi

I think the most reliable bet would be an ultrasonic range detector.

Just set it to detect differences in distance above the two car bays. If something roughly the height of your car sits under the sensor for three or more seconds, it's probably a car. Easy enough to set up. :)

u/snipesjr · 3 pointsr/arduino

One of these should work. I have a few I got from Alibaba. There are loads of tutorials floating around the web about how to use it:

http://www.amazon.com/SainSmart-HC-SR04-Ranging-Detector-Distance/dp/B004U8TOE6

u/Vock · 3 pointsr/electronic_circuits

Have you looked at these? Looks to be exactly what you're looking for and within budget. Here's an arduino sketch that should explain it's operation and give a bit more details.

u/nerga · 3 pointsr/raspberry_pi

Coding can be done in python. Rasperry pi has by default a RPi.GPIO package that gives you very very easy interfacing with the GPIO pins on the board. You will need some resistors, and some leds, and a breadboard (board that lets you put wires into it so you don't need solder). Assuming you have a pi and that is working I would get these:

breadboard

jumpers

resistors and leds starter kit

DMM, not necessary but nice to have.

Here is a nice guide to the pinout on the pi and the numbering system

This is a nice guide to using rasperry pi GPIO python package

This is the generic python tutorial assuming you do not know python.

edit:

while we are at it here are some other fun things you can do with a pi:

Make it move with these ICs and DC motors. Not pi can not hook up dc motors directly, thus the chips. There are also rover kits with dc motors and wheels already.

There are sonic range sensors.

GPS receivers

temperature sensors

uv light sensors

There are a lot of projects you can do with relatively cheap sensors with the pi.

u/otherguyoncouch · 2 pointsr/arduino

Check this out on AMZN:

Ultrasonic Module HC-SR04 Distance Sensor For Arduino
http://www.amazon.com/dp/B004U8TOE6/ref=cm_sw_r_an_am_ap_am_us?ie=UTF8

u/meglets · 2 pointsr/arduino

You could probably get it shipped to Europe through Amazon. And here's a cheaper version -- 4 pins instead of 3, but probably works just as well!

Ultrasonic Module HC-SR04 Distance Sensor For Arduino

u/rockstar504 · 2 pointsr/AskElectronics

If LIDAR is expensive, you can't go wrong with the cheap version of the Ping sensor, the HC-SR04. It's ultrasonic and should be like 3-150cm range iirc. but it's $6 with Prime. If you want a decent cheap distance sensor, this will be hard to beat.


https://www.amazon.com/SainSmart-HC-SR04-Ranging-Detector-Distance/dp/B004U8TOE6

u/The16Points · 2 pointsr/raspberry_pi

Some dumb ideas to help get the ball rolling in this thread...

Motion activated security camera using Motion or MotionEyeOS -- it's one of the go-to Pi Zero W projects, and you could set it up to email you photos and video.

Perhaps a Check-In system? Just spitballing, but a Pi paired with a touchscreen would allow patients to check-in electronically when they show up for their appointments.

Similarly, an ultrasonic sensor connected to a Pi could be placed by the front door, and could send you a notice every time someone entered the room. This could be useful if you regularly have to leave the front office empty.

I don't work in a doctor's office, and I know I'm totally not being helpful but think of all the things a computer can do in your office -- and then ask, what are some things you'd like to automate, or some things that could be more effective if they were smaller or more portable?

For example, would it be useful to put a $5 Pi Zero in each examination room and pair it with an RFID reader, for tracking doctors and/or patients?

Like with any technology, it might be easier to identify specific areas for improvement in your office, then ask in what ways a Pi might solve those problems via its basic attributes (eg low cost, low profile, GPIO pins, etc).

u/TheTechRealms · 2 pointsr/ArduinoProjects
u/hwillis · 1 pointr/robotics

&gt;Body shaped like a broom sitting on wheels. If it has arms they're not movable.

Wood: &lt;$30, Aluminum: &lt;$80. Hacksaw and drill required.

&gt;Outdoor wheels that can move the robot on dirt, gravel, grass.

$30 + some modifications to connect a shaft

&gt;Camera for vision

Either this or a USB webcam

&gt;Can detect and avoid objects

With the webcam? A couple years of machine vision classes + openCV. One method would be to use an object matching algorithm (block matching) and two cameras to guess depth. Thats one of the fastest, simplest algorithms you can imagine, and it would barely run on a raspberry pi with low resolution cameras and fixed depth.

With sensors, you'd want to use the HC-SR04 or something similar. With a significant amount of work you can get a rough idea of what the world in front of you is like.

&gt;Using GPS or something else, only drives within the bounds of a set area (like an imaginary fence)

$16 module. Note that it and GPS in general is only accurate to a few meters. Most of the time the GPS in your car can hardly tell what lane it is in. It is not possible to get better accuracy without some very hard work. GPS is only good enough to say you are around this area. Its good enough to keep you in a backyard, but not on a sidewalk. The application is very important to the solution.

&gt;I'm imagining a robot around average adult height that you could walk around with outside. How difficult and costly of a task do you think this would be for a team to design and build? Do you know of anything similar?

This is one of the most common types of consumer robots. Fully featured they run a couple thousand dollars, or like $700 without the ipad. NB: the GPS/location problem is solved with the ipad, which uses wifi/cellular magic for increased accuracy. Also its remote controlled, and definitely can't leave a smooth floor.

Having the robot follow you on its own is an entirely new challenge. The easiest way would be for you to tether your phone with bluetooth or wifi and send your location data to the robot. Next easiest would be an infrared beacon + camera, or a sonar beacon. Complicated.

The actual hardware parts are super simple. I've used CIM motors a great deal in FIRST. They're pretty thirsty, but the FRC Victors are pretty good. You can use sprockets and chain to get a low reduction, or a gearbox. ~10x is enough to get 10" wheels to about as fast as a human can run, and torquey enough to get 200lbs up pretty much any slope/accelerate quite speedily. A 220 Wh battery would be enough to keep a 100lb robot following a walking person for a couple hours, or 20 minutes at max speed. This $100 battery is 355 Wh.

u/coderbond · 1 pointr/csharp

How complex is up to you, I mean... its going to be a digital or analog stream right, so you'd have to be able to decern pitch frequencies inorder to make voice commands; thats my guess any way.

http://www.amazon.com/Ultrasonic-Module-HC-SR04-Distance-Arduino/dp/B004U8TOE6/ref=pd_rhf_se_shvl5

This is a distance sensor for arduino, which is the C or C++ big brother to NetDuino. My understanding is that all the big brother stuff will work with the .NET Micro Framework and NetDuino SDK.




u/zeperf · 1 pointr/AskElectronics

There are range sensors for microcontrollers that are really cheap: https://www.amazon.com/SainSmart-HC-SR04-Ranging-Detector-Distance/dp/B004U8TOE6 I just got one in a few days ago and was going to start playing with it. It claims 400mm range.