Shop OBEX P1 Docs P2 Docs Learn Events
$7 Laser Sensor Bulk Buy - Page 4 — Parallax Forums

$7 Laser Sensor Bulk Buy

1246

Comments

  • ercoerco Posts: 20,256
    edited 2014-01-12 08:00
    Finally some action!

    Prototype first on solderless to verify function! I always use a machined-pin female socket for the sensor; I did mess one up from soldering.
  • PublisonPublison Posts: 12,366
    edited 2014-01-12 08:09
    erco,

    Just as a refresher, you said you did not use a lens on the receiving end? You where able to get 1-2 meter range?
  • ercoerco Posts: 20,256
    edited 2014-01-12 09:04
    Yessir, no lens, 8-10 feet easily. Keep the laser butted right up against and parallel to the sensor.

    Suddenly we have a horse race! Place your bets, who will get theirs working first, Jim or Martin?
  • Martin_HMartin_H Posts: 4,051
    edited 2014-01-12 10:40
    I'm all wired up and when I plug in the module the laser turns on. Now I need to see if the output pin shows a change in logic levels. Now I wish I built an indicator led into the module. But I'm off to go ice skating with my family so it will have to wait.
  • PublisonPublison Posts: 12,366
    edited 2014-01-12 10:40
    It's workin'. Pinouts were hard to comprehend in the beginning, (is that the front or back view?) It is indeed the front view. No smoke!.

    I made a video, but it's not worth putting up.

    OK It didn't take long to upload.

    I used a standard mirror at about 6".

    Now to go to find some reflective material, Home Depot?
  • Duane DegnDuane Degn Posts: 10,588
    edited 2014-01-12 13:10
    I started this post last night. Since then it looks like several of you have your sensors up and running.

    It sure seems like this sensor is simple enough to use with just some perf board but if might go ahead and submit at least one design to OSH Park

    On with my original post.
    erco wrote: »
    Prolly committing to a laser module size & mounting method is the first step. The laser & sensor need to be butted together. I'll get some of the EG modules.

    Oh yeah? You don't think a board for the sensor and passive would be very useful?

    I guess I was kind of thinking we'd strap the laser to one side of the PCB or the other.

    This latest version has pads on both the top and the bottom of the board which I hope will make it easier to mount the sensor to a laser.
    erco wrote: »
    Maybe 50. How much to make 50 boards?

    Do think there's enough demand for 50?

    I'm not sure how much it would cost to have 50 made.

    The boards from OSH Park generally costs more than some of the other fab houses but OSH Park's prices are very competitive on really small boards (like the one I'm posting here).

    LaserSensor140111b.PNG
    LaserSensor140111c.PNG


    This design would cost about $2.40 for three boards. $0.80 per board isn't bad IMO. Update (1/12) The latest version should cost less than $0.70 a board.

    Looking at the pictures I just uploaded, I can see I'll want to increase the amount of PCB material around the mounting holes.

    There are now five holes on the header. The header has two sections. The section on the left (in the top view) has two holes. This two hole header would connect to the laser. The laser header includes a second Vdd to power the laser. The three hole header could be used to connect to a microcontroller using normal three pin servo connectors. The Vdd pin is in the center like many of Parallax's sensors.

    As I said, I didn't like the way the mounting holes were positioned so here's an alternate design.

    attachment.php?attachmentid=106118&d=1389559525

    I included a couple of reference shapes to help indicate the size of the board. The circle is the size of a US quarter. The small square is one square inch. The larger square is 5cm x 5cm. 5cm x 5cm is the size many fab houses use as a standard PCB size. You can have 10 5cm x 5cm boards made for $10.

    It looks like six of these small PCBs would fit on a 5cm x 5cm board. You could have over 50 boards made of this small design for about $10. The problem with using the 5cm x 5cm board is the design needs to be panelized so all six boards are connected. Made this way the boards would be about 17 cents each.

    @erco, It sounds like you're thinking of a larger PBC to include the laser, right? If so the price per board would increase but I don't think that's much of a concern since, as long as you stay within the 5cm x 5cm size constraint, the board wouldn't cost more than $1 to produce.

    I'll wait a bit for feedback before I finish this last small board. I still need to lay many of the traces and I also want to adjust the board outline to make sure it's symmetrical. Once I finish the design, I'll post the gerbers and anyone who wants to can submit the files to OSH Park and have three boards made for about $2.08 (includes shipping in US).

    So erco let me know what you have in mind for a larger board and everyone else let me know if you have any suggestions on how to change this latest design. This latest design also allows the passives to be placed on the top or the bottom of the board. The passive can be either surface mount or through hole.
    467 x 343 - 20K
    377 x 296 - 20K
    731 x 688 - 30K
  • Duane DegnDuane Degn Posts: 10,588
    edited 2014-01-12 13:28
    Duane Degn wrote: »
    One thing I couldn't figure out was is the diagram you posted from the datasheet showed the backside of the sensor or the front of the sensor?

    I assumed Vcc is on the far left when looking at the back of the sensor with the leads pointing down. Is this right?

    . . .

    And which side of the sensor is the Vcc pin on?

    Looking through the thread again, I see erco already answered me.
    erco wrote: »
    . . .

    Screenshot attached here. The active side is crystal clear, backside is kinda frosted.

    So looking at the clear/active side, the bottom pins are (left to right):

    1) Vout (signal out, active low)
    2) Ground
    3) to laser Cathode
    4) +5V

    Continuing through the thread, I see I wasn't the only one unsure about this.

    So looking at the back of the sensor with the leads pointing down, Vcc (+5V) connects with the pin on the far left.

    Besides erco coming right out and telling us, I did find some clues on Philo's website. One of the pictures show the cap connected to the second from the right pin (viewed from the back of the sensor)

    laser-p5.jpg

    Since the cap connects to Vcc and ground, it's pretty clear which pins are which. The cap lead closest to the camera is connected to the sensor's ground pin.
  • Martin_HMartin_H Posts: 4,051
    edited 2014-01-12 13:32
    Duane, for my Perf board version I use a three pin servo header (Vout, +5, gnd) and that seems to be enough. It looks like the right side of your board is laid out like that, but the left has another Vcc and cathode which I don't understand.

    Update: OK, I think you are allowing the laser leads to be soldered there. I soldered a wire from the Perf board to the housing and directly from the sensors to the cathode.
  • Duane DegnDuane Degn Posts: 10,588
    edited 2014-01-12 13:42
    Martin_H wrote: »
    . . . the left has another Vcc and cathode which I don't understand.

    I haven't used either of my sensors yet, but from what I've read, it looks like the sensor controls the laser with the "cathode" pin. Since the ground side of the laser power is supposed to be connected to the sensor, I thought it made sense to add the positive power supply as well.

    I think the secret sauce of this sensor is its ability to control the laser. It can compare the brightness level with the laser on and off so it can subtract the background light.

    It's much more than just a light meter. I'm starting to understand why erco thinks these are so cool.
  • Martin_HMartin_H Posts: 4,051
    edited 2014-01-12 13:46
    In looking at Philo's site he is using a capacitor, across Gnd and Vcc. Is that a decoupling capacitor? I seem to recall seeing another schematic for this circuit that didn't use one.
  • Duane DegnDuane Degn Posts: 10,588
    edited 2014-01-12 14:16
    Martin_H wrote: »
    In looking at Philo's site he is using a capacitor, across Gnd and Vcc. Is that a decoupling capacitor? I seem to recall seeing another schematic for this circuit that didn't use one.

    Philo calls it a filtering capacitor. In general, it's a good idea to add a cap to every IC being used. Philo is using a 10uF cap, I think I'd be inclined to use a 0.1uF cap if I weren't being told otherwise by someone with more experience.

    I imagine the cap used with the laser sensor helps smooth out the power as the sensor pulses the laser on and off.

    I see in the datasheet it says it pulses the laser with a 1/16 duty cycle but I couldn't find what frequency is use. I wonder how fast the laser is being turned on and off?
  • ercoerco Posts: 20,256
    edited 2014-01-12 16:07
    Duane Degn wrote: »
    . I'm starting to understand why erco thinks these are so cool.

    Finally! I've been blabbing about these sensors and uses for years now. Philo was ahead of his time.

    http://forums.parallax.com/showthread.php/143732-Laser-Triangulation-for-Navigation

    http://forums.parallax.com/showthread.php/120634-Philo-Phan
  • ercoerco Posts: 20,256
    edited 2014-01-12 16:10
    Duane Degn wrote: »
    I see in the datasheet it says it pulses the laser with a 1/16 duty cycle but I couldn't find what frequency is use. I wonder how fast the laser is being turned on and off?

    Think I saw something like ~250 hz on my freq meter IIRC.
  • PublisonPublison Posts: 12,366
    edited 2014-01-12 16:44
    erco wrote: »
    Think I saw something like ~250 hz on my freq meter IIRC.

    I'm reading 7.58 kHz on my PropScope, 3.71 Volts.

    My logic output goes between 0 and 2.63 volts. Could you guys verify that with your rigs?

    Laser.JPG
    831 x 832 - 90K
  • Martin_HMartin_H Posts: 4,051
    edited 2014-01-12 19:21
    Good news / Bad news.

    The good news is that everything is working. The module turns on and if I hold a white card six inches from the sensor the logic transitions from high to low.

    The bad news is that my sensor is myopic. As I move the card away the logic transitions quickly to high.

    My laser module is right next to the sensor, so it might be the alignment, or maybe the target has to be a reflector?

    Update: looking at Philo's module, he has the sensor overlapping the laser module rather than side by side. This looks like he can get even closer alignment because the two are closer to coaxial.
  • Duane DegnDuane Degn Posts: 10,588
    edited 2014-01-12 20:07
    So here's the latest version of a small PCB.


    attachment.php?attachmentid=106146&d=1389585548attachment.php?attachmentid=106147&d=1389585548


    I just submitted (without ordering) the attached gerber files to OSH Park and the price for three boards is $2.00 even. The boards take about two weeks to be delivered after ordering.

    I of course haven't tested these boards so I'd suggest anyone ordering a set double check the traces.

    @erco, let me know if you have some other layout in mind.

    I'll probably wait until tomorrow to order a batch of three boards in case any of you have suggestions on improving the board.

    The small 0.05 pitched holes are the same size I used on the encoder sensor PCB designs. I tested the laser sensor leads in the PCBs I had made for the encoder sensors and the leads appear to fit okay in the small holes.
  • ercoerco Posts: 20,256
    edited 2014-01-12 21:12
    @Duane: you're moving WAY too fast for me. Like I said, the laser module needs to be mounted on board for me, so slow down, partner. Per Martin, this needs to be a standalone unit with a 3-pin header for a servo cable. Numb nuts simple. People will buy.

    @Martin: Keep swinging, something's wrong. Did you breadboard? Swap sensors once you double check everything. It's pretty straightforward.

    Also check this thread. Buzby had a heck of a time getting his to work, and he finally says his particular laser was no good. He claims 26 feet range without lenses with a good laser (I'm skeptical). http://www.picaxeforum.co.uk/showthread.php?24399-Why-no-my-laser-work
  • ercoerco Posts: 20,256
    edited 2014-01-12 21:40
    @Duane: Just ordered 75 EG lasers tonight. Sit tight until I can test them then let's make a board!
  • Martin_HMartin_H Posts: 4,051
    edited 2014-01-13 06:11
    erco wrote: »

    @Martin: Keep swinging, something's wrong. Did you breadboard? Swap sensors once you double check everything. It's pretty straightforward.

    Also check this thread. Buzby had a heck of a time getting his to work, and he finally says his particular laser was no good. He claims 26 feet range without lenses with a good laser (I'm skeptical). http://www.picaxeforum.co.uk/showthread.php?24399-Why-no-my-laser-work

    I did not use a breadboard. I only breadboard when I'm building a circuit where no exiting schematic or prototype exists. If someone else blazed that trail I figure the biggest risk is improper wiring which is equally likely on perfboard or breadboard. The risk of defective components is usually so low that I don't worry about it.

    Also, people have mentioned the laser lens. My laser module had two lenses, a collimation lens internal to the module head, and an external finer focus lens. I removed the external lens, but left the collimation lens. Did you remove both and allow the beam to spread? That could explain why alignment would be so critical with my rig. I can easily remove that lens if needed.

    I stopped by the hardware store and bought some of the 3M reflector tape, so I'll make a target tonight. I think I'm fairly close to getting this working as it seems like an alignment problem.
  • ercoerco Posts: 20,256
    edited 2014-01-13 08:19
    No laser lens mod at all. You want the tiniest red dot possible. Once I managed to melt the lens while soldering to the brass tube of the laser and messed up the focus. Another dollar wasted!

    But I am serious that I always use a socket for the sensor. Machined pins required for a good fit. If you damage the sensor while soldering, you'll never know and you'll drive yourself mad. I tested all the sensors I sold you fine folks and they all worked 100%. Besides avoiding solder/heat damage, a socket lets you easily swap sensors "just in case".
  • Duane DegnDuane Degn Posts: 10,588
    edited 2014-01-13 09:01
    erco wrote: »
    . . . I always use a socket for the sensor.

    I just recently purchased some 0.05" pitch female headers. They look like they might work well with the sensor.

    Here's a couple of photos.

    attachment.php?attachmentid=106154&d=1389632312

    You can see in this next photo how the leads make good contact with the metal strips inside the header.

    attachment.php?attachmentid=106155&d=1389632312

    The header also fits in the 0.05" pitched holes I has planned to use on the PCB.

    Something to keep in mind for the eventual PCB.
    312 x 372 - 38K
    357 x 355 - 28K
  • Martin_HMartin_H Posts: 4,051
    edited 2014-01-13 09:06
    I have machine pins which I'll use if I need to swap the sensor, but I don't think that will be the case. I have a pretty quick touch soldering and rarely heat damage components.
  • ercoerco Posts: 20,256
    edited 2014-01-13 09:07
    Looks great and prolly a nice tight fit on those small sensor leads, DD. Sweet!
  • PublisonPublison Posts: 12,366
    edited 2014-01-13 13:26
    More testing.

    3M reflective tape from Home Depot was cr*p. Gave about 6" of reflective.

    Hillman 3" Red Reflector, so-so. About 10', if you move it about.

    NAPA Reflective Tape. Best so far. About 8-10'.

    Non-front surface mirror, 40' so far. (It's hard to hold it still right after a strong cup of Starbucks Christmas Blend at that range :) )
  • ercoerco Posts: 20,256
    edited 2014-01-13 13:37
    Attaboy Jim! I got approximately the same results (8-10 feet) with my best red reflective tape and my best silver tape, both from the same Ebay seller I listed somewhere previously.

    Can't wait to see what you do with yours now that you have it working!
  • PublisonPublison Posts: 12,366
    edited 2014-01-13 13:48
    erco wrote: »
    both from the same Ebay seller I listed somewhere previously.

    I have been searching, to no avail, for two days for those auctions.

    Anybody recollect the thread?
  • ercoerco Posts: 20,256
    edited 2014-01-13 14:10
    BTW Mike Cook, I def wanna see what you're up to with these. Don't let Jim, Martin & Duane have all the fun!
  • Mike CookMike Cook Posts: 829
    edited 2014-01-13 14:17
    I knew you were going to shame me into opening that “Mattel” envelope!


    I'd love too, but the work, that I do to pay the bills, is kicking my butt right now. My boss quit the first of this year……………….
Sign In or Register to comment.