mastouille.fr est l'un des nombreux serveurs Mastodon indépendants que vous pouvez utiliser pour participer au fédiverse.
Mastouille est une instance Mastodon durable, ouverte, et hébergée en France.

Administré par :

Statistiques du serveur :

582
comptes actifs

#arduinoide

1 message1 participant0 message aujourd’hui

In Germany there we have this saying that talking about music is like dancing to architecture.

In a simillar way, I find it rather difficult to describe to people why I prefer coding in a language which is usually considererd one or all of the following: old / outdated / dead / feeding-to-a-niche / hard-to-understand - but I will give it a last try:

One of the things I like about the Forth programming language - in this case #esp32forth - is that you can easily add hardware specific words from the Arduino library.

I was missing analogWrite, analogWriteFrequency and analogWriteResolution so I just added those.

But aside from that, using Forth on the ESP32 makes prototyping so much easier: you save yourself the endless cycle of "code, compile, upload, test, code..." since you can actually write your code interactively on the device (using either the Block Editor or the Visual Editor).

Being able to remotely connect to this development environment via either #Http or#Telnet just rounds it up for me.

Maybe it's because it brings me back to the times when I was coding BASIC on my bedsit, but maybe it really is because it is a very efficient way to code ... 🤷‍♂️

#Forth
#ArduinoIDE
#Coding

One of the things that annoyed me when using #ESP32forth is that with recent versions of the #ArduinoIDE it is no longer possible to use plugins for uploading additional files to the #SPIFFS partition of the ESP32.

There is a workaround solution for ESP32forth that allows a user to copy-paste code into the terminal, which is then stored on the filesystem - but that didn't convince me.

So I spent the last two days tinkering with mkspiffs and esptool.py and finally found a way to not only upload files to the SPIFFS partition but also dumping files *from* that partition back to your computer. All from the command line, no ArduinoIDE and plugins required - see below:

* Prerequisites:

- Compile mkspiffs with SPIFFS_OBJ_META_LEN set to 4 in include/spiffs_config.h

( github.com/igrr/mkspiffs.git )

- esptool.py installed on your system

* Info on ESP32forth SPIFFS partition:

SPIFFS offset (start of fs): 0x210000
SPIFFS size: 0x1E0000 (decimal: 1966080)
SPIFFS end of fs: 0x3effff

* Build SPIFFS image and flash to ESP32:

mkspiffs -c <some_directory_containing_files> -b 4096 -p 256 -s 0x1e0000 spiffs.bin
esptool.py --port /dev/<ESP32_serial_device> --chip esp32 write_flash -z 0x210000 spiffs.bin

* Dump SPIFFS partition from ESP32 to disk:

esptool.py --port /dev/<ESP32_serial_device> --baud 921600 read_flash 0x210000 0x1e0000 data.img

* Extract files from dumped partition:

mkspiffs -u <some_directory> data.img

#ESP32
#Forth
#ueforth

GitHubGitHub - igrr/mkspiffs: Tool to build and unpack SPIFFS imagesTool to build and unpack SPIFFS images. Contribute to igrr/mkspiffs development by creating an account on GitHub.

Milestone!!

This rather unspectacular screenshot shows my #FreeBSD desktop running #ArduinoIDE and #compiling #ESP8266 code (#Zimodem firmware). Serial communication also works, which is absolutely brilliant!

It's been quite a ride until I got it all to work. It's a combination of the steps documented here:

forums.freebsd.org/threads/a-g

with additional info (checkout of #espressif 2.7.4 codebase) from here:

imin.red/2021/05/12/compile-es

but it also required me to set up #Linux compatibility (for the #xtensa compiler which is a Linux x86_64 binary) and modify arduino-builder before installing it from #ports

I'll write down my steps in the next days, until then - if you have any questions - please comment. Thank you!

I mean, i have been struggling with the tooling for #EmbeddedRust with the #ESP32c6 a bit lately (some of it was #NixOS) mostly to the still fast moving development and changes.
But overall the experience is quite nice compared to #Arduino and #ArduinoIDE.
In regards to tooling i think only #CircuitPython or #MicroPython came close.
I hope that i can get #Embassy working by the end of the week, then i should have a reproducible environment across my devices.
#RustLang #MicroControllers #IOT

Discovering the ESP32... They appear to be very affordable and extremely capable little boards, even if they need some creativity when placing on a breadboard as they are quite wide.

Anyway, I successfully installed the board in the Arduino IDE and got a blink sketch running.

Using the internet I visually matched my board to be a "DOIT ESP32 DEVKIT V1".

This RandomNerd tutorial was very useful:

randomnerdtutorials.com/instal

Chuffed, I am, immensely, oh yeah! 🎉

#esp32
#arduinoIDE
#RandomNerd

Fine, I just got started with the #arduinoIDE to do some stuff with #arduino and #ESP chips 💪

But is there a go-to setup to work and build with your favourite editor on a mac?
I am just exploring some #esptool or #mpython things but I am still very new to the party and don't know if there is a common way to develop your micro programs.

Would be great if you'd share your way to from writing, building and deploying your apps.

P.S. windows or linux desktop are also fine😬

heise+ | Duinocoin: Umweltfreundliches Krypto-Mining auf Arduino, ESP32 & Co. realisieren

Beim Duinocoin gehts nicht um Profit. Mit ihm lassen sich mit Mikrocontrollern Coins schürfen und umweltfreundliche Mining-Rigs konstruieren.​ Wir zeigen wie.
Duinocoin: Umweltfreundliches Krypto-Mining auf Arduino, ESP32 & Co. realisieren
heise onlineDuinocoin: Umweltfreundliches Krypto-Mining auf Arduino, ESP32 & Co. realisierenPar Michael Plura