dice.camp is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon server for RPG folks to hang out and talk. Not owned by a billionaire.

Administered by:

Server stats:

1.5K
active users

#microcontroller

0 posts0 participants0 posts today

I have something terrible to admit... until today I never have done something with a microcontroller (if you ignore some tinkering with the Raspberry Pi Pico and flashing Meshtastic nodes).

Today I compiled the blinking example and flashed it to the ESP32C3 - easy thanks to these guides:

docs.espressif.com/projects/es

or

wiki.seeedstudio.com/XIAO_ESP3

I added a lithium battery which was quite easy. Next step: Charging by solar panel ☀️

Inspired by ‪Youtube's Patt Vira‬, I implemented the Reaction Diffusion algorithm in C++ on my testbed for my 64x64 matrix. Next step is to port this to my #esp32 #microcontroller and have it output directly on the #HUB75E #LED Matrix display.

In my implementation, I have three different rendering modes

Every 0.5 seconds I add/subtract a bit of B value to keep the sim alive, and reset the entire thing if the balance goes over 50%

A few years ago, I started wondering if there is a way to program an AVR microcontroller without the Arduino IDE which is slow on older computers that I have. This was the starting point for the projects ucmf and yauclib:

While ucmf is a framework for compiling microcontroller projects similar to CMake, yauclib is for hardware abstraction similar to the Arduino software library. Both are in development and only support a few AVR microcontrollers so far (and Arduinos based on them).

I consider ucmf to be ready to use. yauclib still needs a lot of work, especially drivers and hardware-independent interrupt handling mechanisms.

The code for both projects is on Codeberg:

codeberg.org/ncc1988/ucmf

codeberg.org/ncc1988/yauclib

Codeberg.orgucmfucmf (microcontroller make frontend) is a tool to faciliate the compilation of programs for microcontrollers using make.

Description: "[A] new series focusing on how to build computers [from scratch] using simple electronic devices such as microcontrollers (MCU) and system-on-chips (SoCs) to achieve meaningful and concrete computing capabilities... [Y]ou will also be able to come up with your own computer designs, tailored around your computational needs."

youtube.com/watch?v=CoUSDWLZC-

Hey, #programming #electronics #arduino #microcontroller folks. Say I have a device like a joystick which generates its own data and clock signals, and I want a Pi Pico 2 to capture inputs from it.

What should the flow of that program look like? Do I just capture 2x the length of a full packet, find the single whole packet in it, read that and move on? How would you go about detecting and reading every individual packet?

Boosts and all comments welcome.