#garfield Logs

Jul 29 2021

#garfield Calendar

02:44 AM polprog: rue_mohr: yes !
03:13 AM rue_mohr: you did sleep, right?
03:31 AM polprog: yes
03:51 AM rue_shop3: ok, good
05:06 AM W1ngs: What on earth is sleep?
06:53 AM polprog: Wings: rue_mohr: https://twitter.com/polprogpl/status/1420698886226812928
06:54 AM polprog: with a bit of recompilation it could run on the spartan
08:18 AM polprog: my 8051 notes: https://polprog.net/rozne1/ircjunk/fpga/lattice/8051.html
02:56 PM Wings: Heh, I have real 8051s I've been meaning to play with but all my coding time goes into MCS80 stuff.
02:59 PM rue_mohr: polprog, awe gee, you been having a ton of fun
03:14 PM rue_mohr: I should be working on big software projects
03:14 PM polprog: :)
03:14 PM polprog: Wings: i have a bag of 8051s too
03:14 PM rue_mohr: I have a few, they are horrid to code for
03:15 PM polprog: They are all PROM versions but you can ground one pin to make them ignore the PROM and fetch instructions from the bus
03:15 PM polprog: I could make a 8051 SBC
03:15 PM rue_mohr: yep
03:15 PM rue_mohr: and the 74373
03:15 PM polprog: also i just updated the page with the actual peripheral working
03:16 PM rue_mohr: so, are all the pins outputs or are there some inputs in there
03:16 PM polprog: Sadly they are all hardwired to be outputs...
03:16 PM polprog: i think i saw someone resolder the buffers to something else that supposedly made it IO, but i could not find it
03:17 PM Wings: They're buffers, it'll buff out.
03:17 PM Wings: :)
03:20 PM polprog: now the hard part, uart tx
03:20 PM polprog: holy crap if they didnt hardwire the buffers to be output only that would be so damn powerful board
03:20 PM polprog: you could literally make a logic analyzer for umpteenth traces with it, with ethernet connectivity
03:31 PM rue_mohr: uart tx is east
03:31 PM rue_mohr: I did it on the cpls
03:31 PM rue_mohr: cpld
03:32 PM rue_mohr: I thoguht some of the led serial lines might have retursn
03:39 PM polprog: yeah i read about it
03:39 PM polprog: tx is easy
03:39 PM polprog: rx too, once you understand why it waits half a baud
03:39 PM polprog: ;)
04:15 PM rue_mohr: :)
05:07 PM rue_mohr: so I have things I want to work on, and things I should work on
05:07 PM rue_mohr: I dont know what the things are I should be working on
05:11 PM aandrew: heh
05:11 PM aandrew: yeah I used to keep lists, they just depressed me becuase they kept growing
05:11 PM rue_mohr: I have lists everywhere
05:11 PM rue_mohr: the heliostat is working great
05:11 PM rue_mohr: it could work greater
05:11 PM rue_mohr: mostly with a serial connection
05:11 PM rue_mohr: which I guess I can do wifi now
05:11 PM rue_mohr: omg I can wifi control it
05:12 PM rue_mohr: it can just sit out in the yard on a battery
05:12 PM rue_mohr: and I can log in and bump the position
05:12 PM rue_mohr: omg, and the wifi controller can do the daily impolation
05:12 PM rue_mohr: omg, and I can use javascript for building the dataset
05:13 PM rue_mohr: ok, there is the next 3 months of spare time gone
05:16 PM aandrew: ... wouldn't a heliostat automatically track the sun?
05:29 PM rue_mohr: gonna make it a programmable profile
05:29 PM rue_mohr: if I want it to split the light to multiple places thru the day, I can
05:53 PM aandrew: nice, so you're using it to bring light into the house then?
05:54 PM rue_mohr: for now
05:54 PM rue_mohr: I need to add deadband and a servo disable
05:54 PM rue_mohr: I'm taking in 16 bit values but the position is only 10 bits
05:55 PM rue_mohr: if (0) {
05:55 PM rue_mohr: } else if (fb > ctrl ) { // go down
05:55 PM rue_mohr: pwm0 = limit((fb - ctrl)<<1, 0, 128);
05:55 PM rue_mohr: pwm1 = 0;
05:55 PM rue_mohr: } else if (fb < ctrl ) { // go up
05:55 PM rue_mohr: pwm0 = 0;
05:55 PM rue_mohr: pwm1 = limit((ctrl - fb)<<1, 0, 128);
05:56 PM rue_mohr: }
05:56 PM rue_mohr: hmm, the proportionate control is pretty simplistic
05:59 PM rue_mohr: latley I'm feeling pretty humbled by the simplicity of some of the fpga code for doing quite complex things
06:00 PM rue_mohr: I'm amused the some ethernet code I found uses the same waveform templating stuff as what I did for the i2c
06:00 PM rue_mohr: but I'm confused because I didn't see anything for the initial rate negotiation
06:00 PM rue_mohr: rate/mode
06:04 PM rue_mohr: the if (0) allows me to just insert...
06:04 PM rue_mohr: } else if (ctrl == 0xFFFF) { pwm0 = 0; pwm1 = 0;
06:08 PM rue_mohr: Device: attiny13
06:08 PM rue_mohr: Program: 814 bytes (79.5% Full)
06:11 PM rue_mohr: oh 7 bit software pwm
06:13 PM rue_mohr: I need an anonamous variable solution to a calculation thats needed for a test, but may be used after the test
06:14 PM rue_mohr: aka m = (a+b > c) ? (a+b) : 4;
06:15 PM rue_mohr: where a+b is complex, and I dont want to name an intermediate value
06:15 PM rue_mohr: or redo the calc
06:30 PM rue_mohr: ok I added the deadband and an "off"
06:31 PM rue_mohr: so, next I should work out some esp8266 code
06:31 PM rue_mohr: the first trick is to get a reliable clock
06:32 PM rue_mohr: and I have to take the grinder to that engine, its parts aren't comming off easy
06:32 PM rue_mohr: I can reflash the tiny13's later
06:33 PM rue_mohr: and make up a serial controller
06:33 PM rue_mohr: maybe thats a good start, if I do a wifi-serial bridge
08:24 PM rue_mohr: !!polprog!
08:24 PM rue_mohr: my plcc 32 and 28 adapters arrived!
08:31 PM rue_mohr: polprog, you still awake?
08:32 PM rue_mohr: 38D0: 73 78 5D 5B 61 64 3E 0A - 20 69 67 65 73 65 20 68 sx][ad>. igese h
08:32 PM rue_mohr: 38E0: 6F 67 20 72 67 61 2E 20 - 74 70 6F 65 20 6E 20 72 og rga. tpoe n r
08:32 PM rue_mohr: 38F0: 61 20 6E 72 74 72 20 72 - 6D 20 63 6C 2C 63 6C 78 a nrtr rm cl,clx
08:32 PM rue_mohr: 3900: 20 61 6C 2C 62 6C 20 72 - 62 6C 20 6E 74 75 74 6F al,bl rbl ntuto
08:32 PM rue_mohr: 3910: 73 0A 00 00 00 00 00 00 - 75 69 5D 6F 20 62 20 52 s.......ui]o b R
08:32 PM rue_mohr: 3920: 73 74 20 68 20 6F 72 20 - 6E 20 75 6F 61 64 2C 74 st h or n uoad,t
08:32 PM rue_mohr: 3930: 72 65 20 65 6F 65 20 65 - 64 20 6F 72 63 6E 65 74 re eoe ed orcnet
08:32 PM rue_mohr: 3940: 0A 00 00 00 00 00 00 00 - 65 67 73 65 73 0A 20 75 ........egses. u
08:32 PM rue_mohr: 3950: 70 63 6E 65 74 20 66 61 - 6C 72 67 73 65 73 0A 00 pcnet falrgses..
08:32 PM rue_mohr: 3960: 73 20 52 73 74 20 68 20 - 6F 72 20 75 20 65 70 20 s Rst h or u ep
08:32 PM rue_mohr: 3970: 68 20 75 72 6E 20 6F 6E - 63 69 6E 0A 00 00 00 00 h urn oncin.....
08:32 PM rue_mohr: 3980: 74 65 5D 5B 61 64 3E 0A - 20 69 67 65 73 65 20 68 te][ad>. igese h
08:32 PM rue_mohr: 3990: 6F 67 20 72 67 61 2E 00 - 72 61 65 20 62 7C 61 72 og rga..rae b|ar
08:32 PM rue_mohr: 39A0: 7C 75 5B 6E 6F 66 5D 20 - 54 72 20 6E 6F 20 66 20 |u[nof] Tr no f
08:32 PM rue_mohr: 39B0: 6E 20 66 74 65 66 6C 6F - 69 67 74 61 65 6F 74 6F n ftefloigtaeoto
08:33 PM rue_mohr: 39C0: 73 20 72 61 63 5D 0A 20 - 61 6C 5D 20 65 74 72 5D s rac]. al] etr]
08:33 PM rue_mohr: 39D0: 6F 20 75 70 72 69 6F 5D - 20 49 20 6E 6F 66 69 20 o uprio] I nofi
08:33 PM rue_mohr: 39E0: 6F 20 69 65 2C 74 65 20 - 73 61 75 20 66 74 61 20 o ie,te sau fta
08:33 PM rue_mohr: 39F0: 70 69 6E 69 20 69 70 61 - 65 2E 00 00 00 00 00 00 pini ipae.......
08:33 PM rue_mohr: this is not a bios chip, aparently
08:33 PM rue_mohr: does any of that make sense to you?
08:34 PM rue_mohr: Tom_L,
08:34 PM rue_mohr: https://twitter.com/makingtolearn/status/1420912975251005448/photo/1
08:38 PM rue_mohr: ok, not a lot of feedback on if the plcc 22V10 worked or not...
10:28 PM rue_mohr: I got another cover off the engine I'm converting to steam
10:28 PM rue_mohr: didn't help much
10:28 PM rue_mohr: more stuff to dissassemble anyhow
10:29 PM rue_mohr: I need to make some hardware to attach the engine to the engine stand I have to work on it
10:29 PM rue_mohr: and I need to make the piston rod end for the little pneumatic engine
10:30 PM rue_mohr: what in the yard should I be doing~!?