US Sensor w/Arduino

Discussion specific to the intelligent brick, sensors, motors, and more.
Post Reply
fuzzball27
Posts: 103
Joined: 29 Sep 2010, 17:14
Location: US

US Sensor w/Arduino

Post by fuzzball27 »

I would like to use the Ultrasonic sensor with my Arduino (no NXT). I've been looking all over for quite a while now and I can't seem to find much about this...
I need to know:

- Is it ok to supply the 4.3v pin with 5v? According to this, the ESC015 has a 5v vcc, but the 4.3v pin has a 10 uF capacitor. (I have zero experience using capacitors :oops: )

- How to talk to the sensor with Arduino's I2C. I've heard/seen that the sensor is a bit off from the normal I2C procedures (something to do with using the clock pin more frequently than most I2Cs?) I have found this which I think should help me, but I have very little experience using I2C.

As I said, I've been searching for quite a while now and have found no clear way to use this sensor with Arduino (besides tjkelectronic's shield which I cannot use in this case). I believe the benefits of being able to do this will far outweigh the costs of code hunting and experimenting, and I GREATLY appreciate any help on this!
fuzzball27 >>-->
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: US Sensor w/Arduino

Post by mattallen37 »

A capacitor in parallel to the power supply will reduce (electrical) noise.

5v should be fine, according to what I have heard (YMMV). If you are concerned, you can use a diode in series to drop about 0.7 volts.

You also need to supply 9v to the "analog" pin (pin 1).

You can not use the HW I2C, you must bit-bang it. Try looking at the NXShield drivers (from mindsensors). The drivers aren't necessarily for an Arduino without the NXShield, but you could probably adapt them with some time and effort.
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests