smells of bikes on Nostr: I'm characterizing an Arduino's ability to make precise pulses. If I bitbang it ...
I'm characterizing an Arduino's ability to make precise pulses. If I bitbang it (yellow trace) using timers and direct port operation, I get, for example, 63.3uS when I want 64uS. If I set up a hardware pwm (red trace) I get 64uS. Pretty similar. But look at the sigma. The bitbang variation is about 7uS. The pwm variation is 10 _nanoseconds_. Like 500x better. This project needs <4uS jitter so I have to slog through the math for precise single shot pwm.
Published at
2025-06-05 05:09:14 UTCEvent JSON
{
"id": "d6035da49570a0eaa568827df37862b648f8a85443ff288eed17df438c07809e",
"pubkey": "4ca5709fd8e8fa924873673b2d73748fadaa90392f57ee1ecc2d06cd5ed5f287",
"created_at": 1749100154,
"kind": 1,
"tags": [
[
"imeta",
"url https://files.mastodon.social/media_attachments/files/114/629/019/781/534/311/original/fa678ef7d587c504.jpg",
"m image/jpeg"
],
[
"proxy",
"https://mastodon.social/@smellsofbikes/114629027723559584",
"web"
],
[
"proxy",
"https://mastodon.social/users/smellsofbikes/statuses/114629027723559584",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.social/users/smellsofbikes/statuses/114629027723559584",
"pink.momostr"
],
[
"-"
]
],
"content": "I'm characterizing an Arduino's ability to make precise pulses. If I bitbang it (yellow trace) using timers and direct port operation, I get, for example, 63.3uS when I want 64uS. If I set up a hardware pwm (red trace) I get 64uS. Pretty similar. But look at the sigma. The bitbang variation is about 7uS. The pwm variation is 10 _nanoseconds_. Like 500x better. This project needs \u003c4uS jitter so I have to slog through the math for precise single shot pwm.\nhttps://files.mastodon.social/media_attachments/files/114/629/019/781/534/311/original/fa678ef7d587c504.jpg\n",
"sig": "3c94d4d7d3908fadec64020e7b04a0ae3ed691355c0051e02d3de6a58ee3b8b9d42c7fc3e99c7de526c9a1dea25e4360751adef19a830d4443f179f7b87a58a5"
}