#garfield Logs
Apr 29 2021
#garfield Calendar
12:02 AM rue_shop1: I'd rather not have two crystals
04:19 AM rue_bed: it looks like I can do it with a tiny85
04:19 AM rue_bed: it can run about 18.432Mhz, and its got two timers, one can output 9Mhz and the other can do 4
04:50 AM rue_mohr: a tiny85, running from the 18.432Mhz, and using its internal PLL for a 32Mhz, src that divided down for 4MHz
04:51 AM rue_mohr: one timer can output 9.216MHz and the other 4MHz
04:53 AM rue_mohr: the 8254 can divide the 9.216MHz down to 1.8Mhz, the 8251 divides it down by 16 for a baud rate of 115200
04:53 AM rue_mohr: then the question is, can I get anyone to respond to hardware handshaking
04:54 AM rue_mohr: my first head-to-head on that was the plotter I was building for rifraf
04:55 AM rue_mohr: I could not get the PC to honor the handshaking signals
09:41 AM rue_mohr: ok, so I can get a tiny85 to do the clock generation, and I have a pin left over
09:41 AM rue_mohr: which I think I'll use for reset control, which is currently not handled well on startup
05:30 PM polprog: weird, that winCE tweet is doing rounds
05:30 PM polprog: i got like 6 new people who followed me because of that
05:31 PM polprog: it's now appearing to the kind of people that click the like and then follow immediately
05:31 PM polprog: i wonder how many of them will stay after a week
05:33 PM polprog: did some java today
05:33 PM Tom_L: i'm sorry
05:33 PM polprog: i have to write the project alone because the $otherperson knows jack and doesnt do anything, i dont care
05:34 PM Tom_L: why does everybody hate java?
05:34 PM polprog: it's... it's got some good sides but at the same time it's just cumbersome
05:34 PM polprog: like
05:34 PM polprog: i have a menu in a window right? for each item to do something i have to
05:34 PM polprog: - create it (1 line)
05:35 PM polprog: - add action listener (1 line)
05:35 PM polprog: - set action command (1 line)
05:35 PM polprog: and pretty much every ui element is 3-5 lines of code
05:35 PM polprog: if i want it to do something unusual i have to make a class that extends a button or a panel or whatever
05:36 PM polprog: it's just time consuming to write
05:36 PM polprog: and the idea of describing what's in a window by actual program and function calls just sucks
05:36 PM polprog: because it's an imperative approach to a declarative problem
05:37 PM polprog: i dont wanna write code that says "create button THEN place it there THEN give it a label THEN..."
05:37 PM polprog: i want to write code that says "I want a button over here that has a label and does this when you click it, go figure"
05:39 PM polprog: on the other hand the ready made UI library is not half bad. Like, displaying a confirmation dialog is one line of code, and it just returns an integer status
05:39 PM polprog: or displaying a file chooser for the luser to select a file
05:39 PM polprog: that's also easy
05:40 PM polprog: but then you have absolute lack of operator overloading
05:40 PM polprog: which sucks again
05:40 PM polprog: because for anything but primitive types you have to compare with object1.equals(object2)
05:40 PM Tom_L: what's your major?
05:40 PM polprog: photonics
05:41 PM polprog: the "Object Oriented Programming" is just one of the classes this semester
05:41 PM Tom_L: for what occupation?
05:41 PM polprog: sounds better than "doing shit guis in java"
05:41 PM polprog: for.. good question
05:42 PM polprog: its like physics engineering degree, so i can work at some experiments, or.. i dont know myself
05:42 PM Tom_L: just curious
05:42 PM polprog: it's cool
05:42 PM polprog: loads of people go to CERN for a PhD
05:43 PM Tom_L: you?
05:43 PM polprog: i dont know yet. I want to do a PhD for sure though
05:43 PM Tom_L: seems like it comes easy for you
05:43 PM polprog: many people get a job in the semiconductor, imaging, or laser industries
05:43 PM polprog: what comes easy?
05:43 PM Tom_L: all the hacking i see here
05:47 PM polprog: i wish i didnt have to do all that crap
05:48 PM polprog: today i spent 2h exporting oscilloscope data from a simulator to excel... to make a plot in excel
05:48 PM polprog: the plot looks like shit
05:48 PM polprog: the prof wants excel plots, not simulator scope screenshots
05:49 PM polprog: the excel plot is useless compared to the scope screenshot...
05:50 PM polprog: its two hours i could be making cool stuff with the jfets i got, or the high voltage resistors and the GM tubes, or a zillion other things which collect dust in trays because i have to do all this stupid crap
05:56 PM Tom_L: rue was looking at exporting csv to something to plot his
05:56 PM Tom_L: he did screenshots.
06:02 PM polprog: the screenshots are the best in most cases
06:02 PM polprog: unless you really really need resolution
06:03 PM Tom_L: or comparison
06:04 PM polprog: yes
06:04 PM polprog: somewhere on my server i have a huge SVG chart rendered from the samples collected by my scope
06:04 PM polprog: it's a video signal
06:06 PM polprog: https://polprog.net/rozne1/ircjunk/pal-rigol.svg
06:07 PM polprog: i dont remember what the camera was pointed at, i guess you could take the CSV file and do some magic to try and redraw the image
06:07 PM polprog: you'd get like 20ish samples per line or something
06:07 PM polprog: looks like 110-120 samples. That should be recognizable...
06:34 PM rue_mohr: the numbers on my twitter are totally jiggling
06:34 PM rue_mohr: java is slow, takes up a lot of memory, and extremely unstable
06:37 PM rue_mohr: polprog, turns out, the tek scope can save a channel as csv
06:37 PM rue_mohr: *but*
06:38 PM rue_mohr: it only saves _1_ channel per file
06:38 PM polprog: huh
06:38 PM rue_mohr: what does the simulation scope save as?
06:39 PM rue_mohr: (and that a big plot!)
06:39 PM polprog: it saves as a tab separated value file
06:39 PM rue_mohr: oh easy
06:39 PM rue_mohr: so you wrote a converter?
06:39 PM polprog: the time base data is stupid. it saves it as HH:MM:SS.ssss
06:39 PM polprog: no i did all of it in excel because the other person is using excel
06:40 PM rue_mohr: but its excel, you can tell it thats the source format and it can turn it into anyhting
06:40 PM polprog: im so lucky my lab partner wants to do these himself and just gives me the parts he doesnt know how to do so i can finish and proofread it
06:40 PM rue_mohr: k
06:40 PM polprog: yeah the modern excel has some nice features for importing all sorts of mess
06:46 PM polprog: allright, gotta go to sleep because tomorrow there are next ee labs
06:46 PM polprog: gn
07:12 PM rue_mohr: and i have a clock gen to build