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 02:53] – [General Folk system improvements] osnr | newsletters:2025-01 [2025/02/03 03:46] (current) – [Portable Folk gadget] osnr | ||
---|---|---|---|
Line 76: | Line 76: | ||
==== New parallel evaluator ==== | ==== New parallel evaluator ==== | ||
- | Omar: Progress on this has been limited this month. | + | Omar: Progress on this has been limited this month. |
- | A lot of looking at these specific spans in Tracy where there was a blink-out of a tag outline: | + | {{: |
- | {{: | + | You can see the drawcount plot mentioned at the bottom |
- | You can see the drawcount plot at the bottom -- when that dips from 4 to 0, you know you have an unwanted blink. Tried adding more messages so we can see the actual statement. | + | 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): |
- | Red span | + | {{: |
- | I cleaned up the detection of past versions (it 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/ | ||
+ | |||
+ | Again, | ||
==== 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 === | ||
- | The stereo camera works! Its field of view is huge, though: | + | The stereo camera works! Its field of view is huge, though |
- | {{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:// |
- | === Current state & next steps === | + | Haven' |
- | really heavy | + | === Current state & next steps === |
- | + | ||
- | button works | + | |
- | battery works | + | Overall, the new gadget revision is in OK shape, although not done yet: |
- | 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 144: | 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.1738551213.txt.gz · Last modified: 2025/02/03 02:53 by osnr