Build A Smart Mousetrap / Arduino

  Рет қаралды 9,142

0033mer

0033mer

Күн бұрын

This video will describe how to build a mousetrap for catch and release or extermination. The mousetrap uses a microcontroller so many options can be incorporated.
Infrared proximity switch:
www.bc-robotics.com/shop/infr...

Пікірлер: 36
@mirokefurt4740
@mirokefurt4740 4 жыл бұрын
Now all you need is mouse that you train to go into the tube, that may be the most difficult part. Average mouse is bit smarter than you trap !!!
@0033mer
@0033mer 4 жыл бұрын
If there is food they will come... kzbin.info/www/bejne/nmPHi6h4ar2kY5o kzbin.info/www/bejne/n3i7io2tj6qNl5I
@K9-33
@K9-33 3 жыл бұрын
kzbin.info/www/bejne/gYLHfp-qpL9rsNk
@danielstarnes7354
@danielstarnes7354 2 жыл бұрын
Mice are not very smart. All this project needs is 4" of water or windshield washer fluid in the shopvac and they will drown. Great build, cheers!
@TheTubejunky
@TheTubejunky 4 жыл бұрын
I thought of using a vacuum yrs ago for this very purpose! You've done it very well 👍. Thank you for this build sir.🧰
@UndernetSystems
@UndernetSystems 5 жыл бұрын
Great trap brother, seems like it will work pretty well.
@spiderjuice9874
@spiderjuice9874 4 жыл бұрын
Another clear video!
@romancharak3675
@romancharak3675 5 жыл бұрын
What a fun idea for a mouse trap!
@PhG1961
@PhG1961 5 жыл бұрын
Great video !
@Tarbard
@Tarbard 5 жыл бұрын
Such a great idea
@erikburman530
@erikburman530 5 жыл бұрын
Brilliant!
@harnaikhothi3277
@harnaikhothi3277 3 жыл бұрын
thank you for help this prog work well and going to try the other program hopefully learn forth on the way with example
@0033mer
@0033mer 3 жыл бұрын
Glad I can help! Just curious, are you using TeraTerm for your serial terminal?
@harnaikhothi3277
@harnaikhothi3277 3 жыл бұрын
@@0033mer yes tera term i am have any other problem when store the prog in flash memory by flush i get ok reset controller i lose the prog?
@0033mer
@0033mer 3 жыл бұрын
After you type flush type extend and it will be saved after reset.
@clutchboi4038
@clutchboi4038 4 ай бұрын
This has eliminated the mice in my dad's garage I think 🙏5 in 2 days . I put a heatsink on the relay so I'm not worried about it getting stuck 😂 rather have the mouse or rat stuck and the vac running than it getting away. Wrote in Arduino IDE instead and it was pretty straightforward. I have mine running for 15 seconds just to make sure it gets sucked in.
@0033mer
@0033mer 4 ай бұрын
Thanks for sharing! Glad it was helpful.
@UpcycleElectronics
@UpcycleElectronics 4 жыл бұрын
You need a pet snake for your free range organic feeder. Your Forth dictionary is an object of envy. I now have the longer version of that FF5 pdf guide you linked to before. I also have several PIC18F26K22's in transit, and am working on laying out and etching a development board. That chip has more details in the guide than the AVR so I figured it was worth trying. I also picked up "Starting Forth" by L. Brodie and "Threaded Interpreted Languages" by R. Loeliger second hand on eBay. There is also a 1hr 46min interview with Chuck Moore (the creator of Forth) from 2017 on YT. It's a bit of a slow/dry watch, but gives an interesting first hand account of Forth, it's utility, and philosophy. I thought I'd mention it for anyone that is interested in learning more. Thanks for the inspiration. -Jake
@0033mer
@0033mer 4 жыл бұрын
Those books should help you out. Here are a few more you might be interested in: www.exemark.com/FORTH.htm thinking-forth.sourceforge.net/thinking-forth-ans.pdf galileo.phys.virginia.edu/classes/551.jvn.fall01/primer.htm ftp://ftp.taygeta.com/pub/Forth/Literature/rtfv5.pdf In time you will have your own dictionary which will enable very fast project development.
@UpcycleElectronics
@UpcycleElectronics 4 жыл бұрын
@@0033mer Thanks for those. I was looking at getting "Thinking Forth" too, but more than 2 books at a time is usually pointless for me. Something inevitably ends up pretentiously sitting on a shelf unread. FYI, that last link is broken, the one for "Real Time Forth" by Tim Hendtlass. Just searching for the PDF by name "rtfv5.pdf" brought up several results though. A lot of these are available as used library books on eBay. Most can be purchased in print for less than $5 shipped here in the US. Thanks again. -Jake
@UpcycleElectronics
@UpcycleElectronics 4 жыл бұрын
@@0033mer Hey! I have a question I hope you might know the answer to. I got several PIC18F26K22's yesterday and started playing. The FF5 Assembly file for the PIC18 (ff-pic18*asm), came up with a build error out of the box. The error is on line 2535 and is preceded by: ifdef ANSELC ifdef ANSC7 The code is commented with "enable digital RC7 for RX." (UART) I got it working. I'm not asking you to fix my problem or anything like that. I don't understand/know if I fixed it properly, or as intended. I think the issue was just a minor error. I started guessing how to fix it based on context elsewhere in the code, and eventually got it working. I haven't played with much assembly programming. I certainly couldn't write anything useful from scratch...yet. The original problem line was: bcf ANSELCNSC7, BANKED ; The issue is that "ANSELCNSC7" is unrecognized. I managed to figure out "bcf" is the "bit clear" instruction. I found a bunch of references for older PIC's and found calls to things like "BANKSEL" and "BANK 0" or "1," but I didn't find anything about "BANKED" specifically outside of this ff-pic18 file. I didn't see it mentioned as an instruction for this PIC either, so I imagine it's in the Microchip MPASM docs. I didn't go there though... So I'm not sure exactly what that does. I imagine its related to fetch and store type register bus directives. I don't want to take too deep of a dive into Assembly and lose track of learning FORTH.... That's somewhat tangential though. I got the code to compile, upload and communicate by changing the problem line to: bcf ANSELC, ANSC7, BANKED ; I think this is what was originally intended, a call to the register, then the specific bit, instead of the conjoined, unrecognized instruction. I would have written this off as a simple error, but the Assembly code that proceeds the problem on the next few lines is related to PIC18 chips that have 2x UART connections. In the "RX enable" subroutine for this UART, the ff-pic18 assembly code has a similar compounded word for the same RX enable instruction: bcf ANCON2NSEL18, BANKED ; I don't know if that is valid, or if the assembler is ignoring it entirely because I haven't defined a 2nd UART connection. I searched the web/datasheet/several Microchip docs, for these instructions but I didn't see anything informative to this context while skimming. The important thing is that it works now. The code is on the controller and I've confirmed 2-way communication in a serial terminal. I'm just curious if I fixed it correctly, and if there is an additional error in the UART2 code, or if I should have fixed my problem another way. If you don't know off the top of your head, it's no big deal. I don't expect you to look into this or anything. I'm just curious if I got it right or if there's a simple solution I should know about :-) Sorry if this is difficult to follow. I'm sure I'm misusing lots of (unfamiliar to me) terminology while attempting to explain all of this. Thanks for reading this far, and thanks in advance for any insights you might be able to share :-) -Jake
@0033mer
@0033mer 4 жыл бұрын
I used Flashforth on a PIC many years ago but went over to AVR so I have not used the current PIC versions. There is a forum available and the author Mikael Nordman is active with providing support. There is a typo on line 2535 according to the forum and your fix is correct. Correcting mistakes is a good learning experience Check the Flashforth website for support information. Consider uploading a video on PIC Flashforth after you get it up and running smoothly.
@UpcycleElectronics
@UpcycleElectronics 4 жыл бұрын
@@0033mer That's where I was going with this :-) I am trying to put together and remember all of my steps well enough to make a simple walk through. I may just do some screenshots with text and music, but I'm not sure yet. I have a new white desktop I need to have installed before doing uploads with any kind of video. I hope I can get around to making something. I have a couple of the 40 pin version (PIC18F46K22) on their way too. I'm around 98% finished with a double sided layout in KiCAD as well. It has a nested 28 pin μC footprint inside of a 40 pin so all the PIC18 chips will work in it. I added a 1602 LCD header, a few LED's and buttons, and a dual regulator setup. The main thing I try to do is breakout all the μC pins onto socket strip headers spaced to fit the outer pin hole edges of a 5x7cm perfboard. Basically after I have the dev board in hand, I just add male pin headers to the outer sides of a 5x7cm perfboard and it plugs into the dev board kinda like an arduino shield. This leaves the center of the perfboard open to prototype on. I was torn while doing the layout. I'm tempted to order them from a board house. I can change a few footprints now and make that happen, but I finally went with my "beefy etch" style where I make the pads and traces as large as possible to enable easier etching. I made the mistake of designing around the board house's specs at first instead of my shelf stock of copper clad, so now I need to order more to actually etch the board.... Oh well... Oh, and I also added a CH340E USB to TTL chip and USB Type B connector. The 340E is the new one in a SOP10 package without the need for a crystal. I've been using them and they work well. If my dev board works I'll post the final complete KiCAD .PRO / Gerbers / Transparency files on GIThub for anyone that is interested. Anyways...thanks for the tip to check out the forum. Will do :-) -Jake
@ImnotChuck.
@ImnotChuck. 5 жыл бұрын
Do you put water in the vac?
@0033mer
@0033mer 5 жыл бұрын
Water in the vac for extermination .. no water for catch and release.
@espaniomarinig9261
@espaniomarinig9261 5 жыл бұрын
how many catches?
@walkertubes
@walkertubes 4 жыл бұрын
Any mouse trapped so far?
@marklyon3071
@marklyon3071 4 жыл бұрын
Great idea and product, would you be interested in selling the finished product perhaps in a PVC pipe that I could hook to my shop vac?
@0033mer
@0033mer 4 жыл бұрын
For a finished product the easiest way would be to contact your local Maker club which have the facilities to build one. Show them the video and they will build one to mate to your shop vac. Here is an example of a local Maker club: makercube.ca/
@therealblujuice
@therealblujuice 4 жыл бұрын
Please put a video up of it working :)
@0033mer
@0033mer 4 жыл бұрын
It would be subject to take-down by You Tube.
@simplelyf4072
@simplelyf4072 4 жыл бұрын
Hi :) In your “init” code, are “pin2” and “pin8” forth words that you defined separately and previously added to your library? Can you share the actual code you used to define them? I’m trying to understand how to write code to initialize arduino pins in forth. Thanks!!
@0033mer
@0033mer 4 жыл бұрын
I have posted Interactive Arduino (IA.hex) in my dropbox where you can download it here: www.dropbox.com/s/b8p77vnjlxbr0u3/IA.hex?dl=0 It is eForth by Ting. Program the Nano with this hex file. Extended fuse FD, High D8, Low FF. Lock bits FF. Tera Term 19200 N 8 1 On power-up type INIT to get Pin2-7 as inputs and Pin8-13 as outputs. Check out my video on Interactive programming. Go through the examples in the video. kzbin.info/www/bejne/hoqTYpJvmaaBmpo Now you will have the words I use in my videos.
@simplelyf4072
@simplelyf4072 4 жыл бұрын
0033mer, Thanks for the videos and the file. I got my programmer and am up and running IA Forth on my Uno!
@boonedockjourneyman7979
@boonedockjourneyman7979 5 жыл бұрын
I hope I never piss you off.
Load Cell Interface  / HX711 / Arduino
12:54
0033mer
Рет қаралды 18 М.
How To Build A Simple Carbon Microphone
7:02
0033mer
Рет қаралды 11 М.
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 100 МЛН
THEY WANTED TO TAKE ALL HIS GOODIES 🍫🥤🍟😂
00:17
OKUNJATA
Рет қаралды 23 МЛН
Дарю Самокат Скейтеру !
00:42
Vlad Samokatchik
Рет қаралды 7 МЛН
Charlieplexing Using A Microcontroller  / Arduino
7:14
0033mer
Рет қаралды 5 М.
DIY live mouse trap with optical sensor + Arduino
3:53
Marco Reps
Рет қаралды 23 М.
I2C Bus Programming On AVR Microcontollers
14:09
0033mer
Рет қаралды 14 М.
Intro to Hardware Reversing: Finding a UART and getting a shell
12:07
Tony Gambacorta
Рет қаралды 883 М.
MEMS Microphone Interface  / Arduino / Clapper Switch
9:08
0033mer
Рет қаралды 18 М.
AC Current Detection Interface
6:28
0033mer
Рет қаралды 25 М.
Massive AliExpress Haul - Arduino & Electronics Edition (2024)
16:58
Risto Innovates
Рет қаралды 2,9 М.
PART 52 || DIY Wireless Switch forElectronic Lights - Easy Guide!
1:01
HUBAB__OFFICIAL
Рет қаралды 47 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 51 МЛН