Hacker Newsnew | past | comments | ask | show | jobs | submit | more linux_is_nice's commentslogin

Heh, setting "distance from camera" to zero causes it to error.


Oops! Thank you!


Only somewhat related, but what are some other cheap(~$1) MCUs for a few-key USB keyboard?


1. Any ATmega32U4 development board. Most commonly sold as "Arduino Pro Micro". Developing a keyboard emulator in the Arduino IDE is pretty easy; if you don't want to do that, LUFA is a great little USB stack.

2. Raspberry Pi Pico. Newer, so it's less well documented, but much more powerful.


Yes, Arduino, Raspberry Pi, and ESP8266 are the best "cheap MCUs" for personal use, quick shipping, good documentation, for a one-off USB keyboard.

For the RPi Pico specifically, the TinyUSB driver is the way to go. This also supports USB host (plugging a keyboard into the Pico), but that didn't support the mouse scrollwheel when I tried.

https://github.com/hathach/tinyusb/blob/master/examples/devi...

If you're interested in larger-scale manufacturing, and are willing to invest more time and effort in once-off R&D to reduce the per-unit cost, then there's a lot more options of other MCUs (e.g. PIC, Cypress, STM32).

https://en.wikipedia.org/wiki/List_of_common_microcontroller...

Mitch Davis gave a great talk at the Embedded Online Conference this year (which my wonderful manager assigned us time to watch during working hours!), where he bridges the gap between hobbyist Arduino development and professional Embedded engineering. (It's closer than you might think)

https://www.youtube.com/watch?v=mI4FDp5crhE

Miro Samek also has a great series of lectures (which I learned about in the same Embedded Online Conference), which then levels up from an Arduino-style "superloop" to an RTOS, Active Object design pattern, and beyond.

https://youtu.be/o3eyz1gEqGU?t=363

Welcome to embedded development, I hope you enjoy creating new gadgets, and don't forget to share your adventures with the community so we can encourage you along!


Slightly tangential, but I recently wanted a mechanical keyboard converter dongle with QMK.. the pro micro was there only viable option due to supported stacks.


I made such a thing using a board called "Teensy LC." I'm a long time user of Teensy boards for prototyping in an R&D environment, and the LC is the cheapest. My interest was just PgUp and PgDn buttons for a foot pedal page turner.

In addition, I programmed an ESP32 board to do the same thing, but as a Bluetooth keyboard. Both the Teensy and ESP32 can be programmed via the Arduino development environment.

Now there's cheap and there's cheap. The stuff I use is cheap in terms of, it won't break the bank for a R&D or hobby project. Then there's cheap in terms of wringing cost out of a commercial product, which I know little to nothing about.


> Then there's cheap in terms of wringing cost out of a commercial product

This is a very astute distinction that hobbyists wanting to go from Arduino to production often miss.

I went from the basically cost-unconstrained world of Medical Devices to wearable consumer sensors (e.g., heart rate monitors, etc.) and it was a bit of a shock to see just how much impact cost had. I mean, you know that in a "theoretical" sense, but it's completely different when you are dealing with it on a daily basis.


Thank you for commenting to ask your question, Hacker News does have many skilled people around from a variety of backgrounds including embedded systems! So your question is related.

The Edit feature is also very useful, and I often go back to add more details, like you added the (~$1) afterwards. In future, please can you write "Edit" when doing that? It appears that duskwuff has been downvoted, because they assumed that "cheap" meant for a personal hobbyist level, not a professional mass-produced level, and now their comment makes less sense because Arduino & RPi are more expensive than $1. Please do continue to use the Edit feature, it's cleaner than writing a new comment! Just please keep in mind how that affects others.

As for me, I use Arduino, RPi, and ESP8266 for personal use, and NXP i.MX RT1050 chips at work, all of which are outside the price range, so there's not much more I can say. I imagine that the chip shortage is raising many prices these days though.


There's a few variations of really cheap 8051 MCUs with USB support. https://hackaday.com/tag/ch554/


Are these ch554 family parts available in bulk? I don’t find them on mouser or Digikey for example.


The manufacturer appears to support direct purchase: http://www.wch-ic.com/services/buy_process.html

LCSC is another option: https://lcsc.com/products/Microcontroller-Units-MCUs-MPUs-SO...


You can find them on lcsc.


I wouldn't go any cheaper than stm32f0. Specifically there's STM32F070 for USB.


I've found the EFM8UB series to be some pretty interesting USB micros.


For what it's worth, another option for disabling the write-protect is to temporarily remove the battery.


I was a contributor to http://alt-f4.blog/ and helped get the site down to 1.2-1.9 MB, depending on thumbnail size. 500KB of that is the background image alone, and each of the 10 thumbnails are ~50KB. Images take a lot more room than text.


I assume they meant "non-standard curriculum"


Yes, sorry for not catching this in the edit window.


Then the question is perhaps even more relevant.


Not OP, but could be something like ‘radical unschooling’, where the kids set the curriculum.


fun fact: there's an easter egg on https://love2d.org/


rewrite it for speed :)


Please do not trivialize having OCD like that- In reality, it's a debilitating disorder characterized by severe compulsions.


How do you know that they were trivializing anything? Perhaps they have been diagnosed with OCD and this is one of the ways it manifests?


It’s possible but very unlikely. In my experience, people who suffer from OCD almost never say things like “sorry I have an ocd need to do X”, since people who have OCD know the true depth of OCD is not in the compulsions but rather the obsessions and intrusive/distorted thoughts that lead to them. The mainstream view that OCD is primarily characterized by things like “I need to arrange things according to a certain way” is not accurate. (Hence the comment in the first place)


Or use the word “trigger” to mean mere annoyance. It is tragic that people with a hatred of people living with conditions like PTSD and epilepsy have turned that word into a joke. (I guess most people who use that word now are unaware of this history.) I know people who experience actual triggers and it's a very painful thing.


> Or use the word “trigger” to mean mere annoyance

To be clear, the people that took away meaning from this word were the people that added "trigger warnings" to the most trivial of things. "trigger warning: meat eating." "trigger warning: bad words."

> It is tragic that people with a hatred of people living with conditions like PTSD and epilepsy have turned that word into a joke

That's really not what's happening.


> To be clear, the people that took away meaning from this word were the people that added "trigger warnings" to the most trivial of things

I would object to this on two grounds.

Firstly, seemingly insignificant things can be triggers. It doesn't have to be something people without PTSD consider a big deal, because by definition it isn't them who are affected. I have seen this first-hand. The source of the trauma and the thing that is the trigger can even be totally disparate. (Nice use of “bad words” to describe racial and other slurs by the way. That isn't trivial for the people affected.)

Secondly, in communities that centred around mocking people who (among other things) used trigger warnings, there was a self-perpetuating cycle of creating fake posts to reinforce collectively held biases. They began by ridiculing real content and ended up ridiculing fake content because they did not understand what was real.

In any case, it is a choice to decide “people I don't like use trigger warnings excessively” means that you can use the entire concept as a joke and ruin it for the vulnerable group it is useful for.

> That's really not what's happening.

I've seen it play out. There are definitely malicious actors, even if not everyone is.


> Nice use of “bad words” to describe racial and other slurs by the way. That isn't trivial for the people affected

Are you a yoga teacher? Because WOW!! What a stretch!!


If you were thinking of some other “bad words” then I'm happy to be corrected. My experience led me to think those must be the “bad words” you were speaking of.


I am falling behind. Can someone send me the most current, approved vobaulary lists, please?


I am confused why someone would downvote this comment, but you are completely correct, and thank you for pointing it out.


Hilariously, I'm thinking of doing that(using SSH over port 80) at my school.


I setup sshd on the pop3 port back in high school in the 90s, so I could connect to my home machine and chat on irc during study hall.


It does simulated annealing in src/sim.ts, I think.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: