Thursday, 2019-04-11

*** tpb has joined #tomu00:00
*** xkapastel has joined #tomu00:11
*** m_w has quit IRC00:18
xobsm_w: for the actual jig itself, usually I just have the factory make one. I've seen them go for anywhere from US$50-150. At that price, it's just not worth it to me to diy it.00:27
*** Kitlith_ has quit IRC00:40
*** Kitlith_ has joined #tomu00:43
xobsI just published v1.2.7 of the Fomu rpi image: https://github.com/im-tomu/fomu-pi-gen/releases/tag/v1.2.7-fomu02:20
tpbTitle: Release HeAP Placer & Fomu-Flash Fixes · im-tomu/fomu-pi-gen · GitHub (at github.com)02:20
*** futarisIRCcloud has joined #tomu02:27
*** xkapastel has quit IRC02:52
*** emeb has quit IRC03:58
*** futarisIRCcloud has quit IRC05:07
*** rohitksingh_work has joined #tomu05:15
*** futarisIRCcloud has joined #tomu05:26
futarisIRCcloudhttp://shadetail.com/blog/vga-video-out-on-bluepill/05:26
futarisIRCcloudhttps://github.com/mubes/vidout05:26
tpbTitle: VGA Video out on BluePill Embedded Rambling (at shadetail.com)05:26
tpbTitle: GitHub - mubes/vidout: VGA Video output on CORTEX-M3. Vidout provides 50 x 18 text output on a STM32F103 CPU (e.g. BluePill) using only 24% of the CPU, 1.2K of RAM and 7K of Flash. Its intended as a debug aid and should be trivial to port to other CPUs. You can see it in action at https://youtu.be/5UFpp3ao460 (at github.com)05:26
*** rohitksingh_work has quit IRC06:14
xobsI'll never get tired of the magic that is bit-banging video signals.08:03
xobsAnyway, I just pushed a change to Foboot.  The latest image now includes the ability to boot a RISC-V program instead of a bitstream.08:05
xobscc: AmosSam08:06
xobsI have an example program in the "examples" directory.  You'd use it like you'd flash a bitstream.  That is, compile it (with "make"), then load it with "dfu-util -D example.bin", then boot it with "dfu-util -e".08:07
AmosSamGreat!08:08
AmosSamI'll test it afternoon (in about 6 hours is that) and report back08:09
*** futarisIRCcloud has quit IRC08:17
mifunenice, i'll also have a go at it this evening10:14
xobsLooking forward to feedback!10:14
xobsA cdc serial port should also be possible.10:15
xobsAnd then I should look into python.10:15
*** awe00 has joined #tomu11:50
*** AmosSam has left #tomu11:56
*** AmosSam has joined #tomu11:57
AmosSamWhy python??12:14
*** nrossi has quit IRC12:18
*** ptotter[m] has quit IRC12:19
*** xobs has quit IRC12:19
*** shalzz has quit IRC12:19
*** rohitksingh_work has joined #tomu12:45
*** rohitksingh_work has quit IRC13:39
*** AmosSam has left #tomu14:12
*** AmosSam has joined #tomu14:13
*** AmosSam has left #tomu14:23
*** xkapastel has joined #tomu14:24
*** AmosSam has joined #tomu14:27
*** AmosSam has left #tomu14:33
*** rohitksingh has joined #tomu14:36
*** AmosSam has joined #tomu14:47
AmosSamxobs: flashed new foboot with rpi, connected fomu to my laptop, and flashed example.bin (from riscv-blink) and it works!15:37
*** rohitksingh has quit IRC15:39
*** emeb has joined #tomu15:43
*** awe00 has quit IRC16:18
AmosSamDo I miss something, or led blink cannot be disabled with current code? What ever I put for led off time, it always blinks, only difference is how slow.16:31
tnt you need to disable the breathing mode as well if you want it on.16:56
*** xkapastel has quit IRC17:03
*** xkapastel has joined #tomu17:27
*** rohitksingh has joined #tomu17:29
AmosSamSo, I can't have breathing without blinking?17:34
*** rohitksingh has quit IRC17:42
*** awe00 has joined #tomu17:44
tntwell, breathing is blinking with a progressive fade, so I17:45
tnt'm not sure what you mean ?17:46
tntif you set ledoff to zero, it should fade out then immediately start fading in again with no delay.17:47
*** awe00 has quit IRC17:54
*** rohitksingh has joined #tomu18:02
*** awe00 has joined #tomu18:09
mifunexobs: got it to work as well18:15
AmosSamtnt: it's not delay between breathing, it's blinking over breathing, if that makes sense... so, for ex., red is fading in, and untill it reaches max brightness, it'll blink 3 or 4 times... and it's same for all colors...18:47
tntAmosSam: weird, that's not supposed to do that18:52
tnthttps://i.imgur.com/SV3Nfye.png18:53
AmosSamtnt: i'll try to record video of it and upload it somewhere...18:53
AmosSamI figured from code that it should work somehow like that...18:54
AmosSamtnt: https://youtu.be/NaEh2I_Fq5I19:12
tntAmosSam: try disableing the color_wheel stuff and set a fixed color19:15
AmosSamtnt: I did, and the color stays same and same intensity, but still blinks with same speed...19:16
tntbut that blinking is the breathing ?19:17
tnton the video it's hard to tell with the color changing.19:17
AmosSamWait a sec19:17
AmosSamtnt: https://youtu.be/gBruxDG7iPQ19:22
tntyeah, so that looks like the breathing, it's just ... fast.19:24
AmosSamYea, now when I set 0,0,255(pure red) it looks like breathing, fast...19:26
tntThat's because the breathing mode is configured to 'FIXED'. so the ramp rate is fixed and not a function of the color value. So to reach 50, it wouldn't take the 128 ms configured, but 128 * 50 / 256 = 25 ms and then stay at intensity 50 for the remaining 100 ms of the ramp duration.19:28
tntuse BREATHE_MODE_MODULATE instead. and increase the ramp time.19:28
*** rohitksingh has quit IRC19:32
*** xkapastel has quit IRC19:33
AmosSamOk, when I comment all code except first line (rgb_ctrl_write) in rgb_init im rgb.c file, I still get breathing... And what ever other changes I do to rgb_init function, I only get different timings on breathe, and can't get solid on led...19:39
tntAmosSam: well the bootloader sets up the breathing ... so not writing is not enough, you need to actually set it to not breathe.19:40
tntset LEDDBCRR=0  LEDDBCFR=0  LEDDOFR=0  and LEDDONR=0xff19:41
AmosSamI was just making those changes! B-)19:42
AmosSamYep, that works... thx19:44
AmosSamI figured it out... I was wrong because I thought that on/off time was separate from breathing... and thats why I couldn't understand code...20:00
*** rohitksingh has joined #tomu20:21
*** rohitksingh has quit IRC20:42
*** xkapastel has joined #tomu21:33
*** awe00 has quit IRC21:46
*** futarisIRCcloud has joined #tomu21:46
*** AmosSam has left #tomu21:57
*** AmosSam has joined #tomu21:57
futarisIRCcloudxobs: Looks good. I'll try and test foboot and a RISC-V program this weekend. Has anyone started on CDC serial yet?22:18
*** im-tomu has quit IRC22:23
*** im-tomu has joined #tomu22:24
*** emeb has quit IRC22:25
*** cdmatter has joined #tomu22:27
*** im-tomu has left #tomu22:34
*** im-tomu has joined #tomu22:35
*** pollo has quit IRC23:29
*** pollo has joined #tomu23:35

Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!