Welcome to Laser Pointer Forums - discuss green laser pointers, blue laser pointers, and all types of lasers

Buy Site Supporter Role (remove some ads) | LPF Donations

Links below open in new window

FrozenGate by Avery

445nm Pointer build with Laser Lock security system






Very nice build, also really like your flame thrower build, it looks and runs fantastically.

I would really like to get into programming things like that but have yet to come across anything, the PIC controller looks very nice, do you program it using a kind of flow chart system or purely writing out code?

Cheers :) +rep as well, very nice start to the forum, hopefully you stick around for a few more builds :)
 
I'd like to see PL reactions to this! Surely they must be impressed?

Really nice build Everett!

+1 too.

M
:)
 
do you program it using a kind of flow chart system or purely writing out code?

I usually plan out my code with a flowchart, but the programming is all done in assembly language (code). Most people find it pretty unintuitive, but I have grown to like it much more than higher level languages. Working in assembly puts the programmer much closer to the actual operation of the processor. Here's an example of some assembly code-it's the loop that runs while the switch is down after Laser Lock has been armed (everything after a semicolon is a comment):

clickloop
call getswitch
ifset switchflag ;if switch has been released
goto clicktest ;go take action
decfsz presstimer,f ;count down press time
goto $+2 ;normally jump ahead
bcf clickflag ;if press time was too long, clear the click flag
decfsz blinktimer,f
goto clickloop ;not zero, continue looping
movfw GPIO ;blink timer was zero, so
xorlw b'00000001'
movwf GPIO ;toggle the led
movlw blinktime2
movwf blinktimer ;reload the blink timer
goto clickloop ;stay in the loop

If you are interested in working with PICs, this is a great place to start: Gooligum Electronics
 
Very impressive.... Well executed and very useful...
Keep up the innovations...:gj:

Jerry
 
I prefer asm to the higher level language stuff for micro-controllers as well. I only use it in PC programs when the function needs to be fast. :shhh: Haven't used pic's though. When I first started out I liked the SX Ubicom/Parallax. Its 75 MIPS / 75 MHz. Of course performance is not a constraint in you application, so smaller and cheaper is better.
 
I usually plan out my code with a flowchart, but the programming is all done in assembly language (code). Most people find it pretty unintuitive, but I have grown to like it much more than higher level languages. Working in assembly puts the programmer much closer to the actual operation of the processor. Here's an example of some assembly code-it's the loop that runs while the switch is down after Laser Lock has been armed (everything after a semicolon is a comment):

clickloop
call getswitch
ifset switchflag ;if switch has been released
goto clicktest ;go take action
decfsz presstimer,f ;count down press time
goto $+2 ;normally jump ahead
bcf clickflag ;if press time was too long, clear the click flag
decfsz blinktimer,f
goto clickloop ;not zero, continue looping
movfw GPIO ;blink timer was zero, so
xorlw b'00000001'
movwf GPIO ;toggle the led
movlw blinktime2
movwf blinktimer ;reload the blink timer
goto clickloop ;stay in the loop

If you are interested in working with PICs, this is a great place to start: Gooligum Electronics

Thanks for link, I'll get reading through it today and see how I get on.

Hopefully I can get into this, there's so much potential with the ability to program electronics :) Lot's of ideas I want to get made.

Thanks!
 
Amazing! +1

Now let's see how WL's "Smart Switch" turns out compared to this excellently designed system...

-Chris
 
Not only is this amazing, but your video on the "The Prometheus Device" on youtube was amazing, dude you are awesome!!
 
:eek::eek:
I know some people frown upon necromancy, but this needs to be seen more!
Such a pity that the builder, Everett, doesn't seem to hang out much...
Is that circuit available to buy anywhere?
It would make a great addition to many a handheld build!

Heck, ALL high powered pointers should have this!
 
Hi Anselm,

Thanks for your interest in my project. I'm still around. Yes, I have built up a few Laser Lock boards to sell, and I can customize passwords to whatever the buyer wants.

everett
 
Good Job dude!!
Your laser let me think of one of my flashlight
It's UI is too complicated they have to use flowchart to show it.
and that chart is three times bigger than this laser's.
 


Back
Top