#robotics Logs

Feb 06 2013

#robotics Calendar


00:16 rue_house he will be back when he finishes driving
00:17 rue_house and swimming
00:17 rue_house (getting home in australia isn't always easy)
00:29 Jak_o_Shadows True that.
00:29 Jak_o_Shadows Also, i got my voltage things with the 7-seg displays from ebay today
00:30 RifRaf !thislog
00:30 tobbor This one: http://rueshouse.dyndns.org:82/~ircjunk/irclogs/html/%23robotics-2013-02-06.html
00:32 RifRaf rue for a miniture gimble test, but more to see if i could, under the microscope they look pretty ok
01:08 MrTrick I call this nifty. http://www.arachnidlabs.com/blog/2013/02/05/introducing-re-load/ And I've bought one. ^_^ (and I know the guy who's selling them)
01:12 RifRaf wonder how far you could push fets if you had individual heatsinks like those with a fan
01:13 MrTrick not sure.
01:14 rue_house MrTrick, I used a really big heatsink with mine
01:14 MrTrick I think I'll assemble mine flat though, so it can have a 3d-printed plastic case, with the heatsink sticking out one end.
01:22 RifRaf is my 'if' statement completely wrong? http://pastebin.com/5aQkb403
01:22 RifRaf its compiling but no servos moving
01:24 rue_house did you put a function definition in an if statement?
01:24 RifRaf i don't get how to turn boolean gaitRunnerIsPlaying(const G8_RUNNER* runner) //into something that works
01:25 RifRaf rue no idea, i just know i have to see if something is not playing then make it play something
01:25 RifRaf rue i am learning to code as well, just needed a break tonight
01:26 rue_house you call the function
01:26 RifRaf actually was able to do the exercises so far without cheating
01:26 RifRaf i am not upto that chapter. can you call it for me please
01:26 rue_house gaitRunnerIsPlaying
01:26 rue_house is a function
01:26 rue_house it takes a paramiter
01:27 rue_house called runner
01:27 rue_house I dont know the meaning of the paramiter it takes
01:27 rue_house you need to find the docs for it
01:27 RifRaf i have them
01:27 RifRaf http://webbot.org.uk/WebbotLibDocs/41437.html
01:27 rue_house ok what is the meaning of the paramiter?
01:27 RifRaf i cannot interperet what he says
01:28 RifRaf yeah it confuese the heck out of me too, maybe if you have a quick read of that page
01:29 rue_house ok it looks like there is a variable that holds the information about the gait runner
01:29 rue_house you have to pass it that information
01:29 rue_house I have to go to bed tho
01:30 RifRaf have tryed to follow the first part of that page line for line
01:30 RifRaf then it says... The only missing code is the use of gaitRunnerPlay (described later) to start playing a given animation.
01:30 RifRaf and thats where i got lost :(
01:31 rue_bed when you call a function you pass it variables
01:31 rue_bed its not at all like when you define it
01:31 rue_bed if I make a function
01:31 rue_bed int add (int a, int b) { return a+b; }
01:32 rue_bed the definition tells the compiler what types of variables the paramiters are
01:32 RifRaf ok yes i get that code, if add is a function that can calculate
01:32 rue_bed int and int
01:32 RifRaf oh int is a number
01:32 rue_bed so when I call it, I give it numbers
01:32 RifRaf yep
01:33 rue_bed printf("%d\n", add(4, 5));
01:33 RifRaf had to do that with the temperate convertor last night
01:33 RifRaf yep printed an interget, not a float
01:33 RifRaf would print 9
01:33 rue_bed or C = add(4, 5);
01:34 RifRaf wow so many ways and i would not naturally think of any
01:34 RifRaf but i know that soon i will
01:35 RifRaf the last test in the C lesson has me thinking, have to work out the value of EOF
01:36 rue_bed so, from what I can tell, that function takes a paramiter that describes the player somehow
01:36 rue_bed the cats sat on this keyboard all day, and there are about 90000 error windows
01:36 rue_bed oh there, they just closed
01:36 rue_bed ok, nevermind
01:37 RifRaf i think it just plays all animations by default
01:37 rue_bed I dont know
01:37 rue_bed the function references play speed
01:37 RifRaf i have just the 1 in the sweep.h file, made it a simple sweep of the servos
01:38 rue_bed did you find out how to control play speed?
01:38 RifRaf yes when i can use gaitrunner.h i can control everything to do with duration and speed, just what i wanted
01:38 rue_bed cool
01:39 RifRaf the dude Webbot told me to use DRIVE_SPEED, but he thinks i have the runner going already which i don't
01:39 rue_bed you see, my problem is that it takes me as long to learn someone elses libary as to make my own
01:39 rue_bed and if I make my own, I can understand everything about it
01:39 RifRaf i don't wanna reply till i try some more stuff
01:40 RifRaf yep can understand that, but there is so much code to use here, like for many different sensors and stuff
01:40 RifRaf if would take you ages to get it all right
01:40 rue_bed no,
01:40 RifRaf almost plug and play to get the hardware going, so you can focus on the code
01:40 rue_bed at a point it just goes togethor really fast
01:40 RifRaf yeah i spose
01:40 rue_bed untill you hit a problem, then you make up for all the time you saved
01:41 rue_bed I see it as a tossup
01:41 RifRaf yep problems feel like brick walls when its all so easy
01:41 RifRaf been sitting at one trying to climb over for 3 days now
01:41 RifRaf but given me time to start learning C
01:42 rue_bed it will help to know C
01:42 RifRaf i can already see that from what i had read
01:42 RifRaf have*
01:42 RifRaf all 20 or so pages
01:42 RifRaf but i did take it in
01:42 RifRaf lots to go
01:42 RifRaf i like the book though
01:43 RifRaf makes you think in the right ways
01:43 rue_bed so, do you know what to pass that function in your if statement?
01:43 RifRaf let me see
01:43 RifRaf yes if FALSE, then do animation
01:43 RifRaf if true, just ignore
01:44 rue_bed from what I can tell its NOT looking for a true/false
01:44 RifRaf apparently if i just call gaitRunnerPlay(&gait, 0, 1000, 100, 2); it will just repeat the first frame and do nothing
01:44 rue_bed by the docs, its looking for a aha
01:44 rue_bed &gait
01:44 RifRaf as it has been for days, just sitting there with servos energised so i cannot move them
01:45 rue_bed ah, so its playing at speed 0
01:45 RifRaf no, just not playing, it well could be at 0, but has never worked with gaitrunner once yet
01:46 RifRaf at first was not compiling, now for some reason it compiles but no action
01:46 rue_bed &gait is what that isplaying was looking for
01:46 rue_bed the var you have set to FALSE
01:46 rue_bed do you get it?
01:46 RifRaf ok cool, yeah just gait does not work, seems to be &gait
01:46 RifRaf nope, will have another look
01:46 rue_bed RifRaf, I cant really browse here, tell me what the 5 paramiters are to gaitrunnerplay
01:47 RifRaf oh shit, i been compiled in the wrong directory
01:47 rue_bed that wont help
01:48 RifRaf the real one still does not compile as ealier, i was wondering why it was compiling
01:48 RifRaf :/
01:48 rue_bed so now you know why
01:48 rue_bed fix it up with that and tell me if it works
01:48 RifRaf gaitRunnerPlay(G8_RUNNER* runner, uint8_t animation, int16_t loopSpeed, DRIVE_SPEED speed, int16_t repeatCount
01:49 rue_bed ok, animation 0, loop speed 1000, drive speed 100, repeat twice
01:49 RifRaf runner must be &gait, animation is 0, loopspeed and drive speed are just values that seems to be ok
01:49 rue_bed is loop speed in seconds?
01:49 RifRaf no, will find...
01:50 RifRaf The 'speed' parameter is the animation playback speed and can be between -127 and 127. A negative speed will playback the animation in reverse. The higher the value then the faster the animation will play back. A value of zero will cause the animation to freeze at its current position. The speed can be changed at any time.
01:50 RifRaf The precise relationship between 'loopSpeed' and 'speed' is that one loop of the animation will take:
01:50 RifRaf ((65.536 * loopSpeed) / speed) milliseconds
01:50 RifRaf A loopSpeed of 5000 will mean you can vary the loop time from 327 seconds (speed=1) to 2.58 seconds (speed=127).
01:51 RifRaf so with 1000, 100 should be pretty fast if anything
01:52 rue_bed ah
01:52 rue_bed 1000 is an invalid number then
01:53 RifRaf oh no
01:53 RifRaf it says to just be bigger the drive speed
01:53 RifRaf eg..
01:54 rue_bed can be between -127 and 127
01:54 RifRaf A loopSpeed of 32767 and a speed of 1 will mean that a single loop of the animation will take about 35.8 minutes !!
01:54 RifRaf yes and its 100
01:54 rue_bed hmm
01:54 RifRaf loopspeed = 1000, drive speed = 100
01:56 RifRaf rue its a weird c++ thing i think, now that i seee the non compiling code
01:57 RifRaf but maybe not, error is (apart from having to comment out my if statement)..
01:57 RifRaf sweep.h:47: error: animations causes a section type conflict
01:57 RifRaf the values animations seems to be an issue, but i have not modified sweep.h at all
01:57 RifRaf its generated by the gait maker
01:58 RifRaf and line line in my code, G8_RUNNER gait = MAKE_G8_RUNNER(all, animations);
01:58 RifRaf line 9*
01:58 RifRaf is what makes the errors appear, if i change animations to 0, it compiles but still no go
01:58 rue_bed I think its overlfowing the memory
01:59 RifRaf nothing has moved yet, am sure its my code
01:59 RifRaf am gonna flash it again with the gait generator code so i can control the arm from pc at least
02:00 RifRaf and test the new servos, will hopefully work this out later though
02:00 RifRaf a ctually its waiting for that already :/ cause i flashed the wrong code before, and its for what i want
02:01 RifRaf because gait runner has never compiled correctly yet
02:02 RifRaf plugging it in and servos are controlled from pc with same gait, the servos sweep
02:03 RifRaf so the hardware side is all ok, is just when i try convert it for detached use, so i can make it robotic instead
02:07 rue_bed I think your out of memory space on the avr
02:07 rue_bed that would cause the boudry error its taking about
02:07 RifRaf thats a big call, from 1 somple command?
02:08 rue_bed its odd that what your going could fill up even 8k, maybe the libraries are kinda heavy
02:08 RifRaf simple, if it is then must be something i am doing wrong
02:08 rue_bed k
02:08 rue_bed how did you do it beofre?
02:09 rue_bed what avr are you using? its a 2560 isn't it?
02:09 RifRaf nope it says avrdude: 9826 bytes of flash written when i use the gait designer code
02:09 RifRaf is a mega 168
02:09 rue_bed which is 16k right?
02:09 RifRaf am doing it the same way now, make an animation on screen and it moves to it
02:09 RifRaf yep think so
02:10 rue_bed so the anumatiuon is held on the pc and just issued to the avr?
02:10 RifRaf yep
02:10 rue_bed mmm
02:10 RifRaf via rs232
02:10 RifRaf at 115200
02:10 rue_bed so when you try to build the anikmations in it seems to say its run out of memory
02:11 RifRaf what i am trying to do is export a set of created gaits, and then use then in code with the avr detached from pc
02:11 rue_bed dispite only using 10k of memory
02:11 RifRaf well it says..
02:11 rue_bed boundry error
02:11 rue_bed aka, somehitng went past a memory limit
02:11 RifRaf MT gait.o -MF dep/gait.o.d -fno-threadsafe-statics -O0 -c -o gait.o gait.cpp
02:11 RifRaf sweep.h:47: error: animations causes a section type conflict
02:11 RifRaf sweep.h:43: error: frames_0 causes a section type conflict
02:11 RifRaf sweep.h:21: error: limbs_0_0 causes a section type conflict
02:11 RifRaf sweep.h:32: error: limbs_0_1 causes a section type conflict
02:11 RifRaf make: *** [gait.o] Error 1
02:11 RifRaf sorry about the 5 lines
02:11 rue_bed er section yea
02:12 rue_bed memory section is overflowing into another
02:12 RifRaf you know wat i maybe think
02:13 rue_bed the section type is DATA vs CODE probably
02:13 RifRaf that this is a c++ issue that was not there till the codebase was changed to c++
02:13 rue_bed the data is overflowing into the code
02:13 RifRaf and maybe this file has issue, if i convert the rest to C
02:13 RifRaf can i include the c++ part from gait designer thill, the sweep.h file is C++
02:14 RifRaf actally maybe it is, i wonder if i should rename it to a .c file, will it compile differently
02:16 RifRaf rue you should install the libs just to look at, they are small
02:17 RifRaf and you can use bits as you need em
02:17 RifRaf http://sourceforge.net/projects/webbotavrclib/
02:18 RifRaf looks like not many people use it, but alot of work seems to have gone into it
04:11 MaoIsAcat whats the name of this type of competition? http://img90.imageshack.us/img90/9369/screenshotat20130110190.png
05:27 Jak_o_Shadows haha, that reload thing got onto hackaday
06:48 sw0rdfish :O
08:30 rue_bed RifRaf, it turns out I grabbed a copy a long time ago
08:56 rue_house gaitRunnerSetSpeed(G8_RUNNER* runner, DRIVE_SPEED speed )
12:19 RifRaf ok big progress, changed the code to use c instead of c++ and is compiling and the gait working standalone
12:20 RifRaf now can start fixing everything again
12:21 RifRaf so it must be something with c++, cause used the same code basically
13:07 GuShH_Lap theBear: meh, got both cams fixed... still not sure what to do with these heh
13:08 GuShH_Lap also, don't know why the colour one looks b&w, unless this adapter is set to ntsc... can't find the options on win7
18:07 rue_shop2 WTF
18:07 rue_shop2 there's a bag with over 100000 1/4W resistors hanging on the shop door today
18:07 rue_shop2 WHERE THE HELL IS THIS STUFF COMMING FROM
18:08 rue_shop2 and a bag of mushrooms...
18:09 rue_shop2 1.5 lbs of 30k resistors
18:09 rue_shop2 1/4w
18:09 rue_shop2 !?!?!?!?!
18:11 Tom_itx rue_shop2
18:11 Tom_itx this doesn't do what i'd expect
18:12 Tom_itx my common go to ground what about yours?
18:12 rue_shop2 I had VFD drivers on mine, it was more complex
18:12 rue_shop2 show me your cct and we can work it out
18:13 Tom_itx i changed both ports
18:13 Tom_itx but i made sure the wiring was right
18:13 Tom_itx booting other pc
18:17 Tom_itx http://tom-itx.dyndns.org:81/~webpage/rue/7seg/
18:18 rue_shop2 nono show me your hookup diagram
18:18 Tom_itx i changed your delay also
18:18 Tom_itx i don't have one
18:18 Tom_itx just the breadboard
18:18 Tom_itx but you wouldn't be able to follow the wires
18:19 Tom_itx i put a 330 on each of the 4 cathodes
18:19 Tom_itx to the port pins
18:19 Tom_itx and the anodes go to the segment port pins
18:20 Tom_itx i was wondering if the logic was backward
18:20 Tom_itx i get some display numbers but not what i'd expect
18:20 rue_shop2 do NOT remove the delay
18:21 Tom_itx each of the 4 loops gives me different number
18:21 rue_shop2 they should
18:21 Tom_itx if i leave your delay in place all i get are very fast cycling 8888
18:21 Tom_itx but they don't increment
18:21 rue_shop2 its supposed to go so fast you dont see it strobing
18:21 Tom_itx they stay the same numbers
18:21 Tom_itx it goes so fast it looks like all segments are lit
18:22 Tom_itx i made sure it was 1mhz clock too
18:22 rue_shop2 its uspposed to be 16Mhz
18:22 Tom_itx even so..
18:22 rue_shop2 the number only changes every (I think you changed it ) 256 loops
18:22 Tom_itx what should it be doing?
18:23 rue_shop2 it strobes thru the digits faster than you can see, writing each digit as it goes
18:23 rue_shop2 the code worked, your leds are backwards, I just figured it out
18:23 Tom_itx that was why i slowed it down
18:23 rue_shop2 give me a few mins
18:23 Tom_itx i wondered if they were backward
18:23 rue_shop2 your displays are common cathode or anode>?
18:23 Tom_itx cathode
18:23 rue_shop2 its turning them on when its thryign to turn them off
18:24 rue_shop2 ok give me a few mins
18:24 Tom_itx i was gonna change that but didn't have time
18:24 Tom_itx that's what i thought
18:24 rue_shop2 be ready for new source in a min
18:24 rue_shop2 if you can boost it up to 16Mhz in the meantime
18:24 Tom_itx start from my files
18:24 Tom_itx i can't
18:24 rue_shop2 ok
18:24 Tom_itx i can go to 8
18:24 rue_shop2 oh
18:24 rue_shop2 do that them
18:25 Tom_itx call the new file 7seg_cathode
18:25 Tom_itx .c
18:26 Tom_itx k, it's running at 8mhz
18:28 rue_house why change the delay?
18:29 Tom_itx put it back then
18:29 Tom_itx i just slowed it down to see what was going on
18:29 rue_house ah
18:30 Tom_itx you know... the led debugger
18:31 rue_house :)
18:33 rue_house ok, just try this for me, change all the PORTC = ~CG[l]; to PORTC = CG[l];
18:33 rue_house OH!
18:33 rue_house then change PORTC = 0xFF; to PORTC = ~0xFF;
18:34 rue_house and presto, it should work
18:34 e_house waits with baited br
18:35 Tom_L just the l or all of them
18:35 rue_house each comes up 4 times
18:36 Tom_L you should do something about your breath
18:36 Tom_L it smells like bait
18:36 Tom_L no different
18:37 rue_house http://paste.debian.net/232352/
18:37 rue_house ?
18:38 rue_house you must have missed one
18:38 rue_house sorry, prolly easier if I dump it on my site as a file
18:39 Tom_L that produces an error
18:39 Tom_L your code does
18:39 rue_house what error!?
18:39 Tom_L large int implicitly truncated to unsigned type
18:40 rue_house which line
18:40 Tom_L the ~0xff lines
18:40 Tom_L all 4
18:40 rue_house ok , thance them to 0x00
18:40 Tom_L i think i tried that earlier but ok
18:41 Tom_L still nothing legible
18:42 Tom_L it may be having trouble driving them
18:44 rue_house more minutes...
18:44 rue_house cant compile on this thing
18:45 Tom_L i slowed it way down again an it displays different things but not in any particular sequence
18:45 rue_house you dont ahve the column and segment ports backwards do you
18:45 Tom_L it's wired like the file says
18:46 Tom_L 4 lines to the cathodes
18:46 rue_house ok
18:46 Tom_L and the segments like you layed out the alphabet soup 8
18:47 Tom_L i wonder if it just can't drive this old thing
18:47 Tom_L it's a pretty ancient display
18:47 rue_house if its lights up, its doing fine
18:48 Tom_L that's why i put the 330 on each cathode
18:48 rue_house is it from a clock?
18:48 Tom_L i dunno
18:48 Tom_L it was surplus
18:48 Tom_L not that i know of
18:48 rue_house clocks are wired parallel and series
18:48 rue_house that is, both annodes and cathodes are common
18:48 Tom_L i ran each pin and each segment with 5v and verified what it did
18:49 rue_house ok
18:49 Tom_L 4 7 10 and 14 are cathodes
18:51 Tom_L atmega328p
18:51 rue_house leave it with me a while I cant edit ont eh same machine Ic an compeile on rgight now
18:52 Tom_L k, i'm gonna go watch my eyelids for a bit
18:55 Tom_itx i'll check back in a while
19:09 RifRaf tom i got those voltage regs with the 3 digit display today, got yours yet?
19:10 RifRaf woops sorry you're sleeping
19:11 Tom_itx yup i was using one a bit ago
19:11 Tom_itx they're ~fairly accurate
19:12 RifRaf and fixed me code this morning!!
19:12 RifRaf can't wait to get home and finish rebiulding arm, even more balanced this time
19:13 Tom_itx switched from c++ to c?
19:14 RifRaf yes
19:14 RifRaf code is identical practically, so must be a c++ issue with the variables
19:14 Tom_itx better off
19:19 rue_house my machine isn't registering its name with the dhcp server, and, apparently, its got no dhcp client system on it
19:20 rue_house so, I dont know how to go about fixing this....
19:20 rue_house something must be doing dhcp on my system
19:21 Tom_itx you would think
19:26 rue_house tho it might explain why once last year my machine fell off the network
19:36 rue_house Tom_itx,
19:37 rue_house http://eds.dyndns.org/~ircjunk/programming/7seg_cathode.c
19:37 rue_house if you please?
19:38 rue_house if that dosn't do something different, I ahve to build this
19:39 rue_house it should show 111
19:40 Tom_itx one tick
19:44 Tom_L it's like it's charlieplexing it
19:44 Tom_L they stay dim but a few stand out more than others
19:48 RifRaf i know a good library for 7seg leds that just works
19:49 Tom_L the issue may be this display
19:50 RifRaf is quick way to test the hardware also
19:50 RifRaf then at least you know it works
19:50 Tom_L not really
19:50 Tom_L why would i test with unknown code?
19:52 RifRaf cause i know it works,
19:52 Tom_L but i don't
19:52 RifRaf had a 7seg out last week, nice little one
19:52 RifRaf ripped from something
19:52 haryv my gosh the channel is alive
19:53 RifRaf haryv hello, where you from?
19:53 haryv Vancouver bc canada.
19:53 Tom_L you're near rue
19:53 haryv ohh?
19:53 haryv who is rue?
19:57 RifRaf your neighbour
19:57 Tom_L rue_house, it is cycling thru but nothing is very legible
20:02 rue_house how many segments came on
20:03 Tom_itx 8 on the 2nd digit
20:04 Tom_itx at first
20:04 Tom_itx then it stayed and 9 on the other 3
20:04 Tom_itx then 4 went blank
20:04 Tom_itx then 1 3 and 4 went blank
20:04 Tom_itx with 8 always on 2
20:14 rue_house you have the columns and segments backwards, just a min.
20:14 haryv rue, your in the gvrd?
20:15 rue_house yes, you did, I missed it
20:15 rue_house Tom_itx, try again
20:15 rue_house http://eds.dyndns.org/~ircjunk/programming/7seg_cathode.c
20:23 Tom_L better but displayed EEE on 2 3 n 4
20:24 Tom_L then 4 switched to
20:24 Tom_L |
20:24 Tom_L |
20:24 Tom_L then 1 but on the wrong side
20:25 Tom_L not all the segments are displaing
20:25 Tom_L but it is better
20:26 Tom_L as it progresses, 4 sorta counts then 3 switches to
20:27 Tom_L |
20:27 Tom_L |
20:27 Tom_L and 4 continues
20:28 Tom_L lets make one that iterates each segment a thru g for each digit
20:29 Tom_L then i can verify what ones are working
20:29 Tom_L they are all displaying at one point or another so the are _wired_ right
20:30 RifRaf how does one type an EOF char?
20:31 RifRaf oh must be enter
20:31 fRaf is co
20:31 Tom_itx 13 10
20:31 Tom_itx char
20:31 Tom_itx ascii
20:31 Tom_itx cr lf
20:31 Tom_itx  /n
20:31 Tom_itx etc
20:32 RifRaf yep, is the line feed maybe, need to work out its value
20:32 RifRaf with code
20:32 Tom_itx  /r
20:44 RifRaf heh i made smily faces somehow when i press enter
20:44 RifRaf anyways back to work
20:59 rue_house Tom_itx, thats inverted 111
20:59 rue_house yay!
20:59 rue_house so you ahve the segments upside down too
21:00 rue_house Tom_itx, still awake for a bit?
21:00 Tom_L yeah
21:00 Tom_L an hour or so
21:02 rue_house http://eds.dyndns.org/~ircjunk/programming/7seg_cathode.c
21:02 rue_house that might fix it
21:02 rue_house I might be reversed left to right
21:02 Tom_L 0 is the first digit cathode btw
21:02 RifRaf view it in a mirror
21:02 Tom_L 1 3 4
21:02 rue_house yes
21:02 rue_house I'm using that to identify what sides what
21:03 rue_house I think I fixed the segments wrong
21:03 rue_house try er out
21:03 rue_house WHERE ARE MY DAMNED PENCILS!
21:04 Tom_L i unplugged some wires, sure hope i got em back right
21:04 rue_house ugh
21:05 Tom_L was testing
21:05 Tom_L i got em back
21:06 rue_house ok I think A and D, B and E, C and F were reversed
21:06 rue_house so, tell me if what you have works and I'll know
21:06 Tom_L ?
21:06 Tom_L send me a fresh file :)
21:07 rue_house http://eds.dyndns.org/~ircjunk/programming/7seg_cathode.c
21:07 rue_house thats the update, I can version them for you if you want :)
21:08 Tom_L 111
21:08 Tom_L 5 on 2
21:09 Tom_L E on 2
21:09 Tom_L most of 0 on 2
21:09 rue_house iiintereting
21:09 rue_house ok
21:09 rue_house 1 sec
21:09 Tom_L 111 is on the wrong segments too
21:09 Tom_L the left instead of right
21:10 Tom_L unless you did that on purpose
21:11 Tom_L 1 5 E 0 2 6 on 2
21:11 rue_house updated
21:11 Tom_L then unrecognizeable
21:11 rue_house http://eds.dyndns.org/~ircjunk/programming/7seg_cathode.c
21:11 rue_house yup, I remapped
21:12 Tom_L 3 & 4 are upside down
21:12 Tom_L so is 6
21:12 rue_house and 7?
21:12 rue_house and 9?
21:13 Tom_L yup
21:13 Tom_L 2 doesn't matter :)
21:13 Tom_L 1 is too really
21:13 rue_house I'v reversed 1 3 times now and you keep insisting its ont he wwrong side
21:14 Tom_L it's still on the left side
21:14 rue_house http://eds.dyndns.org/~ircjunk/programming/7seg_cathode.c
21:14 rue_house try that
21:14 rue_house how many seconds between counts?
21:15 Tom_L maybe 1 or 2
21:15 rue_house ok
21:15 Tom_L probably 2
21:16 rue_house are they rightside up now?
21:16 Tom_L yeah
21:16 Tom_L :D
21:16 rue_house are they inclrementing in the right order?
21:17 rue_house or is the lsd on the left?
21:17 Tom_L it is counting on 2 and updating 3
21:17 Tom_L lsd left
21:17 rue_house ok
21:17 Tom_L and msd is still 1
21:18 rue_house http://eds.dyndns.org/~ircjunk/programming/7seg_cathode.c
21:18 rue_house see where that puts us
21:19 Tom_L 7seg.c:153: error: expected statement before ']' token
21:19 rue_house oops
21:19 rue_house stray key
21:19 Tom_L fixed
21:19 rue_house http://eds.dyndns.org/~ircjunk/programming/7seg_cathode.c
21:19 rue_house fixed
21:19 Tom_L all show 1111
21:19 rue_house and new mods
21:19 Tom_L and sit there
21:19 Tom_L 3 is counting
21:19 rue_house oh oops
21:19 Tom_L not 1
21:20 rue_house fixed another typoi
21:20 rue_house http://eds.dyndns.org/~ircjunk/programming/7seg_cathode.c
21:20 rue_house more new featrues and typo fix
21:21 RifRaf rue what uC you using?
21:21 rue_house I dont know
21:21 rue_house tom, what am I using?
21:21 Tom_L 328p
21:21 RifRaf cool, will have a go when i get home
21:21 Tom_L does it matter with avr?
21:21 RifRaf 16mhz
21:21 rue_house rif 328p
21:21 Tom_L 8
21:22 rue_house at 8mhz
21:22 Tom_L default fuses except ckdiv8
21:22 RifRaf oh 8, hrm, think i have an 8 somewhere
21:22 rue_house tom, is it clean yet, the first digit will be going like crazy
21:22 rue_house tell me if its too fast
21:22 Tom_L where do you speed the counter up?
21:23 rue_house I preset the counter thats used for overflow
21:23 rue_house just a sec
21:23 Tom_L 65000?
21:23 rue_house http://eds.dyndns.org/~ircjunk/programming/7seg_cathode.c
21:23 rue_house see the comment
21:23 Tom_L no, you're not using delay2
21:23 rue_house no, they are part of my template
21:24 rue_house delay is used for the scanning, not the counting
21:24 rue_house the count delay is done on rollover of d
21:24 rue_house d++;
21:24 rue_house if (d == 0) {
21:24 rue_house Tom_itx, I'll stop for a min, tell me how that code is
21:25 Tom_L better
21:25 Tom_L right digit is counting
21:25 rue_house whats not perfect?
21:25 Tom_L next is updating
21:25 Tom_L on roll over
21:25 Tom_L what speeds it up?
21:25 rue_house it acts like a 4 digit counter
21:26 rue_house see the comment? presetting d
21:26 rue_house when d rolls over, it execs that 4 digit increment code
21:26 rue_house its a hack, the display scanning should all be done in an interrupt
21:27 Tom_L so 65565 is top?
21:27 Tom_L 35
21:27 rue_house yes
21:27 rue_house you cant have it count that fast tho
21:27 rue_house it'll just blur into an 8
21:27 rue_house see the comment I have it preset for 16000
21:27 Tom_L it's 32000
21:28 Tom_L and we're only up to 53 so far
21:28 rue_house :) you dont trust it?
21:28 rue_house if it works that far, its good
21:28 Tom_L yup
21:29 rue_house sorry, I was kinda rough on helping you with it there
21:29 rue_house and I completly missed you had the ports reversed
21:29 Tom_L not really, it works
21:29 rue_house you initialized them right, but then wrote the segments to the columns etc
21:30 rue_house well, you gonna do anything with it?
21:30 rue_house make it hexdecimal?
21:30 Tom_L watch it count
21:30 rue_house :)
21:30 Tom_L not with this one
21:30 Tom_L i wonder if it would hold up without the resistors
21:31 rue_house you need the resistors
21:32 Tom_L i need smaller ones thoug
21:32 Tom_L h
21:32 Tom_L it's pretty dim
21:32 GargantuaSauce you can get away with no resistors if the duty cycle is small
21:32 Tom_L it's ok, it was a test
21:32 Tom_L rue needed a student that would follow thru too
21:33 Tom_L he was getting discouraged
21:33 Tom_L 1980
21:33 Tom_L and counting
21:33 Tom_L 2090
21:34 Tom_L does it blow up after 9999?
21:34 rue_house no, hold on
21:34 Tom_L too bad rif isn't interested in the 'why'
21:35 rue_house ok dont overwrite the file you have...
21:35 rue_house http://eds.dyndns.org/~ircjunk/programming/7seg_hex_cathode.c
21:35 rue_house ;)
21:36 RifRaf all i think is that i am glad i don't have to make all these mistakes just getting a led to light, thought you gurus would be way past this point
21:36 RifRaf reinventing the wheel i call it
21:37 Tom_L hex!
21:38 rue_house :)
21:38 rue_house so I did it right?
21:38 Tom_L looks ok
21:38 rue_house sweeet
21:38 Tom_L C could be the whole C
21:38 Tom_L instead of half
21:38 rue_house I'm getting good at this, few programs now I'v throws togethor and they just work
21:39 rue_house I was going to, but I thought the lowercase was more firendly
21:39 Tom_L probably so
21:39 rue_house e could be done lowercase...
21:40 rue_house the code for that maxim chip damn near compiled itself, NO errors, it just worked
21:41 rue_house lots of completely untested code
21:41 rue_house carefully tested at I went everything just worked
21:44 Tom_L so you just let the var overflow 'd'
21:44 Tom_L ?
21:44 Tom_L and compare it to zero
21:44 rue_house yes, overfow will be 0
21:44 rue_house good ole roleover
21:44 Tom_L would unsigned char be 255?
21:44 Tom_L or not
21:44 rue_house yup
21:45 rue_house looks like the unsigned char is what I had origionally, but I have no idea what the code speed was
21:47 Tom_L too fast
21:47 Tom_L that's why you changed it
21:49 Tom_L kat should try it
21:50 rue_shop2 where is kat anyhow
21:50 Tom_L set it for PORTB and PORTD
21:51 Tom_L PB segments
21:51 Tom_L PD cathode
21:51 Tom_L for the 2313
22:42 rue_shop2 Tom_itx, last project of the night, maybe a video of the work for kat?
22:50 RifRaf just kicked a power cable and took the whole power point off the wall
22:51 rue_shop2 oops
22:53 RifRaf yep, all good now, put on my electrician hat and replaced it
22:53 RifRaf managed not to electrocute myself somehow
22:53 rue_shop2 that 240 will throw you across a room you know
22:53 RifRaf 50 minutes and its playtime
22:54 RifRaf yep have been got before, thats why i turned off everything on this circiut before playing
23:24 rue_house http://www.youtube.com/watch?v=TmTW61MLm68
23:24 rue_house robot cutting his bannana in two
23:26 RifRaf 27 minutes, i'll get fired if i look now
23:28 GargantuaSauce i love when it falls over
23:29 theBear 27 minutes ?good god, i slept half the day
23:41 RifRaf play time, see yas on the other side