Anonymous

Project:Spacensus: Difference between revisions

From London Hackspace Wiki
no edit summary
No edit summary
No edit summary
Line 24: Line 24:
* Try some different timing configurations to improve detection
* Try some different timing configurations to improve detection
* The [https://github.com/londonhackspace/spacensus python script] that provides the data to cacti implements only the 'poll for status' command, but will later allow more control and configuration of the counting sensors.
* The [https://github.com/londonhackspace/spacensus python script] that provides the data to cacti implements only the 'poll for status' command, but will later allow more control and configuration of the counting sensors.
==How it works==
====Sensors====
These sensors appear to be in working order. They'd should be safe to use below child-head height. They were manufactured in 1996 and use a [http://en.wikipedia.org/wiki/Laser_safety#Class_II Class II] laser rated at 3mW (peak), 2kHz 2% duty cycle, with a wavelength of 655-670nm ([[Media:Banner-q45bb6ll.pdf|datasheet]]). The model number is: Q45BB6LL
A good signal can be obtained at 1.5m by using a reflector made of aluminium tape.
====State machine====
The detection aspects of spacensus use an interrupt driven state machine. Anything that isn't time critical stuff happens in a run-loop.
[[File:Spacensus state machine diagram.png|border|640px]]
====Code====
The code is available on [https://github.com/londonhackspace/spacensus GitHub] - please be kind it's my first Arduino project and I know the code is filth.


==Instructions==
==Instructions==
Line 37: Line 50:
|[[File:Laser-safety-door-sign.svg|225px|thumb|External door warning.]]
|[[File:Laser-safety-door-sign.svg|225px|thumb|External door warning.]]
|}
|}
==Sensors==
These sensors appear to be in working order. They'd should be safe to use below child-head height. They were manufactured in 1996 and use a [http://en.wikipedia.org/wiki/Laser_safety#Class_II Class II] laser rated at 3mW (peak), 2kHz 2% duty cycle, with a wavelength of 655-670nm ([[Media:Banner-q45bb6ll.pdf|datasheet]]). The model number is: Q45BB6LL
A good signal can be obtained at 1.5m by using a reflector made of aluminium tape.
==Code==
The code is available on [https://github.com/londonhackspace/spacensus GitHub] - please be kind it's my first Arduino project and I know the code is filth.
The detection aspects of spacensus use an interrupt driven state machine. Anything that isn't time critical stuff happens in a run-loop.
[[File:Spacensus state machine diagram.png|border|640px]]
==FAQ==
==FAQ==


1,649

edits