157 points · by pweissbrod · 9y ago · 95 comments
And for those who dont know ESP32 came out erlier this year and has much better specs, power consumption, Bluetooth, etc. You'll want that.
The wemos has a programmer on it, a USB port, etc. It is based on the ESP, but it is a lot more than just an ESP.
You'll want one of the boards listed on this webpage: http://esp32.net
$3 or $15 really doesn't matter here.
It's actually the ESP8266 chip inside that you're after. It runs Arduino code, although you must tell your IDE you're targeting an ESP8266 (it has special libraries for wifi use, etc...).
ESP8266's come on many boards, including the bare-boned ESP-01 [1], which is even cheaper at $1.53 per each.
The only problem with ESP8266's, is they are very power hungry, requiring 500mA-1A for doing wifi related things. Although, when not using WiFi, you can shut down the antenna and save on power consumption.
[1] https://www.aliexpress.com/item/ESP8266-Serial-Esp-01-WIFI-W...
No, it isn't, just like most arduino users aren't actually "after" the Atmega328p.
Every one of the boards we're discussing has an ESP8266... the specific board itself doesn't matter really. You found the chip you need, now you just find the board that has the features you want.
In the case of the arduino, there's a plethora of microcontrollers they can have, ATmega328p being only one of them.
The microcontroller on the arduino dictates it's maximum capabilities - for example, ATmega328p only has one set of hardware serial TX/RX pins, whereas the ATmega2560 has two sets.
In the case of boards/modules built using the ESP8266, the board/module dictates the maximum capabilities. It either exposes GPIO ports or it does not, some boards build in power regulators or battery connectors, or other nice-to-have-features that do not exist in the ESP8266 chip itself. It's the same chip under the hood.
So, yes, in this case, it is indeed the ESP8266 chip you're after.
Most documentation I've seen seems to state a typical max draw of <250mA (for instance, http://bbs.espressif.com/viewtopic.php?t=133) -- I guess there will be some spikes, but I was never aware of anything approaching 1A.
There are several spikes approaching 500mA - and you might see even higher current consumption if you're further from your wifi AP, or if you have extra components, a different voltage regulator, or different capacitors.
Many beginners only have a basic multimeter (if that) so they might have a hard time diagnosing problems caused by spikes in current consumption. So I think it's good for beginners to get at least a 500mA power supply, even though the average on state current consumption only hovers around 70mA.
Anecdotally, I've experienced reliability issues when running off 500mA, but that could just be my setup + accessories.
It's funny how it works - last time I went down the rabbit hole on the tail end of a late night session, everything pointed at 1A being considered "safe", and anything lower was "iffy".
If you put the chip into any of the Deep Sleep modes, power consumption goes way down to just a few mA's, making battery operation much easier.
Wouldn't recommend it is a straight replacement, though, since it uses 3v logic, instead of 5v. A lot of stuff wants to see 5v, so you'd need a logic level shifter to use the wemos stuff as a drop in replacement for the arduino.
Only one analog pin, also.
https://www.aliexpress.com/item/D1-mini-Mini-NodeMcu-4M-byte...
And the older one on making Monkey the cat hunt for his dinner: https://news.ycombinator.com/item?id=10021268 http://benjaminmillam.com/cat-geek/monkey-the-cat-hunts-for-...
I feed mine Wellness Core and they love it.
We all have limitations on the amount of time we can spend with our loved ones (animals included). Making sure they are fed is very important, but sometimes you can't be around when they need their food.
This seems exactly like the best solution to the individuals problem.
Her is the keyword here.
Castrated male cats (cats are almost always castrated here) generally get FLUTD.
We got a special diet for him.
And we CBA with separating them for food. That's just not practical.
So, she'll also eat his diet food.
We occasionally give them some different food like our leftover herring. But that is very salty for them. Its a treat, but not healthy.
Granted, there's no proof that wet is better, there's just a ton of anecdotal evidence that dry food leads to dehydration and kidney issues. I had to switch entirely to wet due to diabetes. Surprisingly, fancy feast classic is one of the most recommended foods.
Sadly OP solution wouldn't help me because they 'd just kick the food under thr sofa where it can rot...
Sweep left (food starts falling), wait on average 90 sec (food gone?), sweep right, wait 85ms.
Then does it stop, or repeat the loop (until the outlet timer turns it off)?
The random sleep seems unusual, though -- I would have normally done delay(random(1802) 1000) -- is this a particular idiom with a benefit I don't know about?
The initial "close" threw me. Is the door initially open? Or are we just jamming it shut and stressing the servo?
I'm particularly unlucky because I live in an ancient house so studs are never ever close by and all the walls are plaster so that means 1 inch hole with a molly screw (with chips of plaster and dust and follow up vacuum job... god forbid you ever take the thing down because now you have to patch the hole back up).
There has to be better solutions to attach things to the wall (and yeah I have done the whole velcro command strip thing as well).
One type is fairly common (and might be able to be used with plaster - maybe) which has a plastic insert you install into a drilled hole, then when you thread the screw into it, it expands to wedge itself in the hole. IIRC, the largest of these can hold about 30-50 lbs in drywall (probably less in plaster).
The second type uses a large threaded insert; the hole you drill for this is typically larger than the screw which threads into it, but the anchor can hold much more weight (up to 150 lbs per anchor in drywall). I don't think they can be used in plaster, though, as they are meant to thread into the drywall.
I've used both successfully for a number of projects in my house; I have an entire wall (about 12 x 8 feet) of bookshelves (using shelving standards and melamine shelving) held up by the threaded anchors (hundreds of pounds of books). I have used the expanding anchors for heavy items like large pictures and mirrors, among other items.
The major downside with any of these anchors, though, just like molly or toggle bolts they leave larger holes which need to be filled if you move the item. Hence, you typically only use them for items which will rarely, if ever, be moved.
http://www.colfert.com/Public/img/catalogo/products/zoom/img...
https://admin.abc.sm/upload/1115/catalogodinamico/prodotti/H...
Sounds more like an excuse I'd give my wife for why I solved the tampering problem by introducing a mess problem.
I was more focused on the "foraging" concept with regard to cats. I don't think cats forage.
Years ago we rescued a barn cat, she would wonder all over the area to find food (few mi radius): birds, mice, etc.
CleverPet Hubs work with cats, too! https://www.youtube.com/watch?v=lzXwrXEkmHM
Also, there have been rumors that the Hubs will be user-hackable in short order. And they use Particle Photons in any case ...
EDIT: the link I was talking about was thhis: http://www.super-feeder.com/ It is very cool if money is not an object to you
"Eat it up! Eat it ALLL up my little Tigers!"
Anecdotally, once I had two cats that I "trained" to use a catdoor I had just installed.
Cat #1 learned to use it in like three times I guided him thought the thingy. Cat #2 simply couldn't grasp the idea and after like 100 attempts I gave up.
Later I heard "boom, boom, boom, boom, boom, tlatlac!", cat #2 never learned to use the catdoor "properly", or maybe he had some vision defect, cannot really say, but he got that it was a way in so it simply went head in on the whole door (from left to right in 15 cm steps) until he got through the cat door.
One way or the other, he got in.
I think that was half the point.
In the event of a malfunction and all the food is dropped I believe the tigers will actually throw a party.
In the event the tigers die from overeating then I am a terrible tiger dad and they die a happy death.
I do not know how to hack a tiger per se but I like tigers. Which is why I built this. So I dont see myself intentionally putting them in any form of danger.
If you're worried about starvation, the article mentioned that this was only for the morning meal, so that the cats won't drag their human out of bed. If it malfunctions and doesn't turn on, I suspect the cats would fall back to dragging their human out of bed. This isn't for long term "away" feeding - the human will know it malfunctioned long before the cats are in any danger of starvation.