#garfield Logs
Feb 16 2020
#garfield Calendar
12:03 AM rue_shop1: hmm motor draws 35mA
01:40 AM rue_shop2: so
01:40 AM rue_shop2: to make the motor drivers for the big cnc
01:40 AM rue_shop2: I need to wind some transformers
01:40 AM rue_shop2: so I want to get my transformer winder going again
01:40 AM rue_shop2: so I remounted the chuck on it today (it was wobbling)
01:41 AM rue_shop2: and I just got a 3d printer going so that I can print a pcb box for the motor driver for the transformer winder
03:25 AM Tom_L[m]: Morning
03:36 AM rue_shop2: only 1:30am
04:30 AM rue_shop2: not morning till I'v slept
06:07 AM polprog: i was at the sqaure today, bought some varicaps and jellybean logic
06:07 AM polprog: i think he counted the varicaps as well
06:08 AM polprog: shit.. i might have not bought them. ugh.
10:17 AM polprog: found out that the diff amp pair IC from yesterday is a clone of CA3054
02:34 PM rue_mohr: damn there is nowhere around here I can do that
02:47 PM polprog: where did you get the 4ns propagation time of the 74hct04
02:47 PM rue_mohr: my scope
02:47 PM polprog: datasheet from NXP says its 8ns
02:47 PM polprog: hmm
02:47 PM polprog: ill get some tomorrow and measure stuff
02:47 PM rue_mohr: maybe 8 is the garunteed
02:48 PM polprog: yeah it is
02:48 PM rue_mohr: polprog, hey, you need that stuff to flash the fpga right?
02:48 PM polprog: yeah
02:48 PM rue_mohr: ok
02:48 PM rue_mohr: here for a min?
02:48 PM polprog: im always here
02:48 PM rue_mohr: sometimes your asleeps :)
02:48 PM polprog: yes, but then if you try hard enough, yout hilight may make my phone wake me up
02:49 PM polprog: :)
02:49 PM rue_mohr: darn I thought I had a notes.txt
02:50 PM polprog: if you are multi-threaded, in the next few days (not until tuesday evening though - at grandmas) ill be trying to make a pulse train of needles as narrow as possible
02:50 PM polprog: to have a test signal for the FPGA project at uni
02:50 PM polprog: basically we will be counting impulses from a tunnel diode
02:50 PM rue_mohr: 7486 edge detector
02:50 PM polprog: sillicon photomultiplier
02:50 PM rue_mohr: k
02:51 PM polprog: i was looking at XORs, but the 4000-series variety
02:51 PM rue_mohr: so, the process for flashing that thing, its to program the fpga as a flash writer
02:51 PM rue_mohr: and then send the file you want to that
02:51 PM polprog: yeah
02:51 PM rue_mohr: I need to find my notes tho
02:59 PM rue_mohr: ok found my paper
03:07 PM rue_mohr: flash write
03:07 PM rue_mohr: -----------
03:07 PM rue_mohr: xc3sprog -c ft232h xc6slx16_cs324.bit
03:07 PM rue_mohr: xc3sprog -c ft232h -I main.bit
03:07 PM rue_mohr: do you have that file?
03:09 PM polprog: i think i have, but i might have something different
03:10 PM rue_mohr: I cant find it
03:10 PM rue_mohr: just doing a more indepth search
03:10 PM polprog: https://github.com/sifive/xc3sprog/blob/master/bscan_spi/xc6slx16_cs324.bit ?
03:11 PM polprog: >This dir contains simple cores to access the internal SPI-flash via BSCAN/USER1.
03:11 PM rue_mohr: probabaly
03:12 PM polprog: hmm. ill try to get xc3sprog building then
03:12 PM rue_mohr: building?
03:12 PM rue_mohr: apt-get
03:12 PM polprog: i couldnt get that to build
03:12 PM polprog: oh
03:12 PM rue_mohr: I thoguht..
03:13 PM polprog: not in repos
03:13 PM polprog: debian repos.
03:13 PM rue_mohr: huh, I wonder if I erased that bit file
03:17 PM polprog: how are you programming the fpga then
03:18 PM rue_mohr: directly
03:18 PM rue_mohr: aka, it defaults on a power cycle
03:18 PM rue_mohr: you dont HAVE to write to the flash
03:19 PM polprog: so same as me right now
03:19 PM polprog: doesnt have to be now. Im not at home anyway
03:19 PM polprog: as i said
03:21 PM rue_mohr: do you know how I push an update to git?
03:22 PM polprog: git push ?
03:23 PM polprog: what do you mean
03:23 PM polprog: you need to have that repo set as remote as well..
03:23 PM polprog: i do it too rarely to remember off the top of my head
03:24 PM rue_mohr: it remembers where it needs to push to on its own, right?
03:25 PM polprog: if you set the remote previously
03:25 PM polprog: if you already pushed then probably yes
03:25 PM rue_mohr: error: failed to push some refs to 'https://github.com/ruenahcmohr/spartin6-fpga.git'
03:25 PM rue_mohr: hint: Updates were rejected because the remote contains work that you do
03:25 PM rue_mohr: hint: not have locally. This is usually caused by another repository pushing
03:25 PM rue_mohr: huh
03:26 PM polprog: git pull
03:26 PM polprog: first
03:26 PM rue_mohr: there is nothing to pull
03:26 PM rue_mohr: I dont want any data from the repo
03:26 PM polprog: what's the latest commit hash? git log --oneline
03:27 PM rue_mohr: 64d9c2a new files
03:27 PM rue_mohr: 65ba587 new files for lcd
03:27 PM rue_mohr: 8b7a83f first, and maybe last, commit
03:27 PM polprog: doesnt match the repo for some reason. last in repo is Delete chargepump.png
03:27 PM polprog: Latest commit
03:27 PM polprog: 86f8bcc
03:27 PM polprog: on 13 Jan
03:27 PM polprog: so you need to pull first
03:28 PM rue_mohr: and its gonna delete my local file?
03:28 PM polprog: no, if there are conflicts it will not delete stuff
03:28 PM polprog: (but back up just in case !)
03:28 PM rue_mohr: CONFLICT (rename/delete): 7474rippleCounter/chargepump.png deleted in 86f8bcca47fef8423756bdf030ec6b54318e8711 and renamed in HEAD. Version HEAD of 7474rippleCounter/chargepump.png left in tree.
03:28 PM rue_mohr: Automatic merge failed; fix conflicts and then commit the result.
03:28 PM polprog: hmmm
03:29 PM rue_mohr: git add * ?
03:29 PM polprog: let me think
03:29 PM rue_mohr: I can just delete the repo and recreate it
03:30 PM polprog: no, thats not a good idea
03:30 PM rue_mohr: why not, I'm the only author
03:30 PM polprog: what does git status say
03:30 PM polprog: im curious myself whats wrong
03:30 PM polprog: :P
03:30 PM rue_mohr: On branch master
03:30 PM rue_mohr: Your branch and 'origin/master' have diverged,
03:30 PM rue_mohr: and have 1 and 1 different commits each, respectively.
03:30 PM rue_mohr: (use "git pull" to merge the remote branch into yours)
03:30 PM rue_mohr: All conflicts fixed but you are still merging.
03:30 PM rue_mohr: (use "git commit" to conclude merge)
03:30 PM polprog: ok
03:30 PM polprog: so git commit
03:32 PM rue_mohr: error: cannot run emacs: No such file or directory
03:32 PM rue_mohr: error: unable to start editor 'emacs'
03:32 PM rue_mohr: Please supply the message using either -m or -F option.
03:32 PM rue_mohr: 1 sec
03:33 PM rue_mohr: ok
03:33 PM rue_mohr: and push
03:33 PM polprog: ok, try pushing now
03:33 PM rue_mohr: that seems to have done it
03:33 PM rue_mohr: I probably edited the repo from the git server
03:33 PM rue_mohr: websiteness
03:34 PM polprog: yeah
03:34 PM polprog: thats the only "verified" commit
03:34 PM polprog: i havent gotten to set that up
03:34 PM polprog: i dont need it
03:34 PM rue_mohr: current_project is my generic copy-able project folder
03:34 PM polprog: i should move to gitlab as well
03:34 PM polprog: ok, ill take a look
03:34 PM rue_mohr: https://github.com/ruenahcmohr/spartin6-fpga
03:35 PM rue_mohr: especially qmtech.txt
03:36 PM rue_mohr: ?... how big is a repo allowed to be?
03:37 PM polprog: i dont know. probably a lot.
03:37 PM polprog: there are huge mirrors on there.. linux, bsds
03:37 PM polprog: these are quite bit
03:37 PM polprog: big*
03:39 PM polprog: bbl
04:33 PM Tom_L: is that git repo just for the board you guys have?
04:35 PM Tom_L: mmm things seem to happen when i'm afk... :(
04:43 PM rue_mohr: that just stuff that I'm working on yea
04:43 PM rue_mohr: Tom_L, your not being left out, I'm being intermittent
05:04 PM Tom_L: i've been busy last few days anyway
05:05 PM Tom_L: picked up 3 new cars and getting all that taken care of
05:05 PM Tom_L: gifting one of the old ones to a niece who needs one bad
05:29 PM Tom_L: is GRBL realtime?
05:44 PM polprog: i know my verilog attempts are next to nothing compared to what you two have but feel free to put any .v files from my ircjunk in the repo, rue_mohr
05:44 PM polprog: there are maybe two in there right now.. ill be making several fast async counters in the near future
05:55 PM polprog: https://www.ebay.pl/itm/303488334642
05:55 PM polprog: very interesting board. basically an ISA analog acquisition device.
05:56 PM polprog: what caught my attention is that odd looking IC on it and turns out thats a fully isolated DCDC with the inductor *inside*
05:56 PM polprog: application schematics just include some filtering caps on either side!
06:02 PM Tom_L: PC104
06:07 PM polprog: yeah
06:09 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/SBC/sbc1.jpg
06:09 PM polprog: neat
06:09 PM Tom_L: i've got maybe half dozen of those
06:09 PM polprog: what CPU is the mainboard based on?
06:09 PM Tom_L: i don't remember
06:10 PM polprog: ive got two geode based ones. slow as shit but useful
06:10 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/SBC/PDF/
06:10 PM Tom_L: yeah those were slow
06:10 PM polprog: one's running slackware off CF card, i think mine came with QNX
06:10 PM Tom_L: VIA EDEN
06:11 PM polprog: i got them from "I don't know what that is, but it costs eight bucks" people
06:11 PM Tom_L: VIA Eden 400/667/800 MHz
06:11 PM Tom_L: these were pulled from vehicle tracking systems
06:11 PM polprog: two identical units in a nice enclosure, with what seems to be a custom ISA GSM modem + all the external connectors baseboard
06:12 PM polprog: mine were pulled from some industrial automation
06:12 PM polprog: i lol'd cause the root password was 12345678 :D
06:14 PM polprog: i was hoping i could use them for SDR
06:19 PM polprog: if you have a dozen, maybe we could swap :P
06:20 PM Tom_L: shipping would be a killer
06:20 PM polprog: likely
06:21 PM polprog: we'd need to accumulate a lot of junk. maybe make a loop parcel.
06:21 PM polprog: these industrial PCs are quite exotic sometimes. VIA Eden
06:21 PM Tom_L: i tried using one as a server once but it was pretty klunky
06:22 PM polprog: we had a transmeta based one at work. the only computer running windows in the whole facility
06:28 PM polprog: what cars do you do?
06:32 PM Tom_L: the kids each got a honda
07:05 PM polprog: hmm. put 74ACT04 and 74ACT86 on the shopping list. maybe they will have these...
07:05 PM polprog: goodnight
07:06 PM Tom_L: gnite
07:06 PM Tom_L: what's ACT have over HC or other?
07:18 PM rue_mohr: no idea
07:18 PM rue_mohr: I ust know cmos has no pullups
07:18 PM rue_mohr: fileserver os drive just died
07:19 PM rue_mohr: 342%^@#$%^@$^@$ it seems this is the year of breakage
07:25 PM Tom_L: find the rodent?
07:30 PM rue_shop1: no
07:31 PM rue_shop1: but the scsi os drive failed on my file server
07:31 PM rue_shop1: so I get to deal with that instead of doing anything else
07:31 PM Tom_L: :(
07:31 PM Tom_L: i didn't know anyone still used scsi
07:31 PM rue_shop1: in hindsight, it would have been a nice day to do that truck water pump
07:31 PM Tom_L: it was nice here too
07:32 PM Tom_L: but i was stuck helping with 2 toddlers
07:32 PM rue_shop1: :/
07:32 PM rue_shop1: did you teach them fpga programming?
07:32 PM rue_shop1: there have to be concequinces to getting your help
07:33 PM Tom_L: nephew'inlaw's mother died
07:33 PM Tom_L: they came from georgia and we watched their kids overnight
07:33 PM Tom_L: only 2yrs and maybe 6mo
07:35 PM rue_shop1: ouch
07:36 PM Tom_L: he's military
07:36 PM Tom_L: was in California training and had to fly back to Georgia to "check in" first then drive up here (16 hrs)
07:43 PM rue_shop1: ok, I think the fileserver will be ok
07:43 PM rue_shop1: the scsi drive literally failed as I was copying out the drive contents
07:44 PM rue_shop1: oops, spoke too soon
07:47 PM rue_shop1: the copy was corrupt
07:47 PM rue_shop1: but only kinda
07:47 PM rue_shop1: I'm trying to do an upgrade to flush all the old files out
07:48 PM rue_shop1: its ... having difficulties
07:50 PM rue_shop1: I sort of have an advantage in that since I installed it, every package has had an upgrade
07:57 PM rue_mohr: so I had a quick little logic circuit to make
07:57 PM rue_mohr: I was having challanges with thinking it out
07:58 PM rue_mohr: I was trying to think of a way of getting the fpga stuff to check it for me
07:58 PM rue_mohr: then I decided I'd write a C program to run the inputs on iy
07:58 PM rue_mohr: turns out, I'd already done that with another thing before
07:58 PM rue_mohr: so, I got it
07:59 PM rue_mohr: A B C D E F G H I J| Y
07:59 PM rue_mohr: -------
07:59 PM rue_mohr: 0 : 0 0 0 0 0 0 0 0 0, 0 | 1
07:59 PM rue_mohr: 1 : 1 0 0 0 0 0 0 0 0, 0 | 1
07:59 PM rue_mohr: 2 : 0 1 0 0 0 0 0 0 0, 0 | 0
07:59 PM rue_mohr: 3 : 1 1 0 0 0 0 0 0 0, 0 | 1
07:59 PM rue_mohr: 4 : 0 0 1 0 0 0 0 0 0, 0 | 0
07:59 PM rue_mohr: 5 : 1 0 1 0 0 0 0 0 0, 0 | 0
07:59 PM rue_mohr: 6 : 0 1 1 0 0 0 0 0 0, 0 | 0
07:59 PM rue_mohr: 7 : 1 1 1 0 0 0 0 0 0, 0 | 0
08:02 PM Tom_L: what's it for?
08:24 PM rue_shop1: its for a idea for a multiphase charge pump
08:24 PM rue_shop1: it feeds a shift register to keep 6 phases cycling
08:24 PM rue_shop1: I'm not even going to speculate if a 6 phase charge pump is a good idea or not
08:24 PM rue_shop1: but the idea got me
08:24 PM Tom_L: heh
09:26 PM rue_shop1: ok, there is still some crashing on the file server, but I think its the 'normal' crash being maybe caused by a bad interrupt controller on the motherboard
09:26 PM rue_shop1: so, I'm back to where I was yesterday
09:31 PM Tom_L: file loss?
09:37 PM rue_shop2: the important stuff is on a mirrored raid
09:37 PM rue_shop2: just the OS drive failed
09:38 PM rue_shop2: if It came to it, I could have reinstalled
09:38 PM rue_shop2: but there is a lot of config and thats a pain
09:38 PM rue_shop2: I'm curious to see if that solves some of the crashing issue