newsletters:2025-01
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
newsletters:2025-01 [2025/02/03 03:06] – [New parallel evaluator] osnr | newsletters:2025-01 [2025/02/03 03:46] (current) – [Portable Folk gadget] osnr | ||
---|---|---|---|
Line 82: | Line 82: | ||
You can see the drawcount plot mentioned at the bottom -- when that dips from 4 (the edges of the page outline) to 0, you know you have an unwanted blink (assuming the page was visible on camera the whole time). Tried adding more messages so we can see the actual statements that are evaluating (and getting stuck on). | You can see the drawcount plot mentioned at the bottom -- when that dips from 4 (the edges of the page outline) to 0, you know you have an unwanted blink (assuming the page was visible on camera the whole time). Tried adding more messages so we can see the actual statements that are evaluating (and getting stuck on). | ||
- | Red span | + | You can see some of the red spans in the above images where threads are getting preempted while running Folk When code, which delays all downstream statements, and they might be delayed for 10ms+ while the thread isn't on the CPU, which means you'll miss the frame deadline and the page blinks out! Here's another one (the SAY I'm hovering over and the HOLD above it have both been preempted and delayed in that way): |
+ | |||
+ | {{: | ||
+ | |||
After getting back in late January, I ran into issues running the real-time scheduler branch from last month (it's hard to find & kill those threads by process name? do they dominate their CPUs too much?). So I cleaned up the detection of past versions (Folk now makes an explicit folk.pid file) and have been rethinking our thread spawning/ | After getting back in late January, I ran into issues running the real-time scheduler branch from last month (it's hard to find & kill those threads by process name? do they dominate their CPUs too much?). So I cleaned up the detection of past versions (Folk now makes an explicit folk.pid file) and have been rethinking our thread spawning/ | ||
Line 89: | Line 93: | ||
==== Portable Folk gadget ==== | ==== Portable Folk gadget ==== | ||
- | All the components are in. This revision uses the Orange Pi 5. | + | Omar: I've been working on a new portable Folk gadget that uses off-the-shelf parts, so anyone will be able to build/buy one, along with some other improvements: |
+ | |||
+ | All the components are in place and I'm starting to fix up the software to make Folk work on the platform. | ||
{{: | {{: | ||
+ | |||
+ | This revision uses the Orange Pi 5 instead of the Raspberry Pi 5, and a stereo USB camera instead of Pi wide-angle camera, which has caused various random issues. | ||
=== Network setup === | === Network setup === | ||
Line 100: | Line 108: | ||
* Still struggling to make it do ad-hoc or access point mode by default | * Still struggling to make it do ad-hoc or access point mode by default | ||
* (ideally it would work in concurrent mode, so could both get on known existing networks and make its own for wild environments: | * (ideally it would work in concurrent mode, so could both get on known existing networks and make its own for wild environments: | ||
- | * {{: | + | * {{: |
=== The stereo camera === | === The stereo camera === | ||
Line 108: | Line 116: | ||
{{newsletters: | {{newsletters: | ||
- | Added crop support to just take the center part of the left image for now so we don't waste time processing the rest and can start trying to calibrate right away. | + | [[https:// |
Haven' | Haven' | ||
Line 114: | Line 122: | ||
=== Current state & next steps === | === Current state & next steps === | ||
- | really heavy | + | Overall, the new gadget revision is in OK shape, although not done yet: |
- | + | ||
- | button works | + | |
- | + | ||
- | battery works | + | |
- | sound not working yet | + | * It has a working |
+ | * {{newsletters: | ||
+ | * This is the program that implements that (I just put it in setup.folk, since we don't have physical programs here yet): | ||
+ | * < | ||
+ | exec gpio mode 7 up | ||
- | need to figure | + | When display /disp/ has width /w/ height /h/ { |
+ | When the clock time is /t/ { | ||
+ | set pressed [expr {![exec gpio read 7]}] | ||
+ | set color [expr {$pressed ? " | ||
+ | Wish to draw a dashed stroke with points [list [list 0 0] [list $w 0] [list $w $h] [list 0 $h] [list 0 0]] \ | ||
+ | color $color width 10 dashlength 40 dashoffset [expr {fmod($t, 10)*-120}] | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | * it basically just sets a pullup resistor on GPIO 7 (where I plugged the button in) & shells | ||
+ | * It has a working battery, so you don't need to plug it in & carry a long extension cord! I haven' | ||
+ | * {{: | ||
+ | * (will be fun to get this info into Folk and display it ambiently in the corner or on the marching ants border or whatever) | ||
+ | * It's really heavy and kind of big, notably heavier than the older gadget (because it has 3 18650 batteries and a heavier mini projector with a full chassis). Not sure what to do about this. Maybe go back to the concept of the detachable battery pack (a standard USB-C battery pack would be ideal, but I don't think I could quite get that to work without more custom power stuff). | ||
+ | * It has a speaker! I haven' | ||
+ | * The biggest issue is that I haven' | ||
- | need to do some physical | + | Finally, |
==== RFID localization ==== | ==== RFID localization ==== | ||
Line 146: | Line 169: | ||
* Omar: Finish the new gadget revision (back panel, audio support, calibrate camera) and document it on GitHub for people to try. | * Omar: Finish the new gadget revision (back panel, audio support, calibrate camera) and document it on GitHub for people to try. | ||
* Omar: Set up the out-of-band RFID radio and maybe start on localization. | * Omar: Set up the out-of-band RFID radio and maybe start on localization. | ||
- | * Omar: New evaluator | + | * Omar: Figure out thread management on the new evaluator |
- | * Andrés: | + | * Andrés: |
- | * Andrés: Dot detector | + | * Andrés: Dot detector |
* We'll be speaking at the [[https:// | * We'll be speaking at the [[https:// | ||
* We'll also be showing Folk as an interactive prototype in a workshop in the Design in Action course at Columbia GSAPP. The students' | * We'll also be showing Folk as an interactive prototype in a workshop in the Design in Action course at Columbia GSAPP. The students' |
newsletters/2025-01.1738552007.txt.gz · Last modified: 2025/02/03 03:06 by osnr