#garfield Logs

Aug 05 2021

#garfield Calendar

12:22 AM rue_bed: ok, well gnight
02:42 AM polprog: nice lcd
02:43 AM polprog: i just realized I have some paralell camera modules i could use with the fpga
02:43 AM polprog: sounds like a cool project once I do the SDRAM control
02:44 AM polprog: im packing stuff, going on a small holiday though
08:41 AM rue_mohr: SDRAM requires insane overhead
08:41 AM rue_mohr: packet commands, refresh packets at 32khz
08:41 AM rue_mohr: setup-before-accessing-page
08:45 AM rue_mohr: I had a dream where I needed to vouch for Lennord Nemoy
08:45 AM rue_mohr: ...
12:35 PM polprog: Thats why I want to implement it in fpga
12:35 PM polprog: would be nice to hook it up to xdata on my 8051
01:24 PM aandrew: low power SDRAM can do its own refresh, but still has non-trivial access protocols
07:10 PM rue_mohr: Its amazing to me that sdram is even good enough for an 8051
08:25 PM aandrew: "good enough" ?
08:26 PM rue_mohr: well
08:26 PM rue_mohr: its what, 125MHz?
08:26 PM rue_mohr: then you subtract off the 32khz update packets
08:26 PM rue_mohr: then divide by the size of the average read/write packet
08:27 PM rue_mohr: subtracting off the "oh, I need that page now" "prep" packets
08:27 PM rue_mohr: is there really anything left?
09:53 PM aandrew: sure, lots left
10:43 PM rue_mohr: maybe 20Mhz of real bandwidth?
10:43 PM aandrew: probably quite a bit more I'd think
10:43 PM rue_mohr: like, I'm talking SRAM bandwidth, where you put the address up and get your data
10:44 PM aandrew: refresh is less than .05%
10:44 PM rue_mohr: 32khz, but I dont recall if thats a 1 byte packaet or more
10:44 PM rue_mohr: er, 1 word or more
10:44 PM aandrew: I think it's not a packet at all
10:45 PM rue_mohr: it is
10:45 PM rue_mohr: unless its in sleep mode
10:45 PM aandrew: I think (been a while) that it's just a command on the address bus and then strobe ras or something
10:45 PM rue_mohr: and then you can be reading/writing it
10:45 PM aandrew: and you open pages and then can access data within the page without further commands
10:45 PM rue_mohr: I was looking at a datasheet yesterday
10:46 PM aandrew: you're more familiar with it htan me then
10:46 PM rue_mohr: yea, but lets assume random access
10:46 PM rue_mohr: just ugh
10:46 PM aandrew: I mistakenly bought a radiant heater valve
10:46 PM rue_mohr: ... instead of?
10:46 PM aandrew: the motor assembly is kind of neat
10:46 PM aandrew: the rest of it is a decent little bare LCD and an STM8
10:47 PM aandrew: I meant to get the zigbee gateway, not the valve itself
10:47 PM rue_mohr: heh
10:47 PM rue_mohr: zigbee...
10:47 PM rue_mohr: that was a bit of a fail eh?
10:47 PM rue_mohr: via liscencing I guess
10:47 PM aandrew: yeah
10:47 PM aandrew: I can never keep zigbee and zwave straight
10:48 PM rue_mohr: power meters are sigbee and which?
10:49 PM rue_mohr: hmm, there is a hex tristate buffer..
10:49 PM rue_mohr: 74ls3??
10:49 PM rue_mohr: no, 367 has bussed OE
10:52 PM aandrew: oh let me tell you about my adventure
10:52 PM rue_mohr: ok
10:52 PM aandrew: TXS0102 is a bidirectional level shifter, no direction pin
10:53 PM rue_mohr: uhu sure
10:53 PM aandrew: I've used the single, double, and octal versions
10:53 PM rue_mohr: k
10:53 PM aandrew: so I put some of these on these new boards
10:53 PM rue_mohr: its a fet based one?
10:53 PM aandrew: yes I think so. they're a little more complicated (one-shot to help speed up edges etc)
10:53 PM rue_mohr: hmm
10:54 PM aandrew: anyway I tried to assemble these boards
10:54 PM aandrew: and discovered I don't have that specific package (VSON8)
10:54 PM aandrew: and of course they're unobtainium
10:54 PM rue_mohr: uhu
10:54 PM aandrew: but I do have MS8 and VSOP8
10:54 PM rue_mohr: buy them before you make a new board around them
10:54 PM aandrew: discovery one: MS8 and VSOP8 have the same pinout. VSON8 does not.
10:55 PM rue_mohr: evil
10:55 PM rue_mohr: pins bent the other way?
10:55 PM aandrew: discovery two: there are actually a few other level shifters in the same packages, but have different pinout than either of those
10:55 PM aandrew: no
10:55 PM aandrew: sadly
10:55 PM rue_mohr: is it by microchip?
10:55 PM aandrew: no, TI and a few others too
10:55 PM rue_mohr: huh
10:55 PM Tom_L: nxp makes one but it's on the obsolete list now
10:56 PM Tom_L: https://www.mouser.com/ProductDetail/NXP-Semiconductors/GTL2003PW118?qs=me8TqzrmIYV56Rms1fILKA%3D%3D
10:56 PM aandrew: discovery three: Pericom (Diodes Inc.) makes a pin-compatible one in all three packages, and they're available too
10:56 PM Tom_L: i used those on my programmers
10:56 PM aandrew: so I got those
10:56 PM rue_mohr: k
10:57 PM aandrew: PI4ULS3V302XVEX is the TXS0102 compatibel ones
10:57 PM rue_mohr: performance....
10:57 PM aandrew: oh yeah and that's the fun part
10:57 PM aandrew: Pericom always had rather esoteric stuff, usually high speed muxes/clock routers, etc.
10:57 PM aandrew: and the pericom part is good to 140Mbps
10:57 PM aandrew: slightly overkill for I2C
10:59 PM rue_mohr: oh I ahve to get thru to the internat shipper too damn
10:59 PM aandrew: that's my sad little story about chipageddeon
10:59 PM rue_mohr: did the repalcement work out?
11:00 PM aandrew: hopefully here tomorrow
11:00 PM aandrew: mouser shipping is always hit and miss unfortunately
11:01 PM aandrew: their canadian office is in my town even
11:01 PM aandrew: UPS says tomororw
11:01 PM rue_mohr: heh
11:02 PM rue_mohr: "attempted delivery" and even tho you were sitting on the porch all day, someohow "you missed them"
11:04 PM aandrew: yeah I had that happen when I was in BC
11:04 PM aandrew: my desk was literally in front of the living room window overlooking the street, and I had a camera watching it too because that's where I parked my car
11:04 PM aandrew: got the "attempted delivery, nobody home" and I called them and fought like hell telling them exactly that
11:05 PM aandrew: demanded the driver deliver the shit that I paid out the ass for overnight
11:05 PM rue_mohr: "give ya 24 hours of camera footage!!"
11:05 PM aandrew: exactly
11:05 PM aandrew: 20m later the driver came by, threw it at the door and took off before I could get down the steps to tear him a new asshole
11:06 PM rue_mohr: huh
11:06 PM aandrew: I get you're run ragged and the job's stressful but that doesn't mean you get to dick around customers to try to make up time
11:06 PM rue_mohr: yea, prolly not paid for it either
11:06 PM aandrew: I suspect they get away with it a lot
11:07 PM rue_mohr: the local garbage truck drivers were told the trucks would be reduced to one person, driving and throwing in the cans. 5 of them quit
11:07 PM aandrew: it's not often I get a minor victory like that
11:07 PM rue_mohr: and I support their descision
11:07 PM aandrew: yeah that's tough
11:07 PM rue_mohr: esp for liek $17/hr
11:07 PM aandrew: I thought they made decent money and benefits
11:07 PM rue_mohr: apparently the local company is screwing them over
11:07 PM aandrew: yeah
11:08 PM rue_mohr: maybe the managers can drive and tip for a while
11:08 PM aandrew: I learned allllll about the intracasies of commercial trash hauling when I accientally threw out $1100 cash a few years back
11:08 PM aandrew: that was NOT a good day
11:08 PM rue_mohr: whaaaaa
11:08 PM rue_mohr: you didn't get it back did you
11:08 PM aandrew: nope
11:08 PM rue_mohr: no
11:09 PM aandrew: I grabbed the cash for something (don't remember what now) and picked hte kids up from school, then went to the grocery store to get a few things
11:09 PM aandrew: the passenger seat was a mess of garbage, junk mail, etc. so I collected it all and therw it out in the grocery garbage on the way in
11:09 PM aandrew: about 5h later I realized my mistake
11:10 PM rue_mohr: always keep the garbage completely seperated
11:10 PM aandrew: of course the garbages are put in the compactor and then once a week or two weeks they haul it off
11:10 PM rue_mohr: ooh I wanted to play with that lcd
11:11 PM rue_mohr: I cant decide on a tristate driver
11:11 PM aandrew: so the grocery store chain has garbage collection for ALL stores across the province done with a single company out of alberta
11:11 PM rue_mohr: chip, avr, or cpld
11:11 PM aandrew: and that company from alberta outsourced it to local commercial trash collection
11:11 PM aandrew: called like 50 different numbers to figure this all out
11:12 PM rue_mohr: yep
11:12 PM rue_mohr: Tom_L, you ok?
11:12 PM aandrew: and managed to get to the company that'd pick it up (stroke of luck they'd collected the day before I fucked up)
11:12 PM aandrew: I told them of course it was a necklace my wife asked me to get cleaned
11:13 PM aandrew: but they dumped out 2 weeks of grocery store compacted trash and gave me a hazmat suit to pick through it
11:13 PM aandrew: my god, that was vile
11:13 PM rue_mohr: yea
11:13 PM rue_mohr: well done getting that far tho
11:13 PM aandrew: sadly I went home empty handed and absolutely reeking
11:13 PM rue_mohr: yea
11:13 PM aandrew: I did learn a lot though and actually did enjoy that adventure
11:14 PM aandrew: but yes -- now I never ever ever ever EVER put anything on the passenger seat that is even remotely important
11:14 PM aandrew: glove box or visor
11:14 PM rue_mohr: uhm, keep a bag for garbage tho
11:14 PM aandrew: yeah I haven't gone that far yet
11:14 PM rue_mohr: dont let it mix into things
11:14 PM aandrew: that's the smarter thing
11:15 PM rue_mohr: damn, I got a bunch of tiny26 for their ADCs and their the perfect size for EVERYTHING ELSE
11:15 PM aandrew: I'm procrastinating again - I have a BLDC motor control library to play with, a couple camera boards to assemble and test (but that's waiting on parts), discovered a fuckup there too
11:15 PM rue_mohr: I think my BGA cpld board is ready for routing
11:16 PM aandrew: the connector for the camera that snaps on to the board has hte pinout correct but I rotated it 180 degrees so instead of the camera being centered on the board, it's hanging off the board which sucks
11:16 PM rue_mohr: pretty sure I have all the parts I'm gonna want
11:16 PM aandrew: but for a prototype a 3d printed frame will fix that. embarassing but fine
11:16 PM aandrew: I even got the rotation of the FFC connectors correct
11:16 PM rue_mohr: did you see one of the screen grabs?
11:17 PM aandrew: what else... port my stm32 devicenet code to esp32 (should jsut work but have to make sure the can driver is going to work), MAME street fighter 2 on ARM64 I got working at a reasonable speed but there's a bunch of software shitty work there to do
11:19 PM rue_mohr: http://ruemohr.org/~ircjunk/tempimage/Untitled.png
11:19 PM rue_mohr: :]
11:20 PM rue_mohr: I'm supposed to put the linear regulator right under the crystal, right? ;)
11:20 PM rue_mohr: in this design, we use the pin header to shield the oscillator from the heat of the regulator
11:21 PM rue_mohr: I'm using the huge osc module because I have a bunch of them, I'm gonna socket it for swapping
11:21 PM aandrew: well you play your cards right you can turn that simple XO in to a TCXO or even OCXO
11:22 PM rue_mohr: I'm not looking forward to working with flood fill
11:22 PM rue_mohr: I'm actually going to try to pull this off in 2 layers
11:23 PM aandrew: you do like a challenge
11:23 PM rue_mohr: look how much I cheated so far
11:23 PM rue_mohr: ;)
11:23 PM rue_mohr: I do wish they would group TDO with EVERYONE ELSE
11:25 PM aandrew: haha that'd be too easy
11:25 PM rue_mohr: I suppose I have to get the BGA first
11:25 PM aandrew: man I promise I'll set up an image host with whatever interface you like just so you post pictures that aren't too low resolution for my ancient eyes
11:25 PM rue_mohr: waiting for the balls and stencils to arrive
11:26 PM rue_mohr: zoom?
11:26 PM aandrew: then it just looks shitty and blocky :-)
11:26 PM aandrew: oh I don't think I showed you guys
11:26 PM aandrew: one sec
11:28 PM rue_mohr: I dont get that, these are 1600x1200 monitors, they are better than the 1080 junk everyone is using
11:28 PM rue_mohr: whats the rez on your monitors?
11:29 PM aandrew: https://ibb.co/CtF44VZ
11:29 PM aandrew: my new ksger handle (middle) is a lot closer to the tip than the one it comes with, but still not as good as the metcal
11:29 PM aandrew: my monitor's 1080p and the laptop's whatever stupid high res
11:29 PM rue_mohr: k
11:30 PM rue_mohr: how long do you think a tip lasts ya?
11:31 PM aandrew: that's a good question, that metcal tip is at least 5y old now
11:31 PM rue_mohr: I made a custom steel one thats lasted more than 5 years, but thought I would try a straight copper one, which looks like will be done at about 1 yr?
11:32 PM rue_mohr: I had another steel tipped iron that was ~12 yrs
11:32 PM rue_mohr: the element died
11:32 PM rue_mohr: no replamcent available
11:32 PM aandrew: interesting. yeah the ones with the heater inside would wear out faster
11:33 PM aandrew: I had a wes51 for over 20y, tips would last a couple/three years or so but it was shit, I just didn't know it
11:40 PM rue_mohr: aandrew, every shipped a pallette of stuff?
11:40 PM rue_mohr: I have a lead
11:43 PM aandrew: I did when I moved back to ontario
11:44 PM rue_mohr: well tell me how that went if you would
11:45 PM aandrew: it went great
11:45 PM rue_mohr: aha, 74125
11:45 PM aandrew: hqlogisticsinc.com
11:45 PM aandrew: drop off was on burrows road in richmond
11:45 PM aandrew: pick up was about an hour from my home in ontario
11:45 PM rue_mohr: hu?
11:45 PM rue_mohr: no pickup palette with trailgate lift?
11:46 PM aandrew: weight didn't matter, it was just based on size
11:46 PM rue_mohr: yea
11:46 PM rue_mohr: remember what it was worth?
11:46 PM aandrew: yep
11:46 PM rue_mohr: kinda low wasn't it?
11:46 PM aandrew: $250 / m3
11:46 PM rue_mohr: compared to a heavy box
11:46 PM rue_mohr: yea
11:46 PM rue_mohr: k
11:46 PM aandrew: $35 handling at each point
11:46 PM rue_mohr: sure
11:47 PM rue_mohr: so, they had you bring the stuff to a place with a pallette?
11:47 PM aandrew: I shipped 6x4x4' for $714, took ~3 weeks to get to the destination
11:47 PM aandrew: yes
11:47 PM rue_mohr: huh
11:48 PM aandrew: they put the pallet down on the ground, I loaded it, they did the industrial saran wrap and helped me with some flat cardboard around the top to help keep the top proteted
11:48 PM aandrew: well $714+HST
11:48 PM rue_mohr: ye
11:48 PM rue_mohr: arg, I'm out of juice
11:48 PM rue_mohr: and time
11:48 PM aandrew: the car we shipped with someone else via rail
11:48 PM rue_mohr: and I need to make supper
11:49 PM rue_mohr: I wonder if car lots can ship cars
11:49 PM aandrew: that was livingston international, and was $1400
11:49 PM rue_mohr: maybe they aren't insured for it
11:49 PM aandrew: yeah it was my wife's mercedes suv so I didn't try to save a buck there
11:50 PM rue_mohr: but mercadies may have been able to move it for you
11:50 PM rue_mohr: they have a car transport network
11:50 PM aandrew: but I was really happy with the pallet shipping - if you have a truck with a liftgate they could handle it, or just drive on/drive off without liftgate
11:50 PM rue_mohr: yep
11:50 PM aandrew: rue_mohr: tried that, mercedes couldn't do it in BC
11:50 PM rue_mohr: Tom_L, got a saran wrap roll thinger?
11:50 PM rue_mohr: aandrew, interesting...
11:53 PM rue_mohr: I dont even want to eat
11:53 PM aandrew: u-haul sells the roller thingers too
11:53 PM aandrew: yeah I have days like that
11:53 PM aandrew: then there's days like tonight where I can't seem to stop eating
11:53 PM rue_mohr: its not motivating me to cook anything
11:54 PM aandrew: I do a lot of apples, or carrots/celery/snap peas with roasted pine nut hummus
11:55 PM rue_mohr: hm
11:55 PM rue_mohr: its like a want a really strange counter for this
11:55 PM aandrew: if nothing else it keeps me regular, lol
11:55 PM rue_mohr: why suddenly does everything seem like a perfect fit for a cpld latley?
11:55 PM aandrew: when you have a hammer every problem looks like a thumb...
11:56 PM rue_mohr: maybe its just the new thing obsession, like a kid :)
11:56 PM rue_mohr: well, the 9536 was a TIGHT fit for that greenhouse timer
11:56 PM rue_mohr: (which seems to be working, but I'm not quite sure when)
11:56 PM aandrew: nice
11:57 PM rue_mohr: I thought your ideas to free up resources would help a bit
11:57 PM rue_mohr: but I was still unable to have an indicator output and another output on the same signal without overloading it
11:57 PM aandrew: right, optimizing for the hardware is tricky
11:58 PM rue_mohr: kept running out of terms
11:58 PM rue_mohr: }:/
11:58 PM aandrew: hm, you could drive an led for the 2m that it was active, and another led on one of the bits for a ~s counter maybe
11:58 PM aandrew: but I guess you couldn't get the internal logic out to a pin?
11:58 PM rue_mohr: I had to use a flipflop for the match
11:59 PM rue_mohr: so I thought it wouldn't be a problem to output it to two pins
11:59 PM rue_mohr: I guess the routing couldn't do it