#garfield Logs

Apr 07 2022

#garfield Calendar

01:21 AM rue_mohr: so
01:30 AM rue_mohr: https://laughtonelectronics.com/Arcana/One-bit%20computer/One-bit%20computer.html
01:30 AM rue_mohr: for only having 1 instruction, its got quite the instruction set
01:30 AM rue_mohr: NOP
01:30 AM rue_mohr: SETB o
01:30 AM rue_mohr: SETBJMP o, a
01:30 AM rue_mohr: CLRB o
01:30 AM rue_mohr: CLRBJMP o, a
01:30 AM rue_mohr: CPYB i, o
01:30 AM rue_mohr: CPYBJPS i, o, a
01:30 AM rue_mohr: CPYBJPC i, o, a
01:30 AM rue_mohr: CPYBJMP i, o, a
01:30 AM rue_mohr: INVB i, o
01:30 AM rue_mohr: INVBJPS i, o, a
01:30 AM rue_mohr: INVBJPC i, o, a
01:30 AM rue_mohr: INVBJMP i, o, a
01:30 AM rue_mohr: JMP a
01:30 AM rue_mohr: JPS i a
01:30 AM rue_mohr: JPC i a
01:30 AM rue_mohr: FORK i, af, at
01:30 AM rue_mohr: WAITS i
01:30 AM rue_mohr: WAITC i
01:30 AM rue_mohr: STOP
01:30 AM rue_mohr: he didn't post an assembler, so I'm working on one
01:41 AM rue_mohr: oh and there are more... damn
01:42 AM rue_mohr: SKIPC i
01:42 AM rue_mohr: SKIPS i
01:42 AM rue_mohr: REPTC i
01:42 AM rue_mohr: REPTS i
01:44 AM rue_mohr: hmm, anything else cheeky I can do?
04:54 AM Tom_L: morning
08:45 AM rue_mohr: morning
11:23 AM WormFood: WTF?!? Delivery: Estimated between Thu. Apr. 28 and Thu. Jun. 23 <-- another way of saying "we have no fuckin' clue" This also allows them to collect a lot of packages, to ship at once, for a discount on shipping prices.
01:27 PM WormFood: What would be a good project for a 16-position rotary 4-bit switch?
01:50 PM WormFood: well, "switch" describes it electrically....physically, it'd be a 16-position knob. It came off a 16-channel VHF radio (and I replaced all their circuitry with an MCU, and a switch instead of a knob)
02:40 PM polprog: Hey rue_bed
02:40 PM polprog: No i missed the 4 transistor pwm circuit
02:45 PM polprog: Its clever!
02:45 PM polprog: Ive been working on my card reader mostly.. gotta come back to some simpler circuits
02:45 PM polprog: Still organizing the lab at uni
02:45 PM WormFood: card reader? what kinda card?
02:46 PM Tom_L: i guess rue got boards back for his reader
02:46 PM Tom_L: door access
02:47 PM WormFood: rfid/nfc?
02:47 PM Tom_L: not sure but i think so
02:50 PM polprog: WormFood: SmartCard
02:50 PM polprog: I need to modify it to read synchronous cards like SLE4442 / Eurochip
02:51 PM polprog: So chip cards basically
02:59 PM WormFood: ah. I see. I have quite a bit of experience with the ISO7816 standard smart cards
03:01 PM WormFood: in fact, I just picked up a Belkin smart card interface, a week or so ago.
07:18 PM Tom_L: ok,
07:18 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/rue/Can_Holder/A9_New/MODS/fixture/test_fit/A9_Fixture_test1.jpg
07:18 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/rue/Can_Holder/A9_New/MODS/fixture/test_fit/A9_Fixture_test2.jpg
07:18 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/rue/Can_Holder/A9_New/MODS/fixture/test_fit/A9_Fixture_test3.jpg
07:18 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/rue/Can_Holder/A9_New/MODS/fixture/test_fit/A9_Fixture_test4.jpg
07:18 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/rue/Can_Holder/A9_New/MODS/fixture/test_fit/A9_Fixture_test5.jpg
07:18 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/rue/Can_Holder/A9_New/MODS/fixture/test_fit/A9_Fixture_test6.jpg
07:19 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/rue/Can_Holder/A9_New/MODS/fixture/test_fit/A9_Fixture_test7.jpg
07:19 PM rue_mohr: hi
07:19 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/rue/Can_Holder/A9_New/MODS/fixture/test_fit/A9_Fixture_test8.jpg
07:19 PM Tom_L: hi
07:19 PM Tom_L: did some test bends on scrap since i didn't have any parts to bend
07:19 PM rue_mohr: WormFood, quick resistor substitutor
07:20 PM rue_mohr: polprog, it uses that oscilaltor, I ahve a few examples of that osc
07:20 PM rue_mohr: WormFood, its a wiegand controller
07:20 PM rue_mohr: it allows all cards
07:21 PM rue_mohr: its for care homes were the door access is just to keep the tenants in
07:22 PM rue_mohr: Tom_L, yes, looks right, the bottom of the tabs has to be filed a bit to fit in
07:22 PM rue_mohr: it looks like it arched the top pretty good tho
07:22 PM rue_mohr: odd
07:22 PM Tom_L: well, if you clamp it down good it's fairly flat
07:22 PM Tom_L: i may not have gone all the way on all of the tests
07:23 PM rue_mohr: hmm
07:23 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/rue/Can_Holder/A9_New/MODS/fixture/test_fit/A9_Fixture_test1.jpg
07:23 PM rue_mohr: so, I'm gonna give up on working with sean on this payment for you
07:23 PM Tom_L: the one on the left there is flat
07:23 PM rue_mohr: I'll make a mess and we(me and partner) can sort it out later
07:24 PM Tom_L: you think he would use this if i sent it?
07:24 PM rue_mohr: so I'll send ya money soon!
07:24 PM rue_mohr: not sure
07:24 PM Tom_L: or do you do all the bending?
07:24 PM rue_mohr: I'll show him when we cross paths, but he's really getting down in family stuff latleyu
07:24 PM rue_mohr: its been a really bad year for him
07:26 PM rue_mohr: polprog, WormFood what do you guys think of that instruction set for the 6 chip microcontroller?
07:27 PM Tom_L: the arc at the top isn't critical is it?
07:27 PM rue_mohr: on the parts it should come out flat
07:27 PM rue_mohr: if its arc'd up it wouldn't fit in B2
07:28 PM Tom_L: ahh that's right
07:28 PM Tom_L: well, if it's smashed in all the way i think it comes out flat
07:28 PM rue_mohr: hmm
07:28 PM Tom_L: like the left one in pic1
07:29 PM rue_mohr: looks sharp
07:29 PM Tom_L: nothing else, it was a project for me
07:30 PM rue_mohr: its interesting that the aluminum worked
07:30 PM Tom_L: i tried it dry and with oil and it didn't seem to matter
07:30 PM rue_mohr: huh
07:30 PM Tom_L: the radius'd edge is the key
07:30 PM Tom_L: it kinda rolls down the part
07:32 PM Tom_L: no tellin what it will look like after 20 or 30 bends
07:32 PM Tom_L: but i think ok
07:32 PM rue_mohr: The smallest typical sections of Schedule 80 pipe run from 1/2 inch to 1 1/2 inches in diameter. Pipe with a 1/2-inch diameter has a service pressure of 1,750 PSI and a burst pressure of 14,000 PSI
07:32 PM rue_mohr: ""
07:32 PM Tom_L: especially if you wipe the top of the part with oil or such
07:33 PM rue_mohr: so, I'm I ok to run black iron pipe at 200psi at 200c?
07:33 PM rue_mohr: Tom_L, I'd think It'd need lube or it'd gall up
07:33 PM Tom_L: what's this for?
07:33 PM Tom_L: oh steam
07:33 PM rue_mohr: yer I have to start building boilers
07:34 PM rue_mohr: I know its derated with temperature
07:34 PM Tom_L: should be ok
07:34 PM Tom_L: those temps don't do much to steel
07:34 PM Tom_L: i'd be concerned about the quality of the threads
07:35 PM rue_mohr: I wouldn't think 200c would make much of a difference
07:35 PM rue_mohr: for 200psi?
07:35 PM Tom_L: my compressor goes up to 175 and has for a good 25-30 yrs
07:35 PM Tom_L: iron pipe to the drop
07:36 PM rue_mohr: mmm
07:36 PM rue_mohr: burst is 15.6k psi
07:36 PM rue_mohr: should be ok
07:40 PM Tom_L: if it fails, you'll be the first to know
07:46 PM WormFood: rue_mohr, I'm in the middle of something, and can't easily type. Give me a url, and I'll give you my thoughts on it when I'm finished doing my stuff, and can type again (I'm cleaning/reorganizing, and using the space in front of my keyboar as stack area)
07:57 PM rue_mohr: too busy barreling forward
07:57 PM rue_mohr: how do I write an assembler?
07:57 PM rue_mohr: what were those two things
07:57 PM rue_mohr: lexx and yacc
07:58 PM Tom_L: in what language?
07:59 PM rue_mohr: assembler
07:59 PM rue_mohr: I need to write an assembler for this 1 bit computer
07:59 PM rue_mohr: https://laughtonelectronics.com/Arcana/One-bit%20computer/One-bit%20computer.html
08:00 PM rue_mohr: so far I have 24 opcodes
08:01 PM rue_mohr: want to do it in C
08:01 PM rue_mohr: not sure if I should involve lexx and yacc
08:04 PM rue_mohr: when was the last time I used lex or yacc anyhow
08:09 PM rue_mohr: hah, I was trying to use it to parge config files for my 3d scanner
08:09 PM rue_mohr: in 2000
08:09 PM rue_mohr: er 2006
09:00 PM Tom_L: so what can a 1 bit processor do?
09:00 PM Tom_L: not much i'd imagine
09:00 PM rue_mohr: did you see the instruction list I did there ^^^^
09:00 PM Tom_L: yeah the other day
09:00 PM Tom_L: yesterday?
09:00 PM rue_mohr: general io stuff
09:00 PM rue_mohr: yea
09:01 PM rue_mohr: ; This is an example program for the 1 bit processor
09:01 PM rue_mohr: START:
09:01 PM rue_mohr: SETB 1 ; set io bit 1
09:01 PM rue_mohr: CLRB 1 ; clear io bit 1
09:01 PM rue_mohr: JMP START ; repeat
09:01 PM rue_mohr: I'm working on writing an assembler for it
09:01 PM Tom_L: blink an led at 60hz
09:01 PM rue_mohr: hah
09:01 PM rue_mohr: it can go faster
09:02 PM Tom_L: you said 60hz clock
09:02 PM rue_mohr: but I want to start with this so I can mod it into other things
09:02 PM rue_mohr: and make it go really fast
09:02 PM rue_mohr: I might be able to make it run on SDRAM
09:02 PM rue_mohr: @150Mhz
09:02 PM rue_mohr: er, 133
09:03 PM rue_mohr: the guy didn't post the assembler tho
09:03 PM rue_mohr: if he ever wrote one
09:03 PM rue_mohr: he mentions one, so I suspect he did
09:04 PM rue_mohr: I'll build one when I have a working assembler
09:04 PM rue_mohr: then I have a million ideas
09:05 PM rue_mohr: which dont fit and are all blocking up against ideas for other projects
09:05 PM rue_mohr: I know your not too into software
09:05 PM rue_mohr: wish I had a group of people like polprog with time and interest to play
09:07 PM Tom_L: i did enough to get done what i needed and that's about it
09:07 PM Tom_L: forgot more than i remember
09:08 PM rue_mohr: :)
09:08 PM Tom_L: but
09:08 PM Tom_L: back then we _did_ have a group of us
09:09 PM Tom_L: bet you can't guess who came up with all the slick ideas
09:09 PM rue_mohr: yea, its awesome to have a like-minded group of people with time and interest
09:09 PM rue_mohr: I only kind had it once
09:09 PM Tom_L: at least 2 are dead now
09:09 PM Tom_L: one moved a way
09:09 PM rue_mohr: was his last name..
09:09 PM Tom_L: one i'm still friends with
09:09 PM rue_mohr: ok, I just cant recall names
09:09 PM rue_mohr: damnit
09:10 PM Tom_L: but don't see any much nowdays
09:10 PM rue_mohr: its odd, it seems groups come and go
09:10 PM Tom_L: one of them did robots too
09:11 PM Tom_L: but the group was more for database work
09:12 PM Tom_L: something is in the air here, can't quit sneezing and runny nose
09:13 PM rue_mohr: polen?
09:13 PM Tom_L: i think fires
09:13 PM Tom_L: grass fires probably
09:13 PM rue_mohr: the polen up here is getting more intense over the years, lots of people are reacting to it, who dont usually.
09:13 PM rue_mohr: hmm
09:14 PM Tom_L: that and covid changes you forever
09:15 PM rue_mohr: everything changes you forever, that one just made enough of a change for people to really notice
09:15 PM rue_mohr: its all stored in the goo in your spine
09:15 PM rue_mohr: which seems like an odd choice
09:17 PM Tom_L: when i made that part i tried something and was quite impressed
09:17 PM rue_mohr: ?
09:17 PM rue_mohr: what happened with the shamfers, wrong offset?
09:17 PM rue_mohr: (the first time)
09:18 PM Tom_L: after i went to depth with that slot, instead of taking small steps down in z i went full depth (.6") but .020-.030" stepover
09:18 PM Tom_L: for the rest of the cut
09:18 PM rue_mohr: k
09:18 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/rue/Can_Holder/A9_New/MODS/fixture/test_fit/A9_Fixture_test4.jpg
09:18 PM Tom_L: quite impressed with the surface finish
09:18 PM Tom_L: on the slot
09:19 PM rue_mohr: every pass is a finishing pass
09:19 PM rue_mohr: did you start in the middle and work out?
09:19 PM Tom_L: well, alot of machinists are doing cuts that way now
09:19 PM Tom_L: yes
09:19 PM Tom_L: it's supposed to be more efficient
09:19 PM Tom_L: you can actually remove more material that way per pass
09:19 PM rue_mohr: how did it take the first cut?
09:19 PM Tom_L: good
09:20 PM rue_mohr: nic
09:20 PM Tom_L: .1" depth full .375 width
09:20 PM rue_mohr: I need to work with the lathe more, there is something flexing thats not helping
09:20 PM Tom_L: this was all manual
09:20 PM Tom_L: quicker because i wasn't sure what i wanted
09:21 PM rue_mohr: :)
09:23 PM Tom_L: potatoes planted yet?
09:23 PM rue_mohr: yes
09:23 PM Tom_L: anything else?
09:23 PM rue_mohr: the ruhbarb is comming up
09:24 PM Tom_L: not too early?
09:24 PM * rue_mohr shrugs
09:24 PM Tom_L: :)
09:24 PM rue_mohr: I need to plant some hamburger bushes too
09:24 PM Tom_L: i've had to cover things before and not too excited about that
09:24 PM Tom_L: i did horseradish once
09:24 PM rue_mohr: what else should i try planting...
09:25 PM rue_mohr: carrots might be a good thing
09:25 PM Tom_L: peas, beans, carrots, radish, cucumber, tomato, potato.... umm what else
09:25 PM Tom_L: beets
09:26 PM Tom_L: tried watermellon but they take too much room
09:26 PM Tom_L: onions
09:26 PM Tom_L: 3 varieties
09:26 PM Tom_L: lettuce
09:26 PM Tom_L: umm brocoli
09:27 PM rue_mohr: :)
09:27 PM rue_mohr: k
09:27 PM Tom_L: one year i had some 1lb tomatoes
09:27 PM rue_mohr: I think they taste better when their smaller
09:27 PM Tom_L: these were good
09:27 PM Tom_L: but for salad yes
09:27 PM Tom_L: hamburger tomatoes
09:28 PM Tom_L: the carrots never did do so well
09:28 PM Tom_L: dunno why
09:29 PM Tom_L: what are hamburger bushes?
09:30 PM rue_mohr: they grow hamburgers
09:30 PM rue_mohr: thats were hamburgers come from
09:30 PM Tom_L: pfft
09:31 PM rue_mohr: :D
09:32 PM Tom_L: if you grow corn, always plant the seeds in groups of 3
09:32 PM Tom_L: even squirrels know to do that
09:33 PM rue_mohr: the slugs and deer LOVE the corn
09:34 PM Tom_L: put salt around the base for the slugs
09:34 PM rue_mohr: wont that kill the plants?
09:34 PM Tom_L: not sure what it would do to the corn :)
09:35 PM rue_mohr: kill it I'm sure
09:35 PM Tom_L: heh
09:35 PM rue_mohr: not sure if the plants are sensitive to copper
09:35 PM rue_mohr: oh
09:35 PM rue_mohr: wait
09:35 PM rue_mohr: pine needles
09:35 PM rue_mohr: slugs hate pine needles
09:36 PM Tom_L: i wrapped the tomatoe stems with newspaper to prevent that
09:36 PM rue_mohr: yay, my assembler prints out the input file!
09:36 PM Tom_L: once they're big enough the paper is gone
09:36 PM rue_mohr: !!
09:36 PM Tom_L: :)
09:36 PM rue_mohr: the slugs dont like the paper?
09:37 PM Tom_L: no not really
09:37 PM Tom_L: just above/below the soil line
09:37 PM Tom_L: err maybe that's grubs
09:37 PM Tom_L: i'm not sure now
09:41 PM Tom_L: Copper tape
09:41 PM Tom_L: The use of copper is also believed to be a good remedy for slugs. Copper is considered to be a natural slug repellent as the mucus they secrete from their body (their slime) reacts with the metal, producing a tiny electric shock.
09:41 PM rue_mohr: pff
09:41 PM rue_mohr: I bet it just tastes like crap
09:42 PM rue_mohr: otherwise there would be slug batteries
09:42 PM Tom_L: google said so.. it's gotta be true
09:42 PM rue_mohr: haha
09:42 PM rue_mohr: it said the art gallery would be open at 10am on tuesday too
09:43 PM Tom_L: sea shells
09:43 PM rue_mohr: so we drove there to return the extinguishers
09:43 PM rue_mohr: but NOPE
09:43 PM Tom_L: but they don't decay very quick
09:43 PM rue_mohr: thats ok
09:43 PM rue_mohr: I know a great place for them too
09:45 PM Tom_L: You can make your own non-toxic homemade garlic slug-control spray by combining crushed garlic cloves, garlic powder and water in a spray bottle and misting plants which are at risk with the solution. Slugs will consume the garlic and die shortly afterwards.
09:46 PM rue_mohr: huh
09:47 PM Tom_L: sprinkle cinamon too but that could get expensive
09:49 PM Tom_L: Garlic makes a great organic pesticide. Not only should you plant it among your other crops (either veggies or ornamentals), you can use it to make a foliar spray and apply directly to leaves, especially lettuces.
09:49 PM Tom_L: didn't know that
09:50 PM Tom_L: also coffee grounds spread around plants
09:59 PM rue_mohr: :)
09:59 PM rue_mohr: keeps vampires and rues away too
09:59 PM rue_mohr: silver also
10:00 PM rue_mohr: START:_
10:00 PM rue_mohr: SETB_1_
10:00 PM rue_mohr: CLRB_1_
10:00 PM rue_mohr: JMP_START_
10:00 PM rue_mohr: its breaking up the input file properly :)
10:03 PM rue_mohr: I need a push method for C strings
10:05 PM rue_mohr: ok, so
10:05 PM rue_mohr: I'v filtered out the comments
10:05 PM rue_mohr: and broken out the fields
10:05 PM rue_mohr: I need to work out what they are
10:05 PM rue_mohr: first I need to check if its a label
10:15 PM rue_mohr: I think its really cool how many instructions I was able to come up with from what that thing can do
10:42 PM rue_mohr: ok, its able to validate mnomonics
10:43 PM Tom_L: progress
10:50 PM rue_mohr: ok it can filter out the labels
10:54 PM rue_mohr: ; This is an example program for the 1 bit processor
10:54 PM rue_mohr: START:
10:54 PM rue_mohr: SETB 1 ; set IO bit 1
10:54 PM rue_mohr: :
10:54 PM rue_mohr: CLRB 1 ; clear IO bit 1
10:54 PM rue_mohr: JMP START ; repeat
10:54 PM rue_mohr: ---
10:54 PM rue_mohr: Valid label: START
10:54 PM rue_mohr: mnemonic ok
10:54 PM rue_mohr: unknown mnemonic 1
10:54 PM rue_mohr: WTF Empty label ??
10:54 PM rue_mohr: mnemonic ok
10:54 PM rue_mohr: unknown mnemonic 1
10:54 PM rue_mohr: mnemonic ok
10:54 PM rue_mohr: unknown mnemonic START
10:54 PM rue_mohr: I'm only into 121 lines of code too
10:55 PM Tom_L: what? no GOTO?
10:55 PM Tom_L: :)
10:55 PM rue_mohr: hah
10:55 PM rue_mohr: its funny when I was writing the example code I started to type goto
10:55 PM rue_mohr: 'no wait, its jump...'
10:56 PM Tom_L: what was ms basic called?
10:56 PM Tom_L: i did a tiny bit of that
10:56 PM rue_mohr: goto...
10:56 PM Tom_L: and the 6811 was a basic compiler
10:57 PM Tom_L: either marvin green or kevin ross wrote it iirc
10:57 PM rue_mohr: wow
10:57 PM rue_mohr: well, if there is basic for an 8051...
10:57 PM rue_mohr: this 1 bit isn't big enough for basic :)
10:57 PM rue_mohr: but a few more bits, and it can emulate a cpu that can
10:58 PM rue_mohr: }:)
11:01 PM rue_mohr: hahah I know the mnemonic is valid, but I dont know which one it is...
11:16 PM rue_mohr: int countOff(char *s) {
11:16 PM rue_mohr: char *n;
11:16 PM rue_mohr: if (n = strchr(s, ';') != NULL) { countOff(n); }
11:16 PM rue_mohr:
11:16 PM rue_mohr:
11:16 PM rue_mohr: }
11:17 PM rue_mohr: I HATE code with temporal inversion
11:17 PM * rue_mohr focuses
11:17 PM * Tom_L goes to sleep
11:18 PM rue_mohr: int countOff(char *s, unsigned_int v) {
11:18 PM rue_mohr: char *n;
11:18 PM rue_mohr: if (n = strchr(s, ';') != NULL) { return countOff(n, v+1); }
11:18 PM rue_mohr: return v;
11:18 PM rue_mohr: }
11:19 PM * rue_mohr squints
11:20 PM rue_mohr: Segmentation fault
11:20 PM rue_mohr: whoa, I'm glad its the semgnets fault and not mine
11:21 PM * rue_mohr tries to focus more
11:56 PM rue_mohr: I forgot some brackets
11:59 PM rue_mohr: ok, I can remove the comments, detect the labels, verify the mnemonics and their argument counts are right