Register To Comment
Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Arduino programming - 'single shot' code

  1. #11
    Roboteer

    Status
    Offline
    Posts
    789
    Post Thanks / Like
    Sorry, wasn't clear in my previous post. I'd get the arduino to control the 38Khz output.

    I'll have to do a bit of research on MOSFETS - I know what they are but building circuits and choosing the correct components is all new to me really!

  2. #12
    cmalton's Avatar
    Roboteer

    Status
    Offline
    Name
    Chris Malton
    Robots
    Big Dave 3 (ARC)
    Location
    Southampton
    Posts
    27
    Post Thanks / Like
    As I say, if you need some some help - please just ask. I know a few people who've had a go at this sort of thing before and failed due to making silly errors.

    I encourage reading http://lasertagparts.com/mtcore.htm as this may help you out with a lot of answers to questions as well.

    For the FETs, the IRFD110 seems to have become a bit of a standard as well - readily available in the UK from Farnell.

  3. #13
    Roboteer

    Status
    Offline
    Posts
    789
    Post Thanks / Like
    Thanks mate. Already got those pages added to my favourites! Their page on optics has helped formed most of my shopping list.

  4. #14
    Roboteer

    Status
    Offline
    Posts
    789
    Post Thanks / Like
    Quote Originally Posted by DoubleTrouble View Post

    // Determine when button pressed . . .
    if (buttonState == HIGH and buttonState <> buttonStateLast) {
    For some reason, when i verify the code it doesn't like the '<>' bit saying:

    exit status 1
    expected primary-expression before '>' token

    I'm guessing the '>' is required here as you would need the button state to be larger than the last state to indicate the trigger had previously been released?
    Last edited by Danjr1; 25th January 2017 at 18:22.

  5. #15
    Roboteer

    Status
    Offline
    Name
    Infinite Monkeys Fighting Robots
    Location
    Stratford upon Avon
    Posts
    22
    Post Thanks / Like
    Not equals is != on the Arduino and not <>

    should have said said I wrote the code off the top of my head

  6. #16
    Roboteer

    Status
    Offline
    Posts
    789
    Post Thanks / Like
    thanks again!

  7. #17
    Roboteer

    Status
    Offline
    Posts
    789
    Post Thanks / Like
    Whilst its more dangerous, wouldn't it be easier to create what I'm trying to make using a 5mw laser? I wouldn't then have to use any optics as what I'd need would come with the laser?

  8. #18
    cmalton's Avatar
    Roboteer

    Status
    Offline
    Name
    Chris Malton
    Robots
    Big Dave 3 (ARC)
    Location
    Southampton
    Posts
    27
    Post Thanks / Like
    Personally (and this is from experience having used the LS20/20 infrared laser modules) the beam is so narrow that it makes hitting the sensors very, very difficult. The laser tag industry has been using IR LED + lenses for the last, what, 30 or so years (longer than I have been alive!). I know that there is one system that is out there using lasers (if memory serves) and it does work, but you have to be very very accurate. It was built for the military, but has since been commercialised.

    If you want some kit-form lens systems, I'd suggest talking to Tony at TagBits - he did most of the 3D printing for my laser tag kit that I run commercially, so knows what he's doing.

Register To Comment

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •