#robotics Logs

Apr 18 2018

#robotics Calendar

12:13 AM rue_mohr: well, I didn't assemble it wrong
12:17 AM rue_mohr: maybe I need a BE resistor then
12:17 AM rue_mohr: mmkay, put them in tommorow... er
12:17 AM rue_mohr: hmm
02:40 AM Jak_o_Shadows: z64555, temperature stuffs things up as well
02:41 AM Jak_o_Shadows: SpeedEvil, literally my favourite video
03:25 AM veverak: 9wololo
09:10 AM rue_mohr: aha, all my driver transistors are backwards
09:10 AM rue_mohr: C<->E
09:10 AM veverak: well
09:10 AM veverak: stm32cubemx sucks
09:10 AM rue_mohr: that would do it
09:10 AM veverak: as hell
09:10 AM veverak: like, a lot of shitty bugs
09:10 AM veverak: but overall it is helpfull
09:10 AM rue_mohr: why did n't you get blue pill?
09:10 AM veverak: I have problem learning from my previous mistakes
09:10 AM veverak: :)
09:11 AM veverak: anyway, slowly falling in love with stm32l432kc
09:11 AM rue_mohr: can you get i2c to work with less code than it takes to bit bang it?
09:12 AM veverak: in theory I allready did
09:12 AM veverak: I mean, the cubemx generate HAL source code
09:12 AM veverak: so I have magical HAL_I2C_Master_Transmit(&hi2c1, TCS34725_ADDRESS, buff, 2, timeout);
09:12 AM rue_mohr: I meant at the cpu level
09:12 AM veverak: functions
09:12 AM veverak: and don't care about rest
09:12 AM veverak: rue_mohr: not sure
09:12 AM rue_mohr: mhm
09:13 AM rue_mohr: do it could take up 5x as much space as bit-banging it and yo would have no problem with that
09:13 AM rue_mohr: even if it was slower
09:13 AM veverak: truth to be told this is a job for local company
09:13 AM rue_mohr: no reason to care then
09:13 AM veverak: I am in the mode "when in rome do as romans do"
09:14 AM veverak: hmm
09:14 AM rue_mohr: do the whole thing in java...
09:14 AM veverak: with little improvements here and there
09:14 AM veverak: :)
09:14 AM veverak: rue_mohr: they use pure C
09:14 AM veverak: as C++ coder I am offended, but I will survive the ordeal
09:14 AM rue_mohr: yea, but java uses objects
09:14 AM veverak: C too
09:14 AM veverak: :)
09:14 AM veverak: (if you think about it)
09:14 AM rue_mohr: but java is unstable and uses 28x as much memory
09:15 AM veverak: hmm, that sounds more entreprise
09:15 AM veverak: anyway
09:15 AM veverak: goal is to create a "RGB leg sensor"
09:15 AM veverak: something that tells you " the machine blinked 3 times with green led"
09:16 AM rue_mohr: huh
09:16 AM rue_mohr: using one of the colour sensors?
09:16 AM veverak: tcs34725
09:16 AM veverak: or
09:16 AM rue_mohr: outputs a freq for each channel?
09:16 AM veverak: APDS9960
09:17 AM veverak: outputs level value at freq for each channel
09:17 AM veverak: (RGBC)
09:17 AM rue_mohr: Iwas thinking of TCS3200
09:17 AM veverak: anyway, at least I discovered OpenOCD and can debug it with 'cgdb'
09:17 AM veverak: happy <3
09:18 AM veverak: rue_mohr: know that one
09:18 AM veverak: did not seem as a fit for our use case
09:18 AM rue_mohr: I have one in my "toys from china " box
09:18 AM veverak: I've got new toy from china
09:19 AM veverak: https://www.aliexpress.com/item/5-Inch-800-x-480-HDMI-TFT-LCD-Touch-Screen-For-Raspberry-PI-2-Model-B/32629828030.html?spm=a2g0s.8937460.0.0.uzTBL5
09:20 AM veverak: I need coffey
09:28 AM rue_mohr: wow china prices have gone up a lot
09:29 AM rue_mohr: things I bought for like 50c a year ago are $3 now
09:29 AM veverak: yup
09:29 AM veverak: ok, so make -> gdb -> openocd -> nucleo stm32
09:30 AM rue_mohr: https://www.aliexpress.com/item/Free-shipping-5pcs-Color-Mark-Sensor-color-sensor-E18-F10NK-black-and-white-line-tracing-photoelectric/32357763412.html
09:30 AM veverak: toolchain setuped
09:30 AM veverak: but
09:30 AM rue_mohr: those things are complete junk
09:30 AM veverak: I received a garbage
09:30 AM veverak: from the UART I connected to it
09:30 AM veverak: both sides are on 9600 baudrate
09:30 AM rue_mohr: they are two IR recievers, one of them is set up with a transistor to run as an oscillator for the ir led
09:31 AM veverak: hmm
09:31 AM veverak: what if I connected 5V uart to 3.3V uart?
09:32 AM rue_mohr: veverak, program it to send 'U' repeatedly
09:32 AM theBear: i didn't know it was for sale <wink> on a related note, currently you can get a warehouse in various/most warehouse/industrial areas remotely in the metro area here, of about double the meterage of the domestic 1 or 2br flat/unit the same or MORE rent money can get you.. which makes one start thinking how much they value what comes with a domestic/residential domicile, and how much they miss what other things become possible/available when yer got
09:32 AM theBear: a warehouse in an industrial/non-residential area at yer disposal 24/7
09:32 AM rue_mohr: scope out the wave, should be 50% duty, from that you can work out the real baud rate
09:33 AM veverak: rue_mohr: yup, still garbage
09:33 AM rue_mohr: not just a different clock rate than expected?
09:36 AM veverak: I don't think so
09:37 AM veverak: �յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ�
09:37 AM veverak: �յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ�
09:37 AM veverak: �յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ�
09:37 AM veverak: �յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ�
09:37 AM rue_mohr: do the U test
09:37 AM veverak: �յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ��յ�
09:37 AM theBear: over the years i'm steadily more medium-grade-ly surprised as i find more and more people completely unaware of yer 'U' trick, or anything similar in style/approach, and even further that don't seem to appreciate just how simple and effective/useful it is
09:37 AM veverak: ehmm
09:37 AM veverak: (sorry, overshoot it a bit)
09:37 AM rue_mohr: a baud rate is just wrong
09:37 AM rue_mohr: the base clock isn't what you think its supposed to be
09:37 AM veverak: rue_mohr: that is the 'U' it is sending me
09:37 AM veverak: :)
09:37 AM theBear: hmm, diamond ?'s eh? that's erm, a character/value i ain't familiar with
09:37 AM rue_mohr: yea
09:37 AM rue_mohr: look at it on the scope
09:37 AM rue_mohr: read the bit timing
09:37 AM veverak: hmm
09:38 AM rue_mohr: you can work out what baud rate its really sending
09:38 AM veverak: theBear: I do the "ranom_string_I_write_trick"
09:38 AM rue_mohr: the start and or stop bits are in there
09:39 AM theBear: assume we already know stuff like that is what you were gonna observe in this scenario, and carefully observe any specific statements/instructions we say, you'll get the advantage of rue's awesome 'U' technique way quicker
09:39 AM rue_mohr: the high for 9600 should be about 104us
09:40 AM rue_mohr: if its 208, your at 4800 baud
09:40 AM theBear: veverak, that's fine, if yer can convert any character you might throw in a random string to binary in yer head as fast as you can remember what a single cycle of symmetrical/50% square wave looks like
09:40 AM rue_mohr: if its 52us your at 19200
09:40 AM veverak: theBear: I see
09:40 AM rue_mohr: its unusual to be more than a factor of 2 our
09:41 AM veverak: I see
09:41 AM veverak: friend of mine had a good tip
09:41 AM * rue_mohr recalculates his travel time to work this morning...
09:42 AM veverak: check the settings
09:42 AM veverak: there were 7 bit words
09:42 AM rue_mohr: the U test will abstract that out
09:42 AM rue_mohr: cause its ascii
09:42 AM theBear: but i can't, tho i did suprise the hell outta a dude on an elevator with me for a couple floors recently when i had a chuckle and made a comment after glancing at his shirt covered in only 0's and 1's for a time so short that even i was quite surprised, considering how many years it been since i even was intimate with anscii/ansi standard alphabet codes, let-alone quickly reading those codes from binary that randomly crossed my field of view
09:42 AM rue_mohr: then you can be sure of the baud rate independent of everything else
09:43 AM veverak: well
09:43 AM veverak: that was the problem
09:43 AM veverak: now I am spammed with 'U' <3
09:43 AM rue_mohr: theBear, "BEST DAD" in binary?
09:43 AM veverak: anyway, I will keep the oscilo prepared
09:43 AM rue_mohr: if you got a U, then your baud rate is right
09:44 AM rue_mohr: you can move on to other tests
09:44 AM rue_mohr: :)
09:44 AM rue_mohr: if (!sanity) return;
09:44 AM rue_mohr: gtg bye
09:45 AM veverak: with char msg[] = "blah blah blah";
09:45 AM veverak: am I able to get the message length at compile time?
09:45 AM veverak: without manually specifing it ...
09:46 AM theBear: rue_mohr, heh nah, it was some corporate company or software line maybe name, something 9/10 guys like you and me woulda heard of enough we remember, i forget the details, but i dunno, "Cisco certified router ninja" would be a similar kinda abstraction from a known entity with some likely associated words
09:53 AM veverak: sizeof!
09:56 AM veverak: what do you use to read UART serial in linux?
09:56 AM veverak: "screen" starts to fukcup with me
09:59 AM theBear: i never lkiked the idea of using screen for such things.. it does screen-ing, multi virtual sessions/terminals and grouping and detaching of the same etc etc... and kernel just always been so lowest-possible-denominator and had a few personal quirks ever since it been around (since ancient early times, long looong ago) that i never been real fond of, so err, these days i tend to have a gui/x session in front of me or at least something that gives
09:59 AM theBear: the same end result from my pov, so maybe cutecom and erm
10:01 AM theBear: some other apparently i got moserial atthe moment on this machine that been my almost if not fulltime desktop both physically and conceptually, i got a feeling i quite fond of one that comes integrated in a fancy text/programmer editor, which would likely be kdevelop or umm, one with a name i forgot but liked for many years
12:43 PM Kitsch is now known as jahnertz
05:42 PM rue_mohr: veverak, my library, ssls2
05:43 PM rue_mohr: I presume you meant code wise
05:47 PM veverak: noe
05:47 PM veverak: nope
05:47 PM veverak: :)
05:47 PM rue_mohr: minicom
05:48 PM veverak: !!
05:48 PM veverak: ok, second recommendation and I did used it for a while
05:48 PM veverak: looked like less headache than screen, more usefullness
05:48 PM veverak: I supposes it is worthwhile to learn the shortcuts then
05:49 PM rue_mohr: ctrl-a q
05:49 PM rue_mohr: y
05:51 PM veverak: so
05:51 PM veverak: it looks like my laptops sd card reader is not supported
05:51 PM veverak: by linux
05:51 PM veverak: it seemd like it worked few times
05:51 PM veverak: and I cna't find my USB one :/
05:52 PM veverak: no hacking tday
06:18 PM rue_mohr: no way
06:18 PM rue_mohr: what kinda sd rteader?
06:23 PM rue_mohr: veverak, pretty sure there is no sd reader in the world that dosnt work withlinux out of the box
06:23 PM rue_mohr: ...
07:04 PM AchiestDragon: version 6 hexapod work in pogress ,, .... https://lh3.googleusercontent.com/-QLnIf2VBU2w/WtfZd-pkWEI/AAAAAAAABok/y9jl9p1ZiTMDzqitTb1oW4LwhVplUh-TQCJoC/w928-h697-n-rw/IMG_20180419_003905.jpg
07:04 PM AchiestDragon: now with first 3 legs built and attached
07:06 PM AchiestDragon: and over 300 hrs of 3d printing so far
07:29 PM rue_mohr: wow
07:29 PM rue_mohr: but I'm guessing it cant jump
07:30 PM rue_mohr: AchiestDragon, what is the thread pitch?
07:41 PM rue_mohr: waaait a min
07:54 PM AchiestDragon: 0.8 mm per turn
07:56 PM AchiestDragon: at the rated motor rpm it should be able to give 80 mm per sec ie the full lenth of the actuator
07:58 PM AchiestDragon: 775 DC 12V-36V 3500-9000RPM High Power Motors
07:59 PM AchiestDragon: as eBay item number:122685363158
08:02 PM AchiestDragon: should have a bit more power than using the mg996r servos
08:13 PM rue_shop3: ok, solinoid driver is working
10:16 PM rue_mohr: k
10:38 PM rue_mohr: "I accidently hit the eject button on the media player app on my computer, the harddrive came flying out the front of the case and skidded across the floor."
10:43 PM rue_mohr: "I accidently hit delete in my file browser, when it asked if I was sure I wanted to delete it, I accidently clicked 'yes', then it asked if I wanted to put a backup in the trash bin, and I accidently clicked 'no' "
11:20 PM mrdata_ is now known as mrdata