#avr Logs

Aug 23 2017

#avr Calendar

02:20 AM Emil: Casper: yeah
02:22 AM Emil: Casper: and by that I mean predefined
02:23 AM Casper: there is no 64 bits on avr
02:23 AM Casper: there is a typedef, but it map to 32 bits
02:24 AM Casper: and it was actually somewhat a problem for a project I wanted to do
02:26 AM remkooo1 is now known as remkooo
02:32 AM remkooo1 is now known as remkooo
02:49 AM remkooo1 is now known as remkooo
02:57 AM Snert_ is now known as Snert
02:58 AM remkooo1 is now known as remkooo
04:49 AM remkooo1 is now known as remkooo
05:04 AM Emil: ...
05:04 AM Emil: Casper: that is factually wrong
05:04 AM Emil: I hope
05:04 AM Emil: At least I've seen some libc routines for 64 bits
05:06 AM Emil: Yeah it's there
05:06 AM Emil: Casper: you might be thinking about float/double
05:06 AM Emil: where double is actually alias to float
06:07 AM carabia: specing: hi!
06:09 AM specing: sup carabia
06:17 AM carabia: not much, still learning the intricacies of GNU Emacs
06:18 AM Haohmaru: a heroic task
06:18 AM carabia: that it is.
06:18 AM Haohmaru: i'm not that brave, by far
07:04 AM polprog: emacs rulez
07:04 AM Emil: Nano masterrace
07:05 AM carabia: pls
07:05 AM carabia: ed master race
07:05 AM polprog: i use vim for quick edits and emacs for big tasks
07:06 AM * Haohmaru hides his notepad.exe
07:20 AM Lambda_Aurigae: vim...bah...go vi
07:21 AM Lambda_Aurigae: or edlin
07:23 AM Lambda_Aurigae: years back we had this line editor on an old TI-980B system...was perfect for editing text files on a thermal teletype.
07:24 AM Lambda_Aurigae: I know! use sed for text editing!
08:59 AM carabia: of course, use a line editor because otherwise things might just be too easy, and you'd actually be productive!
09:00 AM polprog: magnetized needle
09:00 AM Haohmaru: productive? that's unaceptaburu
09:04 AM carabia: and yeah i was waiting for someone to come along with that stupid xkcd thing still thinking the comic has ever been remotely funny
09:05 AM polprog: you use the tools that are right for the job...
09:06 AM polprog: if i need to replace a comma with a dot in a 150kb file i dont do it in neither vim nor emacs, nor any other visual text editor but in sed
09:06 AM polprog: beacause that's the best tool to use
09:06 AM Emil: Nice
09:07 AM polprog: (ofc meaning replace all commas with dots)
09:07 AM Emil: Elecrow and DHL delivered (though I had to call 4 times to DHL to have the delivery work out, they attempted the "couldn't reach you" thing but I got it solved
09:07 AM Emil: Ordered last Friday
09:07 AM Emil: arrived today just moments ago
09:07 AM polprog: pcbs?
09:07 AM Emil: Yeah
09:07 AM Emil: Well
09:07 AM Emil: the students ordered them
09:07 AM polprog: the one you said had cancerous routing?
09:08 AM Emil: Nooo
09:08 AM polprog: phew
09:08 AM polprog: :D
09:08 AM Emil: All boards I have shown are mine
09:09 AM Emil: Though my students have not reached mastery yet :D
09:09 AM Emil: They still have things to improve on
09:09 AM polprog: so youre kind of a tutor there
09:09 AM Emil: Lolno
09:09 AM * polprog is confused
09:09 AM Emil: I'm the one that pushesh them forward, which is often not their favourite thing
09:10 AM Emil: wait
09:10 AM Emil: I misread you
09:10 AM Emil: I'm a teacher
09:10 AM Emil: Yes
09:10 AM polprog: i was sure you were a student
09:10 AM Emil: I am
09:10 AM Emil: Also :D
09:11 AM polprog: nice :D
09:15 AM Haohmaru: dis is conflict
09:16 AM polprog: hes' both student and a tutor until you ask
09:17 AM polprog: schrödingers engineer
09:20 AM Emil: Haohmaru: noooo
09:20 AM Emil: :D
09:21 AM Emil: polprog: hahah :D
09:23 AM Haohmaru: Emil you have the right to remain student, everything you've designed may be used to torture you during the investigation process..
09:46 AM * Haohmaru tortures Emil with a non-ideal SPI transmitter
10:12 AM polprog: non ideql?
10:12 AM polprog: it swaps nibbles at random :D?
10:14 AM Haohmaru: no, there are short gaps between the bytes
10:15 AM Haohmaru: because the SPI is set to F_CPU/2
10:21 AM polprog: you know what gives physical pain?
10:21 AM polprog: soft spi with digitalWrite()
10:21 AM polprog: :DDD
10:23 AM Haohmaru: o nein
11:06 AM renn0xtk9: Anybody has quick time to look at a code ? https://github.com/g4lvanix/I2C-slave-lib/blob/master/I2C_slave.c < Am i crazy or there is a bug on line 38 ? The guy take save the data comming from TWI and use it as the address in the buffer and then continue to write data from this address .. it should be buffer_address=0;rxbuffer[buffer_address] = data; should not it ? See also where they are declared https://github.com/g4lvanix/I2C-
11:06 AM renn0xtk9: slave-lib/blob/master/I2C_slave.h
11:07 AM carabia: so polprog last time I failed to get you, was there some niche involved in making a custom temp logger?
11:09 AM bss36504: renn0xtk9: I'm no I2C expert, but looks as though hes checking to see if for some reason the slave address wasn't picked up properly in the previous process (line 25) then store the current "data" as the address.
11:09 AM carabia: as in, I could sure use jobs like that. I would order some china ones for less than the price of an avr most likely, slap a $20 price tag and remove any markings implying their origins
11:47 AM carabiaah is now known as carabia
11:56 AM polprog: carabia: not really, just a regular thermo logger
11:56 AM polprog: the paperwork in tge company is harder that the electronics
11:56 AM carabia: so now i'm interested, who pays you to do this, can you introduce me?
11:57 AM polprog: intoduce you to the people who pay me :P?
11:58 AM polprog: im an intern at one of the electronic design companies
12:04 PM carabia: yes
12:17 PM Emil: Haomaru :D
12:28 PM antto: Emil me
12:29 PM Emil: antto: yes?
12:29 PM antto: >:/
12:30 PM * antto tortures Emil with bitbanged SPI
12:32 PM Emil: Always so angry
12:32 PM antto: my computer at work froze after getting the monitor back from standby mode
12:32 PM Emil: lol
12:32 PM Emil: Nice hw
12:33 PM antto: it left some nasty random pixels flickering on the screen, and pretty much stopped responding to the keyboard
12:33 PM antto: i connected to it via ssh, and i saw that kicad was stuck at using 29% cpu, everything else looked normal
12:34 PM antto: thing is.. i don't remember if i saved the pcb before leaving it
12:34 PM antto: so i'm afraid to simply reboot it
12:34 PM antto: meeeh
12:34 PM antto: i suspect it's something related to opengl and the videocard
01:03 PM Emil: :D
01:13 PM Emil: https://emil.fi/jako/kuvat/2017-08-23_20-42-12_l36OXBhA.png
01:13 PM Emil: lOL
01:13 PM Emil: Had to add a switched regulator
01:15 PM * antto sees a collision on the courtyard
01:16 PM antto: Emil where's all that copper fill connected to?
01:17 PM bss36504: Emil: What was that website with all the fancy HTML site templates?
01:18 PM antto: the corners of that PCB are too f*ckin' smooth I CAN'T TAKE IT
01:18 PM * antto vomits
01:19 PM carabia: Did someone say HTML?
01:20 PM carabia: May I interest you in my attiny5 web browser? It does yt 1080p
01:20 PM bss36504: carabia: does it run a full Ubuntu setup?
01:21 PM antto: carabia hope google don't read you
01:21 PM carabia: It runs docker, and ruby. Is that alright?
01:21 PM antto: they'll change something in youtube just to break your browser
01:21 PM carabia: I doubt it
01:22 PM antto: you doubt that google are reading you or that they do stuff intentionally to break something on someone's browser?
01:22 PM antto: ;P~
01:25 PM carabia: My browser implements deepmind(tm)(r)(c), it adapts
01:25 PM antto: idontbelieveyou.gif
01:26 PM carabia: Its neural network is easily accessible with a REST-interface on Ruby on Rails
01:26 PM * antto vomits even more
01:26 PM bss36504: wow carabia, where can I finance your Hipster Startup?
01:26 PM antto: now, tell me it also uses an ESP wifi for some dumb reason
01:27 PM bss36504: You used all the correct buzzwords to make me want to spend money on it
01:27 PM antto: he forgot to say IoT
01:27 PM antto: and "smart"
01:28 PM carabia: https://www.kickstarter.com/projects/973736766/the-cybermatrix-100-tu01 Preliminary draft, excuse for the crudeness.
01:28 PM carabia: Nevermind the whole "funding period", just keep throwing money at the screen
01:29 PM bss36504: what. the. hell
01:30 PM antto: dafuq?
01:31 PM carabia: I take it, you like it?
01:31 PM bss36504: like is a strong word
01:31 PM antto: i'm not saying i don't like it..
01:32 PM antto: but >:)
01:40 PM carabia: I'd fund the shit out of it.
02:03 PM robinak is now known as robink
02:17 PM JanC_ is now known as JanC
02:29 PM Emil: bss36504: html5up.net?
02:29 PM Emil: bss36504: or pixelarity.com
02:29 PM Emil: antto: :3
02:29 PM bss36504: Emil: the first, thanks
02:29 PM Emil: bss36504: yeah they are niiiice
02:30 PM Emil: bss36504: our students whipped up nice sites as posters for their projects
02:30 PM Emil: using those templates
02:30 PM bss36504: I have a single page type thing in mind to just nicely display some google sheets charts, Seems like a simple but good looking HTML page is adequate
02:31 PM Emil: bss36504: hmm
02:31 PM Emil: bss36504: for that you might want to diy it from scratch using flexbox or grid
02:32 PM Emil: since html5up et cetera are mainly aimed at nice looking text content
02:33 PM Emil: antto: also yeah
02:33 PM carabia: i do circuit cad with flexbox
02:33 PM Emil: antto: rounding the edges on pcbs is an absolute must
02:33 PM Emil: carabia: yeah no you dont :D
02:33 PM carabia: yeah i do. and javascript
02:34 PM Emil: idontbelieveyou.jpg
02:35 PM bss36504: Emil: That is also a possibility. I really just hate doing web design in any capacity, I really lack the artistic talent to go from blank canvas to something that looks good, even though I know what looks good when I see it
02:36 PM Emil: bss36504: don't think about it like that
02:36 PM Emil: bss36504: think about it as just putting things around
02:36 PM Emil: minimalistic look is easy to pull off
02:39 PM bss36504: It's weird though, when its something technical, I can see the end product and how to get there (in most cases). With anything artsy, I see the end product, but no path to get there. Couple that with my utter disdain at web programming and markup languages, and you have a recipe for not doing it from scratch :)
02:39 PM Emil: heh
02:39 PM Emil: I can relate somewhat. I used to find website design and building a huge task
02:39 PM Emil: Then I discovered how fucking easy it is and what to use for what and why
02:40 PM Emil: And what's the purpose of each of the component
02:40 PM Emil: This realisation came about naturally
02:41 PM Emil: I just felt a strong enough desire to utilise browsers as a visualisation api since they are unified and easy to use
02:42 PM Emil: That's all there was to it
02:42 PM Emil: I wanted to visualise data quickly and interactively
02:42 PM bss36504: That is a good point. I guess I just need to find a project that inspires me enough to do the deep-dive and gain the skills
02:43 PM bss36504: Until then though, I avoid it haha
02:43 PM bss36504: in fairness though, I kinda just hate UI development, even in languages and APIs I understand very well
02:43 PM Emil: Interesting
02:44 PM Emil: Perhaps I'm at strength here because I don't hate anything, really
02:44 PM LeoNerd: I did some UI development on an AVR the other day
02:44 PM LeoNerd: 128x32 pixel display. Two buttons
02:44 PM bss36504: It just feels very tedious and underwhelming. Much more of an algorithm guy when it comes to programming
02:45 PM Emil: Try to not classify yourself and compartmentalise yourself like that
02:46 PM Emil: Agree that your skills are best at one thing and lacking in others
02:46 PM Emil: but don't classify yourself too much
02:46 PM Emil: it's limiting
02:46 PM bss36504: Oh no, I'm not trying to downplay abilities, I just dont like it
02:46 PM Emil: Exactly, don't think like that :D
02:46 PM twnqx: web is not fun, but it's still interesting to see what you can do with it
02:46 PM bss36504: Like I said, I can make UIs in other languages that I know, but I just never really liked doing it
02:46 PM bss36504: and I've done enough to know that. But It wouldn't stop me from learning it if I felt it was the best option for a particular application
02:47 PM Emil: Well, I've said what I think about it :D
02:48 PM Emil: Javascript has a lot of design flaws and some of the web standard apis are horrible
02:48 PM bss36504: Another aspect, and this is true for all facets of a project, is that I simply don't have time sometimes to do all things from scratch. So if maybe some LEDs are good enough, I won't bother with the LCD since maybe the "display format" isn't the thing I actually care about for a given project
02:48 PM Emil: but it's nice that you can build things quickly and having "native" callbacks enables easy programming
02:49 PM bss36504: Javascript is interesting to me, for sure. Never really took the time to learn it fully, but I can kinda fiddle around with it here and there
03:02 PM rue_shop3: so, under timer control, the io pins are a bit hard to reset, aka, if you have the timer set up to set the pin high, getting it low again is a choar
03:25 PM polprog: the electronic workshop was nice
03:25 PM polprog: today mostly lectures but we went from resistors to logic gates pretty much in 2h
03:26 PM polprog: most off the stuff was known but it's nice to get some of it refreshed
03:27 PM polprog: Emil: what's the deal with "EEs hate him vid? some kind of a scope on ardweeny?"
04:30 PM Emil: polprog: you see how the output flats out at the high end?
04:31 PM polprog: didnt notice
04:32 PM polprog: also, kek at the leaking pool
04:32 PM Emil: polprog: https://emil.fi/jako/kuvat/2017-08-24_00-01-08_I0O5Akga.png
04:32 PM polprog: that
04:32 PM Emil: polprog: the DAC canot output high values
04:32 PM Emil: even if it promises it can
04:32 PM polprog: bad dac
04:32 PM Emil: that's not half bad
04:32 PM polprog: heh
04:32 PM Emil: a TI one I bought for an actual project was SHIIIIIIIIIIIIIT
04:32 PM Emil: I mean
04:32 PM Emil: how the fuck can you promise things you can't deliver
04:33 PM polprog: small print
04:33 PM Emil: polprog: but yeah I was going to get a few components from our student workshop
04:33 PM polprog: and you probably broke it by looking at it so dint even try to sue us
04:33 PM Emil: entered the building and thought, wait, is someone doing some cleaning?
04:33 PM Emil: Walked down and daaamn, there's a shower :D
04:34 PM polprog: https://www.youtube.com/watch?v=pxiwqleE9Do
04:35 PM Emil: Hmm
04:38 PM Emil: polprog: haha
04:38 PM Emil: polprog: forgot about that clip
04:39 PM Emil: btw
04:39 PM Emil: if you ever need kicad uno shield template for whatever the fucking reason
04:39 PM Emil: https://emil.fi/jako/dokumentit/uno_shield
04:40 PM polprog: thanks,
04:40 PM polprog: first i need to get an arduino if i ever need it
04:40 PM polprog: :P
04:40 PM Emil: The students have a demoday today
04:40 PM Emil: in 12 hours
04:40 PM Emil: and of course many of the groups are making things in a rush
04:41 PM Emil: had to help out and make a small shield template for them
04:41 PM polprog: my small datasheet aqrchive if you ever need it: http://polprog.net/papiery/
04:41 PM polprog: i like the smd sizes chart
04:41 PM polprog: in particuar
04:41 PM Emil: Hey that's pretty nice
04:43 PM polprog: :)
04:46 PM polprog: shit
04:46 PM polprog: i havent pushed anything to my github for a year
04:46 PM polprog: this is depressing
04:46 PM polprog: half finished minecraft mods
04:46 PM polprog: a version of server info plugin that is half way through update
04:46 PM polprog: :(
04:49 PM polprog: im sad
04:50 PM Emil: Aww
04:50 PM * polprog updated his homepage
04:56 PM Emil: Well
04:56 PM Emil: Good night
04:56 PM Emil: Actually wait nio
04:56 PM Emil: I'll have to do laundry
04:56 PM Emil: So I'll head home and stay up for another 2 hours :D
04:59 PM polprog: i think ill solder some 0603 leds to the other side of the bus pirate
04:59 PM polprog: and they try to crack the tlc5940
04:59 PM polprog: anyway, night
05:34 PM polprog: no luck
05:34 PM polprog: ill have tu try rue's code
05:34 PM polprog: to*
06:49 PM polprog: goodnight
09:50 PM Thrashbarg_ is now known as Thrashbarg
09:51 PM enh: hi
09:51 PM enh: Carabia! You are back!
09:51 PM enh: The water rocket man.
09:51 PM carabia: the renaissance man you mean, but yes, hello
09:52 PM enh: You disappeared for a long time
09:52 PM enh: Lambda_Aurigae was worried about you.
09:55 PM carabia: i'm sure he was. sadly this feeling was not mutual
09:56 PM enh: Are you all right?
09:56 PM carabia: i'm quite fine actually, thanks. You?
09:58 PM enh: I'm fine, thanks. Did you fly any more water rockets?
09:59 PM enh: I wonder if it is possible to open pentalobe screws without a pentalobe driver... My iphone display connector popped away again
10:02 PM carabia: probably, with the right size flathead
10:02 PM enh: 0.8mm...
10:03 PM carabia: well good luck with that then
10:04 PM carabia: file one down, heh
10:04 PM enh: You are a genius, carabia! I've got one!
10:05 PM carabia: though there are those extremely small flatheads, not sure what they're called in english
10:06 PM carabia: but those pentalobes look like you can easily fuck the head up so, dunno
10:07 PM enh: My small control system advanced a lot since we last chatted.
10:07 PM enh: I can even control 16 servos now.
10:30 PM carabia: hey yeah, have you been figuring out what to do with the interconnects?
10:38 PM enh: Which interconnects? You mean those nasty module headers?
10:40 PM carabia: yes
10:43 PM enh: I found no solution yet. The thing I designed was completely criticised by many people here. I described the possible solution here: https://hackaday.io/project/11724/log/63899-laser-cutting-a-prototype-on-paper
10:44 PM enh: Then I considered using these connectors instead: https://www.aliexpress.com/item/100pcs-2x8-P-16-pin-1-27mm-Pitch-Pin-Header-Female-dual-row-SMT-straight-Surface/32727604206.html?spm=a2g0s.13010208.99999999.267.rkK9XB
10:45 PM HighInBC: those are nice when you don't want holes
10:45 PM enh: But they are sooo big, that I'm considering my solution again, with joining wires between modules and backplane
10:45 PM enh: Their footprint is enormous
10:46 PM HighInBC: ribbon connectors is the traditional way to make many connections in a tiny area, but what a pain to work with
10:47 PM enh: true pain
10:47 PM enh: I could not find a good solution yet
10:47 PM enh: This is so annoying
10:50 PM HighInBC: there is also 1mm header
10:50 PM enh: Erlend^SE, on #sparkfun, suggested me to just stak the modules. But this does not solve the problem, as I need one chip select for each module
10:50 PM HighInBC: you can forgo the connectors/sockets and just stack the boards with the 1mm header in between
10:51 PM enh: I will need a bus with lots of connections in this case, to route the chip selects too
10:55 PM enh: Actually the main bus has eight lines only
10:57 PM HighInBC: I have been known to reuse ide cable to connect panels with main boards
11:07 PM carabia: i gotta look into that, i have been blankly staring at the screen for the last 15 minutes, I think it's time for bed. catch you later
11:08 PM enh: sleep well
11:08 PM enh: enhering@gmail.com
11:27 PM enh: HighInBC: It would be better to have some sort of connector to join the module with the backplane. At least for testing purposes it helps a lot.
11:28 PM HighInBC: yup
11:28 PM HighInBC: you can get 1mm socket though
11:29 PM enh: But I'm rethinking that. Maybe I will have a PCI computer like conenctor just to test the modules and then solder them to the backplane using easily removable wires and the 3D drawing I showed in the link
11:29 PM enh: I mean solder the tested modules
11:31 PM enh: 1mm sockets can work too. What do not fit are the 2xn smd female sockets. They are too wide.
11:40 PM day_ is now known as daey