If he really wanted to "learn to solder", one of the esp8266 devkits from the likes of sparkfun or adafruit would have served him better and been cheaper and less power hungry as well. Running an entire Linux server nonstop just to watch for a button press seems excessive.
Otoh, we've reached the point where you can reasonably run an entire Linux server just to watch a button! Awesome.
Yeah, I believe we're at some kind of inflection point here.
I'm old-school embedded. So yeah, get off my lawn you kids that need an RPi, 700Mhz of clock, and a multitasking O/S to read a GPIO pin and send 10 bytes to a server.
But man, you can pretty much run Linux on a single chip now[1], so why mess with anything else? You can tangle with some other the other embedded O/Ses out there for months, or spin up something in Linux in an afternoon.
[1] almost. I've run Linux from an RZ/A1 but with a little bit of external QSPI NOR. I'm guessing the next generation of A9/A15 SoCs will stack more DRAM and NAND flash on top to make this a no-brainer.
It's so amazing how electronics have progressed. a startup called Octavio Systemsn is now selling a single package that can run a Linux system. I wouldn't count it as running Linux on a single chip, (power system, microprocessor, RAM) because I believe there are multiple dies within the package, but still, super impressive.
Any time I see someone messing with a Raspberry Pi I try to steer them towards the TI Sitara/AM335x line.
The schematics for all of their reference boards (aka Beaglebone Black/Green) are freely available, the chip has solid documentation, TI has a good Github+Linux repository, and you can make a really nice system out of it.
The Octavio part is nice, I'm also really interested in what NXP (cough cough Freescale) is doing with turning the iMX into a module. These are both pretty rare birds though. When I can get trays from DigiKey, we'll be cooking.
> Any time I see someone messing with a Raspberry Pi I try to steer them towards the TI Sitara/AM335x line.
I don't think I will ever forgive TI for abandoning the Galaxy Nexus when they decided to abruptly exit the Android business. Since they chose not to update the drivers, Google couldn't update the GNex later Android versions despite being a Nexus phone. Google Glass had a TI chipset and Google managed to deploy a new Android version to it (I guess via some driver-compat work-around) but I hear the setup wasn't stable. I now avoid TI wherever possible.
I was sad to see OMAP go as well. I had been working with it since OMAP1 and it did have some nice features. Sitara is pretty much an OMAP without the video DSP so I'm guessing TI just couldn't find a road into the handset market since Apple and Samsung were locking it all up.
I've since switched to the NXP/Freescale iMX family and it's pretty similar in a lot of ways.
That's really where I burnt the first 4 weeks of this exercise. I would go on those sites, read blogs/posts/product pages over and over, and get overwhelmed and just shut down based on the number of options.
Probably a personal character fault. You're right that it is overkill. And I'll probably be tossing some more money towards SparkFun soon too - but the just from being a pure-software guy to buying/assembling the raw parts just shut me down :-(
> I would go on those sites, read blogs/posts/product pages over and over, and get overwhelmed and just shut down based on the number of options.
Welcome to engineering. Pick one and finish the project. Then look back.
Yes, running an RPi Zero to watch a button press is overkill. So what? It optimizes delivery time over efficiency. You can optimize for cost or power later if you feel like it.
You know what? That's totally ok. When I first heard of the raspi platform that was what I found most exciting. It was going to take a whole world of people with common web dev skills and kick the door open for them to get into hardware. I'm glad to see that's it's completely living up to that promise.
He used a Pi Zero -- cost is $5, the cheapest ESP8266 module on Sparkfun is $6.95.
While the ESP8266 would save some power, the Pi reportedly uses around 0.7W with a USB Wifi adapter, or around 6KWh/year -- so would cost less than a dollar a year to operate. So he wouldn't save huge amounts of power.
Please, please tell me where I can get five Pi Zeros for $5 each, including shipping. Because I've been hearing the "Pi0 is $5" trope for ages, yet I still haven't been able to find one, let alone at quantity, let alone at that price, let alone with free shipping.
Oh huge bump for recommending the Wemos D1. Built in USB to serial. Easy integration with arduino platform. Not magic button presses to enter flash/upload mode. A very easy way to get started with ESP8266. Worth the extra dollar or 2 per unit.
Also check out this one. A wemos made in the shape of a Uno so you can use shields and everything for only $6.
Ah yes, the big WeMos is also good, but the Uno form factor is just too monstrously large these days.
I also designed a tiny breakout board that's pretty much the size of the ESP8266 12E plus some pins (https://github.com/skorokithakis/tiny-ESP8266-breakout), but it's just that, a breakout. I definitely prefer the WeMos for most things, nowadays.
Non-starter. Doesn't even matter if its free if I can only get one. If its "the" pi zero on my bench it means it gets used much differently than if its "a" pi zero.
You're moving the goalposts. Information proving that a Raspberry Pi Zero is available at $5 was provided.
The point is, the Raspberry Pi Zero is $5 and stores sell them for that amount. There is more than one vendor out there. There's also a large demand and shortage of them.
Your original post said "Because I've been hearing the "Pi0 is $5" trope for ages, yet I still haven't been able to find one, let alone at quantity..."
So I was pointing out that you can find one for that price, even if not at quantity.
I don't think anyone ever marketed the Zero as being $5 after shipping, or even said it'd be $5 in every country.
I can buy a nearly endless supply of $5 Zeros at my local Microcenter, so it's not all marketing. They are manufactured in-house and for various reasons haven't kept up with demand.
Many major US cities have a Microcenter. They're the most recent, name-brand Pi zero. The one with the camera ribbon attachment.
Not everyone is near a Microcenter, but there's an entire subreddit dedicated to people buying and shipping them out for people. Supposedly they don't make much if any money off it, mostly just covers gas+shipping+$5.
Pimoroni doesn't ship to my country. What does it matter if the shipping is the computer or not? I'll sell you a brand-new MacBook for $5 ($2000 shipping). The only thing that matters is the total that comes out of your wallet, and there is currently no way to get a Pi Zero for anything close to $5, at any quantity or from any provider.
I am somewhat confused by your statement. I am sorry Pimorni isn't available in your country however that just means that you can't get one for $5 as opposed to not being able to get them anywhere. Regards to shipping, my point was that the Pi and the shipping charges are two seperate things. I don't see why a Pi should be sold with free shipping just so the total amount spend is $5.
I agree that they should be ramping up production to meet the demand there is. I also find given the educational angle that 1 per order is a quite fair way to go about distribuing them given the lack of supply.
Because I can't even buy 10 and have shipping remain the same. The limit of 1 per customer means that I effectively have to pay $25 per Zero, which is completely the opposite if it costing $5.
When I'm hacking around on things, I hate to have only one. OK, it's not booting now and I don't understand. How do I quickly tell whether I fried it, the SD card is bad, or whether my code is bad? Use another one is the answer.
The point on the delivered cost being the key is that many of the boards that would also be suitable for simple tasks like this are either free/very cheap shipping, or at the worst case you can amortize the $5-10 shipping charge across 10 units instead of 1.
I guess given this endevour was started with an educational focus the philosophy is on spreading the platform to the largest number of people, as opposed to letting a few people purchase many.
Have you made contact with the RPi foundation? If you registered an interest for a larger number and state your educational goals they may well be able to help you out.
What are you looking to do with them out of interest?
But that's the thing, I don't need hundreds, I just need five or ten, so it's just amateur usage but one doesn't work (one could easily fry while experimenting).
I just make weird things out of them. My latest one is an RC car that I was hoping could get some mapping software onto, and turn fully autonomous, although an ESP8266 talking to a laptop is acceptable (and what I'm currently doing).
Add that to the fact that I've never been able to get a Zero into my hands for less than about $15 after shipping and all that when I can find one at all. (Sparkfun's shipping is only $5 for the ESP)
Its worth learning how to use the ESP8266. Once you've mastered it, you can get them for about $2 each with free shipping on ebay and aliexpress.
Get a WeMos D1 and use their examples and read the WeMos/ESP2866 forums. If you want to save $2 per project you can get a USB/TTL adapter and use plain ESPs.
For working with esp8266 is it necessary to learn Python?
For example, to flash the firmware do I need to have Python installed? Or is there a way to do this in Lua, or in C?
This is a pretty good way to go. I wrote the software for a 40ish node lighting control network built with NodeMCU boards. The software was C++ via the Arduino IDE, it all worked out pretty well.
Checkout NodeMCU. You can program in lua. There are some downsides, but overall my experience with NodeMCU is fairly good. Just like everyone else, I've been using them to upload sensor data (humidity, temperature, strain).
Tips: The cpu is responsible for everything, so if you crash it or get it into a loop the serial output will stop. Be careful with what you put in the init.lua, since it will run on startup. If you do get stuck in a boot loop simply hold down the button while pressing reset, and it will get into a recovery mode. Then use the nodemcu-flasher to reflash the chip.
Is there something like esp8266 for IR diode and receiver? I am wondering if usage of IR would be better for home IoT projects. WiFi frequencies are quite crowded nowadays and I would think that it is not the case with IR. Also it probably would use less energy.
If LiFi can work, surely IR should be good enough for simple signaling? Maybe there could be also a repeater in every room connected to mains for power and WiFi to signal each other?
It maybe interesting to have IR signals somehow encrypted.
There are endless modules to attach. There is both an IR one and a 400MHz radio tx/Rx one. IR is like 50 cents, radio is like $1.50 I think on AliExpress. The radio is probably better than IR since it works pretty damn far and without LoS.
Otoh, we've reached the point where you can reasonably run an entire Linux server just to watch a button! Awesome.