Arduino Nerf Target Alarm Clock (Intro to Piezoelectricity)
HTML-код
- Опубликовано: 5 фев 2017
- Project and Video by Chris Guichet
Learn to make a Nerf Dart Sensor using a piezo crystal!
Table of Contents:
0:50 - Piezoelectricity
2:10 - Oscilloscope
4:33 - Clock Build
Music by On Ice
/ on-ice
3D Printer: Ultimaker 2+
Modeling Software: Fusion 360 Наука
Awesome build! And thanks for showing how different a dart impact and finger tap look on the oscilloscope. Very cool!
Thanks Phil!
Loved the video and hopefully the following will encourage more. I have an 11 year old son who has just completed his first solo Nerf mod today, then I found this video. Obviously my son is not ready to take this on himself, but it inspired me to post a link and the following commentary to my FB friends: Had an interesting discussion with my son, Ivan, tonight. He asked me,"What's it like to be a scientist?" I shared with him about the first time I worked in a real research lab at UF over the summer when I was 16. About 2/3 of the way through the program, after I'd learned enough of the basics to be given a real experiment to do, I was meeting with my faculty mentor to go over the data and my understanding of what it might mean (as you might imagine, it was baby steps compared to most of what I've done professionally) was this, "I want you to remember this moment, because this is science. It won't always be like this and certainly every experiment doesn't work. But you ran the experiment, collected the data and did the analysis and until you told my you knew something that no one else in the world, perhaps in the history of the world knew." As you might imagine, those were very inspirational words for an impressionable, young "scientist" all of 16. As I told Ivan the story, I reflected back on his big accomplishment of today, his first solo mod of a nerf gun and how well it had turned out. It struck me that there are many professions (engineering, writing, cooking, art, music, ...) that offer that challenge of figuring something out for the first time, so after he went to bed, I thought I'd explore youtube for other examples and very quickly found this. My question for everyone is, do you have a similar story to share? At it's heart I see very strong parallels to the scientific method in all the examples that I could think of and all I want is to help him ultimately find a career/calling that he will love, so it's a passion and not a job. But this my friends is why I believe we need to teach our kids about science early and often.
Thanks for the nice words Jeff! A big part of why I make these videos is to expose kids to making/engineering before they have to choose their major. It's not for everyone, but hopefully everyone at least has some exposure so they can make an informed decision.
Nicely done! Such a good job on the housing.
I just found this channel and wow, this is great. I hope all is well. I see it has been 11 months since your last video. Hope to see more. Thank you for these!
PacoWang thanks for the nice comment! Work got crazy but I’m FINALLY making progress on the video for how to program the clock. Should be done in a few weeks.
This is amazing, a really cool a really wise application for the piezo.
This video is underrated!
Haha thanks well not in my case I rate myself 5 out of 5 😎👌
Nicely explained and done! Keep up!
Thanks for letting me know!
Was thinking about a DIY nerf targets for my son and myself, so thanks for the inspiration on using piezo as impact sensor. Result by now two nerf targets in different game modes. 1.8 TFT attached for display a healthbar and infos using Arduino Nano connected to a Pi Zero (so you can set up Game Details via Website). You can set the targets to friend or enemy. One more is in progress.
Wow awesome!! I think you're the first person who replicated this project. In retrospect I think I overengineered it and would just use a microswitch if I did it again. But it was a good opportunity to chat about piezo crystals.
Absolutely amazing -- But all I understand is your shooting the alarm clock.
Wow great job, would be really interested to see the code
Very Underrated Channel On youtube. Amazing work!
Thanks Nischal!
Hey bud, did you ever release that video where you go in depth with the 'dart sensor FSM' ? I'm working on a similar project and it would really help. Thanks!
Hey! I didn't make a video about the dart sensor FSM in particular, but I did make a really detailed video about how to do state machines on Arduino. Check the video "Multitask Arduino with State Machines"
Amazing design work! Thanks to this my black friday's 9 euros Nerf gun will leave the drawer :)
Marco Buiani I'll post the 3d models in the description soon
can't wait
Just found this channel through a google search on DIY gym bag. Thanks for the fun tutorials! also, how much could I pay you for one of these nerf clocks?? Brilliant!
Mika Rose thanks for the nice comment! Haha no clock is not for sale, but I hope to sell one of my creations in the future. Whatever it is.
Coming from HaD, excellent video - thanks for showing the clamping effect of the LEDs on the scope and the difference between finger vs dart. Is it possible that a smaller lump of cardboard would oscillate at a higher frequency? it should be an under damped spring-mass system right? thanks for the video!
Really liked this project! Do you have an Instructables page or something like that for it? I'm really thinking about doing something like this :D
I may compile the CAD and code to share. I'll let you know if I do.
Please do :)
@@TheNormalUniverse Any chance you decided to share the code? I would love to learn how you coded to ignore the finger taps.... Awesome videos by the way!
Anthony B hi Anthony sorry I don’t plan to share this code. It’s too messy and I can’t navigate it anymore.
Brilliant!!!
Did this ever get a follow up? I've been looking around and would love some detail on the programming of the dart sensor. Great work and thanks!
Andreas Lekas hey not yet! I’m almost done, it’ll be a video on State Machines. Here’s a quick video test for the follow up. ruclips.net/video/yHnQxAeRhqU/видео.html
Awesome! Looking forward to it. Subscribed!
Follow up ready! It’s my latest video on State machines
This is the future
Subscribed to get the code in the next video :). Great project. And I'll add to the requests to post the CAD for folks to remix/modify etc. Posting .stl is fine, but something that folks can easily modify without having to go back from mesh to solid is awesome.... so either .step or .iges. And yes, I'm guilty of this as well - we should all commit to posting source files in several formats. Again - great project. And thanks for taking the time to make the production value high - good sound is often overlooked.
+LosGuysLive hey thanks a lot. I'm working on a follow up with just the things you're thinking of. Been swamped with work for a few months, sorry to take so long!
Cool !!! And a creative way in interfacing the alarm configuration using only led colours and a potentio (I guess?) Anyway, I didnt see any RTC. Is arduino is accurate enough as a clock, lets say for a month ?
Charles Lyncheese hey Charles. It happens to be a rotary encoder. I thought about using a potentiometer but it wouldn't be precise enough to control 60 LEDs (1023 pot values / 60 LEDs = ~ 17 pot values per LED).
Nice catch! Yup no RTC used. I'm not sure how accurate it is. It can keep time for about a week, but I haven't done a long test. I only use it for coarse time keeping in the garage, so it doesn't need to be dead on. I currently don't know how to interface with an RTC, gotta learn that.
I see... Thank you for the answer and the correction. I personally, never used a rotary encoder before. Will look into that. Happy Learning !
You're way too smart!
This is brilliant.
Brendan C. Thanks Brendan! Follow up video incoming, sorry it's taking forever!!
Thats really cool. Love the basic interface! Whats the wood called or where did you get it from?
Hey Johann you're looking for "Adhesive Backed Wood Veneer" I got it on Amazon.
Thanks!
nice :) , can you put a esp32 in it to sync with for multiple alarms ?
btw good job ^^
Thanks! Sorry I'm not familiar with esp32
Hi ! This clock is amazing !
But, i wonder: is there no difference for the piezo crystal between the cardboard and the 3D printed support ? Or did you have to adjust your arduino code according to your support
+Clem D. I actually never checked that on my oscilloscope. Once I connected the printed sensor I twiddled with thresholds until it started working. I need to dig deeper because it has some false positive and false negative problems. I think the cardboard is better because it's much springier than the plastic.
That is pretty cool. Haven't taken one step further what if you made it into a nerf Night light where in order to turn on or off the nightlightHe required a Nerf dart?
How would I build this myself at home and what is the programming for it
(I reaaaaalllly want to build it and I am quite new to Arduino so if anyone can respond to this I would be sooooo happy)
Hi Sherville. I think I made this project way more complicated than it needed to be. I would cancel all the piezo stuff and use a microswitch. A microswitch is just a button with a very sensitive push you you can trigger it easly. So maybe put a microswitch between a piece of cardboad. The dart will push on the cardboard and activate the microswitch
Hello
I would like to know how did you write the code for Arduino.
Hi Zan, please check out my video on state machines
You could do a voltage divider for 2.5V middle point.
could i do something similar but instead of nerf darts you can throw a ball at it? was wondering if you could help me out.
Hi Anythony thanks for asking. I'm sure you can make something work. Actually in retrospect the piezo crystal method is too complicated for this project. There is a simpler option, it's called a microswitch. It's a switch that has a very soft trigger shaped like a paddle that actuates the switch when the paddle is pushed. So just connect the paddle to your target and you should be good to go. Good luck!
Do you have more information in how you did the housing? This clock looks really awesome :)
+Andrea Koo I modeled it with Fusion 360 (free from Adobe). I'll probably make a video on that sometime
Awesome video. Was wondering if you could give me guidence or tips on something similar?
Sorry I don’t have the energy to give more help right now, the video was my contribution. Good luck on your project! The one piece of advice I always give though is to get the book “getting started with arduino” by Banzi if you’re just starting out
@@TheNormalUniverse I completely understand. Thank you so much for responding and I will def check out the book! Have a great night
Hi, Normal Universe,
My 9 year old showed me your video, which is awesome by the way.
We are wondering where we could find detailed instructions on building this nerf alarm arduino clock.
Could you point us in the right direction?
Gustov Mesén-Jarquín hey thank you for your interest! The best I have is my video on state machines, which describes the method I used to think about and organize the code for this clock. Unfortunately, I don’t have specific step by step instructions for this clock and don’t plan to make any since I’ve moved onto new projects.
are you selling these or how much would it be to request one built?
Hey Dom! I'm glad you like it. Sorry I'm not selling these. It takes me so long to make one I would need to charge hundreds/thousands of dollars (it took me 40-50 hours the first time). Worse it's not reliable enough to justify the cost. I do want to make and sell synthesizers in the future though! I have something in the works.
okay, thank you for replying anyway! im gonna make a more simplistic version for my GF and i that just will be a pressure switch on the wall that snoozes our normal analog alarm clock.
@@dommatryx4660 awesome! Ya I think my clock was way overengineered, I just needed a project to learn with. I think the realistic way to do this is use a microswitch as the dart sensor. Buy an alarm clock and replace the snooze button with your microswitch on the end of a long wire. I'd love to see it on instagram @LesGuichets if you want to share it when you're done. Have fun!
Hello, congratulations for this project which gave us a great idea!
We realized with my son of 9 years the electronic part as well as the code and a cardboard prototype. Would it be possible to have the plans for the 3D part imprinted? Thank you in advance.
+Laurent Martens hi lauren I'm working on a follow up video that will include the code and the model.
Awesome project! Have you thought of Kickstarting it and selling it? But even if you don't I'd love the code and possibly an in-depth tutorial so popped who are as well versed on technology could make them, you've got something big here because the IR alarm clocks don't work because... You know... IR isn't exactly good at not bouncing...
+MagicCookie deeyoope. Follow up incoming with all those things (will take a few weekends). No plan to kickstarter it.
+Normal Universe Awesome, can't wait, congratulations on your success with the final project! And sorry about my comment being so hard to read, I typed it fast in class and didn't proof read.
Should be able to program it for ping pong balls too, right?
brilliant
Amazing! can you go through the steps on how you made it in details? software wise. I wanna make one for myself I really like it
+Yasser Alshalaan hi yasses im working on a follow up video which will detail the code and I'll probably have the 3d ready to share too.
Really cool.
Still waiting for the video with the explanation of the algorithm...
Angel Cellfride oh sorry to keep you waiting for so long. I ended up pivoting a bit and making that video about how to program state machines, I believe it’s a more fundamental description of how I programmed this than just going over this code line by line. I used a state machine to implement the concepts I described in this video, where I count the number and frequency of peaks and use that to detect dart hits.
Edit: I flash up the state machine diagram for the dart sensing toward the end of that video.
can u please share the code of arduino you used. excited to build this awesome project
Hi Saswat, the code is a little janky and not ready for sharing. I'll share it when I have some time to clean it up.
code details in description ?! call me stupid but where can i find the code for this project?
I didn't release this code exactly, it's too janky for public release. If you look at my video on state machines I talked all about how I structured the code and have some examples there for how I coded switches with that structure.
what about programming
very good education make me make good arduino one XD ty
I wanna buy one its soo cool
Thanks for the compliment!
If you sell one lmk know, i want one
Very nice video! I just subbed. I recently started playing with the Arduino, and I just got a 3d printer, so I'm hoping to get a lot out of this channel! It would be awesome if you decided to upload the code for us to try!
Jeff Cournoyer Jeff Cournoyer awesome! Glad to hear you're tinkering. I plan to cover more introductory topics in the future so hopefully that will help. I'll upload code samples once I get the video done explaining the code.
How can I learn about piezoelectricity. From Where do I start from zero..
I know one great resource, unfortunately it's expensive: Handbook of Modern Sensors by Jacob Fraden. If you can't get your hands on that then I suggest lots of googling.
@@TheNormalUniverse thanks mate 😊
please post follow up! very interested in code. love the build
Brandon Edwards thanks! Follow up coming in a couple weeks.
I'd like to recommend you a new alarm clock ⏰ 🏃♂️ 🏃♀️
Please Start Making More vids
There Great!!!
Thanks man! I appreciate the encouragement. I burned out a bit on the state machine video, it took almost a year once you factor in work life balance. I'm going to reset and start making simple videos again just to get the juices flowing. Lately I'm more interested in sewing though so there won't be electronics vids for a while.
Good to Hear!
Can't wait, Take as much time as you need.
I think I will have fun shooting and continue to sleep afterwards.
Are you posting the code?
Eddy Luna hi eddy, sorry to plan to post the code, it’s not good enough to share. I did make a really detailed video about state machines which is what I used to program this. The video is in my channel.
Normal Universe Sorry to ask one more question. I saw those videos and I thank you for the detailed explanation. I don’t have an oscilloscope, do you believe this is something I can accomplish without it
@@BettermentBites yes I think it's possible, but it will be tricky. Without an oscilloscope it's hard to see what's happening in your circuits. One thing you could do is program the arduino to repeatedly read an analog pin and print the value. Then you could take that string of values and plot them in excel or something to see what the analog pin is seeing.
Genius
Thanks Woodrow! I was nice meeting you and seeing your studio a while back! I still need to upload the video I made. Any quadrant events coming up I can help shill for?
Another woodrow I presume? Nice, one could say we are not such a common breed. To my surprise a quick 'woodrow, quadrant' query into the depth reveals cinematic brilliance! Thank's for the tip, however unintended :)
Woodrow Wiest haha amazing. Somebody in the thumbnail of your video looks like my friend David, who played the clones in Quadrant. (FYI Quadrant the movie doesn’t exist. My friend David and his friend Woodrow just made trailers)
Normal Universe , what’s your story? The event machine programming video is spectacular and the first I have seen of its kind. That kind being a clear and thorough multitasking video which is entertaining to watch and interesting to implement. What’s your background? Where are you in the world?
Thanks again! That multitasking video is definitely my mastahpiece so far. It took me over a year with work life balance and stuff. Being technical and 30 minutes long it’s for a small audience, but people are still watching it and leaving nice comments which is great.
I did mechanical engineering at UC Berkeley and learned arduino/electronics from RUclips videos (especially Collin’s Lab!). Right now I work as a Mech E at one of those mega tech companies near San Francisco. The videos are my hobby because I want to brainwash the kids to make things, and especially get into engineering (if it’s right for them). I think I got my early internships/jobs because I was one of the only college students who had made projects and could talk about those stories at my interviews, so ya I hope to motivate people to get crafty.
Make Trampoline (or anything) that you need to jump on it 10 times to stop it. That will wake you up.
+Stens hah that is fantastic
Can u share codes please!! :)
the fuck am i watching :PP
This made me depressed please stop
so much work... just for nothing.
+cylmareall it's about learning and fun