#avr Logs

Jan 20 2018

#avr Calendar

12:00 AM nuxil: i was looking at this now .. https://www.ebay.com/itm/Brymen-BM869s-BM867s-BM257s-BM235-BM859-BM857-Professional-Multimeters-Series/302094989685?hash=item465643b975:m:ma67TWP9yVkzvFq56tAaRRw
12:03 AM Tom_L: i think mine is a 77 :D
12:03 AM nuxil: fluke is good quality.
12:03 AM day_ is now known as day
12:03 AM Tom_L: yeah
12:03 AM rue_: https://www.aliexpress.com/item/DT830-B-Ammeter-Voltmeter-Ohm-Electrical-Tester-Meter-Professional-Digital-Multimeter-DT830B/32680885948.html
12:03 AM nuxil: but i heard good stuff about these brymen multimeters too. but never had one myself
12:03 AM rue_: get one of those while you work out what to buy
12:03 AM nuxil: lo. you want to kill me :p ??
12:03 AM rue_: micronta meters do readings faster than ANY other meter I'v ever seen, by 4x, dunno what they did
12:03 AM rue_: I have a fancy meter that updates at like 2hz, its painfull
12:03 AM rue_: but the company fluke I have uses the same chip
12:04 AM Tom_L: there's nothing wrong with micronta
12:04 AM rue_: er or is it a greenlee
12:05 AM rue_: oh its klien?
12:05 AM rue_: hmm yea
12:05 AM rue_: https://i.ytimg.com/vi/DFAsrHwgNLo/maxresdefault.jpg
12:05 AM rue_: I have the one onteh right at work
12:06 AM rue_: there aren't many meters that do DC clamp on
12:12 AM nuxil: oh i got a variant of that too.
12:12 AM rue_: https://i.ytimg.com/vi/nYiGiuKDH4o/maxresdefault.jpg
12:12 AM rue_: I have the one ont eh right
12:12 AM nuxil: shitty T5-600
12:12 AM rue_: S L O W as all hell
12:12 AM rue_: mine is branded circuit-test
12:12 AM nuxil: thats mine .. lol .. https://gyazo.com/c946637ec2d8e88e9c35cf077889260c
12:12 AM rue_: I realized my klien has the same maxim chipset by the amount of time and boot behaviour
12:12 AM nuxil: this shit can mesure. AC/DC voltage. Ohms. AC ampers. but not DC ampers
12:12 AM rue_: "Your browser is not supported in Gyazo. Not all features are available in this browser. Please use a modern browser such as Google Chrome."
12:12 AM rue_: the joke being, I can prolly pull it up in lynx
12:12 AM nuxil: https://i.gyazo.com/c946637ec2d8e88e9c35cf077889260c.png
12:12 AM rue_: right, thats looks ok
12:12 AM rue_: dc amps is nice tho
12:12 AM nuxil: dc amp is a must when doing electronics
12:12 AM rue_: tell that to the dc-dc I blew up today
12:13 AM rue_: I spent $4 on the damn thing
12:13 AM rue_: took a month to get here
12:13 AM nuxil: i mean. its more usefull than ac amp mesuring.
12:14 AM nuxil: my fluke mesures AC amp fine in DC mode. it just shows it as negative. so i dont get it why this thing can only do AC amp lol.
12:14 AM rue_: so, my cnc spindle controller blew up 2 transistors
12:15 AM rue_: the first was like, "well, its 15 years old, maybe it just gave out"
12:15 AM rue_: the second was like "nope something is severly wrong"
12:15 AM rue_: I'm wondering if the motor is shorting out
12:16 AM rue_: its a 10A transistor, which is way over the load of the motor
12:16 AM rue_: I could build a whole new controller, ...
12:16 AM rue_: or put in a IGBT
12:16 AM rue_: ...}:)
12:17 AM nuxil: got no current watch"dog" ?
12:20 AM rue_: 100V motor,
12:20 AM rue_: I'm not even sure the wire to it could take 10A
12:20 AM nuxil: o.O
12:20 AM rue_: it might be flyback, I didn't check the diode when I replaced the transistor
12:20 AM rue_: but the driver is a module, I can "just" replace it
12:21 AM rue_: I'd like to switch it to optical feedback too tho, right now its using a small dc motor as a tach, I have no idea what shape its brushes are in
12:23 AM nuxil: get some of these for your motor :p http://media.oem.se/Archive/ProductImages/images/bigimg/73496.jpg
12:24 AM rue_: its single phase universal
12:25 AM nuxil: ofc. cnc :p
12:25 AM rue_: yes and no, ideally a 3 phase brushless
12:26 AM rue_: but, by rights I'd ahve to repalce the rest of the machine
12:26 AM rue_: http://ruemohr.org/~ircjunk/projects/cnc/p1030107.jpg
12:26 AM nuxil: :D
12:28 AM nuxil: now you made me want to build a cnc muself :D
12:28 AM rue_: http://ruemohr.org/~ircjunk/projects/cnc/dscn7641.jpg
12:28 AM rue_: thre is the spindle motor
12:28 AM rue_: and tach
12:28 AM rue_: the old stereo amp in the background is the speed controller for it
12:29 AM rue_: dremels cant take vibration, I killed two on that machine
12:29 AM nuxil: what the precition on that home made thing ? how many mm per step ?
12:30 AM rue_: hah, way more than the play
12:30 AM nuxil: have you mesured it ?
12:30 AM rue_: its 14000 - 16000 steps/inch
12:31 AM rue_: so "about .07 thou"
12:31 AM nuxil: how much goes it go off alignement of you go from 0,0 to x,y then back to 0,0 ?
12:31 AM rue_: havn't checked it latley
12:31 AM rue_: prolly within 0.12mm
12:32 AM nuxil: ok.
12:32 AM polymorph: [05:45] <nuxil> can anyone reccoment a ok multimeter for around 300dollars max, - what planet are you on? my 60$ MY-64 works ok
12:33 AM rue_: OMG
12:33 AM rue_: that zip file has the source I thought I lost!
12:37 AM polymorph: rue_: inductive spikes, and brushes wear, and bearings die
12:37 AM nuxil: polymorph, so whats wrong with wanting a mid range quality multimeter? i had my fluke 12b since forever. and it time to retire it.
12:37 AM rue_: because its out of fassion
12:37 AM rue_: its old
12:38 AM polymorph: nexyou could send it over ;>
12:38 AM nuxil: hu ?
12:38 AM polymorph: nuxil:
12:38 AM rue_: you ARE going to be a GOOD consumer and buy a new $300 meter every 6 months, right?
12:38 AM polymorph: people around here earn less than 400$ a month
12:39 AM rue_: you know that because people only ever keep them for 6 months, they are only designed to last 7 months before they fail
12:39 AM nuxil: rue_, lol no i will buy fluke with life time warranty or some other well known brand :)
12:39 AM polymorph: rue_: you only turn on off ?
12:39 AM rue_: why would you design something to last much more than 7 months if EVERYONE throws them out at the 6 month mark to get the new model?
12:40 AM rue_: polymorph, it uses a TL494 chip to do pwm on the motor
12:40 AM rue_: w/ no filter
12:40 AM polymorph: haha
12:40 AM polymorph: ad filter
12:40 AM rue_: heh, come to think of it, there is no input filter either
12:40 AM rue_: mmmmmmm
12:41 AM rue_: full wave rectified 60Hz ac
12:41 AM polymorph: LC lowpass on half bridge and it wont blow up
12:42 AM rue_: its not ever blown up before, I'm inclined to think something is wrong :)
12:42 AM nuxil: to small flyback diodes :p
12:42 AM polymorph: btw those MJ13007 and alike transistors are quite beefy on computer psus
12:43 AM rue_: I have a high speed TO-220 diode on it
12:43 AM polymorph: but to catch inductive spikes in a half-bridge you need 2 parallel diodes
12:44 AM rue_: the transistor is a 2SC3320
12:44 AM rue_: 400V 15A
12:45 AM rue_: I only had 2 (in forever?) so I'm gonna have to find something else anyhow
12:46 AM rue_: but I should check the brushes
12:47 AM rue_: http://ruemohr.org/~ircjunk/projects/cnc/33.jpg
12:47 AM rue_: anyone good with exif extraction?
12:47 AM polymorph: gthumb knows
12:48 AM rue_: see anything in it?
12:50 AM rue_: looking for a date
12:50 AM rue_: bah, no date
12:50 AM rue_: no anything
12:51 AM polymorph: well it is old, are you sure there was exif back then? ;>
12:51 AM rue_: :|
12:51 AM polymorph: or is this a thumbnail? ;>>
12:51 AM Thrashbarg: ExifLoader: The data supplied does not seem to contain EXIF data.
12:51 AM rue_: maybe I can find the origional of the digital camera images
12:52 AM polymorph: oh
12:52 AM rue_: 2006
12:52 AM polymorph: well edited images can strip and usually do
12:53 AM rue_: the digital cam images were scaled, but the webcam ones were direct
12:53 AM rue_: such a low res-crappy image needed no processing
12:53 AM rue_: so, that speed controller goes back to atleast 2006
12:53 AM rue_: so, yea 12 years
12:54 AM rue_: and it just started popping transistors
12:55 AM rue_: the machine itself is about 20 years old
12:56 AM rue_: still using the same threaded rod drives
12:56 AM rue_: and motors
12:56 AM rue_: and mtoor drivers
12:57 AM rue_: and parallel ports
12:57 AM rue_: I upgraded to a vga monitor tho
12:57 AM rue_: the orange crt was looking a bit tooo dated
12:59 AM polymorph: did it earn money? ;>
01:00 AM rue_: hell no
01:00 AM rue_: not a dime
01:00 AM rue_: it was built for $100
01:00 AM rue_: ( I was given a grant from a family friend)
01:01 AM polymorph: ;/ why did you not make something cool with it?
01:01 AM rue_: I did
01:01 AM polymorph: it could have been working 24/7
01:02 AM rue_: searching for iamge
01:03 AM rue_: posting image...
01:04 AM polymorph: btw you could have put a webcam on milling heod
01:04 AM polymorph: it can be used for auto align, or calibration or even automatic jobs
01:05 AM rue_: http://ruemohr.org/~ircjunk/art/box.jpg
01:05 AM rue_: I did that, I was supposed to make and sell a bunch of them
01:05 AM rue_: but I dont have a marketer, and I'm not good at that kinda thing
01:06 AM rue_: I still have the box, I suppose I could take a new image...
01:07 AM rue_: we have the technology!
01:07 AM rue_: buuuuuuuuuuuut I'm building a capacitor meter at this exact moment
01:08 AM polymorph: i guess if you make an ad you could have sold at least 10 in 10 years
01:18 AM rue_: haha I started that pcb drill positioner back in 2003
01:18 AM rue_: OMG..
01:18 AM rue_: ah, there is an image of the cnc in 2003, same controller
04:02 AM day_ is now known as day
05:23 AM Emil: Jartza: nice
05:23 AM Emil: that's pretty awesome
05:23 AM Emil: but I dont see how you need 2k leds for it :D
05:23 AM Emil: a single led should illuminate a single charactee
05:24 AM Emil: and 11x11 grid should do all
06:12 AM Jartza: Emil: I'm now going for 12x10 grid
06:13 AM Emil: but I mean
06:13 AM Jartza: http://i.imgur.com/muBBmOB.png
06:13 AM Emil: Whatcha need 2k for :D
06:13 AM Jartza: yea, that's 120 leds
06:13 AM Emil: of course
06:13 AM Emil: I mean
06:13 AM Emil: I'd like to have 2k ws2812bs
06:13 AM Emil: but I don't neeed to have that :D
06:13 AM Jartza: I just ordered 500 of them more
06:13 AM Jartza: they are like 5 cent each
06:14 AM Emil: wot
06:14 AM Emil: from wher
06:14 AM Jartza: same place I ordered the 200 for testing
06:14 AM Emil: Linkzor
06:14 AM Emil: saatana
06:14 AM Jartza: they also arrived very quick, like in 10 days
06:14 AM Jartza: https://www.aliexpress.com/item/10-1000pcs-WS2812B-4pins-5050-SMD-Black-White-version-WS2812-Individually-Addressable-Digital-RGB-LED-Chip/32810203444.html?spm=a2g0s.9042311.0.0.0h71Ei
06:15 AM Emil: nice
06:15 AM Emil: Though, it is funny, I have developed an aversion to ordering components from china :D
06:15 AM Jartza: 1000 of them 50.03€
06:16 AM Emil: That's pretty good
06:16 AM Jartza: Emil: for "real use" I order from farnell/digikey/mouser but for these stupid hobby projects, aliexpress is fine
06:16 AM Jartza: like those special ones, I didn't find those leds from "reputable" distributors
06:17 AM Jartza: they also come in PnP tape, so could be used for PnP builds too
06:17 AM Emil: Yeah I mean
06:18 AM Emil: yeah
06:18 AM Emil: and it's annoying as fuck that western component providers don't deliver china chips
06:18 AM Emil: like ch34g
06:18 AM Emil: ch340g*
06:19 AM Jartza: yeah
06:19 AM Jartza: or che ch341
06:19 AM Jartza: *the
06:20 AM Jartza: but yea. at least that seller sends you a reel if you order 1000 leds
06:20 AM Emil: is ch341 better?
06:21 AM Emil: But like, checking aliexpress, ordering 100 ch34x is like 30 cents a pop :D
06:21 AM Emil: While a (granted more reputable and smaller) microshit or silicon labs is >1.3€
06:21 AM Jartza: ch341 can be used to make parallel port too :)
06:21 AM Emil: though, hmm, lets check volume pricing
06:21 AM Emil: Oh, that's pretty good
06:23 AM Emil: yeah from mouse cp2102 is 1,25€/pcs at 50
06:38 AM polprog: reorganized parts storage in workshop
06:39 AM polprog: i need some transparent boxes with many separate containers and some bigger boxes
06:39 AM polprog: 3x5x3 cm drawers dont quite cut it
06:42 AM Emil: >https://emil.fi/d/2018-01-20_14-41-37_qOdi2QZe.png
06:42 AM Emil: >strong
06:42 AM Emil: >10k
06:42 AM Emil: :D
06:45 AM Emil: Also
06:45 AM Emil: what the fuck
06:45 AM Emil: https://emil.fi/d/2018-01-20_14-45-09_tPfNDO3C.png
06:46 AM Emil: If my calculations are correct
06:46 AM Emil: 450kB/s is 3,6Mb/s
06:47 AM Emil: How the _fuck_ can 3Mbaud maximum speed achieve 3,6Mb/s :DDD
06:48 AM Emil: since 3Mbaud means 3M symbols per second and uart always has 1 start and at least 1 stop bits
07:00 AM polprog: looking at those china usb-uart chips?
07:00 AM polprog: i like the 2102 one
07:02 AM wondiws: I've been told Dean Camera used to hang out in this channel. Where is he? :P
07:18 AM Jartza: 1 usEEEEEswv cccccccccccvvv
07:18 AM Jartza: thanks, cat
07:21 AM Emil: polprog: yeah silabs cp2102x is excellent
07:21 AM Emil: but its also four times as pricy
07:21 AM Emil: And the china one performs pretty much just as well
07:22 AM Emil: okay, the silabs one doesnt need externals
07:23 AM _ami_: Jartza: Emil: you could do i2c too using ch341 ;)
07:23 AM polprog: i just ordered a second usb-uart bridge. was planning to solder another max485 but family plans are incompatible :D i guess ill try that tomorrow
07:24 AM _ami_: polprog: i added usb to serial support into FASTUSBasp today. https://github.com/amitesh-singh/FASTUSBasp#serial-connections
07:24 AM LeoNerd: My general opinion on all of these USB-UART bridges is that they're all crap, as almost none of them handle BREAK conditions properly
07:24 AM LeoNerd: But meh
07:24 AM polprog: whats a break condition?
07:25 AM _ami_: LeoNerd: i think it depends upon driver ?
07:25 AM Emil: LeoNerd: explain
07:26 AM Emil: Because I pretty much agree with _ami_ about support being dependant on driver
07:26 AM LeoNerd: _ami_: It -might- be about the drivers, but given as all the chips suffer the problem that they don't document anything and just let you download some opaque binary blob from the manufacturer as a driver, we can't really tell
07:27 AM LeoNerd: If someone can find me a datasheet about a CP2102 or a CH340 or any of that crowd, and point me at the part where it tells me what USB commands I have to send and receive in order to send or receive a break condition, then I'll stand corrected
07:27 AM LeoNerd: I've spent a lot of time looking and I couldn't find one
07:27 AM mudkip908_ is now known as mudkip908
07:27 AM Emil: Whatcha mean with break condition
07:28 AM LeoNerd: A serial line break condition
07:28 AM LeoNerd: I'm not sure what else to call it because that's its name
07:28 AM LeoNerd: When you pull the line low (into non-idle) state for more than one word time, such that it definitely appears as a framing error
07:28 AM LeoNerd: A lot of protocols (e.g. DMX512) do that as a synchronisation mechanism
07:28 AM Emil: ah
07:28 AM _ami_: LeoNerd: are you talking abt Control line state and Set Line coding state?
07:29 AM LeoNerd: _ami_: No, I'm talking about /break/
07:29 AM polprog: LeoNerd: thanks!
07:30 AM LeoNerd: I sometimes almost wonder whether the people who make some of these chips don't even know what a break condition is... but then I think that surely, if you're going to own and run a silicon chip fab and design and make your own USB-UART bridge chips, then *surely* you know what a break condition is...
07:30 AM Emil: yeah so
07:30 AM Emil: LeoNerd: cp2102 talks about break condition ope ly
07:31 AM Emil: LeoNerd: so its driver issue
07:31 AM Emil: also
07:31 AM LeoNerd: Ahyes? Mm.. maybe that's one of the ones that does. Some do, just most don't
07:31 AM LeoNerd: Does it talk about how to send one, also?
07:31 AM Emil: LeoNerd: lulz
07:31 AM Emil: You talked about cp ;)
07:31 AM LeoNerd: Ohwait, maybe that's the chip that can send them but not receive them
07:32 AM Emil: I just googled cp2102 break
07:32 AM Emil: and got instant results
07:32 AM Emil: LeoNerd: anycase
07:32 AM Emil: due to the nature of character devices
07:33 AM Emil: you can only detect break through auxilary channels
07:33 AM LeoNerd: There's ways to ask for it
07:33 AM polprog: 2018 and we still cannot get sane serial comms :^)
07:34 AM _ami_: btw, LeoNerd what is a break condition in usart communication?
07:34 AM polprog: people used to do ppp over rs232. Ill have to try it with those uart dongles not that i have two
07:34 AM LeoNerd: I forget its name, but there's an ioctl you can set that asks for incoming breaks to be encoded as a special byte sequence, and then it also escapes out incoming data that looks like that so you can distinguish
07:34 AM LeoNerd: _ami_: I believe I explained already
07:34 AM LeoNerd: Gah. I didn't want to start this morning off having to each UART basics to everyone individually on IRC
07:34 AM _ami_: :)
07:35 AM polprog: dont worry, i googled and got an answer a couple seconds before you said what it is
07:35 AM Emil: LeoNerd: man termios talks about receiving and sending breaks
07:36 AM LeoNerd: indeed
07:36 AM Emil: polprog: terminals and uart channels are _insane_
07:36 AM Emil: the api is old and haphazard as fuck
07:36 AM polprog: arent we all insane
07:36 AM Emil: Hmm
07:36 AM LeoNerd: Ah there we go, you set PARMRK but not IGNBRK or BRKINT
07:36 AM polprog: im very happy that i got termios ( i think ) to work on linux. now i can automate some tests
07:36 AM Emil: I wonder 2hay \377 \0 \0 mea s
07:37 AM LeoNerd: Then breaks appear as that special sequence
07:37 AM Emil: LeoNerd: yeah but
07:37 AM Emil: if
07:37 AM Emil: \377 exceeds the maximum byte value :D
07:37 AM polprog: isnt that 0xFF
07:37 AM LeoNerd: It doesn't. Thats.. yes that
07:37 AM polprog: yeah i did that with termios
07:37 AM Emil: in octal?
07:38 AM polprog: who tf uses octal
07:38 AM Emil: octal should start with a 0
07:38 AM LeoNerd: But anyhow, that's just the _termios_ abstraction layer. It still relies on underlying hardware's ability to report break conditions
07:38 AM LeoNerd: I don't believe all of it does
07:38 AM polprog: i need to change emacs' mode to show me special chars as hex
07:38 AM Emil: LeoNerd: and we have establishd thah cp2102xx supports break :D
07:38 AM polprog: Emil: \xxx is octal where x is a digit. or something like that
07:38 AM LeoNerd: We've only established it supports /transmitting/ a break
07:39 AM Emil: polprog: it must start with 0
07:39 AM Emil: LeoNerd: and rwveiving
07:39 AM Emil: rtfm ;)
07:39 AM LeoNerd: Point me at where
07:39 AM polprog: Emil: oh, you are right
07:40 AM Emil: your driver must expose it thoigh
07:40 AM LeoNerd: GAHH
07:40 AM LeoNerd: I don't care about driver
07:40 AM LeoNerd: I care about the chip. I want to know how /the chip/ handles this
07:40 AM LeoNerd: IF I know how the chip handles it then I can fix the driver if necessary
07:40 AM Emil: Have you tried googling for "cp2102 break condition"?
07:40 AM LeoNerd: Yes. Lots of times
07:40 AM LeoNerd: I never really got anywhere
07:41 AM LeoNerd: I want to see tables of little byte buffers telling me what bits of what registers mean what things
07:41 AM LeoNerd: I never found anything like that. I just found advertising literatures saying "yes our chip can do X, Y and Z"
07:43 AM LeoNerd: Random example: this CP2102 datasheet hosted by adafruit looks to be the chip's sheet. It talks about the physical pins and says absolutely nothing about USB comms: https://www.sparkfun.com/datasheets/IC/cp2102.pdf
07:43 AM LeoNerd: Er.. sparkfun even
07:45 AM polprog: id just take some dongles and write a small program in wahteer that sends a break condition, see which ones send
07:46 AM LeoNerd: I did that. I found only the real FTDI FT232s do it
07:47 AM polprog: well, thats all when it comes to chink chips then
07:47 AM polprog: good to know
07:48 AM Emil: LeoNerd: fuxking google links
07:48 AM Emil: emil.fi/d/AN571.pdf
07:49 AM LeoNerd: Ah excellent :) I didn't think they'd published docs on that
07:49 AM Emil: ie you didnt google ;)
07:49 AM LeoNerd: I expect I did, but didn't find the magic combination of words
07:50 AM LeoNerd: All google (or anything else) does is finds pages that seem to contain the combination of words you type in. If you don't know what words to type, it's hard to find anything
07:50 AM polprog: Emil: that looks useful. thanks
07:51 AM LeoNerd: Ah, slightly annoying, it seems that in transmission it's only an asynchronous break
07:51 AM LeoNerd: So the driver would have to time it properly with buffer flushing. That's a shame :/
07:53 AM LeoNerd: Ah but you can do in-stream synchronous breaks when receiving at least, so that's nice
09:32 AM rue_bed: handshaking?
09:32 AM rue_bed: I was really amazed when I could find NO TIMING diagrams for hardware handshaking
09:49 AM Emil: rue_bed: regarding?
09:58 AM antto: LeoNerd no, google looks at your words but shows results for something different
09:58 AM antto: something that's currently "popular"
09:59 AM antto: when you ad an important keyword to your search, which should in theory get you right on spot, google decides it's a difficult keyword and skips it, thus showing you the same results as the previous attempt
10:12 AM rue_bed: serial ports have a thing called hardware handshaking, its wires that co-ordinate the transfer of data between two devices
10:13 AM rue_bed: google is definitly not a search engine anymore
10:16 AM antto: google is "type some text here so that we know what kind of ads to burry you in"
10:17 AM rue_bed: thats a good point, its a biased media direction engine
10:46 AM lukeer: Hi there. I'm developing on Linux in vim with avr-gcc and avrdude for ATtiny2313. Already flashed (ICSP) through STK500. AFAIK the latter cannot debug. What hardware would you advise to take for debugging? I'd like to go for gdb. Is it possible to use gdb in such a way? Or is there another debug software?
10:53 AM Emil: lukeer: so
10:53 AM Emil: here's the thing
10:53 AM Emil: you don't really need real debugging on avrs
10:53 AM Emil: and
10:53 AM Emil: well
10:53 AM Emil: debugWire is not open
10:54 AM rue_bed: lukeer, I would use an led and a resistor for debugging
10:54 AM Emil: I recommend uart/spi/whatever but an io pin is fine, too
10:54 AM rue_bed: if I need to get fancy, I'd throw in a scope or logic analizer
10:55 AM Emil: lukeer: but
10:55 AM Emil: if you really want debug
10:55 AM Emil: in system debug
10:56 AM Emil: then buy the avr dragon and use atmel studio
11:05 AM nuxil: they havent changed the name yet? to micochip avr studio or something :p
11:36 AM Tom_L: there's a better one than the dragon now for about the same price
11:37 AM Tom_L: if that's the way you wanna go
11:37 AM Emil: Tom_L: name/link
11:37 AM Tom_L: i'm looking
11:38 AM Tom_L: https://www.digikey.com/product-detail/en/microchip-technology/ATATMEL-ICE-PCBA/ATATMEL-ICE-PCBA-ND/4753383
11:38 AM Tom_L: if you get it with the case and cables it's quite a bit more
11:38 AM Tom_L: https://www.digikey.com/product-detail/en/microchip-technology/ATATMEL-ICE/ATATMEL-ICE-ND/4753379
11:38 AM Tom_L: same thing
11:39 AM Tom_L: but you don't get any cables with the dragon either
11:40 AM Tom_L: and that one does their arm stuff too i think
11:40 AM polprog: yeah. they didnt even bother to mount the zif socket...
11:46 AM rue_: still like toms programmer
11:46 AM rue_: tho, latley, I'm using the arduino loader quite a bit
12:51 PM lukeer: And is there a way around the Studio IDE? Some fancy console-style in-system-debugging?
12:57 PM polprog: i need to get around making toms programmer
12:57 PM polprog: heh
01:04 PM nuxil: lukeer, openocd ?
01:05 PM learath: nuxil: does that work?
01:07 PM nuxil: learath, maybe. idk. http://sysprogs.com/VisualKernel/tutorials/raspberry/jtagsetup/ https://github.com/synthetos/PiOCD/wiki/Using-a-Raspberry-Pi-as-a-JTAG-Dongle i got this bookmarked cos i intend to do that in the future.
01:07 PM rue_shop4: Tom_L, have any spare boards? you built them all didnt you?
01:07 PM nuxil: http://openocd.org/ for OpenOCD 0.8.0 release More ATmega parts supported.
01:07 PM nuxil: and not its at 0.10
01:07 PM nuxil: *now
01:33 PM Emil: lukeer: dont get me wrong
01:33 PM Emil: lukeer: I do not recommend using atmel studio
01:34 PM Emil: your setup (vim and cli toolchain) is perfect
02:19 PM lukeer: Emil: You just don't value in-system debugging that high, do I get that right?
02:26 PM Roomsaver: A few days ago I asked about flashing my GBxCart RW using an Arduino and was getting help but my laptop died and I lost the charger. I have since gotten another charger but I still need help with the initial issue.
02:39 PM Casper: Roomsaver: so... you are kinda a laptop necromancer, and use a zombie laptop!
02:48 PM Roomsaver: I just ordered another charger from amazon and got it today lol
02:58 PM Roomsaver: Anyways after a lot of troubleshooting i was told to run this command: avrdude -p atmega8515 -c avrisp -P /dev/ttyUSB0 -b 19200 -U flash:w:/home/roomsaver/Downloads/r7.hex but I'm still having errors
03:11 PM polprog: Roomsaver: still content mismatch? you can run in verbose modr as well : -v or -vv
03:21 PM Emil: lukeer: well, you can ask a lot of people on this channel
03:21 PM Emil: and pretty much all of them say in-system debug (through debugwire/jtag) is pretty useless on an avr
03:22 PM Emil: Roomsaver: what error
03:24 PM Roomsaver: So after running that code you sent a few days ago I get: "avrdude: AVR device initialized and ready to accept instructions" "Reading | ###### | 100%" "avrdude: device signature = 0x000000 (retrying)" "avrdude: Yikes! Invalid device signature."
03:25 PM Emil: you arent connected correctly
03:26 PM Emil: or you have wrong fuses on the rw thing
03:26 PM Emil: signature 000000 means that the miso pin is always reading low
03:27 PM Emil: you must usw 6 pins for isp
03:27 PM Emil: mosi, miso, sck, rst, vcc, gnd
03:27 PM Emil: miso goes to miso and mosi to mosi
03:27 PM Roomsaver: I am, I have the pinout for the gbxcart's header thing but not my arduino
03:28 PM Roomsaver: If i had plugged them in in reverse would it have fried the cart?
03:29 PM Roomsaver: *the gbxcart
03:31 PM Roomsaver: Well I flipped the gbxcart around and got a different error
03:31 PM Casper: Roomsaver: the only pin to not mess around is the GND and VCC
03:31 PM Roomsaver: "Device signature = 0x502000" "Expected signature for ATmega8515 is 1E 93 06
03:31 PM Casper: Also, don't forget power... may be provided by the programmer, or provided by the board
03:31 PM Casper: but have to be provided somehow
03:32 PM Roomsaver: I have the arduino (i'm using to program the gbxcart) plugged into my laptop and the gbxcart plugged into the arduino's isp header
03:32 PM Casper: but what provide power?
03:33 PM Roomsaver: The arduino is receiving power over usb
03:33 PM Emil: Roomsaver: because last time you were very unclear
03:33 PM Emil: this time we require pictures
03:34 PM Roomsaver: Alright, I'll provide pictures in a bit
03:34 PM Casper: I'm talking about the hbxcart
03:34 PM Casper: need to have power
03:36 PM Roomsaver: Wouldn't it receive 5v over VCC? or should I plug in power into the gbxcart
03:36 PM Roomsaver: also, pictures incoming
03:36 PM karols146: Anyone got rigol DS1054 and connected it to sigrok ?
03:37 PM Casper: Roomsaver: depending on the programmer and also some switch on some, it may not provide power
03:37 PM Emil: Casper: hes using arduino isp
03:38 PM Roomsaver: https://imgur.com/a/V9o3s
03:38 PM Roomsaver: Here's my setup currently
03:41 PM Casper: emil: never used the uno so don't know if it provide vcc on the isp header
03:42 PM Roomsaver: first two images is the gbxcart and the schematic for it
03:42 PM Roomsaver: are the*
03:50 PM Roomsaver: Casper: providing power to the gbxcart still results in the above "Invalid device signature" error
03:50 PM Casper: check the pinout.... and be sure that the 19200 is right
03:53 PM Roomsaver: I can't get a pinout for the uno but i do have schematics for the gbxcart but looking at the arduino's traces, pin 2 appears to be 5v
03:54 PM Roomsaver: Like I'm not sure if the pinouts would be the same between a clone and an official uno
03:55 PM Roomsaver: But an actual uno's isp pinout is the same as the gbxcart's
04:15 PM Emil: Casper: yeah they can
04:16 PM Emil: Roomsaver the pinss are always the same
04:20 PM lukeer: How come in-system debugging is regarded useless on avrs? I like it very much (on dsPICs and PIC32s at work), every time it works.
04:21 PM lukeer: Is that specific to avr? Or specific to 8-bitters? Or specific to JTAG and debugwire?
04:23 PM Casper: there is other mean to debug, and the debuggers from what I read is pretty basic
04:46 PM Emil: lukeer: part elitism part shit debuggers part boe lrn2code
04:47 PM Emil: I have no shame in admitting that I look down to people who need debuggers on microcontrollers :D
04:50 PM polygon: hello
05:36 PM polygon: i get the job ? https://pastebin.com/H4GgQNNL
05:37 PM learath_ is now known as learath
05:40 PM Emil: hm?
05:41 PM Emil: that's shit
05:42 PM polygon: Emil: it is the new trendy programmer test
05:43 PM polygon: https://www.youtube.com/watch?v=QPZ0pIK_wsc
08:10 PM nuxil: im been biding on a new fluke 287. to bad the biding ends in 6 days. i have placed a bid of 202.5 dollars. if this holds for 6 days i'll start beliving in god.
08:40 PM Emil: polygon: silicon cowboys was great!
08:41 PM Emil: Gotta watch Halt and Catch Fire, too
08:41 PM Emil: nuxil: haha :D
08:44 PM nuxil: would be nice to have one tho. i dont beive my bid will hold.
08:45 PM nuxil: my budget is $300 so i can still bid some :)
11:51 PM day__ is now known as day