#avr | Logs for 2016-09-01

Back
[00:01:27] <dgriffi> not sure
[00:27:04] <rue_house> well, thats important
[00:27:13] <rue_house> tiny85 eh?
[00:27:20] <rue_house> either externlal or .. ugh, pwm
[00:27:29] <rue_house> pwm needs a filter
[00:28:31] <dgriffi> ya tiny85
[01:03:04] <dgriffi> rue_house: how do I tell which dac I'm using?
[01:04:52] <rue_house> its the one you physically wired up to it
[01:25:06] <dgriffi> rue_house: i thought you could generate sounds straight from a pin
[01:26:18] <Casper> you "can"
[01:26:19] <Casper> but the pin is seriously limited in current
[01:26:20] <dgriffi> so it just goes throight a couple resistors, a cap, and some caps to ground
[01:27:15] <dgriffi> just holding the speaker to a microphone will suffice
[01:27:30] <dgriffi> not much volume is necessary
[01:29:19] <Casper> the pin can give 20mA
[01:49:06] <l9> wouldnt that the same as the small speaker on a motherboard?
[03:33:16] <dgriffi> l9: pretty much
[04:36:55] <Jartza> Lambda_Aurigae: LOL, using OctaPentaVeega as an example of UART is a bit naughty :D
[05:06:58] <grog> ive got an atmega1284p running at 11.0592MHz/8, confirmed ~1.4MHz on clkout, and it's using 9mA at 5v?
[05:09:31] <twnqx> if you only run it into power down, sure :P
[05:11:57] <grog> per the datasheet i was expecting it to use ~1mA at this speed while doing stuff
[05:15:34] <twnqx> i read 1.3mA idle
[05:16:35] <twnqx> i also read ~10mA at 5V, 11Mhz, active from ther data sheet figure 27.3, page 335
[05:16:51] <twnqx> oh, divided by 8
[05:17:16] <grog> PWD_DOWN was <1uA, sleep_mode_idle is 7.6mA... so likely something with my shitty breadboard DIP circuit :P
[05:17:18] <twnqx> that should be close to 2mA indeed
[05:17:25] <grog> and not turning off i/o etc
[05:17:28] <twnqx> well, do you drive anything?
[05:17:41] <twnqx> an LED could already use up that much alone :P
[05:17:43] <grog> nada, it's literally a crystal and usbasp
[05:17:56] <twnqx> removed the usbasp?
[05:18:06] <grog> and the code is set_sleep_mode, sleep.
[05:18:31] <grog> yeah, i tried powering it standalone offa bench supply without the usbasp, same deal
[05:19:15] <grog> im new, guaranteed it's user error but thanks for the sanity check, will keep pluggin away ;)
[05:19:54] <twnqx> it might indeed be the IO#
[05:20:08] <twnqx> given the surcharge is in the double digit % comapred to idle
[05:31:29] <grog> speaking of sleep mode, it's 4am, should probably head home and zzz
[10:57:41] <Jartza> https://i.imgur.com/kUKZwBY.png
[10:57:42] <Jartza> LOL
[10:58:22] <Jartza> randomly ran into picture of Tagsu from random seminar https://www.dropbox.com/s/jjeoncyitw4qnqc/IMG_20160901_143213.jpg?dl=0
[12:07:56] <_ami_> https://lists.linuxfoundation.org/pipermail/ksummit-discuss/2016-August/003578.html
[12:08:22] <_ami_> Greg reply on "GPL enforcement"
[12:08:43] <_ami_> https://lists.linuxfoundation.org/pipermail/ksummit-discuss/2016-August/003580.html
[12:09:26] <_ami_> Greg and Linus, confront GPL lawsuits
[12:12:57] <specing> Lawsuits didn't destroy community
[12:13:03] <specing> violating the GPL did that
[12:15:48] <specing> these companies in the so called "community" could read up on the GPL for once
[12:16:38] <antto> it's too long ;P~
[12:17:21] <specing> that too
[12:19:05] <_ami_> Well.. the trend has been changed. Companies are contributing back to kernel or other open source components.
[12:19:25] <_ami_> I can say this by my personal experience
[12:22:57] <specing> https://www.gnu.org/philosophy/open-source-misses-the-point.en.html
[12:23:10] <specing> companies indeed love open source
[12:33:40] <_ami_> specing: there is a risk involved with the approach of SFC to GPL enforcement.
[12:35:22] <_ami_> One example is avr-libc. if it was not supported by Atmel, we won't be liking AVR development much.
[12:35:55] <_ami_> For a opensource project, you need backing from companies.
[12:36:16] <_ami_> For a opensource project to evolve*
[12:38:07] <specing> ?_? no
[12:41:15] <specing> also they are free to back GPL projects
[12:41:27] <specing> but backing them does not give them the right to violate licenses
[12:42:23] <specing> also busybox is a free software project not an "opensource" one
[12:42:41] <specing> the two terms are not equal
[12:42:55] <specing> the first implies the second, but the second does not imply the first
[12:43:37] <specing> re-read the link I gave you
[12:46:21] <_ami_> i understand the difference between free software and opensource.
[12:47:15] <_ami_> My only worry is pissing off people by threating/legalese. its not cool.
[12:56:26] <specing> threatening would not be required had they followed the license
[12:56:37] <specing> they force us all the damn time to read their damn fucking EULAs
[12:56:44] <specing> they could read the GPL for once
[13:00:06] <_ami_> specing: you can shame those companies who violates GPL instead.
[13:00:11] <_ami_> that might work i think.
[13:00:53] <_ami_> its just that devs and lawyers wont go along well. lawyers destroy communities.
[13:01:02] <_ami_> and projects too
[13:01:49] <_ami_> Also isn't GPLv2 worked well for linux?
[13:02:14] <specing> thats what the SFC does, they shame GPL violators...in court
[13:02:16] <_ami_> and i think it will do in future also.. so why to change this approach? why to create mess by sueing companies?
[13:03:00] <specing> lawsuit clean up the mess
[13:03:12] <specing> they created the mess by violating the GPL
[13:03:23] <_ami_> SFC is running a false propaganda which they tried before and failed.
[13:03:30] <specing> and what is that?
[13:04:12] <_ami_> busybox ~
[13:04:16] <_ami_> is one example.
[13:04:26] <_ami_> they killed it.
[13:04:29] <_ami_> nobody uses it
[13:05:03] <specing> Am I a nobody for using it?
[13:05:49] <specing> or are companies too afraid to use it as they are actually prepared to enforce the license?
[13:05:53] <_ami_> ok, few people use it.
[13:06:25] <_ami_> specing: are those companies (who do not contribute) add any value to kernel?
[13:06:56] <specing> does violating the GPL add any value?
[13:07:18] <specing> should they be excused for violating the GPL just because they are adding /some/ value?
[13:07:26] <_ami_> i think its more of being lazy or not responsible. may be culture is one reason?
[13:07:33] <specing> ?
[13:11:10] <_ami_> specing: talking abt chinese companies
[13:11:29] <_ami_> i think micromax also violated GPL once.
[13:11:48] <specing> those are violating because they can do so with impunity
[13:12:08] <specing> remember that for companies profit is #1 priority
[13:12:12] <specing> not "being nice"
[13:19:22] <_ami_> specing: shame them in public instead, that will do.
[13:20:37] <specing> Sometimes it doesen't suffice
[14:09:52] <pepijndevos> For some reason I can never connect an Atmega328 on a breadboard and get ISP to work. Always takes 2 days for some reason. Always avrdude: initialization failed, rc=-1
[14:20:44] <carabia> Could be related to the position of the moon and the rising sign of jupiter
[14:32:36] <pepijndevos> Ah yea, Jupiter, the planet of pull and confrontation. Indeed if the moon would be oposite or square to jupiter, it'd have a hard time connecting.
[14:34:40] <pepijndevos> But it's just Atmega328, I connected an Attiny25 to the same programmer and it worked on first try. Maybe less to mess up with only 8 pins... And maybe the tiny is more connected to the dwarf planet Pluto.
[14:47:07] <carabia> Seems to me this is a very logically sound explanation of said phenomena.
[14:47:59] <carabia> I'd recommend to double-triple-quadruple-check the pinout but hey that's just me and you've been at this for a while after all...
[15:57:09] <ub|k> AREF in an atmega328... there's an internal resistance of 32K. Shouldn't I be able to calibrate the maximum voltage (that will correspond to the maximum value on the ADC)?
[15:57:47] <ub|k> using some kind of voltage divider. e.g. connecting to 5v throuh a 10K pot
[16:03:16] <pepijndevos> What would be the best way to find the absolute difference of 2 values? abs(x-y) risks overflow, so maybe max(x, y)-min(x, y), but maybe there is a better way?
[16:04:06] <ub|k> pepijndevos: i can't see any other way that doesn't involve an overflow
[16:04:33] <pepijndevos> Ok
[16:08:47] <carabia> pepijndevos: What was the problem, you got it running?
[16:08:55] <pepijndevos> ub|k, I think you could scale it, but I'm not sure how reliable it will be.
[16:09:18] <pepijndevos> carabia, nope, I ditched the breadboard and took out an Arduino board.
[16:09:20] <ub|k> pepijndevos: not very worried about reliability
[16:12:00] <pepijndevos> Well, what's stopping you from trying?
[16:13:39] <ub|k> pepijndevos: nothing. it just isn't working :)
[16:14:36] <pepijndevos> So what's in your ADMUX?
[16:15:34] <twnqx> ub|k: why... don't you just put the pot in front, as a resistor divider? :S
[16:15:57] <twnqx> instead of messing with aref
[16:16:45] <ub|k> twnqx: that's a very good point indeed
[16:16:50] <ub|k> damn.
[16:22:38] <ub|k> twnqx: the problem is... if i allow the voltage to be > 5v i risk damaging the mcu
[16:25:51] <twnqx> isn't taht exactly why you use the external resistor divider?
[16:26:18] <twnqx> i have 15V or so before the divider, and my analog reference is the internal 2.5
[16:26:44] <twnqx> 1:10 divider (1k/10k) and i'm good
[16:27:36] <ub|k> twnqx: sure, but the point is to be able to match the 5v i'm getting to the maximum value in the ADC
[16:27:54] <ub|k> which means being able to tune it to 4.9v as well as 5.1v
[16:28:56] <twnqx> i think i'm out of this... i can't follow want you really want any more
[16:29:34] <ub|k> twnqx: never mind, i'll have a closer look later
[16:29:46] <ub|k> i'm about to go to bed, cannot explain things clearly anymore :)
[23:54:50] <carabia> https://www.youtube.com/watch?v=HHmiHx7GGLE
[23:54:56] <carabia> Is this what harvard has come to