Step 6Let's Reset The Damn Cartridge, Already! Sheesh!
Resetting cartridges is best done in bulk - use up all but one, setting the empties aside, then you can knock them all out in a few minutes on a Saturday and be done for a few months. Resetting a cartridge literally takes five seconds once you've done all the prep work.
Hook up your battery (or USB - remember the jumper) to the Arduino and give it about ten seconds to load the program and get it running. There will really be no indication that it's ready - I suppose I could add software for that later.
Slide the cartridge into the holder. The LED will illuminate almost immediately - reset was successful. Slide the cartridge out, and in a couple of seconds the light will go out - its ready to reset another one.
Lather, rinse, repeat.
Putting your CatGenie back together consists of reversing the disassembly.
Unplug your Arduino and set it aside until next time.
| « Previous Step | Download PDFView All Steps | Next Step » |










































I've made a few mods to the code which :
- Flash the LED on for 5 seconds at startup, to show the program is working
- Correctly lights and blanks the LED on a successful cartridge reset. Previously it was always on.
You should remove the cartridge during the time that the "reset OK" light is on (2 seconds).
This worked well on my Duemilanove.
For some reason they don't allow code to be pasted into comments - new code is available at http://www.poptart.org/catgenie.pde
thanks
You can try changing that to a higher number, though beware that the CatGenie might not like it (haven't tried myself as I like to be reminded when the carts are getting empty).
If it doesn't work, just change it back to 60 and re-flash.
J>
On a related note ScottSEA, great work on this!! Been meaning to comment but only signed up recently. Been using this for a year, and it has been working great. I modified it slightly for my purposes (added blinking light just so know it was active). Integrating this with an automatic cat feeder and a motion sensor for the catgenie so it turns on/off automatically.
Thanks again ScottSEA. Double thumbs UP!!! :)
Cartridge Arduino
1&2 4
4&5 5
7&8 GND
10&11 3V
As for making a hand held device it's not very difficult, here's mine:
http://i40.tinypic.com/2encbj6.jpg
1. Download drivers/software from http://arduino.cc/en/Main/Software
2. Connect the board via USB, load drivers
3. Open Control Panel, Select System, Open Device Manager
4. Expand Ports, check which port the USB Virtual Device is (COM4 for me)
5. Launch arduino.exe
6. Paste the source code in
7. Select Sketch, Verify/Compile (it should compile correctly)
8. Select Tools, Serial Port, and then the port from step 4
9. Select Tools, Board and verify the correct board is selected
9. Select File, Save As, name it "catgenie"
10. Select File, Upload to I/O Board
You should see tx and rx flashing and then it should report "upload successful"
Hopefully I haven't missed anything, let me know how that works out for you.