From: Sam Moore Date: Sun, 22 Sep 2013 17:00:07 +0000 (+0800) Subject: Automatic commit of irc logs X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=27a6b30e528231461d66849c0728e616b5869336;p=matches%2FMCTX3420.git Automatic commit of irc logs --- diff --git a/irc/log b/irc/log index 1370d76..96f6f55 100644 --- a/irc/log +++ b/irc/log @@ -3111,3 +3111,38 @@ 00:51 < sam_moore> Hell yes 00:51 < sam_moore> PWM controlled through web browser 00:51 < sam_moore> GPIO controlled through web browser +01:19 < sam_moore> .... And ADC read through web browser +01:19 < sam_moore> Blergh +01:28 < sam_moore> I think I'll take the rest of today off from MCTX3420 :S +08:21 -!- jtanx [~asfa@220-253-203-242.dyn.iinet.net.au] has joined #mctxuwa_softdev +09:32 -!- jtanx [~asfa@220-253-203-242.dyn.iinet.net.au] has quit [Ping timeout] +11:36 -!- jtanx [~asfa@220-253-203-242.dyn.iinet.net.au] has joined #mctxuwa_softdev +11:53 < sam_moore> I've analysed the crap out of sampling rates for this ADC +11:53 < sam_moore> At least as much as I can just using the timestamps according to gettimeofday +11:54 < sam_moore> Contrary to my first email, reading the ADC is actually really slow. And also probably the greatest source of variation in sampling rate. +11:56 < jtanx> wow +11:56 < jtanx> only 100Hz? +11:56 < sam_moore> Well it looks more like 1KHz on the oscilloscope, but there's a lot of variation, it has trouble getting a trigger +11:57 < jtanx> the cpu datasheet rates it at 200kSPS +11:57 < sam_moore> Hmm +11:58 < sam_moore> Well judging by the control it is something about the ADC reading that makes it really slow +11:58 < jtanx> That's annoyng +11:58 < sam_moore> Yeah +11:58 < sam_moore> Also annoying is that the ADC file is generally in a different place each time they're enabled +11:59 < sam_moore> I ended up modifying the program to take the path to the ADC file as an argument +11:59 < sam_moore> And making run.sh do the initialisation +11:59 < sam_moore> I figured that was better than calling system() +11:59 < jtanx> that makes sense +11:59 < sam_moore> Yep, we might want to set other options that run.sh can pass to it anyway +12:00 < sam_moore> Ok, I have to stop now, I'm spending way to much time on this +12:00 < jtanx> Haha +12:00 < sam_moore> It's getting to the point where I'm considering writing an ADC kernel module that doesn't suck :S +12:01 < jtanx> :S let's hope it doesn't get to that stage +14:08 -!- jtanx [~asfa@220-253-203-242.dyn.iinet.net.au] has quit [Connection reset by peer] +14:25 -!- jtanx [~asfa@220-253-203-242.dyn.iinet.net.au] has joined #mctxuwa_softdev +14:37 -!- MctxBot [~twang@220-253-203-242.dyn.iinet.net.au] has quit [Ping timeout] +15:21 -!- MctxBot [~twang@220-253-203-242.dyn.iinet.net.au] has joined #mctxuwa_softdev +20:12 < jtanx> the pressure regulator has a 1-5vdc analogue output +20:12 < jtanx> is this considered one of the pressure sensors? +20:14 < jtanx> or maybe it's just not used +21:50 -!- jtanx [~asfa@220-253-203-242.dyn.iinet.net.au] has quit ["ChatZilla 0.9.90.1 [Firefox 24.0/20130910160258]"]