#robotics Logs

Jan 23 2013

#robotics Calendar


00:28 RifRaf !thislog
00:28 tobbor This one: http://rueshouse.dyndns.org:82/~ircjunk/irclogs/html/%23robotics-2013-01-23.html
00:58 rue_house GuShH, it wasn't named by me
00:58 rue_house it was named by ....
00:59 rue_house uh
00:59 RifRaf rue can you help me with a little while loop thingo please
00:59 rue_house ok
00:59 rue_house oh my its an hour past bedtime
00:59 RifRaf http://pastebin.com/njXngU3C
00:59 rue_house hurry
01:00 RifRaf want to make something like InstreamData that is more than a char, like a collection of InstreamDatas
01:00 RifRaf a word of phrase, till there is no more data to receive for the time being
01:01 rue_house till you get to a space
01:01 rue_house how many of the 256 system ram bytes do you want to use for it?
01:01 RifRaf yes, i am sending like Button One Pressed
01:01 rue_house remeber that the c++ overhead takes up about 200
01:02 RifRaf so maybe not just a space
01:02 RifRaf a newline or somethin g
01:02 rue_house up to so many characters
01:02 rue_house remember, this is an avr it has almost _no_ ram to store data
01:02 RifRaf its just a few words
01:03 rue_house ok 40 characters
01:03 RifRaf sounds good, i can work with that
01:04 rue_house after this, can I teach you C?
01:04 RifRaf yes
01:04 RifRaf after this i will redo the code in C for the morning
01:05 rue_house c basically is c++
01:05 RifRaf i can make it use just C, C++ sounded fancier
01:05 rue_house if you know c, you can code c++
01:05 RifRaf well i cannot see a difference yet
01:05 rue_house there basically isn'
01:05 rue_house t
01:05 RifRaf i do remember being able to do some stuff
01:06 RifRaf a few years back, but is like starting over but nice to have lots of hardware to play with
01:07 rue_house I'll make it trigger on . or at 40 characters
01:08 RifRaf i send this PRINTF(stdout,"Button 1 Pressed\r\n");
01:08 rue_house why is printf in caps?
01:08 RifRaf so maybe a return or newline?
01:08 rue_house ok
01:08 RifRaf not sure, was going to try lowercase later
01:09 rue_house do you even know where printf goes?
01:09 RifRaf yep, the uart at moment
01:09 RifRaf i can redirect rprintf in the project manager of webbotlib to send it and errors anywhere easy
01:09 rue_house in the future you have to start with simple working code, and make simple changes, and test after every small change, ok?
01:10 RifRaf i did that this morning with that code, started fron scratch
01:10 RifRaf and read the docs and got that far
01:10 RifRaf but the docs don't give you nice happy examples
01:11 RifRaf you are expected to know C i guess
01:11 rue_house this is all messed up, dont know how you did it
01:11 RifRaf its really simple actually
01:11 RifRaf i can show you hardware.h, that will have the secrets
01:12 RifRaf http://pastebin.com/qpMsDgiW
01:12 rue_house no, I'm ok
01:12 RifRaf its there already :P
01:13 RifRaf hrm not much in there either, its just magic, and how i think it should be
01:14 RifRaf want to make a mega32 speak? will send you a hex file when we are done and just feed it via rs232
01:14 RifRaf small amp attached to port B3
01:14 RifRaf thats it
01:15 RifRaf you gotta admit thats pretty neat, cannot wait to get some sensors and distance thingos hooked up
01:16 rue_house http://pastebin.com/Er1r0kCQ
01:16 rue_house try that
01:16 RifRaf k will try now
01:18 RifRaf rx.cpp:26: error: cannot convert '__file*' to 'const char*' for argument '1' to
01:18 RifRaf 'int printf(const char*, ...)'
01:20 RifRaf does %c mean char and %s string? had no idea where it came from
01:20 rue_house yea,
01:20 rue_house thats right
01:20 rue_house just comment out that line
01:20 RifRaf wow cool, was wondering why %c did something, found it in some other code
01:20 rue_house you need to use fprintf if thats gonna work
01:20 RifRaf k
01:20 rue_house and its stuill messed
01:20 RifRaf conpiled
01:20 RifRaf uploading now
01:21 rue_house ok good luck
01:22 RifRaf ok am getting new stuff on lcd, need to add a clear screen or two, brb, no speech yet apart from at startup
01:22 RifRaf oh its commented out :)
01:23 RifRaf yay rue, it lives :)
01:24 RifRaf speaks the phrase and displays it on lcd
01:24 RifRaf thanks for saving me the whole night, can move on
01:24 RifRaf but will study it and still redo in plain C
01:24 RifRaf willpaste wat i have
01:25 RifRaf http://pastebin.com/whxWWpB5
01:27 rue_house I shall teach you C ok?
01:28 rue_house shall we do a bit now?
01:28 RifRaf ok then
01:28 rue_house you have a compiler for your pc?
01:28 RifRaf i thought it was your bedtime
01:28 RifRaf yes i just compiled that code
01:29 rue_house no I dont mean for avr, I mean for your computer
01:29 rue_house to make computer programs
01:29 RifRaf rue do you want a hex file, mega32 @ 16Mhz
01:29 RifRaf will talk dude
01:29 RifRaf um i have one to make android programs
01:29 rue_house :) I'll wait thanks
01:29 rue_house nope, for making pc programs
01:29 RifRaf still gotta start learning that
01:29 rue_house android is java
01:29 RifRaf nope
01:29 rue_house it looks like c
01:30 rue_house ok, what program are you coding with
01:30 RifRaf k, well what do i want then, i need to download at work if i need stuff but
01:30 RifRaf editplus or programmers notepad
01:30 rue_house hmm
01:30 RifRaf both undertand C
01:30 rue_house do you have cygwin?
01:30 RifRaf nope
01:31 rue_house hmm
01:31 RifRaf will see how big it is
01:31 rue_house do you have a working linux machine?
01:31 rue_house foxy?
01:32 RifRaf still have not got to turn her computer back on, its next to me
01:32 rue_house is she linux?
01:32 RifRaf am i have a 12v supply, will see what she needs
01:32 RifRaf yes fedora i think
01:32 rue_house well, why not see if you can get her up
01:33 rue_house two birds with 1 stone and all
01:33 RifRaf will have a go now
01:33 rue_house ok
01:33 rue_house she has a C compiler for linux, thats why I say
01:34 RifRaf hrm i need an ide cable and i chopped my last one up
01:34 rue_house hahahah
01:34 RifRaf to hook up the lcd, chucked every cable out
01:34 rue_house borrow a cdrom cable
01:34 rue_house you dont need a cdrom right now
01:34 RifRaf its a dusty mainboard on a sheet of plexi
01:35 RifRaf will give it a clean first
01:35 rue_house if your like me, you havn't used the thing in like 5 years anyhow
01:35 RifRaf thats right
01:35 RifRaf with a cool psu that runs of 12v
01:35 rue_house I dont even know what I'd put on a cd if I wanted to
01:35 RifRaf hdd and amplifier
01:36 RifRaf microatx
01:36 rue_house I was given about 15 microitx machines
01:36 rue_house I'm gonna be upgrading things for weeks
01:42 RifRaf psu not turning on, need to do this slowly, have a mainboard manual somewhere, not even sure which pics are for power switch
01:42 RifRaf pins*
01:45 RifRaf good news, got an email back for the helicopter, they are more than happy to take it back, even sent a postage piad sticker with all details on it :)
01:46 rue_house china?
01:46 RifRaf well i had to print the sticker out
01:46 RifRaf nope aussie
01:50 RifRaf yay found a manual http://www.mini-itx.com/store/information/m1-atx-manual.pdf
01:50 RifRaf for the psu
01:54 RifRaf you need one of these if you want to put microitx on robot
01:54 RifRaf nice and stable and wide voltage
01:54 rue_house I'm ok
01:55 RifRaf well i cannot get it goin yet, i have 12v at the input and the fuse is good, moving along to the switches now
01:57 rue_house think she stored ok?
02:07 RifRaf not so far
02:08 RifRaf cannot get the supply to turn on at the switches, might plug in a normal psu for a test
02:14 RifRaf won't be starting up for a bit, need to go over it all and found the MB manual
11:16 ai23k hi all
11:17 ai23k can we conceptualize externalism using 4th dimensional modeling for concious machines I am thinking to write something about this
11:19 Kryczek yes
11:20 ai23k Kryczek: actually I am still out of concrete ideas for this, can you please help me out a bit on this how could i do this using mobile agents . I am stuffed up with a lot of mess unable to write them in a proper way
11:21 Kryczek yes
11:23 ai23k_ Kryczek: but how
11:26 ai23k_ actually it looks a bit conceptual and I am looking to draw something for this . .that is why much confused
12:26 Rif theBear did you do anymore with the atmega servo controller for motion?
12:27 theBear https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash3/149555_415275551882912_571631780_n.jpg
12:27 theBear not really, tho i use motion a lot... never got good enough at the mechanics to make it useful, and then an unending stream of bullshit happened
12:28 Rif you use it just with still cameras?
12:28 theBear heh,static cameras yeah
12:28 Rif ok cool, at least its still used, gonna try redo the code in these new libs, the servos are alot more stable and no jitter
12:32 theBear very nice... and yeah, still kinda active, occasional updates/new versions
12:33 theBear tho v4l(2)oopback is kinda in a state of flux, the old one no longer works due to lack of supporting stuff in modern kernels, and the new one noone seems to be able to work, even tho there's a very hard to find reference of the dev testing with a git version of motion maybe 8 months ago or so
12:34 Rif i wonder if it would run on a raspberry pi
12:35 theBear it has been discussed, not too detailed, think one guy is even doing it to some extent...
12:35 theBear i mean, it'll run, just not sure how much cpu would go to motion detection, that (apart from encoding) seems to be the major cpu user
12:36 Rif ok cool , gonna get one to try
13:50 Tom_itx rasberry pi's kinda came and went
14:00 Rif ok
14:00 Rif rue have got the old motion servo code happening on the mega168
14:01 Rif and it working had to change a timer setting, am not sure if we had this running last time
14:05 Rif have buttons driving the servos but not sure if the motionAPI part is done yet, http://pastebin.com/6zJpzeec
20:48 RifRaf Tom_itx did you get any AVR hooked up yet?
20:49 rue_house RifRaf, hows foxy?
20:49 Tom_itx i've been kicking back this evening
20:49 Tom_itx long day
20:50 Tom_itx you seem well on your way now though
20:51 RifRaf still having a long day here too, got some mini arduinos and l298 motors driver boards in post today, will try get them going tonight
20:52 RifRaf rue_house do you remember the motion servo code? will be working on that tonight as well
20:52 rue_house and foxy?
20:52 RifRaf no go yet
20:52 rue_house whats wrong?
20:52 RifRaf eaither mainboard or power supply, will get another linux box going soon
20:52 rue_house you need to learn to code C before you keep trying to write programs
20:52 RifRaf ok
20:52 RifRaf tell me wat to download, can get while at work now
20:53 RifRaf have to go back to soldering leds now, back soon
20:53 rue_house ok download uh.. devc++ from bloodshed software
20:53 Tom_itx old as the hills
20:53 rue_house then you tell him what to get
20:53 rue_house I dont do windows
20:53 Tom_itx i've used it, it's ok
20:54 rue_house I dont think microsoft shoudl make $1700 because an office wants to use word on 7 computers
20:54 Tom_itx i did your parport blinky with it
20:54 rue_house I think that operating systems should be free
20:54 Tom_itx money for nuthin and the chicks for free
20:54 rue_house I think that things popping up under my mouse cursor are REALLY annoying
20:54 Jak_o_Shadows It's not too hard to get gcc on windows using cygwin
20:55 RifRaf yep cygwin, will get
20:56 rue_house I think rifraf dosn't like looking at a horses ass when he's driving a cart, and so he's quite happy with it pushing from behind
20:56 rue_house :)
21:01 Tom_itx rue_house, you should help not hinder. he needs to learn c so he can have fun without all these libs n stuff
21:01 rue_house yea
21:01 rue_house we were gonna use foxy
21:01 rue_house I didn't think he'd have troubles getting her up
21:01 rue_house which he needs to do anyhow
21:01 Tom_itx it's been a while
21:01 Tom_itx no tellin how far things have moved since then
21:03 rue_house hmm I dont know how to go about making a low-dropout charger
21:04 rue_house who will brainstorm with me
21:05 rue_house I have a robot with 48V battery bank
21:05 Tom_itx http://cds.linear.com/docs/en/design-note/dn144.pdf
21:05 rue_house and a 48V power supply for charging
21:05 rue_house I want to set up 'drive up against' charger station
21:06 rue_house but I dont want live 48V terminals on the charger
21:06 rue_house and I dont want live 48V terminals on the robot
21:07 rue_house and I want the robot to switch to the charging supply power for running while it charges
21:08 Tom_itx http://sites.ieee.org/scv-sscs/files/2010/02/LDO-IEEE_SSCS_Chapter.pdf
21:11 rue_house hmm
21:14 Jak_o_Shadows what about some fancy mechanical covering?
21:17 rue_house how about a hall effect based 'diode' thats switched with a fet
21:17 Jak_o_Shadows Why not just a reed switch instead of the hall effect 'diode'
21:18 rue_house because I can use a hall to act as a current direction sensor that I can use to switch the logic system to run off the bumpers if current is available....
21:18 rue_house I'm working on too many part of this at once
21:18 rue_house :)
21:18 rue_house Jak_o_Shadows, your idea isn't bad, I just want to make sure that nothing can short up against these
21:19 rue_house after the connection, I need to swtich the system power from battery to the bumpers, and then do a current limited charge from the bumpers to the batteries
21:22 rue_house I suppose the onboard computer could just sequence it all manually
22:10 rue_shop3 hahah the $2 china multimeter fell off the table
22:10 rue_shop3 it wasn't heavy enough to aquire any damage hitting the floor
22:10 Tom_itx hehe
23:54 RifRaf cygwin download at 124% :/
23:55 RifRaf gonna stay back and make some gears so is ok, about 700mb so far