Live data from Hacker News

Teensy 4.1 Development Board

pjrc.com

81–90 of 211 posts

Re: Teensy 4.1 Development Board

#81
post #8

Genuinely curious, what kinds of projects are better suited to a Teensy than an Arduino, ESP32 or some form of Raspberry Pi? Is the main advantage the pin count?

Years ago, in 2013 or so, I recall the Teensy was better suited for my application due to the higher clock speed.

Re: Teensy 4.1 Development Board

#82
PSA: Networking on microcontrollers is a giant pain in the ass.

Don't get me wrong, boards like this (and ESP/Realtek boards with WiFi) are great for hacky prototypes. But if you're building an embedded device that will be deployed in any sort of volume, a small application processor running Linux will make your life dramatically easier. You can keep it asleep most of the time if your power budget is tight.

The hard part is not cramming in an Ethernet PHY or a 2.4 GHz radio, it's the mountain of software that you need to run on top of it to get the kind of reliable, secure communications channels that we've come to expect. Bare metal networking stacks like LwIP have a reputation for being buggy, and are nowhere near as battle-tested as the Linux/BSD networking stacks security-wise. Some of the more memory constrained devices can barely fit a complete certificate chain. Are you really prepared to roll out updates on a system like this when the next Heartbleed comes along?

Also, the layers tend to pile on, so while you might get away with a bare-bones wire protocol initially, you'll be starting your project close to the limits of what is practical. Somebody will eventually ask you if you can connect to a websocket. I know buildroot and yocto look a little scary at first, but they're better than designing yourself into a corner before you even get off the ground.

Re: Teensy 4.1 Development Board

#83
post #57

With the supercheap sub $5 ESP32/STM32 boards (both have Arduino core support) and their equally cheap add onboards for camera, ethernet or USB OTG - who exactly are using the Teensy line today and why? I'm genuinely curious.

The $5 boards aren't 600MHz M7's with loads of SRAM and Flash.

Maybe, but what scenarios are there where you'd want that, be willing to spend 30 dollars on your microcontroller solution and not benefit from a more capable linux SOC? (With an optional $3 M0/M3 for realtime if required)

Re: Teensy 4.1 Development Board

#84
post #82

PSA: Networking on microcontrollers is a giant pain in the ass. Don't get me wrong, boards like this (and ESP/Realtek boards with WiFi) are great for hacky prototypes. But if you're building an embedded device that will be deployed in any sort of volume, a small application processor running Linux will make your life dramatically easier. You can keep it asleep most of the time if your power budget is tight. The hard…

How are things on the commonly used RTOSes? I'm not really into hardware much, only fairly recently learned basic electronics as a hobby, but I've seen ARM push their "mbed" (https://os.mbed.com/) thing in many places recently (most recently saw their logo printed on a nRF52 BLE dev kit). I've also seen Amazon get more involved with (in charge of?) FreeRTOS (https://aws.amazon.com/freertos/) quite some time ago.

Don't such things solve most of these issues?

Re: Teensy 4.1 Development Board

#85

I've been playing around embedded stuff and hardware design recently and mostly started with arduino's and esp8266/32's, but have wanted to play around with both FPGA's and ARM boards for designing more complex things. I'm kinda lost on what ARM board to get though. This thing seems pretty cool, and others have recommended an STM32 board, but theres dozens of those in various form factors and chip features and I'm ju…

I recommend the BeagleBone as a better starting point than STM32s. It combines an ARM processor core capable of running linux with microcontrollers so you can run Linux on the CPU and realtime firmware on the MCU cores.

If you want to get into FPGA development, I would recommend a ZYNQ based board [1] which is similar to the BeagleBone except instead of microcontrollers, ZYNQ chips combine an ARM CPU with an FPGA. I'd recommend something like the Analog Discovery 2 [2] for data capture since 90% of FPGA development is test benches and validation.

[1] https://store.digilentinc.com/cora-z7-zynq-7000-single-core-...

[2] https://store.digilentinc.com/analog-discovery-2-100msps-usb...

Re: Teensy 4.1 Development Board

#86
post #82

PSA: Networking on microcontrollers is a giant pain in the ass. Don't get me wrong, boards like this (and ESP/Realtek boards with WiFi) are great for hacky prototypes. But if you're building an embedded device that will be deployed in any sort of volume, a small application processor running Linux will make your life dramatically easier. You can keep it asleep most of the time if your power budget is tight. The hard…

How are things on the commonly used RTOSes? I'm not really into hardware much, only fairly recently learned basic electronics as a hobby, but I've seen ARM push their "mbed" ( https://os.mbed.com/ ) thing in many places recently (most recently saw their logo printed on a nRF52 BLE dev kit). I've also seen Amazon get more involved with (in charge of?) FreeRTOS ( https://aws.amazon.com/freertos/ ) quite some time ago.…

The RTOS world is much less of an 'operating system' and more so a bare-bones task scheduler. It's not like a POSIX environment at all.

Re: Teensy 4.1 Development Board

#87
post #82

PSA: Networking on microcontrollers is a giant pain in the ass. Don't get me wrong, boards like this (and ESP/Realtek boards with WiFi) are great for hacky prototypes. But if you're building an embedded device that will be deployed in any sort of volume, a small application processor running Linux will make your life dramatically easier. You can keep it asleep most of the time if your power budget is tight. The hard…

I was puzzled finding a good linux board for cheap device. Decent linux is like 10$ price minimum and you probably need something better. It could easily sky rocket to 30$ and this is out of budged of almost any devices. 30$ makes your device retail cost ~100$ already.

While you can get M4 for under a 1$ having all built in and very power efficient.

Also no need to hustle with linux deployment and update rollouts.

Re: Teensy 4.1 Development Board

#88

With the supercheap sub $5 ESP32/STM32 boards (both have Arduino core support) and their equally cheap add onboards for camera, ethernet or USB OTG - who exactly are using the Teensy line today and why? I'm genuinely curious.

These are substantially more powerful than both of those families.

Also substantially more expensive, especially compared to the likes of the banana pi zero, which gets you four cores at 1.2Ghz, 512MB RAM, Linux and a GPU for 35% cheaper. Pair that with a Blue Pill STM32 for $3 if you need realtime and you still have money left over.

Re: Teensy 4.1 Development Board

#89
post #75
post #8

Genuinely curious, what kinds of projects are better suited to a Teensy than an Arduino, ESP32 or some form of Raspberry Pi? Is the main advantage the pin count?

Teensies range from 16 MHz AVR chips to this 600 MHz Cortex M7. Arduinos cover a variety of platforms as well. ESP32 is if you want WiFi integrated. Raspberry Pi is a full blown computer. This is a full gamut of capability. What you choose for a project depends on your requirements. Automatic window blind opener? Teensy 2.0 if you like AVR, Teensy LC if you like ARM. Camera watching your 3d printer using computer vis…

The Raspberry Pi Zero W is great for tasks that need wifi too (window blinds, etc). At $10 it's cheap and it's really nice to write your programs in python. I've got plenty of experience with microcontrollers and C++ but I find python just so much nicer to use when I can. You can even host a web page from it for a quick and easy GUI control (use Flask for a pure python implementation).

Re: Teensy 4.1 Development Board

#90
post #54

Earlier quoted context omitted.

https://www.st.com/content/st_com/en/products/microcontrolle...

What is your point? This is more powerful than all of the ones on your linked page.

The posted coremark scores do not support your claim that NXP iMXRT1062 is substantially more powerful. If I take these numbers at face value, then STM32 promises up to 45% more perf.
Post reply on HN