lawik

lawik

Nerves Core Team

I’ve mentioned it previously in this thread that I’m poking and playing with the Seeed Studio ReTerminal DM which is a $300-400 piece of industrial kiosk kit. I like the look and feel of it and it makes for a very promising prototype platform for anyone wanting to do visual or interactive stuff with Nerves.

Tom Winkler at Formrausch made a Nerves system for it. And I’m hacking away at a demo-friendly featureful sample project.

Figured I’d show some of my progress here on the forum.

I’ve posted YouTube Shorts about it as well (1, 2, 3).

It comes with a solid set of peripherals:

  • Touchscreen
  • WiFi antenna
  • Light sensor
  • Microphone array, two mics
  • NervesKey chip (ATECC608)
  • Convenient boot switch for flashing the CM4 inside
  • Slot for M.2 drive

Plus plenty of ports and some GPIO stuff. It can also be enclosed to make it reasonably IP-classed for water and dust supposedly :slight_smile:

A variant exists that gives you PoE + a camera. Wish I’d grabbed that, it is not upgradable to it.

I will try to put notes about what I do with this thing as I go :slight_smile: Feel free to ask questions if you follow along.

Showing Posts 1 to 7

lawik

lawik OP

Nerves Core Team

Tom got most of the peripherals working via Linux drivers. So I can query a bunch of driver “files” to get light levels for example. But the mic was not working.

arecord -l did not give the expected device information.

So I’ve had a spelunk all across the Seeed studio overlays, added new firmware versions for RPi. Poked alsa settings. Then found a missing piece of linux config. Added that.
Suffice to say I have the microphone working on the ReTerminal DM.

And also, I’m fairly certain everything except that piece of linux config can be removed. Verifying that now..

lawik

lawik OP

Nerves Core Team

I spent a bunch of time hacking away on a test script for the VAD ONNX thing that should give us the ability to know when the microphone(s) detect speech and only then do cool things with it. Should prevent picking up noise and doing unnecessary continuous compute. The current versions of the model are no good for those instructions. I still gotta get this working.

The next step would be running Whisper on the chunks that are speech. And that I already know I can do.

Also the ReTerminal DM has an M.2 slot and I believe Seeed Studio supports it and the ReComputer with the AI kit. They have benchmarks. So if/when we get AI Kit support into Nerves this workload could hopefully be accelerated.

lawik

lawik OP

Nerves Core Team

I did get the necesseray VAD bits working outside of Nerves and documented it:

I am a bit stuck on a cross-compilation issue for Ortex that I’m not Rust-qualified to figure out. Seems like something generates a crap flag further down. I don’t think I even need the HTTP client that the failing TLS dependency uses.

So close :smiley:

lawik

lawik OP

Nerves Core Team

Thanks to @abelino fixing my cross-compilation woes I can now run ONNX-based inference with Ortex on Nerves.

So I have done some Voice Activity Detection with Silero VAD on this branch: GitHub - lawik/nerves_cloud_kiosk at voice-activity · GitHub

I made a Membrane pipeline based on the previous blog post and my old Lively LiveViews with Membrane talk.

It didn’t come out well in a phone video but I have a waveform going with LiveView and tint the screen edges whenever it hears voice activity. Fun stuff :slight_smile:

The microphone in this thing is very noisy. I wonder if I can do anything to improve that.

lawik

lawik OP

Nerves Core Team

Böööp!

lawik

lawik OP

Nerves Core Team

I popped the ReTerminal open to look into this:

You can actually use the AI Kit with a Pi CM4 if you have a board that breaks out PCIe. The ReTerminal DM does do that. But neither the AI Kit or my PCIe to M.2 adapter would fit. So I should probably have ordered it with the NVMe expansion board or something.

— All posts loaded —

Where Next? Top

Trending in Discussions Top

AstonJ
The obligatory hello world thread! Who are you and where are you from? :stuck_out_tongue:
4663 61218 595
New
cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
515 12931 101
New
wmnnd
Hey folks, I wanted to share with you a project I’ve been working on for a while: It’s an Open Source (AGPLv3) newsletter tool. Think Ma...
New
raa-ziq
Hi everyone :waving_hand: I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
sntran
In my third year of college, around 2010, I found Erlang. A few years later, I found Elixir. I liked the ideas at once: many small proces...
New
gtcode
I’ve been tinkering with Lynx (by José) via hold_ledger. I used AI to write the code, a separate specification, the tests, and the Lean p...
New
Ganna
Hi everyone, I have 8 years of production experience with Erlang/OTP and I’m just starting to get to know Elixir. What would you learn f...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews