#garfield | Logs for 2016-08-17

Back
[00:08:21] <katsmeow> afk brb
[00:08:23] <rue_shop4> ok I had 4 wine gums, is my requirement to eat finished with?
[00:17:45] <katsmeow> bak
[00:17:58] <rue_shop4> nothing to report cap'n
[00:18:04] <katsmeow> what's a wine gum?
[00:18:18] <rue_shop4> tiz a chewie candie
[00:18:41] <katsmeow> with wine in it?
[00:18:46] <rue_shop4> er no
[00:18:58] <rue_shop4> jub jub?
[00:19:08] <katsmeow> ok
[00:21:55] <rue_shop4> gad damn, I have values rolling into other channels
[00:24:10] <katsmeow> same as yesterday
[00:24:39] <rue_shop4> and values like 128 just dissapear
[00:24:46] <katsmeow> either you have timing issues with the 192 bits, or the avr isn't sending leading zeros for some numbers
[00:25:10] <rue_shop4> it always sends the lower 12 bits of the 16 bit registers its given
[00:25:23] <rue_shop4> for( temp = (1<<12); temp != 0; temp >>= 1) {
[00:25:23] <rue_shop4> if ( (bits & temp) != 0 ) { SendOne();
[00:25:23] <rue_shop4> } else { SendZero();
[00:25:23] <rue_shop4> }
[00:25:23] <rue_shop4> }
[00:25:32] <rue_shop4> 1 shifted left 12 times
[00:25:50] <rue_shop4> uses it as a mask
[00:25:51] <katsmeow> timing is erratic then
[00:26:00] <rue_shop4> its synchonous serial
[00:26:08] <katsmeow> apparently not
[00:26:10] <rue_shop4> #define SendOne() SINhigh(); pulseSCK()
[00:26:17] <rue_shop4> #define SendZero() SINlow(); pulseSCK()
[00:26:22] <rue_shop4> #define pulseSCK() SCLKhigh(); NOP(); NOP(); SCLKlow()
[00:27:00] <katsmeow> should be : #define pulseSCK() SCLKhigh(); NOP(); NOP(); SCLKlow(); NOP(); NOP()
[00:27:16] <rue_shop4> the rest of the operations take up the nop time
[00:27:23] <katsmeow> your sclk isn't 50-50 duty cycle
[00:27:45] * katsmeow hands the problem to Tom , and sits down
[00:27:54] <rue_shop4> no its synchronous
[00:28:02] <rue_shop4> it sodn'st mattern when the bits happen
[00:29:02] <rue_shop4> im setting just 1 bit at a time to try to work this out
[00:36:08] <katsmeow> Tom might be able to make the chip you can actually use, with a cheap fpga
[00:39:19] <katsmeow> or, make a micromobo to hold a 16bit cntr, a sync latch for channel number and value, two '138's to pick out the daughterbd, and edge-solder daughterbds to it that hold a 16bit latch and two '688's
[00:40:01] <katsmeow> i think you can make it in a 1x.5x.5 cube, if you use .020 pcb and other tricks
[00:46:04] <katsmeow> i've had a gallon of water sine noon, and my eyes still feel scratchey
[00:46:07] <katsmeow> maybe it's the amount of direct sunlight on the roof
[00:46:14] <katsmeow> it's almost like welding scratch
[01:08:09] <rue_shop4> ok I'm seeign a pattern
[01:08:37] <rue_shop4> I set it up so that its 7 bit
[01:08:46] <rue_shop4> so 32 should be 50%
[01:08:50] <rue_shop4> and it is for channel 0
[01:08:58] <rue_shop4> but 50% is 16 for channel 1
[01:09:03] <rue_shop4> and its 8 for channel 2
[01:09:14] <rue_shop4> so its like I need to send 13, not 12 bits
[01:10:35] <rue_shop4> oh 11 bits
[01:10:37] <rue_shop4> oh
[01:10:44] <rue_shop4> I think I know what I did
[01:10:51] <rue_shop4> 1 is in bit 0
[01:11:03] <rue_shop4> I wanted to put it in bit 11
[01:11:08] <rue_shop4> but I moved it 12 over
[01:11:13] <rue_shop4> *sigh*
[01:13:24] <rue_shop4> yup
[01:14:01] <katsmeow> so my first thought, days ago, to see if yoou were sending what you thought yu were, using the oscope, was correct
[01:14:33] <rue_shop4> yea, but I dont have good enough equip to have just done it
[01:14:49] <katsmeow> o :-(
[01:15:08] <rue_shop4> I had to take it down to a few khz and 7 bit ( that I didn't even know I could do till I was debugging this) to see the pattern
[01:15:13] <rue_shop4> I DEFEATED IT!
[01:15:15] <rue_shop4> yay
[01:15:34] <katsmeow> congrates
[01:16:19] <katsmeow> now, to get around having to black all the outputs to change any value?
[01:16:53] <rue_shop4> I can reduce it
[01:17:05] <rue_shop4> one of the code examples I saw did soemthing trickey,
[01:17:31] <rue_shop4> during the counting the sent the data, then, they did the blank, latched the data in, and undid the blank
[01:17:33] <rue_shop4> quickly
[01:17:47] <rue_shop4> so I'm using a 4060 to generate the clocking,
[01:17:59] <rue_shop4> I have the 4k on the 4060 auto reset it
[01:18:25] <rue_shop4> it also triggers an interrupt on the avr that latches the data in, and releases the blank
[01:18:52] <rue_shop4> so the irq goes, establish blank, trip data latch, remove blank
[01:19:01] <rue_shop4> and then clock in new data (port time critical)
[01:19:06] <rue_shop4> post
[01:19:31] <rue_shop4> ISR( INT0_vect ) {
[01:19:31] <rue_shop4> unsigned int i;
[01:19:31] <rue_shop4> BLANKhigh();
[01:19:31] <rue_shop4> pulseXLAT();
[01:19:31] <rue_shop4> BLANKlow();
[01:19:32] <rue_shop4> for( i = 0; i < 16; i++) { send12(value); }
[01:20:04] <rue_shop4> there are still some stupid things
[01:20:28] <rue_shop4> with that method, the value that comes up on the outputs is technically the last samples data
[01:21:01] <rue_shop4> but, the pwm system has to be buffered if its not gonna glitch, so, .... its kinda like that anyhow
[01:21:32] <rue_shop4> now I can work on breaking it
[01:22:04] <rue_shop4> the first thing I want to know is if the blank and latch can be wired togethor
[01:22:35] <katsmeow> shame there isn't some output frm the chip that can be subverted to read the data in from a '164 (?) automagically at the correct time that won't upset any pwm output
[01:23:02] <rue_shop4> yes they can
[01:23:19] <katsmeow> why don't you do that then?
[01:23:53] <rue_shop4> I can attach the blank and the 'latch in new data' line togethor
[01:24:13] <rue_shop4> I'm not keen to add more chips to this
[01:24:14] <katsmeow> but blank is an input
[01:24:20] <rue_shop4> yes
[01:24:41] <rue_shop4> I get a pulse from the 4060 self-reset that I have on an interrupt
[01:25:47] <katsmeow> he is selling 1,024 1200u@63v caps per day like this: 1024 PCS CORN DUB 381122M063H032 CAPACITORS
[01:26:01] <rue_shop4> tant?
[01:26:26] <katsmeow> electro , 7 cents per capacitor
[01:26:55] <katsmeow> http://www.ebay.com/itm/1024-PCS-CORN-DUB-381122M063H032-CAPACITORS-/331941964704
[01:28:00] <katsmeow> 63v is ideal for 48 battery systems, because the charge volategs is 55v
[01:28:48] <rue_shop4> :) so much for 200%
[01:28:49] <katsmeow> i cannot figure out the business plan that allows such low per-part costs
[01:28:57] <rue_shop4> got them free
[01:29:07] <rue_shop4> liquidation of a manuf facility
[01:29:22] <katsmeow> why aren't you doing that?
[01:29:29] <rue_shop4> so, I can make this chip do anything from 1 to 12 bit pwm
[01:29:36] <rue_shop4> I dont get stuff free
[01:29:38] <rue_shop4> well
[01:29:42] <rue_shop4> not that stuff
[01:29:46] <rue_shop4> and I'm in canada
[01:30:03] <rue_shop4> I CANNOT ship anything for a cost that justifies shipping it
[01:30:52] <katsmeow> use google self driving cars as delivery?
[01:31:31] <rue_shop4> heh
[01:32:51] <katsmeow> it's $29.99Can, but only $23,029.99Can is you buy the car we ship you the item in!
[01:34:37] <rue_shop4> :)
[01:34:53] <rue_shop4> free car with $30000 purchase
[01:36:16] <katsmeow> heh
[01:37:20] <rue_shop4> just need to make sure I remember to only sell a car worth $29950 so I get some money for what its filled with
[01:38:13] <katsmeow> you could move a LOT of marij,, err, tomatoes in such a car
[01:38:22] <rue_shop4> indeed
[01:39:14] <rue_shop4> its the leading side-effect free pain medication you know?
[01:39:36] <katsmeow> no munchies from the new tomatoes?
[01:40:09] <rue_shop4> I'v heard it can leave one a bit thirsty
[01:41:03] <rue_shop4> oen of my buddies has a screwed up hip they cant fix or diagnose, the pain meds were causing him all sorts of problems, he's not a smoker so he's using the processed cookies
[01:41:23] <rue_shop4> he says he made the mistake of having a whole cookie once
[01:41:29] <rue_shop4> flattened him out
[01:41:31] <rue_shop4> :)
[01:42:06] <katsmeow> wow
[01:42:38] <rue_shop4> ok 1 to 12 bits, so, how many bits do I want?
[01:43:33] <katsmeow> well, 180 degree elbow swing at 12bits is .044 degrees per bit
[01:43:43] <rue_shop4> its pwm
[01:43:45] <rue_shop4> speed...
[01:43:56] <rue_shop4> I dont think it even needs much resolution
[01:44:05] <rue_shop4> I'd bet 8 bits would do it
[01:45:10] <katsmeow> rescale the thing, so the avr puts out the byte to represent a pre-tested factor of acceleration
[01:45:40] <katsmeow> or speed
[01:46:37] <rue_shop4> I can reset the counter at whatever count I want
[01:46:51] <rue_shop4> I could top it at 1000 if I were crazy
[01:47:06] <katsmeow> so you'll be dong that
[01:47:38] <rue_shop4> heh :)
[01:47:46] <rue_shop4> I'm thinking 8 bit would be fine
[01:47:55] <rue_shop4> then the control array could be 8 bits ea
[01:52:05] <katsmeow> just figured out why my body keeps trying to facelant: it's 1:30am
[01:52:20] <katsmeow> and i ate sleepy pills hours ago
[01:54:58] <rue_shop4> :)
[01:55:05] <katsmeow> gnites
[22:35:59] <zhanx> i got tall sunflower plants now http://sli.mg/PV4OsV
[22:36:09] <zhanx> 3 foot tall fence in the front
[22:37:28] <katsmeow> kool
[22:38:44] <katsmeow> rue, i figured just start at 75v, right off the rectified 120vac, and buck down to 75v thru a 1:1 ct transformer, then linear regulate to get rid of noise
[22:46:21] <katsmeow> rue, guy in Van opens cans of food with a propane torch, get a tiny bit of the water inside the can to boil, and it'll explode
[22:50:21] <katsmeow> hmm, turns out, the passenger space of some cars is big enough, if you flip the car over, you can sit it over a smaller car, and when driving the smaller car, it looks like you are skidding around in an upside down car
[22:56:02] <katsmeow> last month, i could not find my TP102 and TIP107, well, today i found them, but cannot find the 4-40 screws to fasten them to the heatsinks
[22:59:48] <katsmeow> i grabbed a couple stainless steel washer drums from recycler place, figre i can use them to mix "potting soil" with "night soil" and some "real soil" , to grow "happy plants"
[23:01:30] <katsmeow> zhanx , 7ft tall and no flowers ont hem yet? holy moley
[23:01:48] <rue_shop4> hey kat
[23:01:54] <zhanx> katsmeow, i am not able to touch the tops
[23:02:03] <zhanx> i am 6'4"
[23:02:59] <rue_shop4> whats night soil?
[23:03:24] <rue_shop4> oh I need to post the greenhouse pics, you around for a while?
[23:03:25] <zhanx> swamp dirt
[23:03:30] <rue_shop4> I'm just coding now
[23:03:32] <rue_shop4> ah
[23:03:36] <zhanx> sure 5 -10 memo me
[23:03:38] <katsmeow> the technical term for umm, poo laying on the ground
[23:04:02] <katsmeow> it might appear at night in rural areas that have no indoor poo room
[23:04:07] <rue_shop4> I wrote an adc system for a microcontroller that has no way to send me the data
[23:04:23] <katsmeow> that sound usefu;
[23:04:28] <katsmeow> l
[23:05:44] <rue_shop4> I'll work out a way,
[23:06:05] <katsmeow> it's a step prior to composting toilet contents
[23:06:16] <rue_shop4> Its for use with other microcontollers, so asynchronous isn't usefull on a long term
[23:06:49] <rue_shop4> if I use the synchronous serial, I need another avr to rephrase the data
[23:07:09] <rue_shop4> and the async systems are only 8 bit, so its not adding anything helpfull
[23:08:33] <rue_shop4> yay, it compiles
[23:08:36] <rue_shop4> hmm
[23:08:48] * rue_shop4 tries to figure out a direction for this code
[23:09:26] <katsmeow> there's a tv show i just discovered, called Outrageous Acts Of Science, in it's 6th season now, it's about people DOING interesting eclectic (and somewhat dangerous) things
[23:09:49] <rue_shop4> ok
[23:10:13] <rue_shop4> I put two scratch/dents in my truck today :(
[23:10:22] <rue_shop4> right on its nose
[23:10:30] <katsmeow> why?
[23:10:50] <rue_shop4> I was trying to do a trickey manouver while being blinded by the sun
[23:12:10] <rue_shop4> technically, the trucked crashed into itself, cause it hit the canopy, that was off at the time
[23:13:09] <katsmeow> ouch
[23:13:55] <rue_shop4> it nonally went thru the paint, it left two creases (about 2")
[23:13:56] <katsmeow> if i can't see where i am driving, i stop driving, it's a qwerky thing about me that you should prolly know about
[23:14:17] <rue_shop4> It was up a hill backwards that I couldnt stop on or I'd not get going again
[23:14:25] <rue_shop4> on a sharp turn
[23:14:38] <rue_shop4> that has obstilces on 2 sides
[23:14:42] <katsmeow> so youo were committed to runing over anything there
[23:14:46] <rue_shop4> and infront that I didn't notice
[23:14:58] <rue_shop4> the nose swung into it
[23:16:28] <rue_shop4> I thought I was as far over as I could be, and should have cleared everything
[23:16:58] * katsmeow imagines you were behind the shed
[23:20:31] <katsmeow> been an hour, the food has not managed to escape the fridge and cook itself yet
[23:20:49] <rue_shop4> hmm
[23:20:55] <rue_shop4> did you try an ultimadem?
[23:22:02] <katsmeow> no, nor an ultimatum
[23:22:22] <katsmeow> wold luv to try a Unimate tho
[23:22:42] <rue_shop4> ok, software serial
[23:22:50] <rue_shop4> lets say 9600 baug
[23:23:07] <rue_shop4> and lets make a baug 1:1 with a baud
[23:23:33] <rue_shop4> so, what is the bit time of 9600 baug
[23:24:09] <katsmeow> 104 us
[23:24:09] <rue_shop4> 8N1
[23:24:14] <rue_shop4> rppy?
[23:24:18] <rue_shop4> damnit I cant type
[23:24:47] <katsmeow> yeas, rppy
[23:25:17] <katsmeow> +/- small parts of a us
[23:25:57] <rue_shop4> the 1 is stop bits?
[23:26:17] <rue_shop4> been toooo long
[23:26:41] <katsmeow> i didn't calc stop bits, start-stop patterns, error correction, handshaking, etc
[23:27:10] <rue_shop4> yea, stop is 1, 1.5 or 2
[23:28:01] <rue_shop4> and idle is high or low...
[23:28:10] <rue_shop4> high I think
[23:29:18] <katsmeow> if you use full duplex, simple echo can mean you don't need any other error checking, plus if the data is good on the echo, the speed can auto-increase
[23:30:10] <rue_shop4> I just need the avr to be able to transmitt
[23:30:28] * katsmeow offers a hammer
[23:30:30] <rue_shop4> there will be a problem, the adc system is already interrupt driven
[23:31:02] <rue_shop4> so I might be in trouble if I try to make it an interrupt driven serial sys
[23:31:09] <katsmeow> why can't i find any bit to match the taper under flathead screws??
[23:31:29] <rue_shop4> you can make one on the grinder
[23:31:41] <rue_shop4> bottoming drill ;)
[23:33:03] <rue_shop4> ok, I really have to know how fast the microcontroller runns
[23:33:40] <rue_shop4> or I assume Mhz and test for 4800, 9600, and 19200 baud
[23:33:44] <rue_shop4> 8 Mhz
[23:34:04] <rue_shop4> er, its either 1, 8 or 16Mhz
[23:34:14] <katsmeow> non-adjustable?
[23:34:21] <rue_shop4> so, 1200, 9600, 19200
[23:34:32] <rue_shop4> I just dont know what the baords... wait this isnt' for a board
[23:34:39] <rue_shop4> thanks :)
[23:34:54] <rue_shop4> my question was broken and your question pointed it out
[23:35:22] <katsmeow> <curtsey>
[23:35:57] <rue_shop4> my baords, that I'll now make the test platform for this code, run at 8
[23:36:12] <rue_shop4> I thought it might be 14.358
[23:36:35] <katsmeow> for ONE seller: <ebay> 588 results for "4-40" <me> don't be stupid
[23:37:04] <rue_shop4> I find screws quite expensive from china
[23:37:14] <rue_shop4> but metric ones are cheaper than here in canada
[23:37:30] <rue_shop4> I bought a bunch of M2 machine bolts and nuts
[23:37:46] <rue_shop4> cause I'm low on [stupid-small]
[23:37:59] <katsmeow> you need to send a robot out to dig up some of that gold that's laying about, and swap it for other stuff
[23:39:32] <rue_shop4> I need to get the cats in for the night and I cant find them
[23:39:37] <katsmeow> AARGGG, dinner is STILL in the fridge!!
[23:39:45] <rue_shop4> yea, I'm having the same issue
[23:40:47] <katsmeow> we need to modernise the kitchen from ChittyChittyBangBang (no, it's not a pron movie)
[23:41:37] <katsmeow> instead of railroad tracks, use a couple of multi-axis arms on overhead bridge cranes
[23:42:45] <katsmeow> afk a few to relocate dinner from the really cold box to the really hot box
[23:49:01] <katsmeow> no wonder it felt funny buying jelly yesterday, i now have 2 unopened jars of jelly and i am out of peanut butter
[23:52:40] * katsmeow is olde and whys
[23:53:16] <rue_house> ok greenhouse
[23:53:45] <rue_house> http://ruemohr.org/~ircjunk/house/greenhouse/p1080303.jpg old
[23:54:06] <rue_house> http://ruemohr.org/~ircjunk/house/greenhouse/p1080340.jpg
[23:54:07] <rue_house> new
[23:54:17] <rue_house> see dir for intermediates and closeups
[23:54:28] <rue_house> 10' of the top 12" opens
[23:55:02] <rue_house> I put green paint on the top, so technically not it IS a green house
[23:55:22] <katsmeow> umm, see all that shade? that's why the plants in the 5house have no sunlite to grow with
[23:55:22] <rue_house> the maple tree regulates sunlight thru the year
[23:55:39] <rue_house> in winter its attenuation is low
[23:55:47] <rue_house> in summer it dials up the attenuation
[23:56:19] <rue_house> and I can manually dial it down a little
[23:56:53] <katsmeow> ah
[23:57:14] <katsmeow> robot guarding the rear of the 5house
[23:57:35] <rue_house> might look like it, pile of junk :)
[23:58:10] <katsmeow> you see the nasa link in the email i sent? make that thing walk, rue
[23:58:21] <rue_house> yea
[23:58:38] <rue_house> meh, I have some building blocks to assemble, right now I have to make a chip talk serial
[23:59:19] <katsmeow> i see you lay lumber flat to build with too
[23:59:53] <rue_house> I couldn't round up anything better to use
[23:59:55] <katsmeow> why are the walls white?