#avr | Logs for 2017-01-28

Back
[00:35:09] <_ami_1> sabor: people at #stm32 just troll each other? :)
[00:48:20] <sabor> _ami_1: yeah, ##stm32 seems to be an alias for ##troll
[01:39:33] <_ami_1> sabor: :P
[01:39:53] <malinus> Long time no 8-bit avr
[01:40:12] <malinus> Can you do debugging using the USB Tiny MKII from Tom_itx :)?
[01:50:10] <Casper> it is not a debugger
[02:01:24] <malinus> k
[04:42:22] <rue_house> sabor, carabia is our troll.
[11:15:01] <carabia> rue_house: your insolence is amusing
[11:47:48] <twnqx> LOL
[15:05:18] <ENHering> Hi.
[15:05:22] <ENHering> Anybody home?
[15:06:12] <ENHering> I've just rewritten my SPI class for ATmega328p. Anybody wants to test it?
[15:08:54] <_ami_> ENHering: meh, is it hw one or soft one?
[15:08:59] <_ami_> in kicad, conn (1x 0X) components can be used for both male and female types headers?
[15:09:50] <ENHering> _ami_: conn just mark the pads on the PCB. You solder whatever you want there
[15:10:16] <ENHering> _ami_: The class is a C++ one.
[15:12:34] <ENHering> Is there some book called "The art of debugging AVR code with just one led" ?
[15:12:52] <ENHering> If not, somebody should write it.
[15:12:58] <_ami_> ENHering: cool. thanks.. thats what i thought of! :)
[15:14:47] <_ami_> ENHering: is there any way to change the 3d view of the conn component? it shows FEMALE headers for all conn type components
[15:14:57] <Jartza> I'm home.
[15:16:12] <ENHering> Never used 3D view, _ami_. Sorry. I migrated to KiCAD many months ago, after getting annoyed with Eagle limitations. Still a lot to learn yet.
[15:17:36] <ENHering> I have a paper on a one led bidirectional communication solution. Anybody interested?
[15:17:55] <specing> me
[15:18:27] <specing> I suppose this means using the led as a solar cell?
[15:18:39] <ENHering> https://www.dropbox.com/s/woe7lxbu1d585lo/SingleLedComm.pdf?dl=0
[15:18:51] <ENHering> It is there.
[15:19:18] <ENHering> Very smart solution. So smart I'll take a lot of time to understand it.
[15:19:35] <specing> http://lux-rc.com/content/products/flashlights/FL33_EDC/special_offers
[15:19:53] <specing> ^ these people make flashlights that are configurable by light
[15:20:09] <specing> but afaik the use a separate phototransitors(resistor?)
[15:20:36] <specing> I wanted to do something similar with a CREE XM-L
[15:20:45] <specing> and no separate components
[15:20:50] <ENHering> specing: They use only the led.
[15:20:53] <ENHering> Nothing else.
[15:21:01] <specing> exactly what I'm after
[15:21:10] <ENHering> Have fun, then.
[15:54:35] <rue_shop3> you can use an led to recieve
[15:54:38] <rue_shop3> I'v done it
[15:55:02] <rue_shop3> http://ruemohr.org/~ircjunk/tutorials/elex/ledsensor/ledsensor.html
[15:57:46] <rue_shop3> I use the led as a sensor and an indicator
[15:57:51] <rue_shop3> at the same time
[15:58:05] <rue_shop3> which I'v also done with a pizo element, I use it as a mic, and a beeper
[15:58:40] <specing> > including acidhex who said he would do this with me and RAN AWAY.
[15:58:49] <specing> WHERES MY TORCH AND PITCHFORK?!?!
[15:59:18] <rue_shop3> meh, it was long ago
[15:59:27] <specing> your LED is weird
[15:59:35] <specing> it looks like a transistor
[15:59:48] <rue_shop3> ?
[15:59:52] <rue_shop3> its an led
[15:59:59] <rue_shop3> --->|----
[16:00:03] <specing> Aaaaah
[16:00:03] <rue_shop3> SSS
[16:00:12] <specing> it was clear so I did not see the bulb
[16:00:14] <rue_shop3> code has schematic
[16:00:31] <specing> I thought the 0.1" header was the LED
[16:00:45] <rue_shop3> hah
[16:21:54] <yids> hmz i have so code to write to uart which was working fine on an atmega328p, but now i try to run it on a 1284p and i get garbage output, do i have to do it in a different way?
[16:23:20] <yids> http://paste.debian.net/911128/
[16:28:19] <specing> have you tried the datasheet?
[16:29:14] <yids> ill have a look
[16:47:49] <rue_house> yids, what speed is the 328p running?
[16:47:59] <rue_house> 8Mhz?
[16:48:22] <rue_house> yids, what speed is the 1284p running?
[16:48:24] <rue_house> 20Mhz?
[16:48:28] <yids> speed was the problem yes, 328 was running on 16 and the 1284 is running on 8
[16:48:33] <rue_house> ah
[16:48:39] <rue_house> what baud rate are you using?
[16:48:42] <yids> 9600
[16:48:47] <yids> it works now
[16:48:48] <rue_house> ok,
[16:49:19] <rue_house> you can use 19200 with the same bit timing error, but much more than that and the baud rate is too far out of spec to get reliable communications
[16:49:58] <yids> speed is not important its just for debugging
[16:50:08] <rue_house> :)