2595 points · by rcarmo · 6y ago · 397 comments
"Looks like you could cut yourself on it," Rydell said.
"You could, many no doubt have," said Karen Mendelsohn, "and if you put it in your wallet and sit down, it shatters."
"Then what's the point of it?"
"You're supposed to take very good care of it. You won't get another."
I've yet to read anything by Gibson that approaches anything by Stephenson
As an amateur programmer that has never actually physically handled hobby micro-controller type boards, but has read a lot about them, it was amazing to be able to try out the emulator at https://micropython.org/unicorn/
Make the leds blink, see how servo control works etc, all in the browser without having to actually buy any hardware! I had never seen anything like this.
Would love if others could point me to more advanced emulators of hardware micro controllers (if there is such a thing!)
MakeCode is also similar to what you describe - check out Adafruit's Blockly/JS simulator:
https://makecode.adafruit.com/
Note that CircuitPython is Adafruit's fork which focuses more on education than industrial prototyping. So even within the embedded Python ecosystem, you have options.
Embedded development is so easy these days, it is just fantastic. The barrier to entry, in both cost and complexity, is so low now that just about anyone can apply physical automation to the problems that they see in their life and community. I'm excited to see what emerges in the next couple of decades.
Edit: and you can program it with the arduino IDE
My first PC had 66/33 MHz 80486 processor and 8 MB ram, 320 MB HDD. You could run AutoCAD, play Doom, Civilization, have dual boot for Linux, Windows 3.11 etc. It could compile Linux from source.
I'm pushing 40, and still shake my head in wonder sometimes about just how much is possible at such small scale and cost.
But this is now turning into "when I were a lad..." :)
We ran Windows 3.0 and my father configured a boot entry for running Doom or Ultima 7, which required so much memory that it wasn't possible to run Windows, only DOS.
I remember feeling a bit envious about my neighbor having the more powerful 486, which could run Doom much faster than in our PC
First one I remember was a Commodore 64, along with a 600 page book full of BASIC that you could type out and record on cassette to have your own game. The book was total gibberish to anyone else; it was just pure code with no explanation. But that's what the C64 gave you; an interactive environment on boot where you could program a new game and write it to a cassette. By default. If you wanted to play a game you had to type `RUN` or maybe one or two other things to set it up. But you wouldn't know that, because you just had an interpreter on a basic blue and white screen.
Worst bit was the 10 minutes of spasmodic strobe animations that showed you the game was loading. But also each game controlled those loading animations. You had to know what game you wanted to play, and be sure of it, or otherwise you could just flip to the B-side and get a different game.
After that I think we had a BBC Micro at school but I'm not sure. All I remember is an adventure game and one of those classic 5" floppies. I still really love the look and feel of inserting a floppy and manually locking it in. Floppies and cassettes and VHS's minidiscs were truly fantastic for the time. They were still mechanical, unlike CDs.
Then on my dad's side I and my siblings got an Acorn PC and a bunch of random floppies. None of them made any sense but some of them did cool things when you ran them. I remember hiding from my family and putting in the floppies that made flashing colours and watching it until time passed.
Must have been 11 or 12 years old before we first got a PC and by that point I was utterly fascinated. It was some shitty off-the-shelf eMachines thing but it was the best we could get; I managed to retrofit a decent graphics card in it a little bit later.
8MB was pretty extravagant but it turned out to be a good call even though it could be had for half the price within a few years.
From there, can decide where your interests might be. To continue with Arduino hardware but without the IDE, I'd recommend _AVR Programming_ https://www.oreilly.com/library/view/make-avr-programming/97...
For other low level programming, Atmel's AVR Studio and their dev boards are incredibley newcomer friendly. Their source level debugger (with the debug coprocessor) is a miracle.
If you'd like to get into "big iron", Embedded Linux is amazing. Raspberry Pi is a great start (lots of GPIOS programmable from userspace). To get into embedded linux kernel programming, start with a loadable module on the Ras-Pi. Also, build/load your own Ras-Pi kernel.
Other folks suggested the ESP8266 which is also great fun to use.
Edit: Learn C. Lots and lots of C. Embedded dev is almost all C. A teeny bit of ASM, sometimes C++. But almost all of it will be in C.
At the moment, I'm doing a structured C book course (C: A Modern Approach), and I've also signed up for the edX course "Embedded Systems - Shape The World: Microcontroller Input/Output"
It uses the TM4C123 board, which from a look around seemed to be a decent enough board for a beginner. I'd seen complaints of Arduino, but I'm not experienced enough to know the validity of their claims.
Either way, I'm having fun. Not sure if I'd switch career as Web Dev is full of decent paying jobs but it's nice to have a hobby that's different from the day job.
ESP8266's can also run NodeMCU, which is Lua but node.js stuff translates super easily: https://nodemcu.readthedocs.io/en/master/
They have Wifi, and the ESP32 is actually very powerful and has two cores. They make for great DIY home automation/IOT devices and are pretty easy to work with.
…and read this: https://docs.rust-embedded.org/book/
Highly recommended!
As for what microcontroller to actually learn on, I would say the MSP430 is a very good starting point. It's a fairly mundane 16-bit RISC microcontroller series with very forgiving electrical design requirements, very good documentation, and very good community support. They make a devboard (TI calls them Launchpads) for the MSP430G2553 that's more than enough to get a beginner started. When you need a little more power, you can either opt to invest in learning the ARM ecosystem, or go for something a little more exotic. Just about every manufacturer makes an ARM microcontroller of some sort, so if that's what you're interested in, take your pick and go with it. If you're looking for something else, the Renesas RL78 and RX series provide a lot of functionality if you're willing to deal with how stodgy Renesas can be.
Some important notes:
1.) Don't bother with Arduino. They were a much more compelling product 15 years ago when you had to pay thousands in tools and compiler/environment licensing to get in on in embedded development. Today, what Arduino nets you is a painfully barren environment that abstracts away a lot of what you're trying to learn when you're starting out. Losing out on the debugging, profiling, tracing, disassembly, memory usage statistics, etc. that modern development environments give you will do nothing but stunt your growth, especially if you're used to having all these tools while writing desktop software
2.) Be careful with (or preferably just avoid) starting with embedded Linux; it's pushing the limits of "embedded". You're going to miss out on a lot of important knowledge and insight jumping straight into using an operating system (and a very heavy one at that), and for many applications, it is MASSIVE overkill. When you start, you're not going to need an RTOS. When you need an RTOS, you're going to reach for something more reasonable, like FreeRTOS. If FreeRTOS doesn't cut it, then you can start looking at Linux.
3.) Don't get tangled up with Raspberry Pis; the microprocessor on these is complex and the documentation is severely lacking/nonexistent. RPis are much closer to a desktop computer than they are an embedded system.
If you really want to get it, I would say one of the most useful exercises is implementing your own microcontroller/processor. You can pick up an FPGA devboard for fairly cheap, and there are plenty of textbooks (Harris & Harris' Digital Design and Computer Architecture comes to mind) that will get you through most of the key concepts. Once you've done this, a lot of the gaps in understanding when dealing with a microcontroller will be filled in. This exercise isn't strictly necessary, but I don't know anybody who has done it that wasn't better off for it.
My final note is to buy or "acquire" Horowitz and Hill's The Art of Electronics. Embedded development is inseparable from electrical engineering, so even if you don't read it front to back, there are some sections that you will definitely be visiting if your background isn't in electronics.
I like the ESP boards from Wemos. The US made ones from Sparkfun and Adafruit are also really good. The advantage of the Wemos ones (and the many counterfeits you'll see on sites like Aliexpress) is that they're so cheap you don't even have to feel bad if you fry one.
I found a decent port of uCLinux to the Cortex-M3 once, but the host core was 120 MHz and it was pretty much a science experiment and not much more.
Why are you arguing about having standard peripherals? It doesn't let people learn about I/O.
I was in highschool and we were given given embedded hardware and were able to program it using assembly and uploading a program into it.
If you give students some very minimal embedded hardware with wifi and some terminal, they should be able to learn using that. Let them install things, maybe setup a 2D interface...
The RPi educational value is only enabled by I/O pins. I'm not sure that's really worthwhile.
The RPi is interesting because it's a powerful but cheap computer. I just wish there was much cheaper hardware to show people you can also do things with smaller stuff.
Have you checked out some of the alt pi boards like Orange Pi or Onion Omega2Plus?
1. https://www.kickstarter.com/projects/1598272670/chip-the-wor...
As to framing me, well... I don't think it's much easier than framing me using some other method. And I think the cross section of people that want to frame me, and people who know how to compile Linux, is hopefully very small.
https://www.mitnicksecurity.com/shopping/kevin-mitnick-lock-...
I had the same thought back then !
More seriously, I never managed to understand the "obsession" with ROHS (this here is just an example):
>I made sure to have a lead-free process—the boards, parts, and solder paste are all RoHS—so that I wouldn't feel bad about giving them to people.
I mean, you are creating something that (besides being very nice) is not needed, that very likely will end soon in the trash (and that contains anyway a few grams of "far from clean" materials) and you worry about the tiny amount of lead in the solder tin?
Lead causes permanent brain damage in children. There is no detectable amount of lead in the blood of children which is considered safe. While an adult body absorbs roughly 95% of lead into its bones, children's bodies end up storing lead in blood and soft tissue where it causes damage. When untreated, it can take months for lead to exit a child's bloodstream.
I would never consider reducing the lead used in something I've built to be wasted time.
Is it safe for children to solder with leaded tin? (Many people here did so as a child, I suppose)
As you say it is just a matter of slightly increasing the soldering iron temperature, but it doesn't end there and there may be issues further on (JFYI):
https://en.wikipedia.org/wiki/Whisker_(metallurgy)
It seems like lead-free alloys tend to be more problematic in these - fortunately rare - cases.
But because it is more than 15 years that ROHS came in force, I read in 2019 "and I made it lead-free" like I would read "and I buckled my safety belt" or "I put my helmet on", etc. I see it as "the normal" way, nothing worth a mention (nowadays).
More considerate would be to provide the card in a protecting sleeve (that would protect from all the bad, bad substances it may contain) or just use a good, ol' plain paper business card, posibly printed with "bioetical" ink.
HASL is perfectly usable with stencils, in my experience.
How else would one do forensics?
"Ah-ha!"
Reference:
Good to see you here, congratulations for your idea and creation.
I replied to that in another post, ROHS is 15 years old or more and most available parts and solders are ROHS compliant, I believe you would have had a tough time to intentionally make something that was entirely non-ROHS compliant.
Seriously, please choose lead-free.
Pregnant women weren't allowed to eat in the cafeteria due to the high number of miscarriages. The people inhaling the stuff all day... let's just say that had a reputation among the other factory workers for being a bit mentally challenged.
This is the responsibility of the creators of the USB hardware, firmware, motherboard firmware, electrical design, OS developers / driver developers.
It should be safe to plug in a USB device by default
In practice it can be safe on multiple levels. He could’ve also just put some malware I. A pdf or word document, as word is what recruiters want.
USB-C's midplate is specified at 0.7mm, and all of the cheap chinese PCB manufacturers only offer 0.6mm and 0.8mm. 0.6mm is too thin to make reliable contact with most of the cables I've tried: I haven't gotten around to ordering another batch at 0.8mm, but plugging the corner of a 0.8mm M.2 SSD into a USB-C cable, it's pretty (i.e. probably slightly too) snug. Thin PCBs are also extremely flexible, which isn't great for brittle solder joints, ceramic capacitors, etc.
That means you need to create A peripherals if you want the largest audience.
> It has a USB port in the corner. If you plug it into a computer, it boots in about 6 seconds and shows up over USB as a flash drive and a virtual serial port that you can use to log into the card's shell.
The parent of this thread has a valid point here and the insecurity implications of this is nefarious if one isn't careful.
While it is a technically cool fun project, I can imagine a bad actor taking this to DEFCON/CCC or even a tech-centric concert and mass producing this to emulate a USB drive, but is also a keylogger or a remote access tool of some sort which reminds me of the nightmares of BadUSB.
Now, where is the predictible sandboxing guy to counter your predictible "security implications" argument?
EDIT : ok, i missed the part where he actually designed the whole board, obviously..
Like many pieces of technology, once you lay out the steps it starts to look as though each one, and therefore the whole, are achievable to a highly-motivated but somewhat typical person. And it's true! But even so, few people develop the whole set of skills to build something from start to finish, even notwithstanding the incredible help you can get nowadays from open-source software, consumer access to services such as PCB manufacturing, and online documentation. Even in a high-achieving community focused on building stuff, like this one, I doubt many posters here have completed as impressive an individual project.
Since a few years now, there are entire Linux systems on USB drives, for example.
Edit: I seem to be getting (a lot!) of downvotes on this. I thought it was quite well known, but apparently not.
Full Stack Engineer salary: $93,598 [1]
Embedded Software Engineer salary: $74,758[2]
[1] https://www.payscale.com/research/US/Job=Full_Stack_Engineer...
[2] https://www.payscale.com/research/US/Job=Embedded_Engineer/S...
In my experience both as an embedded systems engineer and as a hiring manager, the salary sites miss a lot of nuance.
A large amount (probably most?) of embedded systems positions are at the lower end and don't require a lot of experience so that is reflected in the lower salary numbers. At the higher end, where more niche skills and higher levels of complexity & system integration are needed, you'll see the kind of salaries you are more familiar with.
It's also very industry dependent. I've always found it surprising that Factory Automation engineers are paid generally below a typical web development salary, but that's where a lot of embedded engineers end up working and get the lower pay that goes along with the job.
When I worked in Medical Devices, programmer salary didn't make a distinction between embedded or database, or UI work.
In addition, the positions aren't always broken out that way. In my day to day work I do embedded systems programming, Windows desktop stuff, some network (IoT) stuff and even a small amount of web dev when needed. My job title has never reflected any distinction in the kind of programming I did.
I suspect the number is biased to the type of website that's gathering the data. Maybe employees of higher paying companies don't report their salaries on Payscale.
Barcelona (where I live) has big demand for web/app software engineers, but embedded engineer jobs are way rarer.
For embedded engineers getting >40k€ is just not a thing around here. In the mean time my friends with backend experience (2y) get that kind of offers on a regular basis.
> Individuals Reporting: 97
> Full Stack Engineer salary: $93,598
> Individuals Reporting: 138
I think you're going to need more than 100 or so people's self-reported salaries before you can reasonably claim what pay is like across the professions or in comparison to each other.
$1.42 buys
- ARM926EJS core at 900MHz consuming 54mA when on and idle
- 32MB DDR RAM
- 720p H264 @ 30fps hardware decode
- Audio DAC capable of 192kHz over I2S
- USB OTG (not full host)
- LCD RGB (FPC) interface at either 1024x600 or 1280x720 @ 60fps
- Touchpanel I/O
Sources:
https://www.cnx-software.com/2018/08/17/licheepi-nano-cheap-...
https://linux-sunxi.org/images/b/ba/F1C100s_Datasheet_V1.0.p...
---
My version of this would have a tiny LCD, buttons, and a Wi-Fi interface. I know all of those exist in incredibly inexpensive formats. Adds to todo list
How cool would a mini lcd be with your contact details
The OS these cards run is often referred to as the "Java Card Platform." The OS has many of the same features you would expect from a modern operating system like support for multiple programs, I/O, and very strong crypto primitives. It even has features you wouldn't expect (because some applets give you access to APIs that aren't currently open source available outside that environment.)
To your point though, it's pretty amazing to see the sheer number of devices with it deployed, and the things that can be done with sim card applets (mobile banking, etc.).
I wonder what would be involved in getting Java Card business cards?
Yesterday I started a small electronics project (Bluetooth connected tachometer for my motorcycle), and want to use ESP32 chips for it. I am the kind of masochist who in the past soldered SMD components by hand, but with these new services at my disposal could do so much better with that. Time to build a reflow oven?
After you get some experience reverse engineering existing designs, start trying to build something simple. Thinking blinking lights without a processor.
Warning: Embedded tools are not user friendly. Because most people who use them, use them all the time.
Eagle has a free tier. I think it's the EDA tool we used in my CS/CSE courses.
There are open source alternatives, but they had even rougher edges a decade ago when I was using them.
https://learn.sparkfun.com/tutorials/using-eagle-board-layou...
Some CERN developers started working on it a few years ago and it's been much improved since then.
Apparently there are browser-based options too.
Forget simulators. IME, software devs obsess about simulators. I think they're mostly a waste of time: at the beginner levels we're talking about here, signals are slow (after 30 years in the business, I can't believe I now think a 16MHz signal is "slow" :-) and parts are cheap. Just dive right in and blink a few LEDs or something.
Emulation is rarely ever done, it'd be a high effort project with a lot of nuance to specify external hardware and the hardware is cheap anyway. A rough flow for an embedded project would be to start with a development board from the MCU manufacturer to get a head start on firmware, move on to a custom dev board of your actual product but with more easily accessible pins and test points, and then iterate on the final formfactor board.
For a hobbyist start with an arduino and a pyboard connected to a breadboard. Once you're happy with the firmware and circuit design then start with the open source schematic and modify it to add your new components and lay it out on your custom board.
There's a chapter on microcontrollers.
And how would you power the card?
Years of startup meets[1] have left a bad taste in mouth for the business cards. I've seen people exchange business cards ceremoniously, only to give a missed call to each other immediately.
Business cards are a waste of money, paper and I don't want to get started on the plastics. I honestly thought that proliferation of NFC in smartphones would help to change this behaviour, but with Google shutting down Android Beam(its reasoning: no one is using it) and newer, cheaper smartphones without NFC; I think that ship has sailed.
At-least, in WhatsApp countries; people share contacts via WhatsApp.
Also, sharing WhatsApp contacts makes me uncomfortable. There's various fields that people can store in their private contacts system which is inappropriate to share without permission - birthdays and home addresses at least. When you share a contact, you have to remember to sanitize the contact before you send it. A business card only consists of details which are pre-approved to share with strangers, so business cards don't have this problem.
One more concern for me is the utility of a business card is just once, if you want to contact them in future you'll store the details on your phone and when you put the card in the pocket it likely directly ends in the trash.
As for WhatsApp or other chat app 'contact' sharing it is not limited to business/professionals and so it has become a norm in several countries.
A QR code is the best of both worlds.
I support the idea of having built-in barcode reader which can scan barcode from the screen as well e.g. images in webpage.
This seems to be a bit of an exception. They're not really expensive, but they are expensive enough that you're not going to just hand them out to random annoying recruiters or wantrepreneuers you want to fob off.
And this one of the dangers of basing your supply chain on AliExpress. I've had to caution clients that just because they found some normally expensive component dirt cheap on Amazon or AliExpress, doesn't mean that they'll still be available in 6 months when you need 1000 more.
Base your BOM on a manufacturer-approved supplier. If you can find the same parts for less elsewhere (assuming they're not counterfeit), go for it.
I’ve had bad experiences with the allwinner chips (the boards I had years ago were very unstable) but the mainline kernel support is very exciting. That you can order a few phones built around them now too is just awesome.
Guess I'm a little behind the times. Sure, throw three of them on the board at that price.
Only other surprise was the MOSFET labeled "Q_NMOS_GSD" for the status/power LED. At first glance, with the pull-up resistor, it looks like the FET does nothing. Then I located the reference net (a flag would have helped) on pin 13, so you can turn on/off the LED with the processor, or (depending on initial state of that pin) it will power up with the LED on and turn off only after the processor boots. Neat!
https://www.thirtythreeforty.net/posts/2019/12/designing-my-...
Edit - I find it amazing that the CPUs for these are sold for $0.90 on Taobao, without needing a bulk discount or anything.
Epaper based Business Card : https://www.paulschow.com/2016/08/epaper-business-card.html
I have been dreaming about making our card (see my profile here if interested) run a real (well embedded but) OS; we had a version which could run some embedded OSes but to cut on material costs, we had to remove a mcu which got us down now to less than 23kB of workable memory. It is possible to run 'an OS' in that like computers from the 70-80s; the speed of the current mcu matches more with that era as well.
I like this kind of thing, but I would want a display on it and maybe no USB (just a radio circuit communicate with it for updates etc).
https://www.thirtythreeforty.net/posts/2019/08/mastering-emb...
Hopefully the next installment will come out today. The holidays are letting me catch up on writing.
Immortalised as the Linuxcare BBC:
https://archiveos.org/lnx-bbc/
(@schoen here, among others, will be ... extraordinarily familiar with this.)
Hilliard's solution here is the 2020s variant.
This is also a testemant to the fact that it's not just ICs which are now cheap (as opposed to, in the 1990s, static data archives), but entire SoCs.
The main limitation is now power supplies, though the prospect of parasitic OTA power extraction is becoming a possiblity, perhaps also thin-film PV and small-scale power storage systems.
Which means that peel-and-stick computing is well within reach, if not a present reality. I suspect Hilliard's BoM would fall by 25-50% in bulk, and given technological advances, should be halving every 18-24 months, which means that $1.50 systems are available now, $0.75 in roughly two years, and only a few more halvings before the 1995 Dilbert Unix user advice, "here's a nickle, kid, get yourself a better computer", will be a practical reality:
https://assets.amuniversal.com/6b08abb09fbb012f2fe600163e41d...
Applied to packages, this means that shipments can report their own progress. Applied to a vehicle, these will permit covert tracking on the cheap. Applied to arbitrary surfaces, indoors or out, surveillance of a given location (audio, video, or other sensors). RFID tags will give way to fully-capable computers, integrated into inventory and pricing stickers. Applied to a drone or glider, an integrated surveillance-and-flight-control package (combine with very small body and lightweight electric motors for power-gliders deployable en masse, not individually threats, but capable of close-up, large-scale monitoring and guidance for more capable systems). Applied to windows, tapping of conversations inside. Likely tapping (or hacking) into available wireless comms nets.
The devices will be well within reach of white hats and black, as well as numerous shades of grey.
Decreasing costs mean that activities not presently viable, many of which won't benefit the common weal, will come into viablity, much as email, fax, pop-up, and phone spam over the past three decades.
Power, sensors, and antennae are likely the biggest limiting factors at this point, though all are also rapidly miniaturising.
https://en.wikipedia.org/wiki/Bootable_business_card
http://www.damnsmalllinux.org/wiki/about_damn_small_linux.ht...
(Bonus points for a few leds, so you can show the Knight Rider animation, or a 7-segment display.)
https://www.thirtythreeforty.net/posts/2019/12/designing-my-...
And then there's the occasional sourfaced old party pooper like myself. Two seconds in, and I no longer see the sweet wizardry or the polished black surface; I only see @gmail, internally translating to "someone who doesn't really care".
https://web.archive.org/web/20000620180950/http://wearables....
https://web.archive.org/web/20000617162718fw_/http://wearabl...
MicroPython dodges all this.
It looks promising for someone to share their personal profile and their Resume.
For business, The best part will be to have cards received into the System and transfer them to their CRM or contacts or some other application they use.
Coherent had a really nice cover on its manual.
What's the time spent on bootup? Hardware POST? I remember seeing some Linux can boot in under a second. It would be cool to see the business card come to life instantly.
The biggest problem in his case is probably the 8 MiB serial flash; that is going to be rather slow to load from.
I imagine these aren't for sale, but I'm just throwing it out there that I would prly buy them if they were.
(Today's US dollars.)
However, practically do anyone use business card these days? What does it do which a LinkedIn or GitHub profile wouldn’t?
I hope to do something like this one day by myself (have to build up my Electronics background first :-)
:(
Perhaps if I have a dedicated sandboxed machine. Is that setup common for embedded folks?
(Which isn't unusual - this is Oracle. Knowledge of patches is precious information.)
[0] https://www.theregister.co.uk/2019/03/22/oracles_java_card/
Given the December 12th release, I expect those issues from March, to have been fixed already.
https://linux-sunxi.org/images/b/ba/F1C100s_Datasheet_V1.0.p...
Maybe we wouldn't be living in such a lowly automated reality, using concepts from the previous centuries. Robotics might even make sense...
Maybe we wouldn't be living in such a lowly automated reality, using concepts from the previous centuries. Robotics might even make sense...
People ask him why he doesn’t apply that energy to helping the homeless instead.
As he says, there are plenty of people tackling that problem (debatable), this is his passion, and I imagine he asks, or should ask, the questioner what they’ve done to help the homeless recently.
Follow your passions.
(Plus, as others have pointed out, this is a personal project and he does this stuff full-time, so yours is a particularly odd complaint.)
That's literally my job, and there's a ton of room actually. You just have to be able (and willing) to have the ability to fall back to humans at any point in the process. Like real world "fix-and-continue" debugging...