#garfield Logs

Mar 13 2022

#garfield Calendar

12:22 AM rue_mohr: ok, same code ported to atmega8
12:32 AM rue_mohr: If I were walking in circles in the desert I'd be getting more done
12:54 AM rue_mohr: huh, I have 6 versions of usart.c
12:56 AM rue_mohr: 3
10:25 AM Tom_L: happy pi day
10:26 AM Tom_L: due to pi rounding errors the earth is not round
12:11 PM rue_bed2: heh, its also not carbonated
01:04 PM Tom_L: also seems i looked at the calendar wrong :/
01:52 PM rue_mohr: huh, I'v never done a servo encoder on a m8 or m88
01:54 PM Tom_L: that code i got should do quad on it
01:55 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/avr/atmega328/PCINT0/quadrature/
01:55 PM rue_mohr: heh, I do a thing, it would have been handy to have had cut-and-paste for it
01:56 PM rue_mohr: but this is for reading wiegand ;)
01:56 PM rue_mohr: I need two interrupts
02:20 PM rue_mohr: and I need a timer...
02:20 PM rue_mohr: this work week is going to be a mess
04:33 PM rue_mohr: apparently timer 0 can just overflow
04:33 PM rue_mohr: it seems it cant do much else
04:33 PM rue_mohr: yup, it can count and overflow, tahts about it
04:39 PM Tom_L: on M8?
04:40 PM rue_mohr: yea
04:40 PM rue_mohr: its a pretty simple little timer
04:40 PM Tom_L: it wasn't that great a chip iirc
04:41 PM rue_mohr: I'm not at even 25% of code memory
04:41 PM rue_mohr: I just didn't want to jump thru all the extra hoops just to use a t26 :)
04:41 PM rue_mohr: I suspect that if I'm going to sell these, I need to prep for a cpu card that I can put whatever I can get on.
04:44 PM Tom_L: i counted (but forgot) i think i still have over 150 -160 of those U2
04:44 PM rue_mohr: ooof
04:45 PM Tom_L: the card inside said they should be baked
04:45 PM rue_mohr: well I hope I get this off the ground and I can buy them from ya
04:45 PM rue_mohr: mmm chips
04:46 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/boards/new_batch/USB_chips.jpg
04:46 PM Tom_L: kindof an awesome sight when it's sitting in front of your lap
04:46 PM rue_mohr: yup, thats a lot
04:46 PM Tom_L: i don't have all those now
04:47 PM Tom_L: but over half a tray for sure
04:47 PM rue_mohr: it was quite the operation
04:47 PM rue_mohr: you didn't have to advertize either did you?
04:47 PM Tom_L: no not really
04:47 PM Tom_L: just the website
04:47 PM rue_mohr: do you think more of it was word of mouth?
04:48 PM Tom_L: i've no idea
04:48 PM rue_mohr: I dont recall a lot of mention about buying them on irc
04:48 PM Tom_L: no not much
04:48 PM Tom_L: companies and individuals got them though
04:48 PM rue_mohr: Program: 1926 bytes (23.5% Full)
04:48 PM rue_mohr: I really cut down the brains on this firmware
04:49 PM Tom_L: i think i still have a sack full of those boxes too
04:49 PM rue_mohr: I'm planning to offload it onto the browser doing the configuration
04:49 PM rue_mohr: did it just taper out?
04:49 PM Tom_L: i think i did
04:49 PM rue_mohr: I need to go make 6 more sprayers
04:50 PM rue_mohr: but my brain is a wreck
04:50 PM Tom_L: busy day tomorrow, not sure i'll make it to the post
04:50 PM rue_mohr: I seen this with my helpers at work
07:43 PM aandrew: Tom_L> http://tom-itx.no-ip.biz:81/~webpage/boards/new_batch/USB_chips.jpg
07:43 PM aandrew: whoa nice
07:57 PM rue_mohr: we been using wood/ plastic scews into the plastic to hold the handle on
07:57 PM rue_mohr: but there have been excessive problems, so I'm using a square nut in a pocket and a machine screw
07:57 PM rue_mohr: I'm just printing the first one now
08:58 PM Tom_L: it won't vibrate out will it?
08:58 PM Tom_L: or loosen under use
09:38 PM Tom_L: i found a rate calculator that says ~$55 the best i can tell
09:38 PM Tom_L: up to 20 lbs
09:38 PM Tom_L: using their standard medium box
09:39 PM Tom_L: so maybe i'll get one and fill it up more? i'll do some checking
09:40 PM Tom_L: the usps site kinda sucks for finding anything
09:46 PM rue_mohr: oh they would be quick to crank on it if it did
09:46 PM rue_mohr: yea, there are usually weight tiers and they dont care about the size much
09:50 PM aandrew: hey rue_mohr what is the name of that "perforated" sheet metal you sent over?
09:50 PM rue_mohr: I called it...
09:50 PM rue_mohr: cut-n-nut
09:51 PM rue_mohr: looks like I took down the page on it
09:51 PM rue_mohr: whats up?
09:51 PM aandrew: nada, just curious
09:51 PM rue_mohr: :)
09:52 PM aandrew: man
09:52 PM aandrew: I just tried out pikvm
09:52 PM aandrew: holy shit this is amazing
09:52 PM rue_mohr: heh
09:52 PM aandrew: HDMI-to-CSI bridge card (like $20) and it Just Works
09:52 PM aandrew: fuck these guys saying I MUST work on their hardware
09:52 PM rue_mohr: csi?
09:53 PM aandrew: yeah - basically you need to get the "server" video in somehow. $20 MJPEG USB capture card is an option, and the other is an HDMI-to-CSI bridge which converts the HDMI video to the camera input on an rpi
09:57 PM rue_mohr: oh yea ok
09:57 PM rue_mohr: didn't know it could do that
09:57 PM aandrew: me either until now
09:57 PM rue_mohr: what did the csi bridge cost then?
09:57 PM aandrew: and it works GOOD
09:58 PM aandrew: gonna make a quick and dirty banana pi m2 zero camera connector to rpi camera connector adapter to see if the banana pi m2 zero can do this since it's actually obtainable and cheap ($35)
09:59 PM rue_mohr: if (b == 2) D = 0x55AA55AA; return; // reset
09:59 PM rue_mohr: hahahaha
09:59 PM rue_mohr: why does the flow never make it to the code below!!!!
09:59 PM rue_mohr: ugh
09:59 PM rue_mohr: BAD RUE!
11:26 PM aandrew: lack of braces bit you eh?
11:26 PM aandrew: I *always* use braces for conditionals, the sole exception (which proves the rule) is when I have a block of short ones
11:26 PM aandrew: like
11:26 PM aandrew: if (foo == 1 && bar == 2) out = 1;
11:26 PM aandrew: if (foo == 2 && bar == 1) out = 2;
11:26 PM aandrew: if (foo == 3 && bar == 3) out = 3;
11:27 PM aandrew: kind of thing where it's kind of clear that I'm doing a fancier switch()
11:33 PM rue_mohr: yea, I added the return later