3 ms·
Can you do high speed sampling, motor control, signal analysis,... in javascript in realtime? Usually microcontrollers have several memory region with different
by nec4b 7y ago
Can you do high speed sampling, motor control, signal analysis,... in javascript in realtime? Usually microcontrollers have several memory region with different speeds and access characteristics. Can you fine tune in which parts of the memory part of your javascript program will go into? Can you write a driver for a high speed bus or low speed for that matter in javascript on a mcu?
- pjmlp 7y agoNo, but you can use JavaScript on ARM mbed OS, running on $5 ARM-based microcontrollers. https://os.mbed.com/javascript-on-mbed/ https://os.mbed.com/javascript-on-mbed/ On Samsung's SmartThings embedded devices https://smartthings.developer.samsung.com/docs/index.html https://smartthings.developer.samsung.com/docs/index.html SigFox customized IoT solutions https://build.sigfox.com/ https://build.sigfox.com/ Or on the other side from ARM mbed's offering, a beefy ARM 580 MHz with 96 MB (RAM + Flash), using JavaScript alongside Rust. https://tessel.io/ https://tessel.io/ Now if your only definition of embedded are constrained micro-controllers that aren't even able to cope with standard ISO C89 without having additional proprietary compiler extensions, then naturally everything else are just miniature desktop computers. Meanwhile some forward looking companies keep on delivering innovative products.
- nec4b 7y agoParent poster wondered if there were such embedded applications that can't be done with javascript. And I listed some. That doesn't mean i'm implying that javascript can't be use on a MCU! Where did you get that idea from? I don't think I ever gave a definition of an embedded system, but you can quote me to prove me wrong. A PC embedded in a slot machine for instance can also be called an embedded system. A more important distinction is whether the system must run in real time or not. And you can have a beast of a microprocessor and you will not be able to do low level real time processing with it in javascript.