kyak changed the topic of #qi-hardware to: Copyleft hardware - http://qi-hardware.com | hardware hackers join here to discuss Ben NanoNote, atben/atusb 802.15.4 wireless, anelok and other community driven hw projects | public logging at http://en.qi-hardware.com/irclogs and http://irclog.whitequark.org/qi-hardware
Ornotermes has quit [Read error: Connection reset by peer]
Ornotermes has joined #qi-hardware
fengling has joined #qi-hardware
DocScrutinizer05 has quit [Disconnected by services]
DocScrutinizer05 has joined #qi-hardware
larsc has quit [Remote host closed the connection]
lars_ has joined #qi-hardware
lars_ is now known as larsc
pcercuei has joined #qi-hardware
fengling has quit [Ping timeout: 268 seconds]
lars_ has joined #qi-hardware
lars_ has quit [Client Quit]
pcercuei has quit [Quit: bbl]
pcercuei has joined #qi-hardware
planasb has joined #qi-hardware
newcup has joined #qi-hardware
<planasb> offtopic, but maybe anyone know how write emulator main loops ?
<pcercuei> don't
<pcercuei> generally emulators synchronize on the audio output or the video output
<planasb> thanks!
<planasb> so i will need video dot clock .. I was thinking about. But was searching for easier solution.
<pcercuei> basically you will run the CPU as fast as possible until one full video frame is rendered
<pcercuei> it's when you call SDL_Flip() (or similar) that your program will sleep
<pcercuei> so that you end up with a beautiful 60fps frame rate
<eintopf> wow - pcercuei is an emulator expert :-)
<eintopf> I think writing emulators makes fun
<pcercuei> eintopf: well, I've worked on some
<eintopf> some gaming console emulator?
<pcercuei> nothing from scratch
<pcercuei> I'm working on a dynarec for a PSX emulator these days
<eintopf> mhhh
<eintopf> I know a PSX emulator
<eintopf> was very popular
<eintopf> epsxe
<eintopf> or something like that
luke-jr has quit [Excess Flood]
<eintopf> but the PSX Bios isn't free yet or?
luke-jr has joined #qi-hardware
<pcercuei> it can be HLE'd
<pcercuei> simulated
<eintopf> ah, ok.
pcercuei has quit [Quit: bbl]
sandeepkr_ has joined #qi-hardware
sandeepkr__ has quit [Ping timeout: 265 seconds]
sandeepkr__ has joined #qi-hardware
sandeepkr_ has quit [Ping timeout: 250 seconds]
arossdotme-planb has joined #qi-hardware
arossdotme has quit [Ping timeout: 258 seconds]
pcercuei has joined #qi-hardware
pcercuei has quit [Quit: leaving]
<DocScrutinizer05> arossdotme-planb: (( looks like there saying the ltc3895 doesnt need those extra components(?).)) yes, but the point is the plot on left side, which shows spikes to iirc 150V
<DocScrutinizer05> so that's what a car amp is *supposed* to be able to cope with
<arossdotme-planb> yea sorry, i had a good at the plot, i see what you mean... 150v! though only for a peak.... still surprising
<arossdotme-planb> (for me)
<arossdotme-planb> not used to the idea for lowish voltage componets being exposed to such high peaks.
<arossdotme-planb> had any experience with (not)openups?
<arossdotme-planb> trying to get the dam thing to charge balanced li-ion S4
<arossdotme-planb> the doc is awful
<arossdotme-planb> no diagrams
<arossdotme-planb> for wiring it up
<arossdotme-planb> ive check again and again and again
<arossdotme-planb> know of any usb hid linux nut ups software, plug and play thx to usb hid standard for ups, usb voltage current monitor? for diy computer batt monitoring for diy ups?
<arossdotme-planb> or a usb serial voltage & current meter that a diy script can read do actions
<arossdotme-planb> accordingly
<DocScrutinizer05> I just have fun with my own (Fortron) cheesy UPS, the batteries are dead from beginning
<arossdotme-planb> aww
<arossdotme-planb> lead? not cycled for months?
<arossdotme-planb> hmm i should cycle mine come to think of it
<DocScrutinizer05> lead gel, recieved a replacement device today, battery low (from 100%) after 68s
<arossdotme-planb> darn
<arossdotme-planb> lots of computer watts heh ;)
<DocScrutinizer05> lead doesn't need cycling
<arossdotme-planb> i tought if ti was floated for most of its life/months at a time that would kill them?
<DocScrutinizer05> meh, that UPS is 1500VA/900W, I tested it with 700W and result see above
<arossdotme-planb> 700w heh
<arossdotme-planb> (load)
<DocScrutinizer05> that's NiCd
<arossdotme-planb> yea
<DocScrutinizer05> Pb want steady float maintenance basically
<arossdotme-planb> hmm looks like i need to re-read up
<DocScrutinizer05> what they do NOT like is deep discharge and storage at that, just like LiIon
<arossdotme-planb> yea
<DocScrutinizer05> what they also don't like is overcharging (keeping afloat at >14V4) since they lose water then
<arossdotme-planb> hmm i guess when my prev ups batt got full discharge but not recharged for 12hours untill power came back on i guess that damaged it
<DocScrutinizer05> 12h should be harmless
<DocScrutinizer05> a month, not so much
<arossdotme-planb> cus the batts are from the same time but some have not been kept float charging yet the ups batt which was kept floating 24/7 and died a lot last year or 2 while the other batts are still fine..... hmm :/
<DocScrutinizer05> yeah, weird
<DocScrutinizer05> I admit I don't know for sure
<arossdotme-planb> though i should bear in mind the other batts have loads like 3amp 12 led light vs 500w+ via ups :)
<DocScrutinizer05> anyway an UPS has no means for scheduled discharge, so...
<arossdotme-planb> so hard to compared biased on time
<arossdotme-planb> i though no scheduled discharge was something they skimped on which came at a long term cost.... but ok so they dont need it anyway heh
<DocScrutinizer05> and I *never* heard of scheduled discharge in e.g. battery for emergency light in cinema, or for subway (yes, they do Pb UPS and that's *damn huge* battery)
<arossdotme-planb> i guess its a case of silly me
<arossdotme-planb> dam :|
<arossdotme-planb> what might a serial voltage meter be called? im trying to search on aliexpress
<DocScrutinizer05> *damn huge* here means http://wstaw.org/m/2016/11/11/plasma-desktopUy2244.png - the three round lids are for acid refuel
<arossdotme-planb> flip
<arossdotme-planb> found this https://www.aliexpress.com/item/CS5460A-Serial-Single-phase-Bi-directional-Power-Energy-Metering-ADC-Module-AD/32746735855.html?ws_ab_test=searchweb0_0,searchweb201602_0_10037_10091_10090_10032_10088_10089_10077,searchweb201603_1&btsid=c3bbf60f-823d-4194-bc1b-bd9acec46f67
<DocScrutinizer05> https://www.google.com/maps/@49.4487956,11.0620215,3a,75y,15.59h,103.89t/data=!3m6!1e1!3m4!1sz1_ha_HoCDemUA9zWirhRg!2e0!7i13312!8i6656?hl=de
<DocScrutinizer05> note that the info about batteries in there is not confirmed
<DocScrutinizer05> but it's plausible by a number of aspects
<arossdotme-planb> o hmm
<DocScrutinizer05> in cinemas however they use e.g. 4* 24V 400Ah looking like car batteries, and nothing in any manual suggests to discharge those periodically during the supposedly 20 years of usage
<arossdotme-planb> i think ill just sell one this notopenups got it 2rd hand... so its not so bad
<arossdotme-planb> oh,
<arossdotme-planb> i really need to re educate my self
<arossdotme-planb> re lead batts
<DocScrutinizer05> same in alarm center (house alarm) where they use small (12V 3Ah) lead battery for embedded 'UPS' and those of course never must get discharged
<DocScrutinizer05> aka the must not get discharged ever
<arossdotme-planb> there was a emp proof solar controllor/charger that i think discharged the batts a bit come to think of it
<DocScrutinizer05> since that would open up a vulnerability window for burglars etc
<arossdotme-planb> watched a vid about it the other day
<arossdotme-planb> yea dont want your key batt dischaged when you need it most
<arossdotme-planb> hmm then again if i instead find a bluetooth volt + amp meter then it can wirelessly connect to laptop so then i only have power cable to laptop
<DocScrutinizer05> I'm honestly interested where from you got that concept of Pb maintenance needs discharge. A dude at seler told me same (I answered that IF that's needed then the UPS is fucked up ny design since it doesn't allow to do that without risking to shut down hard your IT from power failure, and also it has an incorrect user manual then since it doesn'T tell about that)
<DocScrutinizer05> at UPS seller*
<arossdotme-planb> IDK where i got the concept from
<arossdotme-planb> ether was my own thought or i read it somewhere
<arossdotme-planb> or heard it from someone
<arossdotme-planb> i would not be supprised if it was the case, of course manufactures will skip features that would prolong the batts cus then they sell more batts
<arossdotme-planb> like with laptops and how they rechage the batt each time you unplug and replug, even if only been a few mins, i suspect this uses up the cycle life of the battery. i have a artical about li-ion cylces i was about to read in my web browser tab backlog
<arossdotme-planb> *recharge
<arossdotme-planb> *cycle count of batt
<arossdotme-planb> so this is only my suspision, i dont know for sure
<DocScrutinizer05> >>**Always keep lead acid charged. Avoid storage below 2.07V/cell or at a specific gravity level below 1.190.**<<
<arossdotme-planb> heh
<arossdotme-planb> i should charge my up some more then....
<arossdotme-planb> hmm well idk, ill check the cap monitor on it later
<DocScrutinizer05> my UPS claims the battery has 27.2V and allegedly 100% SOC now
<DocScrutinizer05> this makes for a cell voltage of 2.27V
<DocScrutinizer05> >>The correct setting of the charge voltage limit is critical and ranges from 2.30V to 2.45V per cell. Setting the voltage threshold is a compromise and battery experts refer to this as “dancing on the head of a needle.” On one hand, the battery wants to be fully charged to get maximum capacity and avoid sulfation on the negative plate; on the other hand, over-saturation by not switching to float charge causes grid corrosion on
<DocScrutinizer05> the positive plate. This also leads to gassing and water-loss.<<
<DocScrutinizer05> hmmm >>The recommended float voltage of most flooded lead acid batteries is 2.25V to 2.27V/cell.<<
<DocScrutinizer05> honestly, http://batteryuniversity.com/learn/article/charging_the_lead_acid_battery *HIGHLY* recommended, also to FORTRON engineers
<DocScrutinizer05> >>Most stationary batteries are kept on float charge and this works reasonably well<<
<DocScrutinizer05> >>Another method is the hysteresis charge that disconnects the float current when the battery goes to standby mode. The battery is essentially put in storage and is only “borrowed” from time to time to apply a topping-charge<<
* DocScrutinizer05 wishes he could tweak/improve the firmware of that PSU controller
<DocScrutinizer05> unplugging the UPS from mains causes battery voltage to drop from 27.2 to 25.8 in just 60s, for the maybe 80W of consumption the UPS itseöf eats from battery
<DocScrutinizer05> lol, plugging in the 700W load to the UPS in battery mode made it shut down completely
<DocScrutinizer05> tried again and this time it stayed on and powered the load for ~120s until "LOW BATTERY" and then another 45s until I felt with the poor battery at 20.3V and allegedly 11%, so I plugged in mains
<DocScrutinizer05> now battery charging, it's at 25.2V again, and allegedly 50% SOC
<DocScrutinizer05> anyway I *think* this is better that first test, so the cells might actually need training to live up to full performance
<DocScrutinizer05> next few test I woll "go easy" as suggested there, and discharge the battery from UPS internal usage only, should serve nicely for pretty accurate time values til shut down, in the 3 digit minutes range
<DocScrutinizer05> and duuude that toxic smell this thing emits for the first days of operation, unbearable
<wpwrak> they only gave you that one so that you'd detox it for them ;-))
<DocScrutinizer05> like the other one? U dunno if they like the nice cig smoke smell better that I replaced then chemical smell with
<DocScrutinizer05> *I*
<DocScrutinizer05> that smell actually *tastes* a little minty on the tongue :-o
<DocScrutinizer05> damn Rigol, slowest X timebase: 50s/div
<DocScrutinizer05> I'd rather like 50min/div
<DocScrutinizer05> I could smaple the waveforms and stitch them together though
<DocScrutinizer05> maybe not with 24Msamples memory depth though ;-)
<wpwrak> at 50 min/div, you use a DVM ;-)
<DocScrutinizer05> I'd do if I had 2 of them
<DocScrutinizer05> or a mux
<DocScrutinizer05> oooh that's an idea, I got that relay cards
<DocScrutinizer05> so http://maemo.cloud-7.de/maemo5/usr/local/bin/u1233-wip and the relay controller script, frankensteined
<DocScrutinizer05> but maybe long term the Rigol hack is just more useful
<DocScrutinizer05> I can set MDEPTH as low as 6000 for 2chan, even 3000 for 4chan
<DocScrutinizer05> this is a humble 120 samples/s or even 60
<DocScrutinizer05> it's a pity not being able to exploit the whole 12M depth, but meh!
<DocScrutinizer05> oops nope, this is mdepth per *screen*, not per div
<DocScrutinizer05> >> The relationship among the memory depth, sample rate and waveform length satisfies the following equation:
<DocScrutinizer05> Memory Depth = Sample Rate × Waveform Length
<DocScrutinizer05> Wherein, the Waveform Length is the product of the horizontal timebase (set by the :TIMebase[:MAIN]:SCALe command) times the number of the horizontal scales (12 for MSO1000Z/DS1000Z). <<
<DocScrutinizer05> so 10/5 samples per div, aka 0.2/s
<DocScrutinizer05> 10 | 5
<DocScrutinizer05> one sample every 5 or 10s
<DocScrutinizer05> the discontinuities in the aggregated (stiched) waveform from delay for http://maemo.cloud-7.de/maemo5/usr/local/bin/rigol-waveform every 600s should be negligible
<DocScrutinizer05> particularly since it only needs 12k download
<DocScrutinizer05> (4*3k*8bit)
<DocScrutinizer05> plus everything with nice display and ready-made "mux" (4 chan with matching probe cables)
<DocScrutinizer05> you notioce how hard I try to get my frustration from a stupid battery-killing UPS, eh?
<DocScrutinizer05> anyway such setup will be multipurpose and come n hande many times in the future
<DocScrutinizer05> come in handy*
<DocScrutinizer05> there are lots of batteries to charge and discharge, and lots of chargers to check
<DocScrutinizer05> luckily I got a good power supply with Ilim to apply exactly 1.00A over the "shunt" wire I plan to exploit for current sensing
<DocScrutinizer05> simply the battery connection cable
<DocScrutinizer05> arrrg, my math sucks. Nevermind, the concept works
<DocScrutinizer05> 12*50s = 600s, 3000Sa/600s = 5Sa/s
<DocScrutinizer05> just for fun: (12M[bytes mem] / 4[chan]) / 3000Sa/600s = 667 hours total theoretical sampling time, if the complete storage was usable
<DocScrutinizer05> oops sorry, again. 667/4h
<DocScrutinizer05> still nice, if it would work
<DocScrutinizer05> still 167h
<DocScrutinizer05> hmmmm, "waveform record"
luke-jr has quit [Excess Flood]
luke-jr has joined #qi-hardware
<DocScrutinizer05> meh, also not working to make any use of 24MB RAM for long term plots