Sale! 5-Channel Reflectance Sensor Array for Balboa 32U4 Balancing Robot View larger

Imaginile sunt utilizate exclusiv cu titlu de prezentare. Fotografiile nu creează obligații contractuale.

5-Channel Reflectance Sensor Array for Balboa 32U4 Balancing Robot

0104110000070593

New product

This reflectance sensor module is designed specifically for use with the Balboa 32U4 balancing robot. It features five IR LED/phototransistor pairs that are great for identifying changes in reflectance on the ground directly underneath the Balboa (like detecting or following a black line on a white background). The sensor array offers dimmable brightness control, and each sensor provides an independent output that can be measured with a digital I/O.


See Description for more details about the product.

Don't delay, buy today. Add to cart now!

More details

This product is no longer in stock

$6.00
tax incl.

Valid in the limit of the available stock

The price includes the costs for collection, treatment and ellimination of WEEE

Add to wishlist

More info

Overview

The 5-Channel Reflectance Sensor Array for Balboa provides an easy way to add line sensing to the Balboa 32U4 Balancing Robot. It features five separate reflectance sensors, each consisting of a dimmable IR emitter coupled with a phototransistor that responds based on how much emitter light is reflected back to it. The array is intended for Balboas assembled with 80×10mm wheels that are operating in upright (balancing) orientations.


Included components and mounting options


The reflectance sensor array ships with all of the components you need to connect it to a Balboa 32U4 control board:


aa.jpg


b.jpg


The 1×7 female headers should be soldered to the connections near the bottom edge of the control board. You can do this without removing your Balboa control board from the chassis. One female header should be soldered between the pins labeled GND and A3, and the other female header should be soldered between the pins labeled GND and A2. The solder joints should be on the component side of the control board.


cc.jpg

d.jpg


The sensor board can be mounted to the Balboa so that it aligns with the center axis of the chassis or the edge of the chassis, which might make following a line easier (since the sensors will be farther forward when the Balboa is upright). How the included right angle headers are connected to the sensor board determines whether the board will be center- or edge-aligned. See the pictures below for how to position the header pins for each mounting option.


e.jpg


Center-aligned mounting option for the 5-Channel reflectance sensor array for Balboa.


f.jpg


Edge-aligned mounting option for the 5-Channel reflectance sensor array for Balboa.


g.jpg


Right-angle headers installed for center-aligned mounting option.


h.jpg


Right-angle headers installed for edge-aligned mounting option.


Using the sensor array


The array uses the same sensor modules as our QTR reflectance sensors and has the same principle of operation as the RC versions, for example, the QTR-MD-05RC. The typical sequence for reading a sensor is:

1. Turn on IR LEDs (optional).

2. Set the I/O line to an output and drive it high.

3. Allow at least 10 μs for the sensor output to rise.

4. Make the I/O line an input (high impedance).

5. Measure the time for the voltage to decay by waiting for the I/O line to go low.6. Turn off IR LEDs (optional).


i.jpg


Schematic diagram of an individual QTR sensor channel on an RC-type board. This applies only to the newer QTRs with dimmable emitters.


These steps can typically be executed in parallel on multiple I/O lines. Because this array works like our other QTR sensor boards, you can use it with our QTR Arduino library, which provides methods for controlling the emitters, calibrating the module, and reading the individual sensor values. Keep in mind that how you mount your sensor will determine which I/O lines on the Balboa you are connected to. You can read the silkscreen markings on the sensor board and the Balboa to determine which sensor is connected to which I/O line.


j.jpg


With a strong reflectance, the decay time can be as low as a few microseconds; with no reflectance, the decay time can be up to a few milliseconds. Meaningful results can be available within 1 ms in typical cases (i.e. when not trying to measure subtle differences in low-reflectance scenarios), allowing up to 1 kHz sampling of all sensors. If lower-frequency sampling is sufficient, you can achieve substantial power savings by turning off the LEDs. For example, if a 100 Hz sampling rate is acceptable, the LEDs can be off 90% of the time, lowering average current consumption from 125 mA to 13 mA.


k.png


QTR-1RC output (yellow) when 1/8" above a black line and microcontroller timing of that output (blue).


l.png


QTR-1RC output (yellow) when 1/8" above a white surface and microcontroller timing of that output (blue).


Emitter control


The sensor array maintains a constant current through its IR emitters, keeping the emitters’ brightness constant. The emitters can be controlled with the board’s CTRL pin.


Driving the CTRL pin low for at least 1 ms turns off the emitter LEDs, while driving it high (or allowing the board to pull it high) turns on the emitters with the board’s default (full) current, which is 20 mA. For more advanced use, the CTRL pin can be pulsed low to cycle the associated emitters through 32 dimming levels.


m.gif


Demo of IR LED dimming on the 5-Channel Sensor Array for Balboa 32U4 (as seen through an old digital camera that can see IR).


To send a pulse, drive the CTRL pin low for at least 0.5 μs (but no more than 300 μs), then high for at least 0.5 μs; (it should remain high after the last pulse). Each pulse causes the driver to advance to the next dimming level, wrapping around to 100% after the lowest-current level. Each dimming level corresponds to a 3.33% reduction in current, except for the last three levels, which represent a 1.67% reduction, as shown in the table below. Note that turning the LEDs off with a >1 ms pulse and then back on resets them to full current.


Dimming level (pulses) Emitter current (%)
0 100.00%
1 96.67%
2 93.33%
3 90.00%
4 86.67%
5 83.33%
6 80.00%
7 76.67%
8 73.33%
9 70.00%
10 66.67%
11 63.33%
12 60.00%
13 56.67%
14 53.33%
15 50.00%

Dimming level (pulses) Emitter current (%)
16 46.67%
17 43.33%
18 40.00%
19 36.67%
20 33.33%
21 30.00%
22 26.67%
23 23.33%
24 20.00%
25 16.67%
26 13.33%
27 10.00%
28 6.67%
29 5.00%
30 3.33%
31 1.67%


For example, to reduce the emitter current to 50%, apply 15 low pulses to the CTRL pin and then keep it high after the last pulse.


Example code


The Balboa32U4 Arduino Library provides a way to easily read sensor values from the reflectance sensor array, and it includes a demo sketch showing how to do so. See this section of the Balboa 32U4 user’s guide for library installation instructions and the library documentation for more information.


Don't delay, buy today.


Add to cart now!

Reviews

Write a review

5-Channel Reflectance Sensor Array for Balboa 32U4 Balancing Robot

5-Channel Reflectance Sensor Array for Balboa 32U4 Balancing Robot

This reflectance sensor module is designed specifically for use with the Balboa 32U4 balancing robot. It features five IR LED/phototransistor pairs that are great for identifying changes in reflectance on the ground directly underneath the Balboa (like detecting or following a black line on a white background). The sensor array offers dimmable brightness control, and each sensor provides an independent output that can be measured with a digital I/O.


See Description for more details about the product.

Don't delay, buy today. Add to cart now!

Customers who bought this product also bought: