Nerves Quickstart

  Переглядів 6,666

Underjord

Underjord

2 роки тому

The Nerves Project is a framework for building IoT, connected devices and assorted Linux embedded hardware in a resilient and reliable way using Elixir and the BEAM ecosystem.
Read more about it at www.nerves-project.org/
Try it yourself with Nerves Livebook, as in the video: github.com/livebook-dev/nerve...
This video was produced by Underjord, for the community. Because I love Nerves, it was the first open source project that felt like home.
We also write and edit the official Nerves Newsletter: embedded-elixir.com/page/news...

КОМЕНТАРІ: 24
@TomieLee
@TomieLee Місяць тому
Worked nice on my old Raspberry pi 0 W. Thanks!
@underjord
@underjord Місяць тому
You seem familiar...
@AdamWiggall
@AdamWiggall 2 роки тому
Nice work.
@bowwwh3509
@bowwwh3509 2 роки тому
This is interesting. Im a novice to iot devices and tbf i expected them to be even more lightweight than linux, so more like a small fpga. But regardless, i imagine this is still very useful. How does it compare to arduino?
@underjord
@underjord 2 роки тому
Depends on what device you are building. You are probably wasteful if you put Linux in a lightbulb but you might want the capabilities of a Linux device in a smart hub for controlling bulbs. It all depends. It is pretty common to use Nerves along with microcontrollers like Arduinos in a variety of ways. Embedded development is not a single thing. Nerves does a great job at the embedded Linux level. It also lets you work with higher level languages while microcontrollers are typically quite low-level from what I've seen. I don't think I'd enjoy implementing a web app UI on an Arduino very much.
@mukulchakravarty9381
@mukulchakravarty9381 2 місяці тому
I am trying with rasberry pi 4 and set target to rpi4. Still it is not working. I don't see any iex terminal on the monitor connected to the pi. Also the nerves.local doesn't work. Any reason for this behaviour? Thanks
@underjord
@underjord 2 місяці тому
I don't trust monitors to always work :/ if nerves.local does not work it could be due to non-working wifi config or being on a device that does not support mDNS multicast (required to resolve .local). Mac does by default, linux requires avahi I think. Windows, no clue. But could be many other things. My preferred way of connecting a Pi4 is through USB-C for both power and tethering. Gives you a wired direct network. I chose the wifi method because everyone has wifi but look into that :)
@underjord
@underjord 2 місяці тому
Or join #nerves on the Elixir discord, or post in Elixirforum.
@mukulchakravarty9381
@mukulchakravarty9381 2 місяці тому
@@underjord Thanks for the useful info let me dig in deeper.👍
@zvanstefan
@zvanstefan Рік тому
What is the boot time?
@underjord
@underjord Рік тому
Don't remember, didn't clock it. Pi Zero boots pretty slowly so might take a minute or two. Also depends on if the computer you are on picks up the mDNS broadcast and how quickly if you want the nerves.local domain (you can also check your router client list for the new IP or otherwise scan your network to find it).
@dmitrysozinov2391
@dmitrysozinov2391 2 роки тому
What else can this firmware do?
@underjord
@underjord 2 роки тому
This is it. It blinks one light ;) No, but really. This is as minimal a demo as I could do. The Nerves Livebook firmware contains a number of different examples. Essentially you can use Nerves to build any number of possible IoT type devices. It has a ton of functionality that makes embedded development way easier. Lets you work in Elixir which I personally like a lot. Very open question :)
@dmitrysozinov2391
@dmitrysozinov2391 2 роки тому
@@underjord it looks like I don’t know something big about iot
@underjord
@underjord 2 роки тому
So if that wasn't clear, Nerves is for doing embedded Linux software development. That means it can be used to build IoT systems or other types of hardware+software devices. It isn't like you can flash it into your existing Hue bulbs or whatever. I can't quite infer from your comments what you know and not :)
@leolegendary3275
@leolegendary3275 2 місяці тому
Unrecognized archive format...
@underjord
@underjord 2 місяці тому
Have not seen that. Try, try again?
@artechv9432
@artechv9432 Рік тому
I am not sure why but for me doesn't work at all. The firmware burns successfully but when I put the microSD card into rpi0 nerves.local won't work and if I connect a hdmi display it just stays black and won't show anything. I have to mention that I tried using a different card and also raspbian works just fine with the same setup. I also tried compiling myself both nerves_livebook/circuits_quickstart and a fresh nerves app build using the nerves docs from hexdocs my elixir version is 1.14.0 (compiled with Erlang/OTP 25), but I think this is not relevant since the fwup file.fw is not depending on elixir Did anybody encountered this problem?
@artechv9432
@artechv9432 Рік тому
I also tried with etcher but the same thing: the led is on when plugging the power, blinks once, than stays on and the screen is black and nothing happens
@artechv9432
@artechv9432 Рік тому
with an rpi4 is working just fine, same setup(different .fw files)
@artechv9432
@artechv9432 Рік тому
after many hours of debugging I found out that my model raspberry pi zero 2W is using as target rpi3a and not rpi0
@underjord
@underjord Рік тому
Ah yeah, the Pi Zero 2 is very similar to the Pi3 A+ but very unlike the original Zero. The information is there in the documentation but it is really hard to make sure that people get that information :/
@artechv9432
@artechv9432 Рік тому
yes ​@@underjord It's a rookie mistake, but you get a new board, you get excited to get started and run the code you love on that tiny computer for the first time and you start the tutorial and you see pi zero and you just don't think that pi zero 2 is different. Anyway, I am happy that I am a noob again and that I am excited about blinking an LED. Thanks for your answer and for your tutorials.
Phoenix LiveView on Nerves for IoT
13:13
Underjord
Переглядів 3,3 тис.
Syncing SQLite and Postgres?
24:14
Underjord
Переглядів 7 тис.
Спектакль для окупантів та ждунів 🤯
00:47
Радіо Байрактар
Переглядів 548 тис.
ДРУГА РЕПЕТИЦІЯ alyona alyona та Jerry Heil на сцені Євробачення-2024
00:34
Євробачення Україна | Eurovision Ukraine official
Переглядів 162 тис.
КАК ГЛОТАЮТ ШПАГУ?😳
00:33
Masomka
Переглядів 2,1 млн
Telling others about Elixir
10:57
Underjord
Переглядів 778
GigCity Keynote Teaser 2024
0:54
Underjord
Переглядів 351
Getting rolling with Electric SQL
1:01:00
Underjord
Переглядів 1,2 тис.
LLM on Fly GPU with Elixir
1:41:48
Underjord
Переглядів 507
Elixir image processing
0:17
Underjord
Переглядів 1,1 тис.
Fundamentals of Object Storage (with Elixir)
1:37:20
Underjord
Переглядів 791
Further with Electric SQL
1:50:17
Underjord
Переглядів 544
SQLite on Object Storage
1:42:40
Underjord
Переглядів 313
Electrifying SQL
58:46
Underjord
Переглядів 274
To Code BEAM and back again, Stockholm 2023
24:49
Underjord
Переглядів 473
Эволюция телефонов!
0:30
ТРЕНДИ ШОРТС
Переглядів 2,9 млн
Почему сканер ставят так не удобно?
0:47
Не шарю!
Переглядів 870 тис.
Самый маленький игровой ПК
0:46
ITMania - Сборка ПК
Переглядів 581 тис.
Как должен стоять ПК?
1:00
CompShop Shorts
Переглядів 714 тис.
Що покаже Apple, гнучкі айфони та Windows переходить на ARM
17:49
Ноталка Шелягіна
Переглядів 60 тис.