#avr Logs

Feb 02 2018

#avr Calendar

12:40 AM rue_: arrow is that desperite eh?
12:43 AM nuxil: trying to cap customers fomr digikey and mouser i guess
12:43 AM nuxil: *from
12:43 AM rue_: they are prolly almost in death throws
12:43 AM rue_: I mean, who buys from arrow?
12:47 AM rue_: and jameco is squirming
03:33 AM day: distributor ranting time?
03:33 AM Haohmaru: i'll allow it
03:34 AM day: i like how mouser charges 20EUR shipping cost, but ships free if you order >50EUR
03:34 AM Haohmaru: don't they all do this?
03:34 AM day: not ordering that often
03:34 AM Haohmaru: the silly penalty
03:35 AM day: i would like to see how they pack orders. how much they automate etc.
03:36 AM Haohmaru: if you order two resistors, the cost of some employee physically going to pick them up and package them, plus the actual papers and sh*t cost more than those two resistors
03:36 AM day: imagine your run through a warehouse to add that one 0201 500 OHM resistor the customer ordered xD
03:37 AM Haohmaru: while eating a donut
03:37 AM day: Haohmaru: i wonder if they have like a "pick and place machine" for that
03:37 AM day: most components are on wheels so it shouldnt be to difficult
03:38 AM polprog: even better when the customer ordered one resistor like that
03:38 AM Haohmaru: maybe the components are in large containers with ID tags that get carried from their shelf to an employee, and then back onto the shelf by a robot
03:38 AM Haohmaru: the LEGO factory has something similar-ish
03:39 AM polprog: what i hate about tme is the sheer amount of pacakging they use (compared to farnell)
03:40 AM Haohmaru: do they accept paypal?
03:40 AM polprog: i think they do
03:40 AM polprog: i dont have a paypal account tho, just enetered my card details
06:12 AM Jartza: polprog: in my experience, farnell sometimes overpacks stuff extensively
06:14 AM _ami_: amazon has this tendency :P
06:15 AM polprog: ugh. time to debug when im back home
07:21 AM polymorph: hi
07:22 AM polymorph: was plasmaexplosion welding some stuff
07:26 AM _ami_: polymorph: do u use windows?
07:27 AM polymorph: sometimes, but i usually just put heatshield foil over them
07:27 AM _ami_: :)
07:27 AM _ami_: windows OS :)
07:27 AM polymorph: oh, no
07:27 AM _ami_: polymorph: https://github.com/amitesh-singh/FASTUSBasp/issues/4
07:28 AM _ami_: one user reports that this composite device (vendor + usb-cdc) works on windows 7 but fails to enumerate on windows 10
07:28 AM polymorph: _ami_: oh i see. your project? ;}
07:28 AM _ami_: polymorph: yes.
07:29 AM polymorph: That is cool dude
07:29 AM polymorph: i will look into it and tell you if i see anything to be improved
07:30 AM polymorph: _ami_: will it support avr and jtag too?
07:31 AM _ami_: polymorph: thanks.
07:31 AM _ami_: polymorph: just AVR with serial support for debugging.
07:31 AM _ami_: AVR ISP*
07:32 AM polymorph: _ami_: you should go for a universal solution that will work with openocd maybe? :) and program arm with it too
07:32 AM _ami_: it can be done. sure. :)
07:32 AM _ami_: SWD is not very hard to hack i think.
07:32 AM polymorph: I have a dapa programmer now that is buffered, and one unbuffered
07:33 AM polymorph: but i saw that xil programmer is supported by avrdude and openocd too
07:33 AM polymorph: so now i want a universal
07:34 AM polymorph: _ami_: only need 2 cables on it with 2 connectors
07:34 AM polymorph: :)
07:34 AM _ami_: nice.
07:34 AM polymorph: heehehe i have created 2 multimeter measurement attachments
07:37 AM polymorph: One is what i call vampire, it is a plastic clip that i have integrated a supersharp stainless steel needle, it pierces cables' insulation when it latches on, the other is just a standard measurement tip with a supersharp stainless steel needle, but it has a removable plastic protector cup too.
07:38 AM polymorph: no more damn how i measure on this fkin cable
07:40 AM polymorph: the stainless steel needle easily pierces through oxide layers too
07:41 AM _ami_: polymorph: nice. do u have pic of this ?
07:41 AM _ami_: like to see it how u made it.
07:41 AM polymorph: _ami_: you could spoof another jtag programmer for openocd maybe ?
07:42 AM polymorph: _ami_: will take pics ;>
07:42 AM _ami_: i am open to ideas..
07:42 AM polymorph: where do you usually dump pic on net?
07:42 AM _ami_: https://imgbb.com/
07:43 AM polymorph: _ami_: can you spotweld?
07:44 AM polymorph: stainless steel is not easy to join to copper cable
07:45 AM polymorph: soldering does not work
07:46 AM _ami_: never done it before
07:47 AM polymorph: _ami_: i think you should create an usb id that is recognized by avr programmers, and another one that is used by openocd - at the same time, and since they are different devices, you are 2 programmer at the same time
07:48 AM polymorph: if you were to connect an isp cable and a jtag cable to different lines then it would truly be parallel, but it is unnecessary, and ports can be shared
07:50 AM polymorph: for reference: http://elm-chan.org/works/avrx/rq/xilinx.png
07:50 AM _ami_: interesting..
07:50 AM polymorph: :)
07:51 AM _ami_: have not done/worked on jtag before.
07:52 AM _ami_: if you are interested to work on this, you are most welcome to join in. :)
07:52 AM polymorph: _ami_: you should, im going to stm32 from atmega too
07:52 AM _ami_: i shall give you permission on repo if u want.
07:52 AM polymorph: no need, i'll tell you ;>
07:52 AM _ami_: :)
08:00 AM polymorph: wondering if i can plasmaweld a screw to a lithium battery
08:00 AM polymorph: tightening it would ruin the batt though
08:01 AM polymorph: ;/
08:07 AM polymorph: what is the best connection option for lithium batteries in your opinion? if i run through a copper or chromium strip and drill a hole in it then i can screw cables on
08:16 AM polprog: https://www.youtube.com/playlist?list=PLIHphqCitRApRRhCgCJZoJpNVd7O9ZCLP
08:16 AM polprog: interesting
08:21 AM polymorph: sup polprog
08:22 AM polymorph: polprog: some nostalgia dance ? https://www.youtube.com/watch?v=ijC4YYNsOa0
08:23 AM polprog: back from work
08:24 AM polprog: browsing /r/deepintoyoutube and i found this post about a playlist of open univerosity lectures, amoung a bunch of other weird or interesting things
08:24 AM polymorph: polprog: check these https://www.youtube.com/watch?v=ypBfHbf9c98&list=PLG8HEGw_rTl8AabxWdIiTn5zkXQWYyKre&index=10
08:25 AM polprog: https://www.youtube.com/watch?v=IkmFgNUWA4A&list=PLBCjRnfUoza4tQvAjm_XxVEvs8q1tu3pM
08:25 AM polprog: that X-perience track is nice!
08:26 AM polprog: sometime ago on hackaday there was this serie of navy self-education materials. 24 pdfs or something like that, from super basics to radar tech
08:28 AM polprog: that military video still talks in terms of cycles per second :o
08:29 AM polymorph: yes,
08:30 AM polymorph: Hz
08:31 AM polymorph: polprog: magic fields https://www.youtube.com/watch?v=0tGrqaWMr0A
08:32 AM polprog: shame i havent taken my headphones.. the speakers on this laptop arent the nest. but it still sounds nice
08:32 AM polymorph: i just fixed my headset too, it had internally failed solder joints
08:32 AM polymorph: it will not fail again ;>
08:33 AM polprog: check this out: https://www.youtube.com/watch?v=Xc6E13MygOs
08:33 AM polymorph: composite concrete holds it stiff
08:36 AM polprog: time to go out eat something
08:36 AM polymorph: ya
08:36 AM polymorph: bb
08:36 AM polprog: gotta go. im thinking northfish
08:37 AM polymorph: lentil soup 4 me
08:38 AM polprog: bon apétit
08:39 AM polymorph: bon apétit
09:03 AM polprog: macdonalds is next to northfish on this food court and theyve put up those kiosks where you can order
09:03 AM polprog: tapping a touchscreen to get food looks just plain retarded
09:25 AM rue_: but its great to publically announce to everyone what your having for lunch
09:25 AM rue_: on nothing better than a huge touchscreen everyone can read
09:26 AM rue_: #whydoIcareanyhow
12:35 PM polymorph: my latest creation: The poker and the vampire https://ibb.co/cDbZER https://ibb.co/gdw1uR https://ibb.co/irQGTm https://ibb.co/ncV5M6
12:54 PM McDonaldsWiFi: rue_: do you think using several AND gates as a address decoder for an I/O is stupid?
12:54 PM McDonaldsWiFi: if thats all I have on hand :P
01:02 PM polymorph: McDonaldsWiFi: they did that all the time
01:02 PM McDonaldsWiFi: cool, I'm used to thinking of ideas and then learning how they are horrible later on lol
01:02 PM McDonaldsWiFi: ty ^^
01:05 PM polymorph: i have some 244, 373 and 245 ics from old motherboards, like 286 era
01:05 PM polymorph: used one for buffer in a dapa programmer
01:06 PM polymorph: now i have a tristate output dapa programmer that does not interfere with circuit while not programming
01:06 PM McDonaldsWiFi: oh thats awesome
01:07 PM McDonaldsWiFi: sounds a lot neater than me just using a bunch of transistors between my programmer and build lol
01:07 PM McDonaldsWiFi: to keep it isolated when not programmer
01:08 PM polymorph: :)
01:08 PM polymorph: 244 dude
01:10 PM polymorph: McDonaldsWiFi: https://assets.nexperia.com/documents/data-sheet/74HC_HCT244.pdf
01:14 PM McDonaldsWiFi: I've got 4 of these coming tomorow!
01:14 PM McDonaldsWiFi: tomorrow*
01:14 PM McDonaldsWiFi: :D
01:14 PM polymorph: :)
01:15 PM polymorph: i used to buy 100 of these cheap stuff, not worth it individually
01:16 PM polymorph: 100 opamps is like 10 eur for example
01:51 PM polymorph: i gave 2$ for a D16015AR, was it worth it?
01:59 PM McDonaldsWiFi: xD
02:07 PM polymorph: http://elm-chan.org/works/avrx/rq/xilinx.png - um btw if you skip the resistors on parallel port side the thing will be powered by parallel port pins if the mcu is low power consumption
02:09 PM polymorph: ofc the point was probably toincrease the driving capability, that requires a power supply like usb or molex 5V
03:16 PM polprog: polymorph: that music video you sent me is like the 90s in a singlr vid :P
03:16 PM polprog: now that i think about it
03:17 PM polymorph: ya
03:18 PM polymorph: some things last
03:19 PM polymorph: polprog: https://www.youtube.com/watch?v=wnVogeyPSC8 this is old Scooter, new ones are garbage
03:19 PM polprog: old scooter <3
03:19 PM polprog: im en route right now. whats the track title?
03:19 PM polymorph: Scooter - I'll Put You On The Guest List
03:20 PM polprog: mm
03:22 PM polprog: i was looking at my twitter feed and notives an stm8 mcu. i found a cheap st dev kit for it with an stlink like a nucleo has but in a smaller form factor. its a bit short of 10 eur. i think i will go for it
03:22 PM nohit: https://www.youtube.com/watch?v=4YxTa1AUqps
03:23 PM polymorph: somehow old good track find their way back, no matter what new gay hippies say about old music :)
03:23 PM polprog: from the old scooter i like "stuttgart" and "rhapsody in e" the most. but the rest is awesone as well
03:23 PM polprog: thise two are the most trance like
03:24 PM polymorph: and for example X-Perience - Magic Fields https://www.youtube.com/watch?v=oyeI157Z6BE 1.5M views, 1563 likes and 43 dislikes and comments love it stillp
03:25 PM polymorph: *500k views
03:26 PM polprog: do you know Members Of Mayday compilation CDs? https://youtu.be/5PM04-WD5DY
03:26 PM polprog: i have that one in a hardcopy
03:26 PM polprog: as as*
03:26 PM polprog: as a*
03:26 PM polymorph: heard of it the sonic empire but it was boring
03:26 PM polprog: sonic empire was so so.
03:27 PM polymorph: :) X-Perience - I Don't Care (Live Dance Haus 1997) https://www.youtube.com/watch?v=yqSiB-oDVl4 nobody was there to dislike it
03:28 PM polprog: gotta go ;) i put that on the playlist to listen to later
03:29 PM polymorph: bb
03:32 PM nohit: https://www.youtube.com/watch?v=eU5Dn-WaElI polprog check this out
04:06 PM mudkip908 is now known as Guest34116
04:42 PM nux__ is now known as nuxil
05:04 PM Guest34116 is now known as mudkip908
05:05 PM nohit: nuxil i made 20 buck order from arrow
05:05 PM nuxil: what did you order?
05:05 PM nohit: they promised Feb 7th as delivery
05:06 PM nohit: few op amps n stuff
05:07 PM nuxil: and im still googleing dmm's :p i cant deside what to get :\
05:07 PM nuxil: nohit, dhl that does the delivery ?
05:07 PM nohit: fedex
05:08 PM nuxil: hmm fedex.
05:08 PM nuxil: i dont hav fedex here. so how would that work.
05:08 PM nuxil: *we
05:08 PM nohit: i dont know
05:08 PM nuxil: would the normal post service do the delivery ?
05:08 PM polymorph: teleport
05:09 PM nuxil: if so. im not gonna order anything. cos. posten.no is one of the worst postal servive on this planet.
05:09 PM nuxil: its like they delay the mail on purpose.
05:09 PM polymorph: what would it be like to only buy blueprints that are 3d printed in your materializing chamber?
05:10 PM nohit: yeah. this is a test. if it works im gonna start using it for small orders
05:10 PM nuxil: i ordered stuff from digikey. it took the part 1.5 days to get from usa to oslo. and from oslo it been 3 days already and no mail.
05:10 PM nuxil: i just hate "posten" i rather use dhl or even postnord.
05:15 PM nuxil: polprog you awake?, VICHY VC8145 i think im gonna order that one, looks real nice.
05:24 PM nuxil: Why do manufacturers stamp "True RMS" as one of the specs on dmms? i find it silly.
05:24 PM nuxil: like why would brands like "fluke" need to put that on their dmm's
05:24 PM nuxil: it can either mesure the rms or it cant.
05:25 PM polymorph: nuxil: because they want you to thinkthat, or it is actually true :)
05:25 PM nuxil: is there another type of rms called "fake rms" or false rms ?
05:25 PM polymorph: Yes, most dvms do not true rms
05:25 PM nuxil: then its not rms. and should not have rms spamed on them.
05:26 PM polymorph: china likes to claim things thahtare false
05:26 PM polymorph: it is profitable to trick the naive
06:04 PM nuxil: meh.. i could not decide, so i just ordered a bryman 869 now ;D
06:05 PM nuxil: 184€ + 18.42€ in shipping. :)
06:08 PM nuxil: now i got a DBA
06:08 PM nuxil: "Drained bank account" :p
06:21 PM learath: hah
09:07 PM nuxil: wtf is this kind of bullshit in my datasheet for my atmega 324. they got examples with register names totaly wrong.
09:08 PM nuxil: http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-42743-ATmega324P_Datasheet.pdf
09:08 PM nuxil: take a look at page 217
09:08 PM nuxil: spi
09:08 PM nuxil: i had to add 0 to everyone. but this DDR_SPI and DD_MOSI i cant find.
09:09 PM nuxil: 'DDR_SPI0' undeclared (first use in this function)
09:09 PM nuxil: DDR_SPI0 = (1<<DD_MISO0);
09:09 PM nuxil: same if i remove the 0
09:14 PM nuxil: duh silly me :p
09:14 PM nuxil: sometime is good to rtfm :p
09:15 PM nuxil: "DDR_SPI in the examples must be replaced by the actual Data Direction Register"
09:33 PM rue_bed: heh
09:52 PM thornekey: hi i got an isp programmer (usbasp) and i have a atmega8515. im trying to put a hex file on the chip and im using ponyprog. but i cant change the com port. its greyed out. is there another program you can suggest?
09:53 PM nuxil: avrdude
09:54 PM nuxil: why on earth are you using ponyprog
09:54 PM nuxil: afik. its a discontinued app. no longer maintained.
09:54 PM thornekey: ohk
09:55 PM thornekey: ill look into avrdude thanks.
09:55 PM thornekey: was just using it cos the interface looked ok
09:55 PM thornekey: is avrdude command line based or has gui?
09:56 PM nuxil: its console.
09:56 PM thornekey: cool
09:56 PM thornekey: thnks
09:56 PM nuxil: i dont know if there is some gui frontend to it.
09:56 PM nuxil: i dont use gui. i just put everything in a make file and do .. make && make install
10:15 PM thornekey: nuxil, ok ive got it but its saying cant open usb.. (also the driver i installed for it was libusb-win)
10:16 PM thornekey: and should i mess with -b and -B or leave them defaulted
10:16 PM nuxil: use example -b 9600
10:17 PM thornekey_: ok ill set that to 9600
10:19 PM nuxil: avrdude -b 9600 -c usbasp -p yourchip -P youPort
10:19 PM nuxil: 9600 is low. but good to test if things work.
10:20 PM nuxil: also. im not using windows. so. yeah i dont know how avrdude looks for ports there.
10:21 PM nuxil: im using my rasberry pi as a programmer. and i use commands like example: avrdude -p attiny85 -P /dev/spidev0.0 -c linuxspi -b 14400
10:21 PM thornekey_: ok it seems to find it. but when i verify it has a content mismatch error
10:22 PM nuxil: is your reset pin low ?
10:22 PM nuxil: put the reset pin to gound on your chip if you didnt do that. then try again
10:22 PM thornekey_: ok
10:23 PM nuxil: if it sill fails. rechek every connection and that you got the correct programmer spesified
10:23 PM thornekey_: yea the reset pin of the controller (9) is definitely going to the RST pin of the isp
10:24 PM nuxil: got a multimeter ? i thin i seen people in here had problems before that the isp dosent pull the reset low.
10:25 PM thornekey_: yea ive got one
10:26 PM nuxil: is your isp a cheap clone of some sort ?
10:26 PM thornekey_: nah i went and bought it from one of the biggest electronic component/stuff store in my country
10:27 PM nuxil: ok. try to mesure the reset pin while you run avrdude. and see if you get 0 or 5/3.3 v there.
10:27 PM nuxil: and recheck connections once more :p
10:27 PM thornekey_: dumb question. put the other mulltimeter pin on the VCC?
10:28 PM nuxil: no.
10:28 PM nuxil: between gound and reset pin
10:28 PM thornekey_: oh yea, right aha
10:29 PM nuxil: dont short anything :p
10:32 PM nuxil: still nogo?
10:32 PM nuxil: btw. you sure you spesified the right programmer ?
10:33 PM nuxil: type avrdude -c foobar and see on the list if you selected the right one.
10:33 PM nuxil: and avrdude -p foobar for correct chip name
10:34 PM thornekey_: nuxill its 5v when i verify it drops to 0v :)
10:35 PM nuxil: ok that good.
10:35 PM thornekey_: and its definitely detecting atmega8515
10:35 PM nuxil: ok. still mismatch ?
10:36 PM thornekey_: yes
10:36 PM nuxil: hmm
10:36 PM thornekey_: i double checked that all isp pins are correct on the chip too
10:37 PM thornekey_: vcc to 40, gnd to 20, miso to 7, sck to 8, rst to 9, mosi to 6 as per the datasheet for atmega8515
10:39 PM nuxil: can you paste the entire output to pastebin.com
10:40 PM thornekey_: sure. just saw something set SCK frequency to 1500000 Hz. cannot set sck period.
10:41 PM nuxil: hmm you might need to use -B
10:48 PM thornekey_: oops net died. nuxil , it has stopped complaining about sck now
10:48 PM thornekey_: and now no mismatch
10:48 PM nuxil: so its uploading now ?
10:50 PM thornekey_: Hmm no its saying sck not set again. whenever i verify
10:50 PM thornekey_: ill take another look
10:51 PM nuxil: as for the fuses. im not gonna explain that to you. i be sitting her for 1 hour just typeing. so its best that you watch this video to get a understanding of the fuses in avr's works.
10:51 PM nuxil: https://www.youtube.com/watch?v=jP1NTgs-a-s
10:51 PM nuxil: but 1st get it to uploade the code. before you mess with fuses
11:07 PM nuxil: thornekey, any progress?
11:15 PM day__ is now known as day
11:44 PM nuxil: whos awake ?
11:48 PM nuxil: im having problems getting my atmega324 to act as a spi slave.
11:48 PM nuxil: this is the code i use taken from the datasheet with minor changes. https://pastebin.com/befaeXqw
11:49 PM nuxil: this is how the signal looks like. https://gyazo.com/f040eac585f7bd2e4302cf0955dbb80a
11:49 PM nuxil: see anything wrong ???
11:52 PM nuxil: my mcp4131 respons fine to this signal type.
11:52 PM nuxil: so there is something with the atmega that i need to do. but not sure what i done wrong.
11:53 PM nuxil: there is no errors when compiling the code.
11:54 PM nuxil: it just dosent repond to the data sent to it.
11:54 PM nuxil: rue_, you been messing around with spi slave. ideas ?
11:58 PM nuxil: one thins i see is that i can change DDRB |= (1 << DDRB5); to DDRB |= (1 << PB5); but that shouldnt matter right?
11:58 PM nuxil: *thing