#garfield Logs

Nov 21 2022

#garfield Calendar

12:21 AM rue_mohr: 3410...
01:03 AM polprog: rue_mohr: look, the control memory uses the same trick as our ROM computers https://people.computing.clemson.edu/~mark/uprog.html
01:03 AM rue_mohr: your up early
01:04 AM rue_mohr: yea, it really drives home the "its just a state machine" eh?
01:05 AM rue_mohr: I realized you dont need an ALU that can add in a computer
01:06 AM rue_mohr: you just need some good bitwise instructions
04:43 AM polprog: arithmetic is useful
05:50 AM rue_mohr: I should not be awake
05:50 AM rue_mohr: polprog, you can just make it tho
05:50 AM rue_mohr: like a multiply routine, addition can just be worked out
08:16 AM aandrew: wow the start of using mastodon is a lot like the good old days of twitter
08:17 AM aandrew: rue_mohr: you seem to have a great difficulty with sleep patterns. Are you actually getting rest but at odd hours, or are you running a significant sleep deficit?
08:22 AM aandrew: https://electronics.stackexchange.com/q/643070/17429 some interesting reading for your monday morning distraction
08:22 AM aandrew: the messy history of the E series resistor values
08:30 AM rue_mohr: I'm ok, but the hours are insane
08:35 AM rue_mohr: hahaha
08:35 AM rue_mohr: thats a great read
08:36 AM aandrew: I want to get my work area cleaned up enough that I can get into some basic, basic RF stuff
08:36 AM aandrew: I've been hankering to get into it for the better part of 20 years, I should just fucking start
08:36 AM aandrew: I should also get my amateur radio license, it'd be a walk in the park
08:36 AM rue_mohr: :]
08:36 AM rue_mohr: I'm going to try to nap more
08:36 AM rue_mohr: I cant think of any reason to be awake right now
08:37 AM aandrew: took a few of their online tests and the only questions I struggled with were the legal ones (wording, etc.) and stuff to memorize like which frequencies are covered by 20m band
08:37 AM aandrew: besides, having my license means I am one step closer to my midlife crisis of living in a high tech 5th wheel and EV
08:48 AM aandrew: I ran into problems almost immediately with opencv. I'll get through them but pissed me off
08:49 AM aandrew: I just grabbed a pic and am working on the laptop instead of trying to do it on the rpi, once I have the basics I can move over but it's a lot faster to do locally so to speak
08:51 AM polprog: rue_mohr: hm, how though
08:51 AM polprog: like, how would you do it if you were to add 2+3
08:51 AM polprog: say, 2 is in ACC and 3 is an immediate
08:51 AM polprog: An adder, or even better, a multiply-accumulate unit is very basic and very versatile
08:52 AM polprog: aandrew: o, what is your handle on mastodon?
08:52 AM polprog: im https://tacobelllabs.net/@gorplop
09:21 AM aandrew: polprog: anotherandrew@mastodon.social - I'll eventually be moving to my own server but for the moment it's there
09:28 AM aandrew: it seems that mastodon actually makes it easy to move to another server without "losing" who you wer ebefore
09:28 AM aandrew: which is nice
09:28 AM polprog: it does, yeah
02:16 PM rue_mohr: I think I got the pi upgraded and ok
02:17 PM rue_mohr: aandrew, your just working with the jpg from the camera, right?
02:17 PM polprog: hey there
02:17 PM rue_mohr: polprog, xor A,B store as C,
02:17 PM rue_mohr: and A,B, store as D
02:18 PM rue_mohr: if bit set bit set toggle bit....
02:19 PM polprog: hmm
02:19 PM polprog: what does it do?
02:19 PM rue_mohr: additin
02:19 PM polprog: (you can implement all that in FPGA and play, or even in just simulate in Icarus)
02:19 PM rue_mohr: oh thats a servo
02:20 PM rue_mohr: too many topics
02:20 PM rue_mohr: the image of what I want to put on cpld?
02:21 PM polprog: the perpetual struggle
02:21 PM rue_mohr: an adder takes up a lot of single purpose space
02:23 PM rue_mohr: if you give a cpu what it needs to do addition with instructions, your cpu is a bunch smaller
02:24 PM polprog: i like the idea to store the next address in the instruction itself, it eliminates unconditional jumps
02:25 PM rue_mohr: and the instructions are usefull for a bunch of other things
02:25 PM polprog: yeah
02:25 PM polprog: i should build or simulate my ROM computer design
02:25 PM rue_mohr: that 1 bit from HaD article was fun
02:26 PM rue_mohr: I figured out how to add an alu to it, but didn't do it
02:27 PM rue_mohr: writing the assembler for it was great fun
02:27 PM rue_mohr: I'm "downloading my tiwtter data" 3.6G so far
02:27 PM rue_mohr: how big do you think it will be?
02:27 PM polprog: there it is
02:27 PM polprog: https://polprog.net/rozne1/ircjunk/fsm/eprom-fsm.jpg
02:27 PM polprog: mine was hm, let me check
02:28 PM polprog: i think it was 1-2G
02:28 PM polprog: i suppose yours will be around 10 gigs
02:28 PM polprog: they split it into chunks, mine was a single chunk
02:29 PM rue_mohr: Twitter data (1 of 1)
02:29 PM rue_mohr: or 4G
02:29 PM rue_mohr: oh thats just the fsm
02:34 PM rue_mohr: polprog, did you see the whole 1 bit microcontroller thing?
02:37 PM polprog: i know of the integrated one
02:37 PM polprog: 14500 it was?
02:37 PM rue_mohr: this is based on the 14500 design, but its a 5 chip 1 bit microcontroller using generic
02:38 PM polprog: ah
02:38 PM polprog: no i didnt
02:38 PM rue_mohr: https://github.com/ruenahcmohr/OneBit
02:39 PM rue_mohr: thats no-alu
02:39 PM rue_mohr: I can route it a *bit* different that gives it a 1 bit alu
02:40 PM rue_mohr: because the address for the next instruction is in the instruction, the assembler instruction set gets crazy
02:41 PM rue_mohr: as most of it is just semantic
02:45 PM rue_mohr: polprog, still reading? }:]
02:45 PM polprog: yeah
02:45 PM polprog: ** By reading this you are liable for your own mental damage caused by trying to understand this instruction set. **
02:45 PM polprog: hihi
02:45 PM rue_mohr: :]
02:46 PM polprog: its cool but i dont know what is the set encoding
02:46 PM rue_mohr: some of the instructions are crazy
02:46 PM polprog: and the target hardware, its not a self wired rom right?
02:46 PM rue_mohr: it does not have sub-states
02:46 PM rue_mohr: its all 1 cycle
02:46 PM rue_mohr: it is, there is a schematic there
02:46 PM polprog: oh wow
02:46 PM rue_mohr: yea
02:47 PM rue_mohr: and you can program it in assembler
02:47 PM polprog: i got sucked into the readme file
02:47 PM rue_mohr: ""
02:47 PM rue_mohr: yup
02:47 PM rue_mohr: sorry I cant write md better
02:47 PM polprog: its ok
02:47 PM polprog: wow its really a 28c64 and some glue
02:47 PM rue_mohr: yup
02:48 PM rue_mohr: doesn't it really bring to life that computers are state machines?
02:48 PM polprog: overcomplicated and cursed ones
02:49 PM rue_mohr: all those test programs work
02:49 PM rue_mohr: apologies that most of them just copy bits between input and output
02:49 PM rue_mohr: the creativity wasn't flowing
02:50 PM polprog: thats an important CPU function
03:09 PM rue_mohr: ok, I'll check the pi and mount it to the stand
03:09 PM rue_mohr: after a shower and breakfast
03:09 PM rue_mohr: I need to go shopping
03:09 PM rue_mohr: I dont remember why or know what to get
03:28 PM rue_mohr: washers for a linear motor
03:29 PM rue_mohr: 3426
03:29 PM rue_mohr: yea thats a jump
03:29 PM rue_mohr: WHY...
03:29 PM rue_mohr: anyhow
03:29 PM rue_mohr: showered, next breakfast
03:40 PM rue_mohr: aandrew, opencv, it wouldn't install or ?
03:43 PM rue_mohr: where did polprog go?
03:43 PM rue_mohr: I hope his brain didn't segfault trying to make sense of those assembler instructions...
04:09 PM polprog: im still here, had to do up the house
04:10 PM rue_mohr: the pi is working ok now
04:10 PM rue_mohr: I need to do some shopping and when I'm back I'll set the pi and camera up on the stand
04:10 PM rue_mohr: dial it in to look at a gear
04:11 PM polprog: ill see maybe I will set up the pi with camera today
04:12 PM rue_mohr: get the pi to boot with a camera on it
04:12 PM rue_mohr: thats an ok step
04:37 PM polprog: aight
04:46 PM polprog: damnit, the networking setup that I used for the mechanical TV is particularly cursed
04:46 PM polprog: my router is not working so im on my phone's USB connection, and the addres subnets clash :<
04:46 PM polprog: but i will back the scripts up instead...
04:47 PM polprog: i have to start fresh anyway, i need to return this pi at some point but the student's physics club seems to be pretty deaf to my questions about when they want it
04:47 PM polprog: it's a Pi 4 even :>
05:05 PM aandrew: hm?
05:07 PM polprog: i need to make a new SD card with an OS for it, so that I can keep it when i eventually give the pi back
06:23 PM polprog: nite
06:31 PM rue_mohr: mmm $37 in washers
06:32 PM rue_mohr: polprog, I'm surprised you dont have a pi
06:48 PM rue_mohr: ok
06:48 PM rue_mohr: pi
06:59 PM rue_shop3: ok pi on stand
07:02 PM rue_shop3: huh
07:02 PM rue_shop3: pi wont boot here
07:02 PM rue_shop3: only boots in the livingroom with the keyboard and monitor attached where its not in the shop hooked up to the project
07:04 PM rue_shop3: ok I'll have to pack it all back to the livingroom again
07:09 PM rue_mohr: the pi is dead
07:09 PM rue_mohr: I'll have to check out the flash card again and see
07:09 PM rue_mohr: maybe I have to set a new one up
07:14 PM rue_mohr: if you boot a pi without a flash card, it wont even bring anything up on screen right?
07:14 PM Tom_L: yup
07:15 PM rue_mohr: ok, so I'll just assume the card failed and do up a new one
07:15 PM rue_mohr: arg
07:15 PM Tom_L: there might be some upgrade to boot usb
07:15 PM Tom_L: i've never looked or tried it
07:15 PM rue_mohr: not now, its got me pissed off cause I wanted to move on after spending HOURS on it last night
07:16 PM Tom_L: talk nicer to it
07:16 PM rue_mohr: not when I have to use two pick-axes to type on my keyboard
07:16 PM Tom_L: https://www.tomshardware.com/how-to/boot-raspberry-pi-4-usb
07:16 PM rue_mohr: I should ahve built a keybaord two keyabords ago
07:17 PM rue_mohr: I have lots of SD cards
07:17 PM rue_mohr: finding the image will be more work
07:17 PM Tom_L: for the camera?
07:17 PM Tom_L: debian has buster, bullseye, bookworm images
07:18 PM rue_mohr: image
07:18 PM rue_mohr: write to sd card
07:18 PM rue_mohr: boot with
07:18 PM Tom_L: yes
07:18 PM rue_mohr: but not now
07:18 PM rue_mohr: I want to work on something not frustrating
07:18 PM Tom_L: you download and burn
07:19 PM rue_mohr: like designing some tree-hanging led yard lights so I can see at night when walking to the back of the yard
07:19 PM rue_mohr: no pi stuff now, I'm pissed off with it :]
07:19 PM rue_mohr: on 12V, I can run 3 white leds in series
07:20 PM rue_mohr: leaves 3V for a ballast resistor
07:20 PM rue_mohr: if I use say, 15mA
07:20 PM rue_mohr: 200 ohms
07:21 PM rue_mohr: ---|>|--|>|--|>|--\/\/\/\--
07:21 PM rue_mohr: mmmm
07:21 PM rue_mohr: I have some salsa jars
07:21 PM rue_mohr: if I use the lid, and 3d print a top of some sort to hang them from
07:22 PM rue_mohr: Tom_L, if you want to drop me an image for a pi SD card tho, I could use it later :]
07:23 PM Tom_L: not sure where i stuffed them
07:23 PM Tom_L: but they're here somewhere
07:23 PM Tom_L: i'd probably go with bookworm
07:23 PM Tom_L: 12?
07:23 PM rue_mohr: for the pi I dont care :]
07:24 PM Tom_L: not released yet but i've been using it
07:24 PM rue_mohr: I'd like to make some sort of cute little fixure that hangs
07:24 PM rue_mohr: maybe by the cable
07:24 PM rue_mohr: spice jars would be perfect
07:25 PM rue_mohr: not sure night is a good time to go digging around the yard for my splice boxes
07:25 PM Tom_L: what i have are large image files
07:25 PM Tom_L: 64
07:25 PM Tom_L: since i pulled them from my sd
07:25 PM rue_mohr: I think the cards I have are big
07:25 PM Tom_L: but i may have the originals here somewhere
07:25 PM rue_mohr: oh, doesn't help make a card tho
07:26 PM rue_mohr: I wonder where the official iamges are
07:26 PM Tom_L: tried resizing but it wouldn't boot after that
07:26 PM rue_mohr: but right now I dont care
07:26 PM rue_mohr: yard lights
07:26 PM rue_mohr: I suppose I could make some up and power them on temp supplies
07:27 PM rue_mohr: I dont ahve any good UV resistnat wire that I know of to hang them with but
07:27 PM Tom_L: some of these don't have a gui
07:27 PM rue_mohr: could sheath it in pipe
07:27 PM rue_mohr: dont need a gui, I wonder what I used then
07:27 PM Tom_itx: https://raspi.debian.net/tested-images/
07:27 PM rue_mohr: dont care now
07:27 PM Tom_L: daily builds
07:27 PM rue_mohr: cool I'll start with that later
07:28 PM rue_mohr: oh I have the tube for the drip irrigation!
07:28 PM Tom_itx: https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-64-bit
07:28 PM Tom_L: bullseye
07:28 PM rue_mohr: so I just need some small jars and a 3d printed top
07:29 PM Tom_L: don't use buster
07:31 PM rue_mohr: I wonder how long a 4.5Ah battery lasts at 15mA
07:31 PM rue_mohr: its not straight up
07:32 PM rue_mohr: I think 60 hours
07:32 PM rue_mohr: (lead-acid)
08:05 PM rue_shop3: yea thats ok for a night light
08:05 PM rue_shop3: I think the 12V solar yard loop would be ok with a few of those
08:06 PM rue_shop3: I have some ground leds on it, but they are only like 0.5mA
08:25 PM Tom_L: i found my bookworm img for the rpi
08:25 PM Tom_L: was on the linux ssd
08:25 PM Tom_L: 444mb
08:34 PM rue_shop3: I dont know the distribution names
08:34 PM rue_shop3: all silly
08:35 PM rue_shop3: I got about 6 UPSs moved to the shed from the deck
08:35 PM rue_shop3: I'm going to try to clear the deck of storage things
08:37 PM Tom_L: 11
08:37 PM rue_shop3: 11 seems pretty new
08:37 PM rue_shop3: I think most of mine are 9ish
08:38 PM Tom_L: https://www.debian.org/releases/
08:38 PM Tom_L: not a release date on it yet
08:38 PM Tom_L: it will be 12 i think
08:38 PM Tom_L: 13 is trixie
08:39 PM rue_shop3: there is a funny line between stored things
08:39 PM rue_shop3: there are materials that are accessed on some interval and there are call-if-you-need devices
08:39 PM Tom_L: i've got 7 on the mill, 8 on the server and the rest are 10 or newer
08:39 PM rue_shop3: or supplies?
08:40 PM rue_shop3: dont want to use the shed for any of the regular stuff
08:40 PM rue_shop3: oh, I'm supposed to make the better sign for that shed for same
08:40 PM rue_shop3: sale
08:40 PM Tom_L: wanna know a secret?
08:41 PM Tom_L: if you start moving stuff.. you will have a renewed interest in it when going to long term storage
08:41 PM rue_shop3: heh
08:41 PM rue_shop3: not UPSs
08:41 PM rue_shop3: I have all the aluminum bricks to go to a supplies tent too
08:41 PM rue_shop3: tent has to be like 20 years old now, still ok
08:42 PM rue_shop3: cat used to climb it and left a few small holes
08:51 PM Tom_L: remind me if you want one of those img files and i'll put it on the server
08:51 PM Tom_L: i wouldn't recomend buster though
08:52 PM Tom_L: you do an update and the usb quits working
08:53 PM rue_mohr: it would be nice to find something kinda current from the internet
09:21 PM Tom_L: it was
09:22 PM Tom_L: i just forgot the site that has those
09:22 PM Tom_L: bookworm is the most current you will find anywhere
09:58 PM Tom_L: https://raspi.debian.net/daily-images/
09:58 PM Tom_L: no gui