{"id":297,"date":"2014-06-06T16:38:55","date_gmt":"2014-06-06T16:38:55","guid":{"rendered":"http:\/\/www.thinkering.de\/cms\/?p=297"},"modified":"2017-02-20T08:19:03","modified_gmt":"2017-02-20T08:19:03","slug":"ballistic-chronograph","status":"publish","type":"post","link":"http:\/\/www.thinkering.de\/cms\/?p=297","title":{"rendered":"Ballistic Chronograph"},"content":{"rendered":"<p>Projectile velocity meter based on the Atmega8. It&#8217;s still in the breadboard stage of development, but is working already. I&#8217;m going to use it to measure the velocities of the coilgun projectiles to determine muzzle energy and efficiency.<br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\nThe Software was written in BASCOM basic, since this was the platform I started programming microcontrollers. The cheap 2&#215;8 character LCD is connected to PORTB. The INT0 and INT1 pins have a BPW40 phototransistor (positioned 10cm apart from each other) and a 4.7K pullup-resistor connected to each of them.<br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\nAs long as the light beam hits the phototransistor, it pulls the pin to ground. If the beam is broken, its resistance rises and we&#8217;ve got our rising edge on the interrupt pin. INT0 starts the Timer, INT0 stops it. A simple calculation is performed and we&#8217;ve got our velocity in [m\/s].<br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<a href=\"http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/velocity-meter-on-breadboard.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/velocity-meter-on-breadboard-300x225.jpg\" alt=\"velocity meter on breadboard\" width=\"300\" height=\"225\" class=\"alignnone size-medium wp-image-299\" srcset=\"http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/velocity-meter-on-breadboard-300x225.jpg 300w, http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/velocity-meter-on-breadboard-1024x768.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\nThis side-project was taken as an opportunity to make a PCB with Eagle CAD and the photoresist method. I&#8217;ve been making my own PCBs at school, but that was some time ago.<br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\nAlso, the code was completely rewritten in C using AVR Studio 4.<br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\nBelow you see my experimental etching setup. A water bath heats up the sodium persulfate to up to 50\u00b0C and the aquarium air pump creates some bubbles for movement of the solution around the PCB.<br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\nThe stencil for developing the PCB was printed on inkjet overhead projector transparencies. 3 stencils were printed and superposed to make the traces more solid. My conclusion is that you don&#8217;t reach a resolution high enough for SMD components, at least not with my printer.<br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<a href=\"http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/etching-setup.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/etching-setup-300x225.jpg\" alt=\"etching setup\" width=\"300\" height=\"225\" class=\"alignnone size-medium wp-image-306\" srcset=\"http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/etching-setup-300x225.jpg 300w, http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/etching-setup-1024x768.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\nThe final result: The finest component is the ribbon cable connestor for the LCD, a custom eagle part was created for it.<br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<a href=\"http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/etched-PCB-for-chrono.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/etched-PCB-for-chrono-300x225.jpg\" alt=\"etched PCB for chrono\" width=\"300\" height=\"225\" class=\"alignnone size-medium wp-image-304\" srcset=\"http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/etched-PCB-for-chrono-300x225.jpg 300w, http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/etched-PCB-for-chrono-1024x768.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\nThe brackets for the light barriers were milled using a Proxxon BFB2000-SI-BFW 40\/E-SI-KT 150 setup. The IR LEDs and photodiodes were scavenged from some old device.<br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<a href=\"http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/chrono-parts.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/chrono-parts-300x225.jpg\" alt=\"chrono parts\" width=\"300\" height=\"225\" class=\"alignnone size-medium wp-image-305\" srcset=\"http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/chrono-parts-300x225.jpg 300w, http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/chrono-parts-1024x768.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\nThe final PCB: coated and soldered.<br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<a href=\"http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/covered-PCB-for-chrono.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/covered-PCB-for-chrono-300x225.jpg\" alt=\"covered PCB for chrono\" width=\"300\" height=\"225\" class=\"alignnone size-medium wp-image-303\" srcset=\"http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/covered-PCB-for-chrono-300x225.jpg 300w, http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/covered-PCB-for-chrono-1024x768.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\nThe final assembly: the light barriers are 30cm apart.<br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<a href=\"http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/final-assembly-chrono.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/final-assembly-chrono-300x225.jpg\" alt=\"final assembly chrono\" width=\"300\" height=\"225\" class=\"alignnone size-medium wp-image-301\" srcset=\"http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/final-assembly-chrono-300x225.jpg 300w, http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/final-assembly-chrono-1024x768.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n Despite having learned a lot during developing this machine, I would consier the end result to be a typical maker FAIL, since this is a very inaccurate instrument. I should find out why this is so some day. Whether it is the source code or the physical assembly&#8230;<br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\nBut I don&#8217;t regret a thing! It was a great motivation to acquire some very useful skills!<br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\nThe Code, as well as the eagle files are found under the link below.<br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<br style=\u201dclear:both;\u201d \/><br \/>\n<a href=\"http:\/\/www.thinkering.de\/cms\/wp-content\/uploads\/2014\/06\/Chronograph.rar\">Chronograph<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Projectile velocity meter based on the Atmega8. It&#8217;s still in the breadboard stage of development, but is working already. I&#8217;m going to use it to measure the velocities of the coilgun projectiles to determine muzzle energy and efficiency. The Software was written in BASCOM basic, since this was the platform I started programming microcontrollers. The &hellip; <a href=\"http:\/\/www.thinkering.de\/cms\/?p=297\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Ballistic Chronograph<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/www.thinkering.de\/cms\/index.php?rest_route=\/wp\/v2\/posts\/297"}],"collection":[{"href":"http:\/\/www.thinkering.de\/cms\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.thinkering.de\/cms\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.thinkering.de\/cms\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.thinkering.de\/cms\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=297"}],"version-history":[{"count":5,"href":"http:\/\/www.thinkering.de\/cms\/index.php?rest_route=\/wp\/v2\/posts\/297\/revisions"}],"predecessor-version":[{"id":922,"href":"http:\/\/www.thinkering.de\/cms\/index.php?rest_route=\/wp\/v2\/posts\/297\/revisions\/922"}],"wp:attachment":[{"href":"http:\/\/www.thinkering.de\/cms\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.thinkering.de\/cms\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=297"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.thinkering.de\/cms\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}