#garfield Logs

Nov 29 2022

#garfield Calendar

03:11 AM rue_mohr: poor veverak, never had a stereo with a bass and trebble knob, does't know what they do
04:34 AM Tom_L: .
04:38 AM rue_mohr: I'm here
05:43 AM polprog: ..
05:44 AM rue_mohr: ah your awake
05:45 AM rue_mohr: have a good day at work
05:48 AM polprog: sitting at home today but i have stuff to do for yesterday as we say
05:48 AM polprog: need to write some c++ for class :(
07:26 AM rue_mohr: http://ruemohr.org/~ircjunk/tempimage/image_counts.jpg
07:27 AM rue_mohr: yay, its 5:30am, I'm gonna sleep with my cat for a while
07:27 AM polprog: pet the cat for me
07:27 AM rue_mohr: took me like 8 hours to add those little triangles
07:27 AM rue_mohr: arrows
12:53 PM aandrew: if the bearing in a shop vac motor starts squealing on power off is that something a drop of lube can fix or is the bearing shot
12:56 PM aandrew: hm, that sprocket2 breaks my algo
12:56 PM aandrew: it finds 11 teeth when there are clearly 10
12:57 PM aandrew: https://ibb.co/x7R3TN7
01:03 PM Tom_L: no
01:03 PM Tom_L: i tried already on my vac
01:03 PM Tom_L: probably a bushing instead of bearing
01:04 PM Tom_L: keeps shopvac employees employed that way
01:08 PM aandrew: yeah I already bought another for $60, was just wondering how hard /worthwhile it might be to try to fix this
01:08 PM aandrew: also my 10.7MHz IF transformers came, I have the toroids now so in theory I can build my 14.6MHz BPF to receive CHU (canadian equiv of WWVB)
01:09 PM Tom_L: i'm running mine until it blows
04:42 PM rue_mohr: aandrew, odd, I thought my code is almost exactly the same, and I get 10 good
04:42 PM rue_mohr: aandrew, yea its a bushing
04:42 PM rue_mohr: take it apart and learn!
04:42 PM rue_mohr: its ok to fail, you might have an easy fix next time
04:45 PM rue_mohr: Tom_L, did you see the arrowhead?
04:45 PM Tom_L: no
04:46 PM rue_mohr: it only took me like 8 hours because there is no 2d point rotate function in any existing python library
04:46 PM Tom_L: bak in a while...
04:46 PM rue_mohr: http://ruemohr.org/%7Eircjunk/tempimage/image_counts.jpg
04:46 PM rue_mohr: ohhh
04:47 PM rue_mohr: took me like 8 hours
05:14 PM rue_mohr: mmm 3500
05:20 PM rue_mohr: aandrew, I have 73 images if you want to give them a try
05:20 PM rue_mohr: some of them are evils, perspective or hopeless dirt
05:20 PM rue_mohr: on some of the bad ones, I repeated the same gear with better quality images
05:27 PM aandrew: rue_mohr: oh I will, I take lots of things apart
05:27 PM aandrew: just -ENOTIME most days
05:28 PM rue_mohr: I dont know how/where to post it
05:28 PM rue_mohr: did you see the arrow heads! ^^
05:28 PM rue_mohr: took me 8 hours
05:28 PM rue_mohr: :/
05:29 PM aandrew: I did see the arrow heads, that was pretty slick
05:29 PM aandrew: what's the difference between the blue and pink
05:29 PM rue_mohr: :] no ideas on how to make any of it work better tho
05:29 PM aandrew: rue_mohr: where do I find the 73 images
05:30 PM rue_mohr: one is the amplitude and the toher is the fft
05:30 PM aandrew: rue_mohr: ah
05:30 PM aandrew: I'm just counting zero crossings
05:30 PM rue_mohr: the fft is the one thats the same as the ring colour
05:30 PM rue_mohr: I dont know how to (if) package them up and where to put them
05:31 PM rue_mohr: is it a crime to stuff all that in github?
05:31 PM aandrew: oh wait
05:31 PM aandrew: I just saw why it is seeing 11
05:31 PM aandrew: just .zip and put on your site
05:31 PM rue_mohr: trying to keep my site small cause its donated space
05:31 PM rue_mohr: its 162M of images
05:32 PM rue_mohr: so why is it seeing 11?
05:32 PM aandrew: https://ibb.co/YQVMWs6
05:32 PM aandrew: you even see it in the polar plot
05:32 PM aandrew: it's not a regular waveform due to noise
05:32 PM rue_mohr: odd
05:32 PM aandrew: and it's probably happening due to my amplification of 16
05:32 PM aandrew: I can fix that easily
05:32 PM rue_mohr: why do you have that and I dont?
05:32 PM aandrew: instead of >0, do > 1/2 the avg height
05:32 PM aandrew: I'm amplifying by 16
05:32 PM rue_mohr: oh, I'm amplifying it by 6
05:33 PM rue_mohr: but I'm using >0
05:33 PM rue_mohr: let me redo that one, just a sec
05:33 PM rue_mohr: thats image 71
05:34 PM aandrew: yeah
05:34 PM aandrew: I have a new problem I am working on
05:34 PM aandrew: I am fairly certain a buck regulator fed from a lipoly battery is doing funny things as the voltage falls below its ability to function
05:35 PM aandrew: lipoly range is usually 3.0 -> 4.2V and the buck will fall out of regulation from ~3.4V down
05:35 PM aandrew: which is fine
05:35 PM aandrew: but I think it's misbeahaving under that (due to software not functioning right and continuing to draw current and drain the battery) and I'm getting a spike on the 3.3V rail it's producing
05:35 PM aandrew: and it looks like it's cooking a spi flash chip just enough to misbehave
05:36 PM aandrew: the spi flash works just fine in slow/single bit mode but if you use the DIO read command it injects an extra byte before returning the memory contents
05:36 PM aandrew: completely 100% reproducible
05:36 PM aandrew: I've got three boards where this has happened out of approx 10k so far
05:37 PM rue_mohr: ouch
05:37 PM rue_mohr: http://ruemohr.org/~ircjunk/tempimage/Figure_1c.png
05:37 PM rue_mohr: http://ruemohr.org/~ircjunk/tempimage/Figure_1d.png
05:37 PM rue_mohr: ^^ why dont I have the noise, were you playing with your threshold?
05:37 PM aandrew: the software fix is to be a lot more aggressive about shutting the fuck down when battery voltage is dropping but I'm hoping I can use some unusual magic to patch the devices before it happens
05:38 PM rue_mohr: its not a software controlled buck tho, right?
05:38 PM aandrew: and of course the hardware fix for the next spin will to make sure the 3.3V reg is powered completely off under abotu 3.1V
05:38 PM aandrew: right now the EN is connected to the IN
05:39 PM rue_mohr: did you see the fun I had with that little robot that needed the 3.3for the esp8266 ?
05:39 PM aandrew: it is not, that is correct. I'm saying in software, adjust our "too low to function" check so it goes into deep sleep earlier to try to prevent the battery from dropping into the danger zone
05:39 PM rue_mohr: I ended up using a series drop diode that was bypassed with a fet when the voltage came down too much
05:39 PM rue_mohr: less error...
05:39 PM rue_mohr: less power consumption
05:39 PM rue_mohr: lots more wtf
05:40 PM aandrew: and I'm also wondering if I can issue some SPI flash commands which will adjust the drive strength of the SPI flash to maybe prevent the problem from happening if it does occur
05:40 PM aandrew: this is on an ESP32, so similar. What was your issue?
05:40 PM aandrew: ok, I understand using the FET as an ideal diode to get some more juice out
05:40 PM rue_mohr: just trying to make 3.3V from the li-ion
05:41 PM rue_mohr: from 4.2 to 3.0V
05:42 PM rue_mohr: somehow I worked out that the 3.5 from using a diode to drop the 4.2 was ok error
05:42 PM rue_mohr: and at somepoint, I bypass it with a fet to use the battery direct down to 3.0
05:42 PM rue_mohr: which was apparently also acceptable error on 3.3V
05:45 PM aandrew: oh I thought you were gonna say you ended up putting 4.3 on the esp8266 by activating the fet at teh wrong time :-)
05:46 PM rue_mohr: I used a lower power comparator
05:46 PM rue_mohr: I'm trying to find the chart
05:46 PM rue_mohr: it was the best circuit I could come up with, all the smps were being evil
05:47 PM aandrew: anyway, I want to take some cheap SPI ADC and a comparator with a DAC to build a system where I ramp the "battery" voltage down until I see a spike on the 3.3V rail. that way I should be able to detect the regulator screwing up
05:47 PM aandrew: I need to find the cause of the problem and that's my current suspicion
05:47 PM rue_mohr: I have a scoep chart of its kick in/out
05:47 PM aandrew: these devices are in an ultrasonically welded IP66 rated enclosure so it's not moisture or user screwing with it
05:48 PM rue_mohr: use the fn generator at like 1hz
05:49 PM rue_mohr: there!
05:49 PM rue_mohr: http://ruemohr.org/~ircjunk/tempimage/dropRegulator.png
05:49 PM rue_mohr: the white line is "battery voltage" the green is "output votlage"
05:50 PM rue_mohr: I was amused
05:53 PM aandrew: ...
05:53 PM aandrew: why did the battery voltage jump? I expected it to continue to fall like the green line, and the green line to jump
05:54 PM rue_mohr: its not 1%, buts its good
05:54 PM rue_mohr: thats when the fet kicks out
05:54 PM rue_mohr: and in
05:54 PM rue_mohr: its the votlage from my fn gen
05:54 PM aandrew: yes but why does the battery voltage change
05:54 PM rue_mohr: 1Hz
05:54 PM rue_mohr: loads down my fn gen
05:54 PM aandrew: or is that the "battery" voltage in the sense of the output side of the ideal diode
05:55 PM aandrew: actually I wonder if I can get my old tek scope to give me nice output like that
05:55 PM aandrew: I doubt it though, you're pressing the hardcopy button?
05:55 PM rue_mohr: the green is the "regulator" output, the white is the "battery" votlage from my fn fen doing a triangle wave
05:55 PM rue_mohr: aandrew, yep, thats hardcopy
05:56 PM aandrew: heh
05:57 PM rue_mohr: I dont have a 488 interface
05:57 PM rue_mohr: I was looking at it, it looks like I could build one, but the protocol descriptions have some strange ommisions
05:57 PM rue_mohr: and I'm not into writing lots of software for getting the data
05:58 PM rue_mohr: it looks like the #1 software interface is a proprietory HP BASIC interpreter that interfaces with their 488 card
05:59 PM Tom_L: thumbs up on the arows
05:59 PM rue_mohr: there is a bunch of missing data on some of the handshaking and whats translated vs whats not
05:59 PM rue_mohr: Tom_L, thanks :]
05:59 PM Tom_L: changed compressor oil today.. much worse than the car
05:59 PM rue_mohr: oops
06:00 PM rue_mohr: or you mean the process of doing it, not the oil quality?
06:00 PM Tom_L: doing it
06:00 PM rue_mohr: ah good
06:00 PM Tom_L: big mess
06:01 PM rue_mohr: need to add some conveniance pipes?
06:01 PM rue_mohr: I have a flex tube off the drain line of mine that just stays pointed up
06:02 PM Tom_L: that will likely be the last time it gets done
06:02 PM rue_mohr: its years between changes for something like that isn' tit?
06:03 PM Tom_L: it was on mine :)
06:03 PM rue_mohr: my shop one is a little devilibis
06:04 PM rue_mohr: it was given to me AGES ago when i was going around looking for stuff to make a compressor from a small engine
06:04 PM rue_mohr: "would you just like this compressor?"
06:04 PM Tom_L: 5hp 80 gal
06:04 PM rue_mohr: thats happened to me a lot in my life
06:05 PM rue_mohr: I wonder how big that tank is i'm using
06:05 PM Tom_L: 175psi
06:05 PM rue_mohr: so it snowed today
06:05 PM Tom_L: yeah we got the cold air from it
06:54 PM rue_mohr: power blink, I should go warn up the genny
07:29 PM rue_mohr: something just hit the lines that the recloser couldn't deal with
07:29 PM rue_mohr: but I did just get the genny running
07:30 PM rue_mohr: @#$^^&*
07:39 PM rue_mohr: haha
07:40 PM rue_mohr: between the 15 mins ago with the test run and powering off it now, the muffler pipe broke off
07:40 PM rue_mohr: hahah
07:40 PM rue_mohr: whatever
07:53 PM rue_mohr: I have about an hour till the internet goes out
08:14 PM rue_mohr: hmm I only gave it half a tank of fuel, I'm not completely sure how long that lasts...
08:33 PM Tom_L: i thought you fixed the muffler once
08:33 PM rue_mohr: sure
08:33 PM rue_mohr: its got a metal flex pipe on it that just today came apart
08:46 PM Tom_L: just refreshed the fuel in mine few weeks ago
08:46 PM Tom_L: i flush it once a year and keep fresh fuel in it
08:47 PM Tom_L: haven't had to use it much last few years
08:47 PM rue_mohr: in the summer I burn up all the genny fuel in the lawn mower
08:48 PM rue_mohr: give it fresh stuff when stormy season hits
08:48 PM Tom_L: i put it in one of the cars
08:48 PM rue_mohr: yep
08:48 PM rue_mohr: I started using marked fuel in it
08:49 PM Tom_L: nearly forgot the gen routine it's been so long
09:49 PM rue_mohr: powers back
09:49 PM Tom_L: yay
09:50 PM Tom_L: do you manual switch or have a switch box?
09:50 PM rue_mohr: "manual"
09:50 PM Tom_L: i wanted to put an led on my breaker box so i can tell when power is restored but haven't
09:51 PM rue_mohr: my shop is on a seperate feed, I switch the outside lights on
09:55 PM rue_mohr: power might go out again
09:55 PM rue_mohr: I'll see